Xsettings after keyboard is plugged

Peter Hutterer peter.hutterer at who-t.net
Sun Jan 15 21:54:33 PST 2012


On Sat, Jan 14, 2012 at 04:11:25AM +0530, Raghavendra D Prabhu wrote:
> Hi Peter,
> 
> * On Tue, Jan 03, 2012 at 11:18:42AM +1000, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> >On Thu, Dec 29, 2011 at 06:51:37AM +0530, Raghavendra D Prabhu wrote:
> >>Hi,
> 
> >>When X is running and I plug out/plug in my usb keyboard, I see that
> >>Xmodmap/xset etc settings get lost and I have it to run xmodmap/xset
> >>again for them to apply to the keyboard. Is this a bug or the
> >>behavior the way it should be ?
> >
> >intended behaviour, the post below has a bit more info:
> >http://who-t.blogspot.com/2010/06/keyboard-configuration-its-complicated.html
> >
> >Cheers,
> > Peter
> 
> Thanks for the article, it is quite explanatory. I am manually
> applying the configuration now -- xmodmap and xset ones.
> 
> Quick question since the article touches on core keyboard -- I
> notice this http://sprunge.us/Magg -- there are lot of stuff like my
> headphone, Video Bus are under Virtual core keyboard. Is this normal
> ? or is this because of some udev and/or IsKeyboard xorg bug  ?

that's normal. If it has keys, we'll treat it as a keyboard. Amongst other
things, this should allow for things like your desktop environment picking
up mute/camera/etc buttons.

(the 255 keycode limit sometimes gets in the way here though, but the
principle is there anyway)

Cheers,
  Peter



More information about the xorg mailing list