View previous topic :: View next topic |
Author |
Message |
Krakonos n00b
Joined: 22 Sep 2011 Posts: 5
|
Posted: Thu Sep 22, 2011 8:23 pm Post subject: setxkbmap settings vanish [SOLVED] |
|
|
Hello,
I have the following problem. I'm running X with openbox and some custom apps (nothing too fancy). On openbox start a command:
Code: | setxkbmap -layout "us,cz" -option "grp:alt_shift_toggle" |
And I can toggle keyboard from us to cz just fine, but when I leave the computer for some time (for example 2-12 hours) and get back, it does not work. After executing the previous command, it works fine again.
Do anyone have an idea why is this happening? I have no clue and I'll be happy for any idea.
(I don't want to set it in Xorg.conf, because I'm migrating my settings to multiple computers, and on some of them I don't have root access to.)
Last edited by Krakonos on Sun Sep 25, 2011 8:52 am; edited 1 time in total |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Thu Sep 22, 2011 9:33 pm Post subject: |
|
|
I know I lose similar settings for my usb keyboard when I unplug it and plug it again, may be your keyboard is put into sleep or something while you're away?
May be disable your screensaver/locker just to see? _________________ The End of the Internet!
Last edited by truc on Fri Sep 23, 2011 8:58 am; edited 1 time in total |
|
Back to top |
|
|
Krakonos n00b
Joined: 22 Sep 2011 Posts: 5
|
Posted: Fri Sep 23, 2011 8:02 am Post subject: |
|
|
Well, I don't have any screensaver or locker (my monitor is only set to 'blank' after few minutes, but after blank it works ok).
Today, during night, it happened again. I fetched some data from setxkbmap:
Code: | krakonos@kangaroo ~ $ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc104)" };
};
krakonos@kangaroo ~ $ setxkbmap -layout "us,cz" -option "grp:alt_shift_toggle"
krakonos@kangaroo ~ $ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+cz:2+inet(evdev)+group(alt_shift_toggle)" };
xkb_geometry { include "pc(pc104)" };
};
|
I doubt the keyboard may be an issue, since it is a laptop with external keyboard and both keyboards are affected. I will try to connect my keyboard directly to usb (its in hub right now) to see if it makes any difference. |
|
Back to top |
|
|
Krakonos n00b
Joined: 22 Sep 2011 Posts: 5
|
Posted: Sun Sep 25, 2011 8:52 am Post subject: |
|
|
Hello,
I'm running second day with keyboard directly in my usb (no hub) and it seem it helped. Also, I've noticed that the usbhub is buggy and sometimes disconnects device (I already had it replaced twice because of this, always the same result..).
Thank you! |
|
Back to top |
|
|
|