XInput device properties ; keymaps service & console switch

Sebastian Glita glseba at yahoo.com
Mon Aug 23 00:14:20 PDT 2010


Hi,

2.

Sorry, it was only F1..F12+ALT and windows key, not just F1..F12.

I inserted xev output below,

I pressed/released Ctrl a couple of times; then pressed/released the windows key 
twice: each time I got a VT switch, I used ALT+F7 to switch from console to Xorg 
back again. Same would happen with ALT+F1..12 or menu key instead of Super_L. 

It seems Ctrl key is not stuck.

Thanks,
s.


<<<
KeyPress event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38536800, (35,29), root:(306,317),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38536863, (35,29), root:(306,317),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38537358, (35,29), root:(306,317),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38537438, (35,29), root:(306,317),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

VisibilityNotify event, serial 31, synthetic NO, window 0x5000001,
    state VisibilityFullyObscured

KeyPress event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38538700, (35,29), root:(306,317),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38538707, (35,29), root:(306,317),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

VisibilityNotify event, serial 31, synthetic NO, window 0x5000001,
    state VisibilityPartiallyObscured

Expose event, serial 31, synthetic NO, window 0x5000001,
    (0,0), width 178, height 10, count 5

Expose event, serial 31, synthetic NO, window 0x5000001,
    (0,10), width 10, height 58, count 4

Expose event, serial 31, synthetic NO, window 0x5000001,
    (68,10), width 110, height 58, count 3

Expose event, serial 31, synthetic NO, window 0x5000001,
    (0,68), width 178, height 106, count 2

Expose event, serial 31, synthetic NO, window 0x5000001,
    (1,174), width 176, height 3, count 1

Expose event, serial 31, synthetic NO, window 0x5000001,
    (2,177), width 174, height 1, count 0

VisibilityNotify event, serial 31, synthetic NO, window 0x5000001,
    state VisibilityFullyObscured

MappingNotify event, serial 31, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38540632, (35,29), root:(306,317),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38540640, (35,29), root:(306,317),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

VisibilityNotify event, serial 32, synthetic NO, window 0x5000001,
    state VisibilityPartiallyObscured

Expose event, serial 32, synthetic NO, window 0x5000001,
    (0,0), width 178, height 10, count 5

Expose event, serial 32, synthetic NO, window 0x5000001,
    (0,10), width 10, height 58, count 4

Expose event, serial 32, synthetic NO, window 0x5000001,
    (68,10), width 110, height 58, count 3

Expose event, serial 32, synthetic NO, window 0x5000001,
    (0,68), width 178, height 106, count 2

Expose event, serial 32, synthetic NO, window 0x5000001,
    (1,174), width 176, height 3, count 1

Expose event, serial 32, synthetic NO, window 0x5000001,
    (2,177), width 174, height 1, count 0

MotionNotify event, serial 32, synthetic NO, window 0x5000001,
    root 0x150, subw 0x5000002, time 38549990, (35,29), root:(306,317),
    state 0x0, is_hint 0, same_screen YES
>>>



On Sat, Aug 21, 2010 at 07:31:21AM -0700, Sebastian Glita wrote:
> Hi,
> 
> When using CTRL+ALT+F1..12 to switch between consoles and Xorg, it happens 
>that:
> 
> 1.
> 
> When I do like this:
> 
>     user at localhost ~ $ xinput set-int-prop 'ImPS/2 Generic Wheel Mouse' 'Device 
>
> Enabled' 8 0
>     user at localhost ~ $ xinput list-props 'ImPS/2 Generic Wheel Mouse'
>     Device 'ImPS/2 Generic Wheel Mouse':
>             Device Enabled (131):   0
>  
> and then switch to console (CTRL+ALT+F1) and then back again, I get this:
> 
>     user at localhost ~ $ xinput list-props 'ImPS/2 Generic Wheel Mouse'
>     Device 'ImPS/2 Generic Wheel Mouse':
>             Device Enabled (131):   1
> 
> So the properties' values change betwen console switching.

VT switching disables all devices and re-enables them when coming back. It's
been like this for ages and I'm not really inclined to change this
behaviour at this point.

Generally, any use of xinput is a once-off effect only and the setting set
by xinput is not guaranteed to be maintained and/or monitored for changes.

> 2.
> 
> When I restart keymaps service like this:
> 
>     user at localhost ~ $ #eselect rc restart keymaps
>     user at localhost ~ $ /etc/init.d/keymaps restart
> 
> then whenever I press:
> 
>   - F1..12 keys or
>   - Alt+F1..12 or
>   - the windows key,
> 
> whether Control (CTRL) key is pressed or released, it doesn't matter, I get a 
> console switch each time.

what does xev say about key presses? is the ctrl key stuck?

Cheers,
  Peter


      



More information about the xorg mailing list