Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm configuring my thinkpad's trckpoint using the following command:

sudo echo -n 120 > /sys/devices/platform/i8042/serio1/serio2/speed
sudo echo -n 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

But I have to run it after reboot. Is there anyway to make this change permanant?


share|improve this question

You could add these into a startup script that gets executed at boot. That would be easiest.

Another way would be to recompile the Linux kernel and set the defaults of these parameters to what you desire.

share|improve this answer

As @mdpc says, the best way to do that is in the startup script. I've done something similar (this should work on most distros).

Add the following lines to /etc/rc.local anywhere before the last line "exit 0" (If exit 0 does not exist, just add them to the file)

echo -n 120 > /sys/devices/platform/i8042/serio1/serio2/speed echo -n 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

share|improve this answer
Hi David, I tried to pu the 2 lines into /etc/rc.local but after reboot, it did not work... I'm using Linux Mint – draw Feb 5 '13 at 4:35
Looks like my formatting got munged - did you put that in as 1 line or 2 ? (There should be a line break before the second echo). – davidgo Feb 5 '13 at 7:54
here is my file: – draw Feb 5 '13 at 17:16
That looks correct to me. Not sure what to advise from here. The obvious thing to check is if the script is running. You can do this by adding a line "/bin/date > /tmp/date.log" before the exit 0 and rebooting. If it creates/adds to a file /tmp/date.log on reboot with the date inside then the script is running on startup, if not we could investigate why. (Are the permissions set correctly on /etc/rc.local - chmod 755 /etc/rc.local ?) If it is running, maybe something is overriding your config ? – davidgo Feb 5 '13 at 22:17
Eh... Seems it's running now... – draw Feb 7 '13 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .