[ltp] Setting up the trackpoint

Eric Van Buggenhaut linux-thinkpad@linux-thinkpad.org
Fri, 6 Jan 2006 13:30:38 +0100


On Tue, Jan 03, 2006 at 09:53:00AM +0100, Torsten Wolf wrote:
> 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.

Do you know how to enable middle_btn ? I don't have such entry:

# ls -l /devices/platform/i8042/serio0/serio2/middle_btn_disable
ls: /devices/platform/i8042/serio0/serio2/middle_btn_disable: No such 
file or directory

> 
> 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

-- 
"Un disco para gobernarlos a todos.
 Un disco para encontrarlos y atarlos en las tinieblas.
 En la tierra de Redmond donde se extienden las sombras"

Eric VAN BUGGENHAUT
eric@sindominio.net