elementary / switchboard-plug-mouse-touchpad

Switchboard Mouse & Touchpad Plug
GNU General Public License v3.0
24 stars 13 forks source link

Mouse configuration hidden with trackpoint #34

Closed Nine-H closed 5 years ago

Nine-H commented 6 years ago

Running a thinkpad with a trackpoint, in juno beta you can't change the settings, I think the issue is that it's not reported as a mouse anywhere. Here's the output of xinput list:

nine@x1-yoghurt:~$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Wacom Pen and multitouch sensor Finger touch  id=9    [slave  pointer  (2)]
⎜   ↳ Wacom Pen and multitouch sensor Pen stylus    id=10   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=14   [slave  pointer  (2)]
⎜   ↳ Wacom Pen and multitouch sensor Pen eraser    id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=15   [slave  keyboard (3)]

here's libinput-list

Device:           TPPS/2 IBM TrackPoint
Kernel:           /dev/input/event8
Group:            10
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Not sure how we're filtering but it could be as simple as adding "TrackPoint" to the filter.

Nine-H commented 6 years ago

yep /src/mouse-touchpad.vala:118 only checks for Gdk.InputSource.MOUSE and now there's Gdk.InputSource.TRACKPOINT should that be added in or do trackpoints require a new section?