Author Topic: Automate command on bootup  (Read 1404 times)

Offline Z.K.

  • Newbie
  • *
  • Posts: 1
Automate command on bootup
« on: August 14, 2010, 04:08:57 AM »
How do I run a command on boot up.  I would like to do this before the login so if would take affect globally or for any user.

I have a touch screen on the device I am using with Ubuntu 10.04. The touch screen works and I am able to calibrate it, but I am unable to keep the settings after logging out or rebooting. The command I am using is

xinput set-int-prop "PANJIT TouchSet USB Digitizer" "Evdev Axis Calibration" 32 575 3553 648 3433

I have put it in rc.local and xinitrc and also used a udev rule file, but it does not set up the touch screen settings the way it does if used in a terminal.

Anyone have any ideas where I can put this command so it runs automatically during login or just after the Gnome starts up. I would prefer it to start before any user logs in, but anything is okay at the moment.


Ubuntu Forums (Ubuntu Linux Support)

Automate command on bootup
« on: August 14, 2010, 04:08:57 AM »

Offline joe12

  • Sr. Member
  • ****
  • Posts: 449
Re: Automate command on bootup
« Reply #1 on: August 17, 2010, 02:20:27 PM »
hi

-go to system then preferences choose start-up apps .

-click add then 
Code: [Select]
touch screen for name .

- the command will be
Code: [Select]
xinput set-int-prop "PANJIT TouchSet USB Digitizer" "Evdev Axis Calibration" 32 575 3553 648 3433


-the comment call it 
Code: [Select]
my saved settings
- click add then reboot .


hope it helps !

Offline jtarin

  • Newbie
  • *
  • Posts: 2
Re: Automate command on bootup
« Reply #2 on: August 31, 2010, 04:14:40 PM »
In /et/rc.local enter
Code: [Select]
xinput set-int-prop "PANJIT TouchSet USB Digitizer" "Evdev Axis Calibration" 32 575 3553 648 3433 &