unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
@ 2019-09-15 22:23 Jan Wielkiewicz
  2019-09-18  5:00 ` quiliro
  2019-09-26 16:17 ` Wiktor Żelazny
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Wielkiewicz @ 2019-09-15 22:23 UTC (permalink / raw)
  To: 37422

Hi everyone!

I've tried using the default Polish keyboard layout with
SLiM and it doesn't seem to work - the system reconfigures properly
with no single error or warning, then after rebooting and logging in,
the layout is unavailable - only the US layout. The Polish layout is
aviable in tty's, but not in X sessions. I've run guix pull
several days ago.

This is my configuration:

(keyboard-layout (keyboard-layout "pl" "legacy"))

[...]

(service slim-service-type
	 (slim-configuration
	 (display ":0")
	 (vt "vt7")))
(set-xorg-configuration (xorg-configuration
			(keyboard-layout keyboard-layout))
			slim-service-type)

PS tried sending this message to
https://issues.guix.gnu.org/issue/26234 
but it got lost. Is it an accident, or is sending messages to closed
issues impossible?

---
Jan Wielkiewicz

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-15 22:23 bug#37422: Setting keyboard layout with SLiM login manager doesn't work Jan Wielkiewicz
@ 2019-09-18  5:00 ` quiliro
  2019-09-18 11:41   ` Jan
  2019-09-26 16:17 ` Wiktor Żelazny
  1 sibling, 1 reply; 9+ messages in thread
From: quiliro @ 2019-09-18  5:00 UTC (permalink / raw)
  To: Jan Wielkiewicz; +Cc: 37422


> PS tried sending this message to
> https://issues.guix.gnu.org/issue/26234
> but it got lost. Is it an accident, or is sending messages to closed
> issues impossible?

It is closed. This was the last comment:

It’s been a while :-), but this is fixed by
598757e038ab5dea3b59c9c248a2ad860c41fe62, which lets you choose the Xorg
keyboard layout (this was already possible before actually, but a bit
more involved.)

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-18  5:00 ` quiliro
@ 2019-09-18 11:41   ` Jan
  0 siblings, 0 replies; 9+ messages in thread
From: Jan @ 2019-09-18 11:41 UTC (permalink / raw)
  To: quiliro; +Cc: 37422

On Wed, 18 Sep 2019 00:00:27 -0500
quiliro@riseup.net wrote:

> > PS tried sending this message to
> > https://issues.guix.gnu.org/issue/26234
> > but it got lost. Is it an accident, or is sending messages to closed
> > issues impossible?  
> 
> It is closed. This was the last comment:
> 
> It’s been a while :-), but this is fixed by
> 598757e038ab5dea3b59c9c248a2ad860c41fe62, which lets you choose the
> Xorg keyboard layout (this was already possible before actually, but
> a bit more involved.)
> 

The answer is from March, I ran "guix pull" and "sudo guix system
reconfigure /etc/config.scm" today, and the keyboard layout is still
unavailable. There's a chance this bug is similar to the bug from
the past, but not the same, letting it exist unnoticed.

---
Jan Wielkiewicz

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-15 22:23 bug#37422: Setting keyboard layout with SLiM login manager doesn't work Jan Wielkiewicz
  2019-09-18  5:00 ` quiliro
@ 2019-09-26 16:17 ` Wiktor Żelazny
  2019-09-26 20:46   ` Jan Wielkiewicz
  1 sibling, 1 reply; 9+ messages in thread
From: Wiktor Żelazny @ 2019-09-26 16:17 UTC (permalink / raw)
  To: 37422

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

On Mon, Sep 16, 2019 at 12:23:22AM +0200, Jan Wielkiewicz wrote:

> I've tried using the default Polish keyboard layout with SLiM and it
> doesn't seem to work

Hi,

In case you haven’t found the solution, yet, perhaps this snippet from
my config.scm will help you. You will need to trim it to adapt to your
circumstances.

  (services (cons* (service slim-service-type (slim-configuration
                                                (display ":0")
                                                (vt "vt7")
                                                (auto-login? #t)
                                                (default-user "w")
                                                (xorg-configuration
                                                  (xorg-configuration
                                                    (keyboard-layout (keyboard-layout "pl,cz"
                                                                                      "legacy,ucw"
                                                                                      #:options '("compose:menu,grp:caps_switch")))))))
  ;; skipped content
  ))

WŻ

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

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-26 16:17 ` Wiktor Żelazny
@ 2019-09-26 20:46   ` Jan Wielkiewicz
  2019-09-28  7:35     ` Wiktor Żelazny
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Wielkiewicz @ 2019-09-26 20:46 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: 37422

Hi,

I've tried this solution already, but it didn't work for me then and it
doesn't work now. When I try to reconfigure my system, guix throws:

guix system: error: failed to load '/etc/config.scm':
/etc/config.scm:66:57: Wrong type to apply: #<<keyboard-layout> name:
"pl" variant: "legacy" model: #f options: ()>

Don't really know why this happens. Here's my config.scm:

(services
  (append
   (list (service mate-desktop-service-type)
	 (service slim-service-type
	 	  (slim-configuration
	 	   (display ":0")
	 	   (vt "vt7")
		   (xorg-configuration (xorg-configuration
					(keyboard-layout
(keyboard-layout "pl" "legacy")))))) (service tor-service-type)
         (extra-special-file "/bin/bash"
                             (file-append coreutils "/bin/bash"))
	 ;; (set-xorg-configuration
	 ;;  (xorg-configuration
	 ;;   (keyboard-layout keyboard-layout))
	 ;;  slim-service-type))
	 )
	 
   (remove (lambda (service)
	     (eq? (service-kind service) gdm-service-type))
	   %desktop-services))))

Dnia 2019-09-26, o godz. 18:17:03
Wiktor Żelazny <wz@freeshell.de> napisał(a):

> Hi,
> 
> In case you haven’t found the solution, yet, perhaps this snippet from
> my config.scm will help you. You will need to trim it to adapt to your
> circumstances.
> 
>   (services (cons* (service slim-service-type (slim-configuration
>                                                 (display ":0")
>                                                 (vt "vt7")
>                                                 (auto-login? #t)
>                                                 (default-user "w")
>                                                 (xorg-configuration
>                                                   (xorg-configuration
>                                                     (keyboard-layout
> (keyboard-layout "pl,cz" "legacy,ucw"
>                                                                                       #:options
> '("compose:menu,grp:caps_switch"))))))) ;; skipped content
>   ))
> 
> WŻ

Jan Wielkiewicz

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-26 20:46   ` Jan Wielkiewicz
@ 2019-09-28  7:35     ` Wiktor Żelazny
  2019-09-28 11:22       ` Jan Wielkiewicz
  0 siblings, 1 reply; 9+ messages in thread
From: Wiktor Żelazny @ 2019-09-28  7:35 UTC (permalink / raw)
  To: 37422

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

On Thu, Sep 26, 2019 at 10:46:45PM +0200, Jan Wielkiewicz wrote:

> guix system: error: failed to load '/etc/config.scm':
> /etc/config.scm:66:57: Wrong type to apply: #<<keyboard-layout> name:
> "pl" variant: "legacy" model: #f options: ()>
>
> Don't really know why this happens. Here's my config.scm:
>
> (services
>   (append
>    (list (service mate-desktop-service-type)
> 	 (service slim-service-type
> 	 	  (slim-configuration
> 	 	   (display ":0")
> 	 	   (vt "vt7")
> 		   (xorg-configuration (xorg-configuration
> 					(keyboard-layout
> (keyboard-layout "pl" "legacy")))))) (service tor-service-type)
>          (extra-special-file "/bin/bash"
>                              (file-append coreutils "/bin/bash"))
> 	 ;; (set-xorg-configuration
> 	 ;;  (xorg-configuration
> 	 ;;   (keyboard-layout keyboard-layout))
> 	 ;;  slim-service-type))
> 	 )
> 	 
>    (remove (lambda (service)
> 	     (eq? (service-kind service) gdm-service-type))
> 	   %desktop-services))))

My wild guess at it would be:

diff --git a/config.scm b/config.scm
index 83044a1..1c07417 100644
--- a/config.scm
+++ b/config.scm
@@ -15,8 +15,7 @@
          ;;  (xorg-configuration
          ;;   (keyboard-layout keyboard-layout))
          ;;  slim-service-type))
-         )

    (remove (lambda (service)
              (eq? (service-kind service) gdm-service-type))
-           %desktop-services))))
+           %desktop-services)))))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-28  7:35     ` Wiktor Żelazny
@ 2019-09-28 11:22       ` Jan Wielkiewicz
  2019-09-29 12:27         ` Wiktor Żelazny
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Wielkiewicz @ 2019-09-28 11:22 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: 37422

On Sat, 28 Sep 2019 09:35:52 +0200
Wiktor elazny <wz@freeshell.de> wrote:


> My wild guess at it would be:
> 
> diff --git a/config.scm b/config.scm
> index 83044a1..1c07417 100644
> --- a/config.scm
> +++ b/config.scm
> @@ -15,8 +15,7 @@
>           ;;  (xorg-configuration
>           ;;   (keyboard-layout keyboard-layout))
>           ;;  slim-service-type))
> -         )
> 
>     (remove (lambda (service)
>               (eq? (service-kind service) gdm-service-type))
> -           %desktop-services))))
> +           %desktop-services)))))
> 
> W

I can't really remove it - notice I'm using append and two
lists instead of cons* - the remove procedure returns a list of services
without GDM and removing the parenthesis would make a nested list
inside the list of services "operating-system" accepts.

I've just replaced append+list with cons* just for testing purposes and
it still doesn't work, the same result.

But trying another solution have helped:

I replaced (keyboard-layout (keyboard-layout ...)) in slim-configuration
with (keyboard-layout keyboard-layout).
Thanks for helping me.

set-xorg-configuration doesn't work with slim though, would be nice if
someone fixed it and the fact (keyboard-layout (keyboard-layout "pl,cz"
"legacy,ucw")) works on your machine, but not on mine is strange.


Jan Wielkiewicz

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-28 11:22       ` Jan Wielkiewicz
@ 2019-09-29 12:27         ` Wiktor Żelazny
  2019-09-29 12:57           ` Jan
  0 siblings, 1 reply; 9+ messages in thread
From: Wiktor Żelazny @ 2019-09-29 12:27 UTC (permalink / raw)
  To: 37422

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

On Sat, Sep 28, 2019 at 01:22:27PM +0200, Jan Wielkiewicz wrote:

> set-xorg-configuration doesn't work with slim though, would be nice
> if someone fixed it and the fact (keyboard-layout (keyboard-layout
> "pl,cz" "legacy,ucw")) works on your machine, but not on mine is
> strange.

The last thing that comes to my mind is the line:

   (use-service-modules desktop xorg)

Have you got these in your config.scm?

WŻ

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

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

* bug#37422: Setting keyboard layout with SLiM login manager doesn't work
  2019-09-29 12:27         ` Wiktor Żelazny
@ 2019-09-29 12:57           ` Jan
  0 siblings, 0 replies; 9+ messages in thread
From: Jan @ 2019-09-29 12:57 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: 37422

On Sun, 29 Sep 2019 14:27:59 +0200
Wiktor Żelazny <wz@freeshell.de> wrote:

> The last thing that comes to my mind is the line:
> 
>    (use-service-modules desktop xorg)
> 
> Have you got these in your config.scm?
> 
> WŻ

Yes I have. I wouldn't be able to run Mate DE, if I didn't have
these two.


Jan Wielkiewicz

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

end of thread, other threads:[~2019-09-29 12:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-15 22:23 bug#37422: Setting keyboard layout with SLiM login manager doesn't work Jan Wielkiewicz
2019-09-18  5:00 ` quiliro
2019-09-18 11:41   ` Jan
2019-09-26 16:17 ` Wiktor Żelazny
2019-09-26 20:46   ` Jan Wielkiewicz
2019-09-28  7:35     ` Wiktor Żelazny
2019-09-28 11:22       ` Jan Wielkiewicz
2019-09-29 12:27         ` Wiktor Żelazny
2019-09-29 12:57           ` Jan

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).