Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setxkbmap settings vanish [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Krakonos
n00b
n00b


Joined: 22 Sep 2011
Posts: 5

PostPosted: Thu Sep 22, 2011 8:23 pm    Post subject: setxkbmap settings vanish [SOLVED] Reply with quote

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
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Sep 22, 2011 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Krakonos
n00b
n00b


Joined: 22 Sep 2011
Posts: 5

PostPosted: Fri Sep 23, 2011 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Krakonos
n00b
n00b


Joined: 22 Sep 2011
Posts: 5

PostPosted: Sun Sep 25, 2011 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum