Setting keyboard layout with SLiM login manager doesn't work

  • Open
  • quality assurance status badge
Details
3 participants
  • quiliro
  • Jan Wielkiewicz
  • =?utf-8?q?Wiktor_=C5=BBelazny?=
Owner
unassigned
Submitted by
Jan Wielkiewicz
Severity
normal
J
J
Jan Wielkiewicz wrote on 16 Sep 2019 00:23
(address . bug-guix@gnu.org)
20190916002322.04834163@interia.pl
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
but it got lost. Is it an accident, or is sending messages to closed
issues impossible?

---
Jan Wielkiewicz
Q
Q
quiliro wrote on 18 Sep 2019 07:00
(name . Jan Wielkiewicz)(address . tona_kosmicznego_smiecia@interia.pl)(address . 37422@debbugs.gnu.org)
22959e14d5c70a94bf9cd886d9d06e90.squirrel@sm.riseup.net
Toggle quote (5 lines)
> 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.)
J
(address . quiliro@riseup.net)(address . 37422@debbugs.gnu.org)
20190918134113.1fa40783@kompiuter
On Wed, 18 Sep 2019 00:00:27 -0500
quiliro@riseup.net wrote:

Toggle quote (13 lines)
> > 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
=
=
=?utf-8?q?Wiktor_=C5=BBelazny?= wrote on 26 Sep 2019 18:17
20190926161703.uwt5ahj5u4ot33a7@wz.localdomain
On Mon, Sep 16, 2019 at 12:23:22AM +0200, Jan Wielkiewicz wrote:

Toggle quote (3 lines)
> 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?
-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl2M5H5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE
Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg
edUi1g//bLJDqOvaCnuKY9V+PNYzIrdItcg1WClLxKz9lihOnJZtBdAAYGtyo4rT
u0z28T6fnu+r+RUSkeRMVXe7uzaHoebnbC5EbgWeOf8Risav353lTP2GUCHBoOBB
Dzh+zWAnb9M62nIsnihYX5ml0EAf08SPOL0N3v61bQnWbQfjmp5JlBQlOyiykzpg
J7o44E4cH3OXzcFe1ANet5ouRF08x4TC7LJ6WWZEzeKNs/bzdsgjMxfwOUUsKMTA
O0YZYLoUkWPvG2Ouf+X+2jPuWLW0dr7YP/scOseupFQa6YNX4xQpIjGRkqBINnOU
M0Jf3SzzOXn8qLhkGvdZK2tcZcNzT8+sbt0xjLspyA4S+1x9XuTConegYZEXW8oe
C7KUFAg5C9zFK5cY6IzVenypG/aCVkij4hSJbhoziiiNLMrFW4XHXhRSju5FAnYH
smeMh1y9GAHsY+JcYHHDdRUVvnxdp0XCp3A87zJA0VwXyNACI5Id651EMaz1pM6H
IuMeFNMgzpT+HpVZybNXtKru+LImP+UyR7spLn28fvo3y12SbNA0ntAKbrcCIhCE
/KmBU1s/1YsplOd7jcvjLft8/h7pLLE9ooiyJ0TEvdMRDAIGcEW73MNp6gavuZnq
W27GR+o9iScG5gEaYxBZGKp2T48RcTrvOwU2ZR3OlfufK2pkCb8=
=EX+t
-----END PGP SIGNATURE-----


J
J
Jan Wielkiewicz wrote on 26 Sep 2019 22:46
(name . Wiktor ?elazny)(address . wz@freeshell.de)(address . 37422@debbugs.gnu.org)
20190926224645.0dcf55fe@interia.pl
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):

Toggle quote (21 lines)
> 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
=
=
=?utf-8?q?Wiktor_=C5=BBelazny?= wrote on 28 Sep 2019 09:35
(address . 37422@debbugs.gnu.org)
20190928073552.ttkeuxciq5s7x4fk@wz.localdomain
On Thu, Sep 26, 2019 at 10:46:45PM +0200, Jan Wielkiewicz wrote:

Toggle quote (28 lines)
> 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:

Toggle diff (16 lines)
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?
-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl2PDVhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE
Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg
edVEGg/+N/MhlsjIDvo3TzaWTgrIj5tY7MN4X3U+j2ME+uR3+4uARcl+P6GS+r2U
aiEjDUq1O7kGh8OoaeLOUgRyeBf5dlbfGCBlnzOxbpcSsYTcIjr0rVTuiyWZ8R5o
bEH8fMzahzID9W107DQEn9TOpTU6bA6hSq6V1971xeycioWeA4q8YFBchLX9Hwaz
hAvDiTFMo9qBa0dEgQHNMQ5p2nqtHKZSOfdU55w1qjF8xhPuher/+lhO0CXTaEZb
X1b1+uW6Y4AwbxMhQk3d0aVQ1cNB2wm5IQF72+ws6CK2APL6klvsAF8XhtUOY908
RA1KUaBlYkcY1m98/+PdmUvqjhwc9r6hLNDDCJnvVlceO6cePS4ujbHkjh7NTNBy
SRxNdIV3LEvhms4peG9+Dls3inocJSbJw0lMWfyIXH/7uUxW5ImqNrrtUNl0xwQ8
SVkAc9gChgYbZtfxJClN3KpgpwH5vG0VulECRxm3AZQXd2e4qnDLLoETPNYa2qyw
fT9vBxt/aQMbKwOmDk6j3fbLtl9+Tvd49wL1Nqnu3VRO8e+F3n8U1ZfBn6KtdQfB
Lx9sZV0Gm31qd93rJCuE2+eYY3BDuox6icvD9BwtwfL+WKYWW+9/0WcHmjepZwLk
h/caAAlWcNAywEemCLcXiQvHYEwxXqQwm/Urca+uRpsDf9TnGz8=
=62JO
-----END PGP SIGNATURE-----


J
J
Jan Wielkiewicz wrote on 28 Sep 2019 13:22
(name . Wiktor ?elazny)(address . wz@freeshell.de)(address . 37422@debbugs.gnu.org)
20190928132227.47ad90d5@interia.pl
On Sat, 28 Sep 2019 09:35:52 +0200
Wiktor elazny <wz@freeshell.de> wrote:


Toggle quote (19 lines)
> 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
=
=
=?utf-8?q?Wiktor_=C5=BBelazny?= wrote on 29 Sep 2019 14:27
(address . 37422@debbugs.gnu.org)
20190929122759.wamb6ophk3r2r4ki@wz.localdomain
On Sat, Sep 28, 2019 at 01:22:27PM +0200, Jan Wielkiewicz wrote:

Toggle quote (5 lines)
> 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?
-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl2Qo05fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE
Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg
edWByg//UCe7aG9hQ0Szu9v3Qx5KUcRZnQrntfWwJ+XgTmzUdDoN6EC6mdejwYLG
z4Llqm09aDumbOVIZA6vj2gIlBCgTlrSdzUr69iwNNosmgERxcQ+kSrO9bjO8jp9
wlITBNGucqSvQcWmAODNoF/zciynHttZehNS6Ai6iyeykXQJG1MHo/yKIDxy+epo
nJ9c31FFJq0Ik+TnILtq7SwmrnW24VomE0xzwZCPiWaGMHwctTUf+0f3RdrH4QRq
+1Tqj6i57+2GEsArUGyPxQIF7WZPTC8NSHaFS06qEITd2qvKUC/Bv9PYJ+00wMXQ
emKS/dq3ReS/GZAKLIWm3LNEcaViXOuFnfjZ31EIX9GQjIQkmJsxc9qYmwqn9MaZ
7O0OCBJILi/Zjmm8sXcSp62tbysBqir6DMhkXohUjHmKXXVGnRIpyzNpZqWzLYoa
rficp5db4ywiKzC4JDef5kw5akr+tHKEU0npY9X/eCRcBUPixI7cttKZy0V7iWsA
zE6RCOnsqQB93lh2lLxh/SjAZyOQPqhT/3k/AW/YYCvqAv51OM1hPTvjGEwmZu7P
LHVasMOIFHxmRg83S3dO0ciXNbm8LAH225htKrgjZYxGQM+DAxBleD41Il1E1ioZ
fhYTIcCptXAaQRqRqBZ3VIR4Q8Lc8CGSsg9nEPbsDE5h45sxGb8=
=Mhgs
-----END PGP SIGNATURE-----


J
(name . Wiktor ?elazny)(address . wz@freeshell.de)(address . 37422@debbugs.gnu.org)
20190929145721.048280ac@kompiuter
On Sun, 29 Sep 2019 14:27:59 +0200
Wiktor ?elazny <wz@freeshell.de> wrote:

Toggle quote (8 lines)
> 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
?