[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: Raghav Gururajan
Subject: Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
Date: Sat, 20 Apr 2019 00:04:39 -0400

Hello T-G-R!

Sorry for the late reply. Based on the conversation between me and Mark, the fprintd now works. You will have to add "(gnu services authentication)" in "use-modules" and "(service fprintd-service-type)" in "services"; of system config.


On Sun, 2019-04-14 at 21:05 +0200, Tobias Geerinckx-Rice wrote:
Error verifying signature: Failed to execute gpg.

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 
up so that the buttons behave as expected:

The page recommends using xbindkeys, which is provided by the 
"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 

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 
'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,


reply via email to

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