[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner

From: Tobias Geerinckx-Rice
Subject: Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
Date: Sun, 14 Apr 2019 21:05:38 +0200


Mark H Weaver wrote:
Raghav Gururajan <address@hidden> writes:
What and how should I do to enable the following in my Thinkpad X200T (X200 Tablet)?

I just got an X230T so I'm very interested in getting the same things working.

1) Buttons on the lid like screen rotation, lock screen etc.

Those buttons act like special keys on your keyboard. The following web page lists their scancodes, and gives some advice on how to set things
up so that the buttons behave as expected:

The page recommends using xbindkeys, which is provided by the Guix "xbindkeys" package, but depending on which desktop environment you use, there might be a more straightforward way to arrange for a script to be
run when you press a key.

Exactly. I used ‘xev’ (available in Guix) to get the keycode for what I presume is the screen rotation button(? there are two, the pictograms are pretty vague, but only one generates classic key codes) and added

bindsym XF86TaskPane exec --no-startup-id /home/nckx/.config/i3/

to my ~/.config/i3/config. is a simple (well…) shell script that uses xrandr to query the current screen orientation and cycle to the next one (I use left/right/normal, never inverted):

 xrandr --output LVDS-foo --rotate normal|left|right|...

The only problem is that pressing the button once produces a deluge of press events. Luckily the number is usually constant (so it's not just a ‘repeat’ without a ‘delay’) making the end result predictable. In practice it means I'm cycling backwards through the orientations.

Good enough for now. It's not like I can actually use i3 properly in tablet mode anyway. Will this finally push me to GNOME?

Haha no.

2) Input using stylus pen.

The touch screen is apparently a Wacom device. From GNOME, you might be able to easily set it up from the "Wacom" section of GNOME settings. I
don't know about other desktop environments off-hand.

I will note, however, that the "xsetwacom" program, which apparently can be used to enable the Wacom device within an Xorg session, should be provided by our "xf86-input-wacom" package. You might find other useful information on <>, although note that "permanent configuration" will be much different on a
Guix system than on Arch.

To set it up permanently, it *might* be sufficient to add something like the following to your OS configuration, merging it with your existing
'services' field if needed:

    (services (append (list ;; other services go here
                              (modules (cons xf86-input-wacom

I'm sure this works fine, but at least the X230T's (multi-)touch screen is fully supported by libinput as well:

 Section \"InputClass\"
  Identifier \"Touchscreens\"
  MatchIsTouchscreen \"on\"
  MatchDevicePath \"/dev/input/event*\"
  Driver \"libinput\"

So I don't think the Wacom driver (which I don't much like anyway) is mandatory.

3) Fringerprint scanner for authentication.

I'm still stuck on ‘no value specified for service of type 'fprintd'’ (see elsewhere in this thread) but admittedly I gave it all of 5 seconds before moving on to more important stuff. It's a fun gimmick though :-)

Kind regards,


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]