GNOME Bugzilla – Bug 560821
Keyboard Preferences are not taken into use when a keyboard is plugged in
Last modified: 2009-04-29 17:31:48 UTC
I have a USB keyboard plugged into my monitor. Whenever I turn off my monitor, I effectively unplug my keyboard. After turning the monitor back on, my settings are set back to defaults (ex: no compose key). This seems to be the same sort of issue as bug 549267, but with the keyboard.
Created attachment 122670 [details] [review] Patch from bug 549267 redone for the keyboard
Something is not right with that patch. Plugging and unplugging still does not work reliably.
+ apply_settings ((GsdKeyboardManager *) data); Erm, yes, maybe because that is very very wrong? ;-) Also note that the patch from bug 549267 still has issues (bug 560618).
Created attachment 122685 [details] [review] Correct Patch from bug 549267 redone for the keyboard I uploaded the wrong file last time. That wouldn't have compiled. This one still doesn't work, but I built it and it's running.
I would not like to fix it on that level. I am planning to fix it in libxklavier.
I mean - libxklavier would intercept device presence event, provide a hook (in normal gobject/signal style), then in g-s-d the hook would reinitialize the keyboard.
The patch actually looks like the right thing to do for me, but it's missing handling of the DeviceAdded events.
It is done in libxklavier and gnome 2.26 ATM, could you please check if it still an issue? Make sure libxklavier is built with xinput support (that's not the case with ubuntu, so far)