[ltp] Setting up the trackpoint
Torsten Wolf
linux-thinkpad@linux-thinkpad.org
Tue, 3 Jan 2006 09:53:00 +0100
Hi!
When trying to follow the instructions in
http://thinkwiki.org/wiki/How_to_configure_the_TrackPoint I noticed,
that the the configuration files are located in
/sys/devices/platform/i8042/serio0/serio2 only after a fresh boot of the
system. After a suspend to disk (with a reboot), the last directory
changes to serio3, i.e. the number increases with each std-cycle.
Suspending to ram does not affect the location (as there is no reboot?).
Does anybody else experience this behaviour? I just saw that 2.6.15 has
finally been released, so I'll check whether this is 2.6.15-rc5 related.
The reason why I'm bothered is that I'd finally like to set up the
trackpoint correctly. At the moment I have a simple script that searches
for the configuration files in /sys/devices/platform/i8042/serio0 and
then modifies the values e.g. via "echo -n 1 >/sys/.../press_to_select".
So here comes my first dumb question. Do the configuration files appear
when the xserver is starting? I ask this because once I failed setting
the values via an init-script during bootup.
My next attempt was to invoke the script when starting the windowmanager
(.xsession or fluxbox/startup). In this scenario the script is executed
by the user owning the X session. But an ordinary user seems to lack
the proper permissions; every "echo -n..." returns "Permission denied".
Altering the suid bit had no success.
Now, my last idea is to write an udev-rule, giving me an
/dev/input/trackpoint, no matter where the serio resides and setup the
trackpoint in the xorg.conf file. But can all settings be accessed from
the X configuration?
Hmm, these questions seem a bit dumb to me, but I'm stuck at this point,
so every hint is greatly appreciated.
Regards,
Torsten