On 12/4/18 3:24 PM, Ali Corbin wrote:

I did something similar recently, using xinput.
# get the list of your X input devices

xinput --list

# get info on whichever one is your pointing device, including button labels

xinput --list [id]

# get the available properties

xinput --list-props [id]

# set the property for the device, property and button

xinput set-prop [id] [prop] [button]

Thanks for the reply.

I tried those as root, but got an error:
# xinput --list
No protcol specified
Unable to connect to X server

So I tried again as a normal user and got results:
bash-4.3$ xinput --list
<--->
â   â³ TPPS/2 IBM TrackPoint                    id=12   [slave pointer  (2)]
<--->
bash-4.3$ xinput --list 12
TPPS/2 IBM TrackPoint                           id=12   [slave pointer  (2)]
        Reporting 3 classes:
                Class originated from: 12. Type: XIButtonClass
                Buttons supported: 5
                Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down"
                Button state:
                Class originated from: 12. Type: XIValuatorClass
                Detail for Valuator 0:
                  Label: Rel X
                  Range: -1.000000 - -1.000000
                  Resolution: 1 units/m
                  Mode: relative
                Class originated from: 12. Type: XIValuatorClass
                Detail for Valuator 1:
                  Label: Rel Y
                  Range: -1.000000 - -1.000000
                  Resolution: 1 units/m
                  Mode: relative

bash-4.3$ xinput --list-props 12
Device 'TPPS/2 IBM TrackPoint':
        Device Enabled (136):   1
        Coordinate Transformation Matrix (138): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (262):     0
        Device Accel Constant Deceleration (263):       1.000000
        Device Accel Adaptive Deceleration (264):       1.000000
        Device Accel Velocity Scaling (265):    10.000000
        Device Product ID (257):        2, 10
        Device Node (258):      "/dev/input/event11"
        Evdev Axis Inversion (266):     0, 0
        Evdev Axes Swap (268):  0
        Axis Labels (269):      "Rel X" (146), "Rel Y" (147)
        Button Labels (270):    "Button Left" (139), "Button Middle" (140), "Button Right" (141), "Button Wheel Up" (142), "Button Wheel Down" (143)
        Evdev Scrolling Distance (271): 0, 0, 0
        Evdev Middle Button Emulation (272):    0
        Evdev Middle Button Timeout (273):      50
        Evdev Third Button Emulation (274):     0
        Evdev Third Button Emulation Timeout (275):     1000
        Evdev Third Button Emulation Button (276):      3
        Evdev Third Button Emulation Threshold (277):   20
        Evdev Wheel Emulation (278):    0
        Evdev Wheel Emulation Axes (279):       0, 0, 4, 5
        Evdev Wheel Emulation Inertia (280):    10
        Evdev Wheel Emulation Timeout (281):    200
        Evdev Wheel Emulation Button (282):     4
        Evdev Drag Lock Buttons (283):  0
bash-4.3$

It looks like I'd want to do something with "Button Wheel Up" (142), "Button Wheel Down" (143) but it's not clear what I should do. Any ideas?

--
Regards,

Dick Steffens

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to