all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
@ 2019-04-08 15:32 Raghav Gururajan
  2019-04-12 18:30 ` Mark H Weaver
  0 siblings, 1 reply; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-08 15:32 UTC (permalink / raw)
  To: help-guix; +Cc: Clément Lassieur

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

Hello Guix!

What and how should I do to enable the following in my Thinkpad X200T
(X200 Tablet)?

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

2) Input using stylus pen.

3) Fringerprint scanner for authentication.

If there is a way to enable these things by default in system
configuration, I would prefer that. Please let me know.

Thank you all in advance!

Regards,
RG.

[-- Attachment #2: Type: text/html, Size: 684 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-08 15:32 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
@ 2019-04-12 18:30 ` Mark H Weaver
  2019-04-12 18:45   ` Mark H Weaver
  2019-04-14 19:05   ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-12 18:30 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Hi Raghav,

Raghav Gururajan <rvgn@disroot.org> writes:
> What and how should I do to enable the following in my Thinkpad X200T (X200 Tablet)?

As far as I know, we don't yet have "out of the box" support for the
Thinkpad X200 Tablet.  Since I don't have one myself, I can only give
you some pointers.

> 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:

  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 be
run when you press a key.

For example, in GNOME, if you go into the "Keyboard" section of GNOME
settings, scroll down to the bottom of the list of keyboard shortcuts,
and press the "+" at the bottom, you can arrange for a script to be run
when you press a given key.  It might work for these special keys as
well, although GNOME probably won't know the proper name of the key.

> 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 <https://wiki.archlinux.org/index.php/Wacom_tablet>,
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
                            (set-xorg-configuration
                             (xorg-configuration
                              (modules (cons xf86-input-wacom
                                             %default-xorg-modules)))))
                      %desktop-services))

with at least the following imports near the top of the file:

  (use-service-modules desktop xorg)
  (use-package-modules xdisorg)

> 3) Fringerprint scanner for authentication.

I've never tried to use a fingerprint scanner, but I see that Guix does
provide a "Fingerprint Service", which "provides a DBus service to read
and identify fingerprints via a fingerprint sensor."  To enable it, add
the following service:

  (service fprintd-service-type)

Please let us know how it goes.  With your help, we may be able to make
this nicer for the next X200 Tablet user.

      Regards,
        Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-12 18:30 ` Mark H Weaver
@ 2019-04-12 18:45   ` Mark H Weaver
  2019-04-13  4:55     ` Raghav Gururajan
  2019-04-13  5:21     ` Raghav Gururajan
  2019-04-14 19:05   ` Tobias Geerinckx-Rice
  1 sibling, 2 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-12 18:45 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Earlier, I wrote:

>> 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.

[...]

> 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
>                             (set-xorg-configuration
>                              (xorg-configuration
>                               (modules (cons xf86-input-wacom
>                                              %default-xorg-modules)))))
>                       %desktop-services))
>
> with at least the following imports near the top of the file:
>
>   (use-service-modules desktop xorg)
>   (use-package-modules xdisorg)

On second thought, it seems likely that the "permanent" approach
suggested above is the only way to make this work on Guix.

       Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-12 18:45   ` Mark H Weaver
@ 2019-04-13  4:55     ` Raghav Gururajan
  2019-04-13  5:21     ` Raghav Gururajan
  1 sibling, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-13  4:55 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur


[-- Attachment #1.1: Type: text/plain, Size: 1521 bytes --]

Hello Mark!

Thank you very much for your help.

I have tried by modifying my system config. But when I do "guix system
reconfigure", I am getting the error "/etc/rg-secondary.scm:45:8:
error: invalid field specifier".

The line "45" from the error is pointing to the line "(set-xorg-
configuration"

I have attached my system config with this email.

Regards,
RG.

On Fri, 2019-04-12 at 14:45 -0400, Mark H Weaver wrote:
> Earlier, I wrote:
> 
> 
> 
> 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.
> 
> [...]
> 
> 
> 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
>                             (set-xorg-configuration
>                              (xorg-configuration
>                               (modules (cons xf86-input-wacom
>                                              %default-xorg-modules)))))
>                       %desktop-services))
> 
> with at least the following imports near the top of the file:
> 
>   (use-service-modules desktop xorg)
>   (use-package-modules xdisorg)
> 
> On second thought, it seems likely that the "permanent" approach
> suggested above is the only way to make this work on Guix.
> 
>        Mark
> 

[-- Attachment #1.2: Type: text/html, Size: 2211 bytes --]

[-- Attachment #2: rg-secondary.scm --]
[-- Type: text/x-scheme, Size: 1278 bytes --]

(use-modules
	(gnu)
	(gnu system nss))
(use-service-modules desktop xorg)
(use-package-modules certs gnome xdisorg)
(operating-system
	(host-name "secondary")
	(timezone "America/Toronto")
	(locale "en_CA.utf8")
	(bootloader
		(bootloader-configuration
			(bootloader
				(bootloader
					(inherit grub-bootloader)
					(installer #~(const #t))))))
	(mapped-devices
		(list 
			(mapped-device
				(source (uuid "41d10f4e-cfe4-42b9-9b10-fd98a8d08f08"))
				(target "rg-root")
				(type luks-device-mapping))))
	(file-systems
		(cons
			(file-system
				(device (file-system-label "rg-root"))
				(mount-point "/")
				(type "btrfs")
				(dependencies mapped-devices))
			%base-file-systems))
	(users
		(cons
			(user-account
				(name "rg")
				(comment "Raghav Gururajan")
				(group "users")
				(supplementary-groups '("wheel" "netdev" "lp" "cdrom" "audio" "video" "tape" "kvm"))
				(home-directory "/home/rg"))
			%base-user-accounts))
	(packages
		(cons*
			nss-certs
			gvfs
			%base-packages))

	(services
		(append
			(list
				(gnome-desktop-service)
				(service fprintd-service-type)
				(set-xorg-configuration
					(modules
						(cons
							xf86-input-wacom
					%default-xorg-modules)))))
			%desktop-services))
	(name-service-switch %mdns-host-lookup-nss))


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-12 18:45   ` Mark H Weaver
  2019-04-13  4:55     ` Raghav Gururajan
@ 2019-04-13  5:21     ` Raghav Gururajan
  2019-04-13 18:16       ` Mark H Weaver
                         ` (3 more replies)
  1 sibling, 4 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-13  5:21 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur


[-- Attachment #1.1: Type: text/plain, Size: 1686 bytes --]

Hello Mark!
In continuation to my previous email, I tried to fix the error. But the
old error is gone and I am getting new ones.
The errors are:/etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-
service' is deprecated, use 'gnome-desktop-service-type'
instead/etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is
deprecated, use 'gnome-desktop-service-type' insteadice-
9/eval.scm:223:20: In procedure proc:error: fprintd-service-type:
unbound variablehint: Did you forget a `use-modules' form?
I have attached my lastest system config with this email.
Regards,RG.
On Fri, 2019-04-12 at 14:45 -0400, Mark H Weaver wrote:
> Earlier, I wrote:
> 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.
> [...]
> 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))
> with at least the following imports near the top of the file:
>   (use-service-modules desktop xorg)  (use-package-modules xdisorg)
> On second thought, it seems likely that the "permanent"
> approachsuggested above is the only way to make this work on Guix.
>        Mark

[-- Attachment #1.2: Type: text/html, Size: 2826 bytes --]

[-- Attachment #2: rg-secondary.scm --]
[-- Type: text/x-scheme, Size: 1260 bytes --]

(use-modules
	(gnu)
	(gnu system nss))
(use-service-modules desktop xorg)
(use-package-modules certs gnome xdisorg)
(operating-system
	(host-name "secondary")
	(timezone "America/Toronto")
	(locale "en_CA.utf8")
	(bootloader
		(bootloader-configuration
			(bootloader
				(bootloader
					(inherit grub-bootloader)
					(installer #~(const #t))))))
	(mapped-devices
		(list 
			(mapped-device
				(source (uuid "41d10f4e-cfe4-42b9-9b10-fd98a8d08f08"))
				(target "rg-root")
				(type luks-device-mapping))))
	(file-systems
		(cons
			(file-system
				(device (file-system-label "rg-root"))
				(mount-point "/")
				(type "btrfs")
				(dependencies mapped-devices))
			%base-file-systems))
	(users
		(cons
			(user-account
				(name "rg")
				(comment "Raghav Gururajan")
				(group "users")
				(supplementary-groups '("wheel" "netdev" "lp" "cdrom" "audio" "video" "tape" "kvm"))
				(home-directory "/home/rg"))
			%base-user-accounts))
	(packages
		(cons*
			nss-certs
			gvfs
			%base-packages))

	(services
		(cons*
			(gnome-desktop-service)
			(service fprintd-service-type)
			(set-xorg-configuration
				(modules
					(cons
						xf86-input-wacom
				%default-xorg-modules)))
			%desktop-services)))
	(name-service-switch %mdns-host-lookup-nss))


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13  5:21     ` Raghav Gururajan
@ 2019-04-13 18:16       ` Mark H Weaver
  2019-04-13 21:14       ` Raghav Gururajan
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-13 18:16 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Hi Raghav,

Raghav Gururajan <rvgn@disroot.org> writes:

> In continuation to my previous email, I tried to fix the error. But the old error is gone and I am getting new ones.
>
> The errors are:
> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use 'gnome-desktop-service-type' instead
> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use 'gnome-desktop-service-type' instead

You could eliminate this warning by changing:

  (gnome-desktop-service)

to:

  (service gnome-desktop-service-type)

> ice-9/eval.scm:223:20: In procedure proc:
> error: fprintd-service-type: unbound variable
> hint: Did you forget a `use-modules' form?

Ah, my mistake; you also need to import the 'fingerprint' service
module, so change

  (use-service-modules desktop xorg)

to:

  (use-service-modules desktop xorg fingerprint)

      Regards,
        Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13  5:21     ` Raghav Gururajan
  2019-04-13 18:16       ` Mark H Weaver
@ 2019-04-13 21:14       ` Raghav Gururajan
  2019-04-13 21:24       ` Raghav Gururajan
  2019-04-13 21:46       ` Raghav Gururajan
  3 siblings, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-13 21:14 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

I have tried both edits already. For gnome, the error is regarding specifying values. For fingerprint, error is regarding no such modules defined; so I searched and found the right module name as "authentication", but then new error regarding specifying values. :(

Regards,
RG.

April 13, 2019 6:18 PM, "Mark H Weaver" <mhw@netris.org> wrote:

> Hi Raghav,
> 
> Raghav Gururajan <rvgn@disroot.org> writes:
> 
>> In continuation to my previous email, I tried to fix the error. But the old error is gone and I am
>> getting new ones.
>> 
>> The errors are:
>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>> 'gnome-desktop-service-type' instead
>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>> 'gnome-desktop-service-type' instead
> 
> You could eliminate this warning by changing:
> 
> (gnome-desktop-service)
> 
> to:
> 
> (service gnome-desktop-service-type)
> 
>> ice-9/eval.scm:223:20: In procedure proc:
>> error: fprintd-service-type: unbound variable
>> hint: Did you forget a `use-modules' form?
> 
> Ah, my mistake; you also need to import the 'fingerprint' service
> module, so change
> 
> (use-service-modules desktop xorg)
> 
> to:
> 
> (use-service-modules desktop xorg fingerprint)
> 
> Regards,
> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13  5:21     ` Raghav Gururajan
  2019-04-13 18:16       ` Mark H Weaver
  2019-04-13 21:14       ` Raghav Gururajan
@ 2019-04-13 21:24       ` Raghav Gururajan
  2019-04-13 21:46       ` Raghav Gururajan
  3 siblings, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-13 21:24 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

In continuation to my previous email, gnome now works.

Lets focus on fingerprint first, then we'll move to wacom.

So for fprint, using "hint" that shows with errors, I have added service-module authentication and package-module freedesktop. But at the end, new error is about "unbound variable" with no hint.

Regards,
RG.

April 13, 2019 9:14 PM, "Raghav Gururajan" <rvgn@disroot.org> wrote:

> Hello Mark!
> 
> I have tried both edits already. For gnome, the error is regarding specifying values. For
> fingerprint, error is regarding no such modules defined; so I searched and found the right module
> name as "authentication", but then new error regarding specifying values. :(
> 
> Regards,
> RG.
> 
> April 13, 2019 6:18 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> 
>> Hi Raghav,
>> 
>> Raghav Gururajan <rvgn@disroot.org> writes:
>> 
>>> In continuation to my previous email, I tried to fix the error. But the old error is gone and I am
>>> getting new ones.
>>> 
>>> The errors are:
>>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>>> 'gnome-desktop-service-type' instead
>>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>>> 'gnome-desktop-service-type' instead
>> 
>> You could eliminate this warning by changing:
>> 
>> (gnome-desktop-service)
>> 
>> to:
>> 
>> (service gnome-desktop-service-type)
>> 
>>> ice-9/eval.scm:223:20: In procedure proc:
>>> error: fprintd-service-type: unbound variable
>>> hint: Did you forget a `use-modules' form?
>> 
>> Ah, my mistake; you also need to import the 'fingerprint' service
>> module, so change
>> 
>> (use-service-modules desktop xorg)
>> 
>> to:
>> 
>> (use-service-modules desktop xorg fingerprint)
>> 
>> Regards,
>> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13  5:21     ` Raghav Gururajan
                         ` (2 preceding siblings ...)
  2019-04-13 21:24       ` Raghav Gururajan
@ 2019-04-13 21:46       ` Raghav Gururajan
  2019-04-14  2:46         ` Mark H Weaver
  2019-04-15 15:44         ` 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
  3 siblings, 2 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-13 21:46 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

So my latest config is:

(use-modules
        (gnu)
        (gnu system nss)
        (gnu services fingerprint)
(use-service-modules desktop)
(use-package-modules certs gnome)

[...]

(services
                (cons*
                        (service gnome-desktop-service-type)
                        (service fprintd-service-type)
                        %desktop-services))
        (name-service-switch %mdns-host-lookup-nss))

For the above, the error is:

guix system: error: failed to load '/etc/rg-secondary.scm':
ice-9/boot-9.scm:2803:6: In procedure resolve-interface:
no code for module (gnu services fingerprint)

Regards,
RG.


April 13, 2019 9:24 PM, "Raghav Gururajan" <rvgn@disroot.org> wrote:

> Hello Mark!
> 
> In continuation to my previous email, gnome now works.
> 
> Lets focus on fingerprint first, then we'll move to wacom.
> 
> So for fprint, using "hint" that shows with errors, I have added service-module authentication and
> package-module freedesktop. But at the end, new error is about "unbound variable" with no hint.
> 
> Regards,
> RG.
> 
> April 13, 2019 9:14 PM, "Raghav Gururajan" <rvgn@disroot.org> wrote:
> 
>> Hello Mark!
>> 
>> I have tried both edits already. For gnome, the error is regarding specifying values. For
>> fingerprint, error is regarding no such modules defined; so I searched and found the right module
>> name as "authentication", but then new error regarding specifying values. :(
>> 
>> Regards,
>> RG.
>> 
>> April 13, 2019 6:18 PM, "Mark H Weaver" <mhw@netris.org> wrote:
>> 
>>> Hi Raghav,
>>> 
>>> Raghav Gururajan <rvgn@disroot.org> writes:
>> 
>> In continuation to my previous email, I tried to fix the error. But the old error is gone and I am
>> getting new ones.
>> 
>> The errors are:
>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>> 'gnome-desktop-service-type' instead
>> /etc/rg-secondary.scm:47:24: warning: 'gnome-desktop-service' is deprecated, use
>> 'gnome-desktop-service-type' instead
>>> You could eliminate this warning by changing:
>>> 
>>> (gnome-desktop-service)
>>> 
>>> to:
>>> 
>>> (service gnome-desktop-service-type)
>> 
>> ice-9/eval.scm:223:20: In procedure proc:
>> error: fprintd-service-type: unbound variable
>> hint: Did you forget a `use-modules' form?
>>> Ah, my mistake; you also need to import the 'fingerprint' service
>>> module, so change
>>> 
>>> (use-service-modules desktop xorg)
>>> 
>>> to:
>>> 
>>> (use-service-modules desktop xorg fingerprint)
>>> 
>>> Regards,
>>> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13 21:46       ` Raghav Gururajan
@ 2019-04-14  2:46         ` Mark H Weaver
  2019-04-14 18:24           ` Tobias Geerinckx-Rice
  2019-04-14 18:33           ` Tobias Geerinckx-Rice
  2019-04-15 15:44         ` 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
  1 sibling, 2 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-14  2:46 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Hi Raghav,

"Raghav Gururajan" <rvgn@disroot.org> writes:

> So my latest config is:
>
> (use-modules
>         (gnu)
>         (gnu system nss)
>         (gnu services fingerprint)
> (use-service-modules desktop)
> (use-package-modules certs gnome)

[...]

> For the above, the error is:
>
> guix system: error: failed to load '/etc/rg-secondary.scm':
> ice-9/boot-9.scm:2803:6: In procedure resolve-interface:
> no code for module (gnu services fingerprint)

Please remove (gnu services fingerprint) from your 'use-modules' form.
Sorry, I had asked you to add it, but it was a mistake from the manual,
which gives the wrong module name.

The correct module name is:

  (gnu services authentication)

which you can import by adding "authentication" to the
'use-service-modules' form.  This should fix the "unbound variable"
error.

In an earlier message you spoke of another error:

> but then new error regarding specifying values. :(

If you're still getting that error, can you show us the exact error
message and the configuration file that caused it?

     Regards,
       Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-14  2:46         ` Mark H Weaver
@ 2019-04-14 18:24           ` Tobias Geerinckx-Rice
  2019-04-14 18:33           ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 30+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-14 18:24 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

Guix,

Mark H Weaver wrote:
> The correct module name is:
>
>   (gnu services authentication)

I made the same mistake.  For the record, it should be fixed in 
commit d5752f68ef38ce779723cf5864574374b8417ff3.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-14  2:46         ` Mark H Weaver
  2019-04-14 18:24           ` Tobias Geerinckx-Rice
@ 2019-04-14 18:33           ` Tobias Geerinckx-Rice
  2019-04-16 20:07             ` Trouble getting 'fprintd-service-type' to work Mark H Weaver
  1 sibling, 1 reply; 30+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-14 18:33 UTC (permalink / raw)
  To: help-guix; +Cc: Mark H Weaver

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Mark H Weaver wrote:
> In an earlier message you spoke of another error:
>
>> but then new error regarding specifying values. :(
>
> If you're still getting that error, can you show us the exact 
> error
> message and the configuration file that caused it?

It's

  guix system: error: /etc/guix/system.scm:487:3: no value 
  specified for service of type 'fprintd'

by the way.  I get it too.  I simply added

  (service fprintd-service-type)

to my services field.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-12 18:30 ` Mark H Weaver
  2019-04-12 18:45   ` Mark H Weaver
@ 2019-04-14 19:05   ` Tobias Geerinckx-Rice
  2019-04-20  4:04     ` Raghav Gururajan
  1 sibling, 1 reply; 30+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-14 19:05 UTC (permalink / raw)
  To: help-guix; +Cc: Mark H Weaver, Raghav Gururajan

[-- Attachment #1: Type: text/plain, Size: 3792 bytes --]

Raghav,

Mark H Weaver wrote:
> Raghav Gururajan <rvgn@disroot.org> 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:
>
>   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 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/rotate-screen.sh

to my ~/.config/i3/config.  rotate-screen.sh 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 
> <https://wiki.archlinux.org/index.php/Wacom_tablet>,
> 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
>                             (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 ‘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,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-13 21:46       ` Raghav Gururajan
  2019-04-14  2:46         ` Mark H Weaver
@ 2019-04-15 15:44         ` Raghav Gururajan
  2019-04-16 20:21           ` Mark H Weaver
  2019-04-17  4:33           ` Raghav Gururajan
  1 sibling, 2 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-15 15:44 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

I made the changes you told me. Now the error is "guix system: error: /etc/rg-secondary.scm:49:24: no value specified for service of type 'fprintd'"

April 14, 2019 2:47 AM, "Mark H Weaver" <mhw@netris.org> wrote:

> Hi Raghav,
> 
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> 
>> So my latest config is:
>> 
>> (use-modules
>> (gnu)
>> (gnu system nss)
>> (gnu services fingerprint)
>> (use-service-modules desktop)
>> (use-package-modules certs gnome)
> 
> [...]
> 
>> For the above, the error is:
>> 
>> guix system: error: failed to load '/etc/rg-secondary.scm':
>> ice-9/boot-9.scm:2803:6: In procedure resolve-interface:
>> no code for module (gnu services fingerprint)
> 
> Please remove (gnu services fingerprint) from your 'use-modules' form.
> Sorry, I had asked you to add it, but it was a mistake from the manual,
> which gives the wrong module name.
> 
> The correct module name is:
> 
> (gnu services authentication)
> 
> which you can import by adding "authentication" to the
> 'use-service-modules' form. This should fix the "unbound variable"
> error.
> 
> In an earlier message you spoke of another error:
> 
>> but then new error regarding specifying values. :(
> 
> If you're still getting that error, can you show us the exact error
> message and the configuration file that caused it?
> 
> Regards,
> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Trouble getting 'fprintd-service-type' to work
  2019-04-14 18:33           ` Tobias Geerinckx-Rice
@ 2019-04-16 20:07             ` Mark H Weaver
  2019-04-17  6:51               ` Danny Milosavljevic
  0 siblings, 1 reply; 30+ messages in thread
From: Mark H Weaver @ 2019-04-16 20:07 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

Hi Danny,

I see that you're the author of 'fprintd-service-type', added last May
in the following commit:

  commit 7f93bbd5aadf0427190769fba8f478c29e37b4f4
  Author: Danny Milosavljevic <dannym@scratchpost.org>
  Date:   Wed May 30 19:43:48 2018 +0200
  
      services: Add fingerprint identification service.
      
      * gnu/services/authentication.scm: New file.
      * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
      * doc/guix.texi (Miscellaneous Services): Document it.

Your manual entry for it seems to suggest that:

  (service fprintd-service-type)

is the correct incantation, and yet when I try to build a system with
this service, I see:

  guix system: error: /home/mhw/test-os-config.scm:77:19: no value specified for service of type 'fprintd'

Tobias reported seeing the same error, as well as a user on
help-guix@gnu.org who we're trying to help.

I tried adding:

  (default-value (fprintd-configuration))

to the 'fprintd-service-type' definition, but then I get this:

  guix system: error: #<<fprintd-configuration> ntp: #<package fprintd@0.7.0 gnu/packages/freedesktop.scm:1190 396be70>>: invalid G-expression input

and it looks like the 'ntp' field of 'fprintd-configuration' is probably
misnamed.

Did you test this service before pushing it to master?
Does it work for you?

      Thanks,
        Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-15 15:44         ` 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
@ 2019-04-16 20:21           ` Mark H Weaver
  2019-04-17  4:33           ` Raghav Gururajan
  1 sibling, 0 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-16 20:21 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Hi Raghav,

"Raghav Gururajan" <rvgn@disroot.org> writes:

> I made the changes you told me. Now the error is "guix system: error:
> /etc/rg-secondary.scm:49:24: no value specified for service of type
> 'fprintd'"

Sorry, this looks like a genuine bug in Guix's fingerprint service,
which was added relatively recently, and apparently has not yet seen
much use.  I've just raised the issue with the author of that service,
so hopefully it'll be fixed soon.  In the meantime, I would suggest
removing:

  (service fprintd-service-type)

and hopefully we can progress on the other issues.

     Regards,
       Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-15 15:44         ` 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
  2019-04-16 20:21           ` Mark H Weaver
@ 2019-04-17  4:33           ` Raghav Gururajan
  2019-04-18  0:09             ` Mark H Weaver
                               ` (2 more replies)
  1 sibling, 3 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-17  4:33 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Ah I see. Thanks for raising the issue. Yes, we'll move on to "Stylus Input" :)

April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:

> Hi Raghav,
> 
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> 
>> I made the changes you told me. Now the error is "guix system: error:
>> /etc/rg-secondary.scm:49:24: no value specified for service of type
>> 'fprintd'"
> 
> Sorry, this looks like a genuine bug in Guix's fingerprint service,
> which was added relatively recently, and apparently has not yet seen
> much use. I've just raised the issue with the author of that service,
> so hopefully it'll be fixed soon. In the meantime, I would suggest
> removing:
> 
> (service fprintd-service-type)
> 
> and hopefully we can progress on the other issues.
> 
> Regards,
> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Trouble getting 'fprintd-service-type' to work
  2019-04-16 20:07             ` Trouble getting 'fprintd-service-type' to work Mark H Weaver
@ 2019-04-17  6:51               ` Danny Milosavljevic
  2019-04-20 20:21                 ` Mark H Weaver
  0 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2019-04-17  6:51 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Hi Mark,

On Tue, 16 Apr 2019 16:07:19 -0400
Mark H Weaver <mhw@netris.org> wrote:

> Did you test this service before pushing it to master?

I can't remember - but probably not.  Sorry.

> Does it work for you?

It didn't work but I fixed it now with commit 0682f084635cdc289aabafc4b2583639e00a28b3.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-17  4:33           ` Raghav Gururajan
@ 2019-04-18  0:09             ` Mark H Weaver
  2019-04-18  4:54             ` Raghav Gururajan
  2019-05-03  5:58             ` Raghav Gururajan
  2 siblings, 0 replies; 30+ messages in thread
From: Mark H Weaver @ 2019-04-18  0:09 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Clément Lassieur

Hello again,

"Raghav Gururajan" <rvgn@disroot.org> writes:

> Ah I see. Thanks for raising the issue. Yes, we'll move on to "Stylus Input" :)
>
> April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
>
>> Hi Raghav,
>> 
>> "Raghav Gururajan" <rvgn@disroot.org> writes:
>> 
>>> I made the changes you told me. Now the error is "guix system: error:
>>> /etc/rg-secondary.scm:49:24: no value specified for service of type
>>> 'fprintd'"
>> 
>> Sorry, this looks like a genuine bug in Guix's fingerprint service,
>> which was added relatively recently, and apparently has not yet seen
>> much use. I've just raised the issue with the author of that service,
>> so hopefully it'll be fixed soon. In the meantime, I would suggest
>> removing:
>> 
>> (service fprintd-service-type)

The author of 'fprintd-service-type' has pushed a fix.  After a fresh
"guix pull", you could try adding the line above to your OS config, and
it might work now.

      Regards,
        Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-17  4:33           ` Raghav Gururajan
  2019-04-18  0:09             ` Mark H Weaver
@ 2019-04-18  4:54             ` Raghav Gururajan
  2019-04-20  4:00               ` Raghav Gururajan
  2019-05-03  5:58             ` Raghav Gururajan
  2 siblings, 1 reply; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-18  4:54 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

That is so great to hear. I will try it and get back to you.

Regards,
RG.

April 17, 2019 8:11 PM, "Mark H Weaver" <mhw@netris.org> wrote:

> Hello again,
> 
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> 
>> Ah I see. Thanks for raising the issue. Yes, we'll move on to "Stylus Input" :)
>> 
>> April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
>> 
>>> Hi Raghav,
>>> 
>>> "Raghav Gururajan" <rvgn@disroot.org> writes:
>> 
>> I made the changes you told me. Now the error is "guix system: error:
>> /etc/rg-secondary.scm:49:24: no value specified for service of type
>> 'fprintd'"
>>> Sorry, this looks like a genuine bug in Guix's fingerprint service,
>>> which was added relatively recently, and apparently has not yet seen
>>> much use. I've just raised the issue with the author of that service,
>>> so hopefully it'll be fixed soon. In the meantime, I would suggest
>>> removing:
>>> 
>>> (service fprintd-service-type)
> 
> The author of 'fprintd-service-type' has pushed a fix. After a fresh
> "guix pull", you could try adding the line above to your OS config, and
> it might work now.
> 
> Regards,
> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-18  4:54             ` Raghav Gururajan
@ 2019-04-20  4:00               ` Raghav Gururajan
  2019-04-21 14:28                 ` Raghav Gururajan
  0 siblings, 1 reply; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-20  4:00 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

Hello Mark!
System reconfigure went smooth for fprint. Thanks a lot. Anyway, how do
I actually enable the fprint scanner for authentication puposes like
login etc?
Thanks!
Regards,RG.On Thu, 2019-04-18 at 04:54 +0000, Raghav Gururajan wrote:
> Hello Mark!
> That is so great to hear. I will try it and get back to you.
> Regards,RG.
> April 17, 2019 8:11 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> Hello again,
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> Ah I see. Thanks for raising the issue. Yes, we'll move on to "Stylus
> Input" :)
> April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> Hi Raghav,
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> I made the changes you told me. Now the error is "guix system:
> error:/etc/rg-secondary.scm:49:24: no value specified for service of
> type'fprintd'"Sorry, this looks like a genuine bug in Guix's
> fingerprint service,which was added relatively recently, and
> apparently has not yet seenmuch use. I've just raised the issue with
> the author of that service,so hopefully it'll be fixed soon. In the
> meantime, I would suggestremoving:
> (service fprintd-service-type)
> The author of 'fprintd-service-type' has pushed a fix. After a
> fresh"guix pull", you could try adding the line above to your OS
> config, andit might work now.
> Regards,Mark

[-- Attachment #2: Type: text/html, Size: 2311 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-14 19:05   ` Tobias Geerinckx-Rice
@ 2019-04-20  4:04     ` Raghav Gururajan
  2019-04-21 14:33       ` Raghav Gururajan
  0 siblings, 1 reply; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-20  4:04 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, help-guix; +Cc: Mark H Weaver

[-- Attachment #1: Type: text/plain, Size: 4088 bytes --]

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:
> 
> Error verifying signature: Failed to execute gpg.
> Raghav,
> Mark H Weaver wrote:Raghav Gururajan <rvgn@disroot.org> 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 ‘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/rotate-screen.sh
> to my ~/.config/i3/config.  rotate-screen.sh 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
> 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 <https://wiki.archlinux.org/index.php/Wacom_tabl
> 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 ‘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,
> T G-R


[-- Attachment #2: Type: text/html, Size: 6178 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Trouble getting 'fprintd-service-type' to work
  2019-04-17  6:51               ` Danny Milosavljevic
@ 2019-04-20 20:21                 ` Mark H Weaver
  2019-04-24 16:57                   ` Danny Milosavljevic
  0 siblings, 1 reply; 30+ messages in thread
From: Mark H Weaver @ 2019-04-20 20:21 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> writes:

> On Tue, 16 Apr 2019 16:07:19 -0400
> Mark H Weaver <mhw@netris.org> wrote:
>
>> Did you test this service before pushing it to master?
>
> I can't remember - but probably not.  Sorry.
>
>> Does it work for you?
>
> It didn't work but I fixed it now with commit 0682f084635cdc289aabafc4b2583639e00a28b3.

Thanks, but did you test that it actually works in practice?

I strongly suspect that it still won't work.  According to
<https://wiki.archlinux.org/index.php/Fprint>, the 'pam_fprintd.so'
module needs to be added to the PAM configuration.

So, I guess we also need something along the lines of the following,
which is used in 'elogind-service-type' in (gnu services desktop):

                       ;; Extend PAM with pam_fprintd.so.
                       (service-extension pam-root-service-type
                                          pam-extension-procedure)

Would you be willing to take a look?  I think it would be embarrassing
to release Guix 1.0 with a documented service that has never been
tested.  What do you think?

      Regards,
        Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-20  4:00               ` Raghav Gururajan
@ 2019-04-21 14:28                 ` Raghav Gururajan
  2019-04-22  4:03                   ` Raghav Gururajan
  0 siblings, 1 reply; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-21 14:28 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

[-- Attachment #1: Type: text/plain, Size: 1661 bytes --]

Hello Mark!
In continuation to my previous email. The "permanent" way you gave for
Stylus Input works. Thanks a lot. So 2) Stylus Input and 3) Fingerprint
Scanner are done. Shall we move on to 1) Lid Buttons?
Thanks!On Sat, 2019-04-20 at 00:00 -0400, Raghav Gururajan wrote:
> Hello Mark!
> System reconfigure went smooth for fprint. Thanks a lot. Anyway, how
> do I actually enable the fprint scanner for authentication puposes
> like login etc?
> Thanks!
> Regards,RG.
> On Thu, 2019-04-18 at 04:54 +0000, Raghav Gururajan wrote:
> > Hello Mark!
> > That is so great to hear. I will try it and get back to you.
> > Regards,RG.
> > April 17, 2019 8:11 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> > Hello again,
> > "Raghav Gururajan" <rvgn@disroot.org> writes:
> > Ah I see. Thanks for raising the issue. Yes, we'll move on to
> > "Stylus Input" :)
> > April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> > Hi Raghav,
> > "Raghav Gururajan" <rvgn@disroot.org> writes:
> > I made the changes you told me. Now the error is "guix system:
> > error:/etc/rg-secondary.scm:49:24: no value specified for service
> > of type'fprintd'"Sorry, this looks like a genuine bug in Guix's
> > fingerprint service,which was added relatively recently, and
> > apparently has not yet seenmuch use. I've just raised the issue
> > with the author of that service,so hopefully it'll be fixed soon.
> > In the meantime, I would suggestremoving:
> > (service fprintd-service-type)
> > The author of 'fprintd-service-type' has pushed a fix. After a
> > fresh"guix pull", you could try adding the line above to your OS
> > config, andit might work now.
> > Regards,Mark

[-- Attachment #2: Type: text/html, Size: 2763 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-20  4:04     ` Raghav Gururajan
@ 2019-04-21 14:33       ` Raghav Gururajan
  0 siblings, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-21 14:33 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, help-guix; +Cc: Mark H Weaver


[-- Attachment #1.1: Type: text/plain, Size: 4558 bytes --]

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. ☺
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:
> > 
> > Error verifying signature: Failed to execute gpg.
> > Raghav,
> > Mark H Weaver wrote:Raghav Gururajan <rvgn@disroot.org> 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 ‘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/rotate-screen.sh
> > to my ~/.config/i3/config.  rotate-screen.sh 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 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 <https://wiki.archlinux.org/i
> > 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 ‘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,
> > T G-R


[-- Attachment #1.2: Type: text/html, Size: 6690 bytes --]

[-- Attachment #2: rg-secondary.scm --]
[-- Type: text/x-scheme, Size: 1343 bytes --]

(use-modules
	(gnu)
	(gnu system nss)
	(gnu services authentication))
(use-service-modules desktop xorg)
(use-package-modules certs gnome xdisorg)
(operating-system
	(host-name "secondary")
	(timezone "America/Toronto")
	(locale "en_CA.utf8")
	(bootloader
		(bootloader-configuration
			(bootloader
				(bootloader
					(inherit grub-bootloader)
					(installer #~(const #t))))))
	(mapped-devices
		(list 
			(mapped-device
				(source (uuid "41d10f4e-cfe4-42b9-9b10-fd98a8d08f08"))
				(target "rg-root")
				(type luks-device-mapping))))
	(file-systems
		(cons
			(file-system
				(device (file-system-label "rg-root"))
				(mount-point "/")
				(type "btrfs")
				(dependencies mapped-devices))
			%base-file-systems))
	(users
		(cons
			(user-account
				(name "rg")
				(comment "Raghav Gururajan")
				(group "users")
				(supplementary-groups '("wheel" "netdev" "lp" "cdrom" "audio" "video" "tape" "kvm"))
				(home-directory "/home/rg"))
			%base-user-accounts))
	(packages
		(cons*
			nss-certs
			gvfs
			evolution-data-server
			%base-packages))

	(services
		(cons*
			(service gnome-desktop-service-type)
			(service fprintd-service-type)
			(set-xorg-configuration
				(xorg-configuration
					(modules (cons xf86-input-wacom
							%default-xorg-modules))))
			%desktop-services))
	(name-service-switch %mdns-host-lookup-nss))


^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-21 14:28                 ` Raghav Gururajan
@ 2019-04-22  4:03                   ` Raghav Gururajan
  0 siblings, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-04-22  4:03 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

Hello Mark!
Regarding Stylus Input, only the system reconfigure worked. The Stylus
is not actually working ☹.
Regards,RGOn Sun, 2019-04-21 at 10:28 -0400, Raghav Gururajan wrote:
> Hello Mark!
> In continuation to my previous email. The "permanent" way you gave
> for Stylus Input works. Thanks a lot. So 2) Stylus Input and 3)
> Fingerprint Scanner are done. Shall we move on to 1) Lid Buttons?
> Thanks!
> On Sat, 2019-04-20 at 00:00 -0400, Raghav Gururajan wrote:
> > Hello Mark!
> > System reconfigure went smooth for fprint. Thanks a lot. Anyway,
> > how do I actually enable the fprint scanner for authentication
> > puposes like login etc?
> > Thanks!
> > Regards,RG.
> > On Thu, 2019-04-18 at 04:54 +0000, Raghav Gururajan wrote:
> > > Hello Mark!
> > > That is so great to hear. I will try it and get back to you.
> > > Regards,RG.
> > > April 17, 2019 8:11 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> > > Hello again,
> > > "Raghav Gururajan" <rvgn@disroot.org> writes:
> > > Ah I see. Thanks for raising the issue. Yes, we'll move on to
> > > "Stylus Input" :)
> > > April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
> > > Hi Raghav,
> > > "Raghav Gururajan" <rvgn@disroot.org> writes:
> > > I made the changes you told me. Now the error is "guix system:
> > > error:/etc/rg-secondary.scm:49:24: no value specified for service
> > > of type'fprintd'"Sorry, this looks like a genuine bug in Guix's
> > > fingerprint service,which was added relatively recently, and
> > > apparently has not yet seenmuch use. I've just raised the issue
> > > with the author of that service,so hopefully it'll be fixed soon.
> > > In the meantime, I would suggestremoving:
> > > (service fprintd-service-type)
> > > The author of 'fprintd-service-type' has pushed a fix. After a
> > > fresh"guix pull", you could try adding the line above to your OS
> > > config, andit might work now.
> > > Regards,Mark

[-- Attachment #2: Type: text/html, Size: 3176 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Trouble getting 'fprintd-service-type' to work
  2019-04-20 20:21                 ` Mark H Weaver
@ 2019-04-24 16:57                   ` Danny Milosavljevic
  2019-04-24 18:41                     ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2019-04-24 16:57 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

Hi Mark,

On Sat, 20 Apr 2019 16:21:44 -0400
Mark H Weaver <mhw@netris.org> wrote:

> Thanks, but did you test that it actually works in practice?
> 
> I strongly suspect that it still won't work.  According to
> <https://wiki.archlinux.org/index.php/Fprint>, the 'pam_fprintd.so'
> module needs to be added to the PAM configuration.

That is only required if not using gdm.  I think since we force gdm now it
should work as-is.

> So, I guess we also need something along the lines of the following,
> which is used in 'elogind-service-type' in (gnu services desktop):
> 
>                        ;; Extend PAM with pam_fprintd.so.
>                        (service-extension pam-root-service-type
>                                           pam-extension-procedure)

Yes, but we'd have to amend the etc/pam.d/login file and that
would mean we'd have to add an entire authentication configuration
mechanism to guix (where to allow fingerprint authentication
and where not to allow it is a policy decision done by the
system administrator and should not be hard-coded).

I've found one comment "./sddm.scm: ;; should be factored out into
system-auth" that maybe suggests such a guix configuration already
exists somewhere, but I can't find it.

I'm not sure how to proceed.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Trouble getting 'fprintd-service-type' to work
  2019-04-24 16:57                   ` Danny Milosavljevic
@ 2019-04-24 18:41                     ` Tobias Geerinckx-Rice
  2019-04-24 20:23                       ` Danny Milosavljevic
  0 siblings, 1 reply; 30+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-24 18:41 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

Danny, all,

Danny Milosavljevic wrote:
>> I strongly suspect that it still won't work.  According to
>> <https://wiki.archlinux.org/index.php/Fprint>, the 
>> 'pam_fprintd.so'
>> module needs to be added to the PAM configuration.
>
> That is only required if not using gdm.  I think since we force 
> gdm now it
> should work as-is.

What do you mean?  We don't force GDM on anyone.

I'm still unable to use fprintd at all (I think, I've never used 
it before):

  ~ λ fprintd-enroll nckx
  Using device /net/reactivated/Fprint/Device/0
  failed to claim device: Not Authorized:
    GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
    Action net.reactivated.fprint.device.enroll is not registered
  ~ λ sudo fprintd-enroll nckx
  Using device /net/reactivated/Fprint/Device/0
  failed to claim device: Not Authorized:
    GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
    Action net.reactivated.fprint.device.setusername is not 
    registered

I'm not using GDM.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Trouble getting 'fprintd-service-type' to work
  2019-04-24 18:41                     ` Tobias Geerinckx-Rice
@ 2019-04-24 20:23                       ` Danny Milosavljevic
  0 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2019-04-24 20:23 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

Hi,

Wed, 24 Apr 2019 20:41:16 +0200
Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> What do you mean?  We don't force GDM on anyone.

My config has slim-service-type and no mention of "gdm" anywhere (unchanged
for more than a year).
I suddenly got gdm when I did "guix system reconfigure"--and it didn't work
to login.  Slim was gone on reboot.
That's why I was fixing gdm in the last few days (bug# 35377).

> I'm still unable to use fprintd at all (I think, I've never used 
> it before):
> 
>   ~ λ fprintd-enroll nckx
>   Using device /net/reactivated/Fprint/Device/0
>   failed to claim device: Not Authorized:
>     GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
>     Action net.reactivated.fprint.device.enroll is not registered
>   ~ λ sudo fprintd-enroll nckx
>   Using device /net/reactivated/Fprint/Device/0
>   failed to claim device: Not Authorized:
>     GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
>     Action net.reactivated.fprint.device.setusername is not 
>     registered

Yeah, seems that it also needs a polkit extension.
I've added it to guix master now, as
commit 9374cbd1fb29395a5e849e95e8a249e5f9f944c0.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner
  2019-04-17  4:33           ` Raghav Gururajan
  2019-04-18  0:09             ` Mark H Weaver
  2019-04-18  4:54             ` Raghav Gururajan
@ 2019-05-03  5:58             ` Raghav Gururajan
  2 siblings, 0 replies; 30+ messages in thread
From: Raghav Gururajan @ 2019-05-03  5:58 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: help-guix, Clément Lassieur

Hello Mark!

You still around? Please let me know. Eventhough config for stylus complied without errors, the stylus isn't actually working. :(

April 17, 2019 8:11 PM, "Mark H Weaver" <mhw@netris.org> wrote:

> Hello again,
> 
> "Raghav Gururajan" <rvgn@disroot.org> writes:
> 
>> Ah I see. Thanks for raising the issue. Yes, we'll move on to "Stylus Input" :)
>> 
>> April 16, 2019 4:22 PM, "Mark H Weaver" <mhw@netris.org> wrote:
>> 
>>> Hi Raghav,
>>> 
>>> "Raghav Gururajan" <rvgn@disroot.org> writes:
>> 
>> I made the changes you told me. Now the error is "guix system: error:
>> /etc/rg-secondary.scm:49:24: no value specified for service of type
>> 'fprintd'"
>>> Sorry, this looks like a genuine bug in Guix's fingerprint service,
>>> which was added relatively recently, and apparently has not yet seen
>>> much use. I've just raised the issue with the author of that service,
>>> so hopefully it'll be fixed soon. In the meantime, I would suggest
>>> removing:
>>> 
>>> (service fprintd-service-type)
> 
> The author of 'fprintd-service-type' has pushed a fix. After a fresh
> "guix pull", you could try adding the line above to your OS config, and
> it might work now.
> 
> Regards,
> Mark

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2019-05-03  5:58 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 15:32 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
2019-04-12 18:30 ` Mark H Weaver
2019-04-12 18:45   ` Mark H Weaver
2019-04-13  4:55     ` Raghav Gururajan
2019-04-13  5:21     ` Raghav Gururajan
2019-04-13 18:16       ` Mark H Weaver
2019-04-13 21:14       ` Raghav Gururajan
2019-04-13 21:24       ` Raghav Gururajan
2019-04-13 21:46       ` Raghav Gururajan
2019-04-14  2:46         ` Mark H Weaver
2019-04-14 18:24           ` Tobias Geerinckx-Rice
2019-04-14 18:33           ` Tobias Geerinckx-Rice
2019-04-16 20:07             ` Trouble getting 'fprintd-service-type' to work Mark H Weaver
2019-04-17  6:51               ` Danny Milosavljevic
2019-04-20 20:21                 ` Mark H Weaver
2019-04-24 16:57                   ` Danny Milosavljevic
2019-04-24 18:41                     ` Tobias Geerinckx-Rice
2019-04-24 20:23                       ` Danny Milosavljevic
2019-04-15 15:44         ` 1) Lid Buttons 2) Stylus Input 3) Fingerprint Scanner Raghav Gururajan
2019-04-16 20:21           ` Mark H Weaver
2019-04-17  4:33           ` Raghav Gururajan
2019-04-18  0:09             ` Mark H Weaver
2019-04-18  4:54             ` Raghav Gururajan
2019-04-20  4:00               ` Raghav Gururajan
2019-04-21 14:28                 ` Raghav Gururajan
2019-04-22  4:03                   ` Raghav Gururajan
2019-05-03  5:58             ` Raghav Gururajan
2019-04-14 19:05   ` Tobias Geerinckx-Rice
2019-04-20  4:04     ` Raghav Gururajan
2019-04-21 14:33       ` Raghav Gururajan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.