ThinkPad twist: disable trackpoint and touchpad when closed

Ruben De Smet ruben.de.smet at glycos.org
Fri Nov 6 13:01:39 PST 2015


With respect to
http://lists.freedesktop.org/archives/wayland-devel/2014-September/017259.html
and https://bugzilla.gnome.org/show_bug.cgi?id=698226:

I own a ThinkPad Twist, which has a tablet mode. When in tablet mode,
the back of the screen touches the trackpoint and touchpad, which makes
the mouse pointer jiggle and move.

Devices that matter in this case are

/dev/input/event7: ThinkPad Extra Buttons
/dev/input/event14: SynPS/2 Synaptics TouchPad
/dev/input/event15: TPPS/2 IBM TrackPoint

event7 triggers the right events: SW_TABLET_MODE (thanks to evtest)

Event: time 1446840780.539488, type 5 (EV_SW), code 1 (SW_TABLET_MODE),
value 1
Event: time 1446840780.539488, -------------- SYN_REPORT ------------
Event: time 1446840783.154657, type 5 (EV_SW), code 1 (SW_TABLET_MODE),
value 0
Event: time 1446840783.154657, -------------- SYN_REPORT ------------

If someone could guide me a little on where and how the code should come
(probably libinput?), then I'd be happy to write this.

The first mail I mentioned ([PATCH libinput 0/8] Add
libinput_device_suspend() to disable devices, by Peter Hutterer), makes
me think this could become more complicated then I'd guess.

If not, I'd guess it's as easy as calling

int
 evdev_device_suspend(struct evdev_device *device);

int
 evdev_device_resume(struct evdev_device *device);

which said Peter added back in 2014, when the right events are fired.

Please advice.

Ruben De Smet


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151106/14619931/attachment-0001.sig>


More information about the wayland-devel mailing list