You are not logged in.

#1 2010-07-08 06:43:15

vis
Member
From: Switzerland
Registered: 2007-02-25
Posts: 81

Lenovo X201, xorg switching to track point

There are so many changes to the xorg configuration recently, what is the best way to switch to track point (only) on my Lenovo X201:
a) editing xorg.conf as in http://www.thinkwiki.org/wiki/How_to_co … rg.conf.29  or
b ) adding /etc/X11/xorg.conf.d/20-thinkpad.conf http://www.thinkwiki.org/wiki/How_to_co … org.conf.d  ?

My default xorg.conf has
Section "Input Device"
   Identifier "Mouse0"
   Drivier "mouse"
   Option "Protocol" "auto"
   Option "Device" "/dev/input/mice"
   Option "ZAxis Mapping" "4 5 6 7"
EndSection

and the default /etc/X11/xorg.conf.d/10-evdev.conf with all sorts of "catchall".

The track point is not usable, it drives the cursor mad every couple of seconds. The touch pad works, but for me it should not.

Also the upper 3-button mouse is dead, only the lower 2 buttons work, again I want it the other way.

Offline

#2 2010-07-08 12:14:30

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: Lenovo X201, xorg switching to track point

Here is my config on a T500:

root:/home/takedown # cat /etc/X11/xorg.conf.d/10-trackpoint.conf
Section "InputClass"
        Identifier      "Trackpoint Wheel Emulation"
        MatchProduct    "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
        MatchDevicePath "/dev/input/event*"
        Option          "EmulateWheel"          "true"
        Option          "EmulateWheelButton"    "2"
        Option          "Emulate3Buttons"       "false"
        Option          "XAxisMapping"          "6 7"
        Option          "YAxisMapping"          "4 5"
EndSection

On startUp i run:

# synclient TouchpadOff=1

this script to swap between touchpad and trackpoint with Fn+F8:

root:/home/takedown # cat /etc/acpi/events/ultranav                                                                                                                                                                 
event=ibm/hotkey HKEY 00000080 00001008                                                                                                                                                                          
action=/etc/acpi/actions/ultranav.sh

root:/home/takedown # cat /etc/acpi/actions/ultranav.sh
#!/bin/bash

PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export DISPLAY=:0

USER=`who | grep ':0' | grep -o '^\w*' | head -n1`

if [ `su $USER -c 'synclient -l | grep TouchpadOff | cut -b 31-32'` -ne 0 ]; then
        su "$USER" -c "synclient TouchpadOff=0"
        su "$USER" -c "xinput set-int-prop \"TPPS/2 IBM TrackPoint\" \"Device Enabled\" 8 0"
        #su "$USER" -c "/usr/bin/kdialog --passivepopup Touchpad\ enable --title Thinkpad\ T500 "5""
else
        su "$USER" -c "synclient TouchpadOff=1"
        su "$USER" -c "xinput set-int-prop \"TPPS/2 IBM TrackPoint\" \"Device Enabled\" 8 1"
        #su "$USER" -c "/usr/bin/kdialog --passivepopup Touchpad\ disable --title Thinkpad\ T500 "5""
fi

maybe you can avoid in bios settings

Offline

Board footer

Powered by FluxBB