1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANN%3A%20For%20the%20brave.%20systemd%20v185%20in%20cauldron%0A%09updates_testing&In-Reply-To=%3C4FE03352.20605%40colin.guthr.ie%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="016628.html">
<LINK REL="Next" HREF="016636.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing</H1>
<B>Colin Guthrie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANN%3A%20For%20the%20brave.%20systemd%20v185%20in%20cauldron%0A%09updates_testing&In-Reply-To=%3C4FE03352.20605%40colin.guthr.ie%3E"
TITLE="[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing">mageia at colin.guthr.ie
</A><BR>
<I>Tue Jun 19 10:07:46 CEST 2012</I>
<P><UL>
<LI>Previous message: <A HREF="016628.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing
</A></li>
<LI>Next message: <A HREF="016636.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16635">[ date ]</a>
<a href="thread.html#16635">[ thread ]</a>
<a href="subject.html#16635">[ subject ]</a>
<a href="author.html#16635">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>'Twas brillig, and JA Magallón at 18/06/12 22:47 did gyre and gimble:
><i> On 06/18/2012 11:28 PM, JA Magallón wrote:
</I>>><i> Hi....
</I>>><i>
</I>>><i> Sorry for the delay, I've been busy with end-of-term festivals in
</I>>><i> my children' schools ;)...
</I>>><i>
</I>>>>><i>
</I>>>>>><i> - keyboard layout under Gnome got reset to English (from Spanish).
</I>>>>>><i> Changed manually under
</I>>>>>><i> system settings and fine again.
</I>>>>><i>
</I>>><i>
</I>>><i> One addtional problem is that GDM starts with english keyboard which
</I>>><i> is a problem for passwords with non alpha-num chars... :).
</I>>><i>
</I>>>>><i> Interesting. Does this new setting survive a reboot? Does the new
</I>>>>><i> mapping work at the system level (i.e. is the layout respected in GDM)?
</I>>><i>
</I>>><i> Yep, the setting survives a reboot for the user that changed it, but
</I>>><i> as I said above it does not change GDM settings. I did not try to do it
</I>>><i> with system tools, just user preferences.
</I>>><i> And keymap is OK in virtual consoles.
</I>>><i>
</I>>>>><i>
</I>>>>><i> Do you have a /etc/vconsole.conf file?
</I>>><i>
</I>>><i> Nop, I have not. I think system settings were in /etc/sysconfig/keyboard.
</I>>><i>
</I>>>><i>
</I>>>><i> OK, so I don't really understand why it's broken. I think it's maybe a
</I>>>><i> regression in that X is no longer inheriting settings from the console,
</I>>>><i> but I think longer term this is a valid thing (maybe there will not be a
</I>>>><i> console to inherit from in the future?)
</I>>>><i>
</I>>>><i> So, it seems that systemd-localed will write an Xorg snippet into
</I>>>><i> /etc/X11/xorg.conf.d/00-keyboard.conf when the keyboard is set. Thus
</I>>>><i> your setting of it via the Gnome System Settings will have written this
</I>>>><i> file (can you confirm it exists?) and it will remain there for the
</I>>>><i> remaining boots.
</I>>><i>
</I>>><i> This file does not exist in my box, I just used user prefs to change
</I>>><i> the map, not sytem ones.
</I>>><i>
</I>>>><i>
</I>>>><i> Longer term, we need to make sure the installer runs this daemon for
</I>>>><i> fresh installs. And perhaps we should run it on upgrade automatically
</I>>>><i> too to ensure it's written as needed.
</I>>>><i>
</I>>><i>
</I>>><i> I will try to write an /etc/vconsole.conf and see if it works.
</I>>><i> Perhaps the fix is just to write it from /etc/syscofig/keyboard...
</I>>><i>
</I>><i>
</I>><i> This file did not work for GDM.
</I>
Yup, I realise now that it's only good for the console. I think in the
past we must have somehow inherited from the console but that's no
longer working (I could be wrong on this one).
><i> So i checked systemd-localed, it was not started and started it manually,
</I>><i> and then copied my settings to system in gnome settings tool.
</I>><i> That made the file in xorg.conf.d appear, and GDM was OK.
</I>
You shouldn't actually need to start it manually. It should start
on-demand (it's dbus activated). That worked here.
Strangely, I wasn't able to write the file immediately It somehow
detected my system settings as the same as my local settings and refused
to write a file. I think perhaps that my "local" settings were a little
bit broken tho' (years of upgrades I guess) and adding a layout,
removing it and then copying did indeed write the xorg.conf.d snippet.
><i> Perhaps udev/dbus do not talk to X server anymore about keyboard layout.
</I>
Well I'm not sure at what point X will talk to udev or dbus about this?
Maybe udev no longer carries locale information in it's db? Maybe it's
simply due to X being linked against an old libudev at the moment (until
this lands in the release repo)? That said I don't see any layout
information in my udev database for my console on mga2 machines. So I'm
not really sure how this stuff works to be honest.
><i> My settiongs in xorg.conf were:
</I>><i> Section "InputDevice"
</I>><i> Identifier "keyboard"
</I>><i> Driver "evdev"
</I>><i> # Option "XkbLayout" "es"
</I>><i> # Option "XkbModel" "pc105"
</I>><i> # Option "XkbOptions" ""
</I>><i> EndSection
</I>
Well these options are commented out so won't have any effect. Most of
the time xorg.conf isn't even needed any more, hence the desire to use
the xorg.conf.d folder instead.
><i> File generated by localed is:
</I>><i>
</I>><i> # Read and parsed by systemd-localed. It's probably wise not to edit
</I>><i> this file
</I>><i> # manually too freely.
</I>><i> Section "InputClass"
</I>><i> Identifier "system-keyboard"
</I>><i> MatchIsKeyboard "on"
</I>><i> Option "XkbLayout" "es"
</I>><i> EndSection
</I>><i>
</I>
Yup that seems correct.
Likely we'll need to update things accordingly to deal with this, but on
the whole I'm sure we'll get it working smoothly :)
Cheers
Col
--
Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
Day Job:
Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="016628.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing
</A></li>
<LI>Next message: <A HREF="016636.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron updates_testing
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16635">[ date ]</a>
<a href="thread.html#16635">[ thread ]</a>
<a href="subject.html#16635">[ subject ]</a>
<a href="author.html#16635">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|