From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Date: Sun, 14 Apr 2019 21:05:38 +0200 Message-ID: <87imvg9zlp.fsf@nckx> References: <987892fb46a1f6c22736cd8a6ab63a94e5063b31.camel@disroot.org> <87sgunvzxy.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFkRr-0003mh-Ax for help-guix@gnu.org; Sun, 14 Apr 2019 15:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFkRo-0008Es-4k for help-guix@gnu.org; Sun, 14 Apr 2019 15:05:51 -0400 Received: from tobias.gr ([2001:470:7405::1]:58724) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFkRk-0008CV-SE for help-guix@gnu.org; Sun, 14 Apr 2019 15:05:46 -0400 In-reply-to: <87sgunvzxy.fsf@netris.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Cc: Mark H Weaver , Raghav Gururajan --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Raghav, Mark H Weaver wrote: > Raghav Gururajan writes: >> What and how should I do to enable the following in my Thinkpad=20 >> X200T (X200 Tablet)? I just got an X230T so I'm very interested in getting the same=20 things working. >> 1) Buttons on the lid like screen rotation, lock screen etc. > > Those buttons act like special keys on your keyboard. The=20 > following web > page lists their scancodes, and gives some advice on how to set=20 > things > up so that the buttons behave as expected: > > https://www.thinkwiki.org/wiki/Tablet_Hardware_Buttons > > The page recommends using xbindkeys, which is provided by the=20 > Guix > "xbindkeys" package, but depending on which desktop environment=20 > you use, > there might be a more straightforward way to arrange for a=20 > script to be > run when you press a key. Exactly. I used =E2=80=98xev=E2=80=99 (available in Guix) to get the keyco= de for=20 what I presume is the screen rotation button(? there are two, the=20 pictograms are pretty vague, but only one generates classic key=20 codes) and added bindsym XF86TaskPane exec --no-startup-id=20 /home/nckx/.config/i3/rotate-screen.sh to my ~/.config/i3/config. rotate-screen.sh is a simple (well=E2=80=A6)=20 shell script that uses xrandr to query the current screen=20 orientation and cycle to the next one (I use left/right/normal,=20 never inverted): xrandr --output LVDS-foo --rotate normal|left|right|... The only problem is that pressing the button once produces a=20 deluge of press events. Luckily the number is usually constant=20 (so it's not just a =E2=80=98repeat=E2=80=99 without a =E2=80=98delay=E2=80= =99) making the end=20 result predictable. In practice it means I'm cycling backwards=20 through the orientations. Good enough for now. It's not like I can actually use i3 properly=20 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=20 > might be > able to easily set it up from the "Wacom" section of GNOME=20 > settings. I > don't know about other desktop environments off-hand. > > I will note, however, that the "xsetwacom" program, which=20 > apparently can > be used to enable the Wacom device within an Xorg session,=20 > should be > provided by our "xf86-input-wacom" package. You might find=20 > other useful > information on=20 > , > although note that "permanent configuration" will be much=20 > different on a > Guix system than on Arch. > > To set it up permanently, it *might* be sufficient to add=20 > something like > the following to your OS configuration, merging it with your=20 > existing > 'services' field if needed: > > (services (append (list ;; other services go here > (set-xorg-configuration > (xorg-configuration > (modules (cons xf86-input-wacom > %default-xorg-modules))))) > %desktop-services)) I'm sure this works fine, but at least the X230T's (multi-)touch=20 screen is fully supported by libinput as well: Section \"InputClass\" Identifier \"Touchscreens\" MatchIsTouchscreen \"on\" MatchDevicePath \"/dev/input/event*\" Driver \"libinput\" EndSection So I don't think the Wacom driver (which I don't much like anyway)=20 is mandatory. >> 3) Fringerprint scanner for authentication. I'm still stuck on =E2=80=98no value specified for service of type=20 'fprintd'=E2=80=99 (see elsewhere in this thread) but admittedly I gave it= =20 all of 5 seconds before moving on to more important stuff. It's a=20 fun gimmick though :-) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXLOEggAKCRANsP+IT1Vt eZD2AQCv1h05uTUx7v+y2JNRUtKRSqwxFxhYdcR2jyGkmod4mQD+Kpl7SjhkalLz y+MuJM3+0fAeIQPHi7lHpKkBFxixQwc= =61Pk -----END PGP SIGNATURE----- --=-=-=--