I want to be able to permanently set the speed and the sensitivity of my trackpoint.
With the command:
# echo -n xxx > /sys/devices/platform/i8042/serio1/serio2/speed
# echo -n xxx > /sys/devices/platform/i8042/serio1/serio2/sensitivity
I can change the parameters on the fly, but after every reboot the system will reset it.
According to this article i've added the two line with my settings into rc.local, but nothing seems change. The values are always resetted to the default value.
What can i do to set it as default value, or just to run the command on every startup ?
Thanks to all
Udev rule would be my choice.
If you are using systemd. You could write a bash script and put it in like /usr/local/bin then write a unit file
This is what I did to run a script to setup a complex tap, br0 network for VM's (though it seems I should be doing this with netcfg, as I use netcfg anyway, Note: I freaking love netcfg)
[Unit] Description=This runs the script to setup the bridge network, down-virt-network.sh to take down [Service] Type=oneshot ExecStart=/usr/local/bin/up-virt-network.sh [Install] WantedBy=multi-user.target
Then enable it
systemctl enable virt-network.service
Last edited by hunterthomson (2012-10-04 06:12:49)
The trackpoint parameters won't be used until X starts. Somewhere in /etc/X11/xorg.conf.d would be a better place to set them afaik.
Maybe this will help http://www.thinkwiki.org/wiki/How_to_co … org.conf.d
You're just jealous because the voices only talk to me.
The trackpoint parameters won't be used until X starts.
Hey, that is really interesting. I guess I never thought to look at whether or not it was acutally changing. I just made a udev rule and went about my business. But after a reboot, it is definitely still at 128. Guess I will have to find a better way.
Edit: further down the page on that link, it mentions the "WAIT_FOR" udev parameter. That should do the trick.
Last edited by WonderWoofy (2012-10-04 13:45:01)