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: Sun, 21 Apr 2019 10:33:20 -0400 Message-ID: <5541bf35e2a3f9b854e85fe78ced25f7ef4d42d9.camel@disroot.org> References: <987892fb46a1f6c22736cd8a6ab63a94e5063b31.camel@disroot.org> <87sgunvzxy.fsf@netris.org> <87imvg9zlp.fsf@nckx> <5ce94931a5947246cfe5d2f9c05c61c878e789f5.camel@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-YEWuz5/n4OjNK4m9xSqP" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIDX6-0007Xt-3Z for help-guix@gnu.org; Sun, 21 Apr 2019 10:33:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIDX4-0001g3-7f for help-guix@gnu.org; Sun, 21 Apr 2019 10:33:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]:42538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hIDX3-0001fI-TI for help-guix@gnu.org; Sun, 21 Apr 2019 10:33:26 -0400 In-Reply-To: <5ce94931a5947246cfe5d2f9c05c61c878e789f5.camel@disroot.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: Tobias Geerinckx-Rice , help-guix@gnu.org Cc: Mark H Weaver --=-YEWuz5/n4OjNK4m9xSqP Content-Type: multipart/alternative; boundary="=-+HCdZHdIWQUMnLowbCwk" --=-+HCdZHdIWQUMnLowbCwk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello T-G-R! In continuation to my previous email, also "Stylus Input" now works. So 2) and 3) are done. I have attached my system config with this email for your use. =E2=98=BA I will let you know once I fugured out 1) Lid Buttons with Mark. Regards,RG.On Sat, 2019-04-20 at 00:04 -0400, Raghav Gururajan wrote: > 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= 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/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= ) 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 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 > ndex.php/Wacom_tablet>,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 > > 'fprintd'=E2=80=99 (see elsewhere in this thread) but admittedly I ga= ve it > > all of 5 seconds before moving on to more important stuff. It's a > > fun gimmick though :-) > > Kind regards, > > T G-R --=-+HCdZHdIWQUMnLowbCwk Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello T-G-R!

In co=
ntinuation to my previous email, also "Stylus Input" now works. So 2) and 3=
) are done.

I have attached my system config with =
this email for your use. =E2=98=BA

I will let you =
know once I fugured out 1) Lid Buttons with Mark.

=
Regards,
RG.

On Sat, 2019-04-20 at 00:04 -0400, Raghav Gururajan wrote:
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-module= s" and "(service fprintd-service-type)" in "services"; of system config.

Regards,
RG.

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

Mark H Weaver wrote:
Raghav Gururajan <rvgn@disroot.org> writes:
What and how shoul=
d I do to enable the following in my Thinkpad 
X200T (X200 Tablet=
)?

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

1) Butt=
ons on the lid like screen rotation, lock screen etc.

<= pre>Those buttons act like special keys on your keyboard. The
f=
ollowing web
page lists their scancodes, and gives some advice on=
 how to set 
things
up so that the buttons behave as ex=
pected:

  https://www.thinkwiki.org/wiki/Tablet_Hardware_B=
uttons

The page recommends using xbindkeys, wh=
ich is provided by the 
Guix
"xbindkeys" package, but d=
epending on which desktop environment 
you use,
there m=
ight be a more straightforward way to arrange for a 
script to be=
run when you press a key.

Exactly.  I u=
sed =E2=80=98xev=E2=80=99 (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/rotate-screen.sh

to my ~/.config/i3/config.  rotate-screen.sh is a si=
mple (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):

  xrand=
r --output LVDS-foo --rotate normal|left|right|...

The only problem is that pressing the button once produces a
de=
luge of press events.  Luckily the number is usually constant 
(s=
o it's not just a =E2=80=98repeat=E2=80=99 without a =E2=80=98delay=E2=80=
=99) 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 <=
/pre>
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 devic=
e.  From GNOME, you 
might be
able to easily set it up =
from the "Wacom" section of GNOME 
settings.  I
don't k=
now about other desktop environments off-hand.

I w=
ill note, however, that the "xsetwacom" program, which 
apparentl=
y 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 
<http= s://wiki.archlinux.org/index.php/Wacom_tablet>,
although n=
ote that "permanent configuration" will be much 
different on a
Guix system than on Arch.

To set it up pe=
rmanently, it *might* be sufficient to add 
something like
<= pre>the 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 (co=
ns xf86-input-wacom
                                             =
%default-xorg-modules)))))
                      %desktop-service=
s))

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

  Section \"InputClass\"
   Identifier=
 \"Touchscreens\"
   MatchIsTouchscreen \"on\"
   Match=
DevicePath \"/dev/input/event*\"
   Driver \"libinput\"
EndSection

So I don't think the Wacom driver (w=
hich 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 
'fprintd'=E2=80=99 (see elsewhere in this thread) but admittedly I gave = it
all of 5 seconds before moving on to more important stuff.  I=
t's a 
fun gimmick though :-)

Kind regar=
ds,

T G-R

--=-+HCdZHdIWQUMnLowbCwk-- --=-YEWuz5/n4OjNK4m9xSqP Content-Disposition: attachment; filename="rg-secondary.scm" Content-Transfer-Encoding: base64 Content-Type: text/x-scheme; name="rg-secondary.scm"; charset="UTF-8" KHVzZS1tb2R1bGVzCgkoZ251KQoJKGdudSBzeXN0ZW0gbnNzKQoJKGdudSBzZXJ2aWNlcyBhdXRo ZW50aWNhdGlvbikpCih1c2Utc2VydmljZS1tb2R1bGVzIGRlc2t0b3AgeG9yZykKKHVzZS1wYWNr YWdlLW1vZHVsZXMgY2VydHMgZ25vbWUgeGRpc29yZykKKG9wZXJhdGluZy1zeXN0ZW0KCShob3N0 LW5hbWUgInNlY29uZGFyeSIpCgkodGltZXpvbmUgIkFtZXJpY2EvVG9yb250byIpCgkobG9jYWxl ICJlbl9DQS51dGY4IikKCShib290bG9hZGVyCgkJKGJvb3Rsb2FkZXItY29uZmlndXJhdGlvbgoJ CQkoYm9vdGxvYWRlcgoJCQkJKGJvb3Rsb2FkZXIKCQkJCQkoaW5oZXJpdCBncnViLWJvb3Rsb2Fk ZXIpCgkJCQkJKGluc3RhbGxlciAj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