PDA

View Full Version : connecting to a bluetooth speaker resets xmodmap settings??



mtk
21st December 2014, 08:19 PM
af first i thought i was crazy but it is reproducible. if i connect to a (SONY SRS-X5) bluetooth speaker, my xmodmap settings are lost (returned to the default values). this is not an instance of an xmodmap config being run more than once and observing redefined keysyms - i switched to using keycodes rather than keysyms so my config file is idempotent now :-).

why would connecting to a bluetooth speaker reset your keyboard settings? is it because something thinks the speaker is a bluetooth keyboard?

/mark

mtk
21st December 2014, 09:08 PM
this is what shows up in my X server log after a connect:

7302.112] (II) config/udev: Adding input device 00:1D:DF:AE:46:EF (/dev/input/event15)
[ 7302.112] (**) 00:1D:DF:AE:46:EF: Applying InputClass "evdev keyboard catchall"
[ 7302.112] (**) 00:1D:DF:AE:46:EF: Applying InputClass "system-keyboard"
[ 7302.112] (II) Using input driver 'evdev' for '00:1D:DF:AE:46:EF'
[ 7302.112] (**) 00:1D:DF:AE:46:EF: always reports core events
[ 7302.112] (**) evdev: 00:1D:DF:AE:46:EF: Device: "/dev/input/event15"
[ 7302.112] (--) evdev: 00:1D:DF:AE:46:EF: Vendor 0 Product 0
[ 7302.112] (--) evdev: 00:1D:DF:AE:46:EF: Found keys
[ 7302.112] (II) evdev: 00:1D:DF:AE:46:EF: Configuring as keyboard
[ 7302.112] (**) Option "config_info" "udev:/sys/devices/virtual/input/input19/event15"
[ 7302.112] (II) XINPUT: Adding extended input device "00:1D:DF:AE:46:EF" (type: KEYBOARD, id 15)
[ 7302.112] (**) Option "xkb_rules" "evdev"
[ 7302.112] (**) Option "xkb_model" "pc104"
[ 7302.112] (**) Option "xkb_layout" "us"

mtk
22nd December 2014, 03:44 PM
it seems clear from the log why my xmodmap settings are being reset. i don't know why an external bluetooth speaker is recognized as a keyboard. the question is - what should be done about this? bug report? workaround?