[Bug 579119] New: yast2 keyboard does not update /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi
http://bugzilla.novell.com/show_bug.cgi?id=579119 http://bugzilla.novell.com/show_bug.cgi?id=579119#c0 Summary: yast2 keyboard does not update /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i586 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: phdm@macqel.be QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-2.1 Firefox/3.5.2 I use 'yast(2) keyboard' to select my keyboard layout. After that, /etc/sysconfig/keyboard contains my newly selected keyboard layout, but /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi still contains an old (and wrong, of course) keyboard layout. When I then (re)start 'X' to get a pure X server, the keyboard is wrong. Reproducible: Always Steps to Reproduce: 1.type init 3, to stop the xdm system 2.select another keyboard layout using 'yast keyboard' 3.check if /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi is updated. It is not. Also, if I remove /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi before calling 'yast keyboard', /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi is not created. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c
Philippe De Muyter
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c1
--- Comment #1 from Philippe De Muyter
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c2
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c3
--- Comment #3 from Philippe De Muyter
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c
Lukas Ocilka
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c4
Jiří Suchomel
This script is called in /etc/init.d/xdm. So "rcxdm restart" fixes that issue as well. In case we reintroduce the YaST module for the keyboard on Linux console the script needs to be run by YaST. Reassigning.
Well, "rcxdm restart" will kill X session, which is not what we want to do from YaST. Do you know gentler solution? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c5
Stefan Dirsch
(In reply to comment #2)
This script is called in /etc/init.d/xdm. So "rcxdm restart" fixes that issue as well. In case we reintroduce the YaST module for the keyboard on Linux console the script needs to be run by YaST. Reassigning.
Well, "rcxdm restart" will kill X session, which is not what we want to do from YaST. Do you know gentler solution?
Well, another option would be to copy the code from /etc/init.d/xdm # use system keyboard as global X keyboard configuration if [ -x /etc/X11/xdm/keytable4hal ]; then if /etc/X11/xdm/keytable4hal; then /etc/init.d/haldaemon stop && \ rm -f /var/cache/hald/fdi-cache && \ /etc/init.d/haldaemon start fi fi -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c6
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c7
Stefan Dirsch
Well, I do not see why YaST should do this.
Why not?
Could it be part of kbd script, which is restarted from YaST?
Why? It's X configuration, not Linux console keyboard.
Or some other stand alone one, that should YaST call directly? Are there any more conditions when it should be called and when not?
Not that I'm aware of. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c8
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c9
Stefan Dirsch
YaST cannot do such dark magic. If something should be changed in such code we well not know about it.
Well, thinking about it once more, it might not be a good idea to restart haldaemon on top of a Xsession (not sure what will happen then), but you need to do this so that the new HAL keyboard settings get active. Additionally you need to restart the Xserver afterwards. The only safe way I see this all can happen is in /etc/init.d/xdm script.
BTW, do I understand it correct that if user would use login manager himself, it would work for him? Than we can declare it as invalid, I think.
You mean user restarts login manager himself? Just using a login manager doesn't help of course. I don't see how to resolve that issue other than informing that (s)he needs to restart xdm script. Well, it wasn't my idea to reintroduce static X11 keyboard configuration in YaST2. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c10
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c11
Ludwig Nussel
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c12
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=579119
http://bugzilla.novell.com/show_bug.cgi?id=579119#c13
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com