Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Thanks

share|improve this question

2 Answers 2

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: pastebin.com/VHqg9eik –  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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.