From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raghav Gururajan Subject: Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Date: Sat, 20 Apr 2019 00:04:39 -0400 Message-ID: <5ce94931a5947246cfe5d2f9c05c61c878e789f5.camel@disroot.org> References: <987892fb46a1f6c22736cd8a6ab63a94e5063b31.camel@disroot.org> <87sgunvzxy.fsf@netris.org> <87imvg9zlp.fsf@nckx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-BeH/Nz4NUZWDn51zu/i9" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHhF9-0001i4-3C for help-guix@gnu.org; Sat, 20 Apr 2019 00:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHhF7-00089T-FZ for help-guix@gnu.org; Sat, 20 Apr 2019 00:04:47 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54772) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHhF7-000892-6Q for help-guix@gnu.org; Sat, 20 Apr 2019 00:04:45 -0400 In-Reply-To: <87imvg9zlp.fsf@nckx> 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: Tobias Geerinckx-Rice , help-guix@gnu.org Cc: Mark H Weaver --=-BeH/Nz4NUZWDn51zu/i9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. Regards,RG.On Sun, 2019-04-14 at 21:05 +0200, Tobias Geerinckx-Rice wrote: >=20 > Error verifying signature: Failed to execute gpg. > Raghav, > Mark H Weaver wrote:Raghav Gururajan 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 > webpage lists their scancodes, and gives some advice on how to set > thingsup 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 > Guix"xbindkeys" package, but depending on which desktop environment > you use,there might be a more straightforward way to arrange for a > script to berun when you press a key. > Exactly. I used =E2=80=98xev=E2=80=99 (available in Guix) to get the k= eycode 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/rotate-screen.sh > to my ~/.config/i3/config. rotate-screen.sh is a simple (well=E2=80=A6= ) > 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 =E2=80=98repeat=E2=80=99 without a =E2=80=98delay=E2=80=99) maki= ng 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 > beable to easily set it up from the "Wacom" section of GNOME > settings. Idon't know about other desktop environments off-hand. > I will note, however, that the "xsetwacom" program, which apparently > canbe used to enable the Wacom device within an Xorg session, should > beprovided by our "xf86-input-wacom" package. You might find other > usefulinformation on et>,although note that "permanent configuration" will be much > different on aGuix system than on Arch. > To set it up permanently, it *might* be sufficient to add something > likethe following to your OS configuration, merging it with your > 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 > 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) is > mandatory. > 3) Fringerprint scanner for authentication. > I'm still stuck on =E2=80=98no value specified for service of type 'fpr= intd'=E2=80=99 > (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, > T G-R --=-BeH/Nz4NUZWDn51zu/i9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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-mod= ules" and "(service fprintd-service-type)" in "services"; of system config.=

Regards,
RG.

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

Mark H Weaver wrote:
Raghav Gururajan <rvgn@disroot.org> writes:
<=
pre>What and how should I do to enable the following in my Thinkpad <=
pre>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 rota=
tion, lock screen etc.

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

http= s://www.thinkwiki.org/wiki/Tablet_Hardware_Buttons

=
The page recommends using xbindkeys, which is provided by the 
Guix
"xbindkeys" package, but depending on which desktop envir=
onment 
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 =E2=80=98xev=E2=80=99 (avai=
lable in Guix) to get the keycode for 
what I presume is the scre=
en rotation button(? there are two, the 
pictograms are pretty va=
gue, but only one generates classic key 
codes) and added

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

to my ~/=
.config/i3/config.  rotate-screen.sh is a simple (well=E2=80=A6) 
shell script that uses xrandr to query the current screen
orien=
tation and cycle to the next one (I use left/right/normal, 
never=
 inverted):

  xrandr --output LVDS-foo --rotate no=
rmal|left|right|...

The only problem is that press=
ing the button once produces a 
deluge of press events.  Luckily =
the number is usually constant 
(so it's not just a =E2=80=98repe=
at=E2=80=99 without a =E2=80=98delay=E2=80=99) making the end 
re=
sult predictable.  In practice it means I'm cycling backwards 
th=
rough 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 GN=
OME, you 
might be
able to easily set it up from the "W=
acom" section of GNOME 
settings.  I
don't know about o=
ther desktop environments off-hand.

I will note, h=
owever, 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 
<https://wiki.ar=
chlinux.org/index.php/Wacom_tablet>,
although note that "p=
ermanent configuration" will be much 
different on a
Gu=
ix system than on Arch.

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

    (services=
 (append (list ;; other services go here
                        =
    (set-xorg-configuration
                             (xorg-co=
nfiguration
                              (modules (cons xf86-inp=
ut-wacom
                                             %default-xo=
rg-modules)))))
                      %desktop-services))

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 \"Touchscr=
eens\"
   MatchIsTouchscreen \"on\"
   MatchDevicePath =
\"/dev/input/event*\"
   Driver \"libinput\"
  EndSecti=
on

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 =E2=80=98no value specified for service of ty=
pe 
'fprintd'=E2=80=99 (see elsewhere in this thread) but admitte=
dly I gave it 
all of 5 seconds before moving on to more importan=
t stuff.  It's a 
fun gimmick though :-)

Kind regards,

T G-R

--=-BeH/Nz4NUZWDn51zu/i9--