[ltp] Ubuntu 10.04 -- Trackpoint

Arian linux-thinkpad@linux-thinkpad.org
Fri, 28 May 2010 19:20:57 +0200

Excerpts from Johannes Lichtenberger's message of 2010-05-28 18:53:06 +0200:
> Ok, my fault... putting
> # Trackpoint configuration.
> devices/platform/i8042/serio1/serio2/press_to_select=1
> devices/platform/i8042/serio1/serio2/speed=250
> devices/platform/i8042/serio1/serio2/sensitivity=250
> and starting sysfsutils is doing fine.

does this also work after a resume from standby? I haven't used 
sysfsutils, but I echo the above values at startup into the appropriate 
sysfs files and it works fine. But after resume I find the trackpoint 
will be slow again, so I have to reexecute the script. I tried using the 
hooks in /etc/pm/sleep.d/, but for some reason it does not seem to work. 
So at the moment I execeute the following manually after each resume, 
which is
rather aggravating:

#! /bin/sh
dir=$(basename $(find /sys/devices/platform/i8042/serio1/ -mindepth 1 -name "serio*"))
echo -n 255 > /sys/devices/platform/i8042/serio1/${dir}/sensitivity
echo -n 255 > /sys/devices/platform/i8042/serio1/${dir}/speed

Does anybody have a better solution to this?