GNU bug report logs - #55391
Multiple slim services

Previous Next

Package: guix;

Reported by: André A. Gomes <andremegafone <at> gmail.com>

Date: Thu, 12 May 2022 21:57:02 UTC

Severity: normal

Done: André A. Gomes <andremegafone <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55391 in the body.
You can then email your comments to 55391 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Thu, 12 May 2022 21:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to André A. Gomes <andremegafone <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 12 May 2022 21:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: André A. Gomes <andremegafone <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Multiple slim services
Date: Thu, 12 May 2022 22:56:30 +0100
Hi Guix,

The manual (see (info "(guix) X Window")) mentions that it's possible to
add two slim services but it seems not to work.  When I tried to
reconfigure the system it gives the following error:

--8<---------------cut here---------------start------------->8---
guix system: error: more than one target service of type 'slim'
--8<---------------cut here---------------end--------------->8---

Thanks.


-- 
André A. Gomes
"You cannot even find the ruins..."




Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Fri, 13 May 2022 06:39:01 GMT) Full text and rfc822 format available.

Message #8 received at 55391 <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: André A. Gomes <andremegafone <at> gmail.com>,
 55391 <at> debbugs.gnu.org
Subject: Re: bug#55391: Multiple slim services
Date: Fri, 13 May 2022 08:38:30 +0200
Hello André,

André A. Gomes <andremegafone <at> gmail.com> writes:

> Hi Guix,
>
> The manual (see (info "(guix) X Window")) mentions that it's possible to
> add two slim services but it seems not to work.  When I tried to
> reconfigure the system it gives the following error:
>
> --8<---------------cut here---------------start------------->8---
> guix system: error: more than one target service of type 'slim'
> --8<---------------cut here---------------end--------------->8---

If I understand the relevant code properly, this should happen only when
you try to extend a service type (eg. slim-service-type) with another
service, but you have multiple instances of the given service type, and
so guix system can't disambiguate between the two (it would be better if
you could manually specify that imho, but alas).  Could you post a
snippet of your config, especially the service part?

Best,
-- 
Josselin Poiret




Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Mon, 16 May 2022 21:41:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: André A. Gomes <andremegafone <at> gmail.com>
To: Josselin Poiret via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: Josselin Poiret <dev <at> jpoiret.xyz>, 55391 <at> debbugs.gnu.org
Subject: Re: bug#55391: Multiple slim services
Date: Mon, 16 May 2022 22:39:55 +0100
Josselin Poiret via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> Hello André,
>
> André A. Gomes <andremegafone <at> gmail.com> writes:
>
>> Hi Guix,
>>
>> The manual (see (info "(guix) X Window")) mentions that it's possible to
>> add two slim services but it seems not to work.  When I tried to
>> reconfigure the system it gives the following error:
>>
>> --8<---------------cut here---------------start------------->8---
>> guix system: error: more than one target service of type 'slim'
>> --8<---------------cut here---------------end--------------->8---
>
> If I understand the relevant code properly, this should happen only when
> you try to extend a service type (eg. slim-service-type) with another
> service, but you have multiple instances of the given service type, and
> so guix system can't disambiguate between the two (it would be better if
> you could manually specify that imho, but alas).  Could you post a
> snippet of your config, especially the service part?

Here it goes.  The manual states that you can have two slim services on
different ttys.  Am I misinterpreting something?  Thank you!

--8<---------------cut here---------------start------------->8---
(services (cons* (set-xorg-configuration (xorg-configuration
                                            (modules (list xf86-input-libinput
		                                                   xf86-input-evdev
                                                           xf86-input-wacom))
                                            (keyboard-layout keyboard-layout)
                                            (server-arguments
                                             ;; disable screen-saver timeout
                                             (append (list "-s" "0")
                                                     %default-xorg-server-arguments))
                                            (extra-config (list xorg-touchpad
                                                                xorg-monitor)))
                                           slim-service-type)
                   (service slim-service-type (slim-configuration (display ":0")
                                                                  (vt "vt7")))
                   ;; Doesn't work to add a 2nd service of the same type,
                   ;; contrary to what the docs say
                   ;; (service slim-service-type (slim-configuration (display ":0")
                   ;;                                                (vt "vt8")))
                   (modify-services %desktop-services
                     (guix-service-type
                      config => (guix-configuration
                                 (inherit config)
                                 (substitute-urls
                                  (append (list "https://substitutes.nonguix.org")
                                          %default-substitute-urls))
                                 (authorized-keys
                                  (append (list (plain-file "non-guix.pub"
                                                            nonguix-key))
                                          %default-authorized-guix-keys))))
                     (delete gdm-service-type)
                     (delete (screen-locker-service xlockmore "xlock")))))
--8<---------------cut here---------------end--------------->8---


-- 
André A. Gomes
"You cannot even find the ruins..."




Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Mon, 16 May 2022 21:41:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Mon, 16 May 2022 23:52:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlo Zancanaro <carlo <at> zancanaro.id.au>
To: André A. Gomes <andremegafone <at> gmail.com>
Cc: bug-guix <at> gnu.org, dev <at> jpoiret.xyz, 55391 <at> debbugs.gnu.org
Subject: Re: bug#55391: Multiple slim services
Date: Tue, 17 May 2022 09:29:43 +1000
Hi André,

On Mon, May 16 2022, André A. Gomes wrote:
> Here it goes.  The manual states that you can have two slim 
> services on different ttys.  Am I misinterpreting something? 
> Thank you!

I don't think you're misinterpreting anything, but Josselin is 
correct when they say

On Fri, May 13 2022, Josselin Poiret wrote:
> If I understand the relevant code properly, this should happen 
> only when you try to extend a service type (eg. 
> slim-service-type) with another service

In your case, you're using set-xorg-configuration which tries to 
extend your slim-service-type service. Unfortunately, you want to 
define two of them, which causes the extension mechanism to fail 
complaining about the ambiguity.

You should be able to fix this by adding the xorg-configuration 
directly into the slim service that you're defining, something 
like this:

   (cons* (service slim-service-type (slim-configuration
                                      (display ":0")
                                      (vt "vt7")
                                      (xorg-configuration
                                       (xorg-configuration
                                        (modules (list 
                                        xf86-input-libinput
    		                                        xf86-input-evdev
                                                       xf86-input-wacom))
                                        (keyboard-layout 
                                        keyboard-layout)
                                        (server-arguments
                                         ;; disable screen-saver 
                                         timeout
                                         (append (list "-s" "0")
                                                 %default-xorg-server-arguments))
                                        (extra-config (list 
                                        xorg-touchpad
                                                            xorg-monitor))))))
          (service slim-service-type (slim-configuration
                                      (display ":0")
                                      (vt "vt8")
                                      ;; I wasn't sure if you 
                                      wanted the same
                                      ;; xorg-configuration here, 
                                      so I left it out.
                                      ))
          (modify-services %desktop-services
            (delete gdm-service-type)
            (delete (screen-locker-service xlockmore "xlock"))))

I hope that helps,

Carlo




Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Mon, 16 May 2022 23:52:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Tue, 17 May 2022 15:32:02 GMT) Full text and rfc822 format available.

Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):

From: André A. Gomes <andremegafone <at> gmail.com>
To: Carlo Zancanaro <carlo <at> zancanaro.id.au>
Cc: bug-guix <at> gnu.org, dev <at> jpoiret.xyz, 55391 <at> debbugs.gnu.org
Subject: Re: bug#55391: Multiple slim services
Date: Tue, 17 May 2022 16:31:28 +0100
Carlo Zancanaro <carlo <at> zancanaro.id.au> writes:

> Hi André,
>
> On Mon, May 16 2022, André A. Gomes wrote:
>> Here it goes.  The manual states that you can have two slim services
>> on different ttys.  Am I misinterpreting something? Thank you!
>
> I don't think you're misinterpreting anything, but Josselin is correct
> when they say
>
> On Fri, May 13 2022, Josselin Poiret wrote:
>> If I understand the relevant code properly, this should happen only
>> when you try to extend a service type (eg. slim-service-type) with
>> another service
>
> In your case, you're using set-xorg-configuration which tries to extend
> your slim-service-type service. Unfortunately, you want to define two of
> them, which causes the extension mechanism to fail complaining about the
> ambiguity.
>
> You should be able to fix this by adding the xorg-configuration directly
> into the slim service that you're defining, something like this:
>
>    (cons* (service slim-service-type (slim-configuration
>                                       (display ":0")
>                                       (vt "vt7")
>                                       (xorg-configuration
>                                        (xorg-configuration
>                                         (modules (list
>                                         xf86-input-libinput
>     		                                        xf86-input-evdev
>                                                        xf86-input-wacom))
>                                         (keyboard-layout
>                                         keyboard-layout)
>                                         (server-arguments
>                                          ;; disable screen-saver
>                                             timeout
>                                          (append (list "-s" "0")
>                                                  %default-xorg-server-arguments))
>                                         (extra-config (list
>                                         xorg-touchpad
>                                                             xorg-monitor))))))
>           (service slim-service-type (slim-configuration
>                                       (display ":0")
>                                       (vt "vt8")
>                                       ;; I wasn't sure if you
>                                          wanted the same
>                                       ;; xorg-configuration here,
>                                          so I left it out.
>                                       ))
>           (modify-services %desktop-services
>             (delete gdm-service-type)
>             (delete (screen-locker-service xlockmore "xlock"))))

Hi Carlo Zancanaro,

It all makes sense now!  I really appreciate your help, thanks :)


-- 
André A. Gomes
"You cannot even find the ruins..."




Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Tue, 17 May 2022 15:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Tue, 17 May 2022 15:39:01 GMT) Full text and rfc822 format available.

Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):

From: André A. Gomes <andremegafone <at> gmail.com>
To: 55391-done <at> debbugs.gnu.org
Cc: bug-guix <at> gnu.org, 55391 <at> debbugs.gnu.org
Subject: Re: bug#55391: Multiple slim services
Date: Tue, 17 May 2022 16:38:05 +0100



Information forwarded to bug-guix <at> gnu.org:
bug#55391; Package guix. (Tue, 17 May 2022 15:39:02 GMT) Full text and rfc822 format available.

Reply sent to André A. Gomes <andremegafone <at> gmail.com>:
You have taken responsibility. (Tue, 17 May 2022 15:39:02 GMT) Full text and rfc822 format available.

Notification sent to André A. Gomes <andremegafone <at> gmail.com>:
bug acknowledged by developer. (Tue, 17 May 2022 15:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Jun 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.