1

On Arch linux running Gnome, if I press shift-3 it locks X (nothing but the mouse cursor works). All window updates are suspended. The only option is to zap it with ctrl-alt-backspace.

I've looked in logs, nothing. I've searched the web, nothing. I've tried every possible keypress, nothing.

shift-2 works just fine, as does shift-4

I'm on a Mac Pro, with a UK Apple keyboard. I don't think this should matter, but it is the £ (pound) symbol that comes out on the console before I run startx. In X, I can use alt-shift-3 and get a pound without any problems. Alt-3 gives me # as expected.

Any ideas where to start with this? Is there extra logging I can somehow enable?

--

xmodmap -pke gives:

keycode 12 = 3 sterling 3 sterling numbersign sterling threesuperior sterling 3 sterling threesuperior sterling

-- xev output. I pushed x then shift-3, then 1. Interestingly, it continued writing to the output after the DM froze.

KeyPress event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 338011, (655,-7), root:(840,525),
state 0x10, keycode 53 (keysym 0x78, x), same_screen YES,
XLookupString gives 1 bytes: (78) "x"
XmbLookupString gives 1 bytes: (78) "x"
XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 338091, (655,-7), root:(840,525),
state 0x10, keycode 53 (keysym 0x78, x), same_screen YES,
XLookupString gives 1 bytes: (78) "x"
XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 339867, (655,-7), root:(840,525),
state 0x10, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 340219, (655,-7), root:(840,525),
state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES,
XLookupString gives 2 bytes: (c2 a3) "£"
XmbLookupString gives 2 bytes: (c2 a3) "£"
XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 340299, (655,-7), root:(840,525),
state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES,
XLookupString gives 2 bytes: (c2 a3) "£"
XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 340411, (655,-7), root:(840,525),
state 0x11, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 349763, (655,-7), root:(840,525),
state 0x10, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XmbLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0xa00001,
root 0x4a3, subw 0x0, time 349835, (655,-7), root:(840,525),
state 0x10, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False
  • 1
    Interesting. Does the system lock up hard, or you can e.g. still ssh into it from another computer and kill the X server, or X applications? Can you catch the shift-3 event with xev, or does it freeze before you see the result? Anything unusual on the '3' key (keycode 12, if the Mac keyboard is similar to PC keyboard) if you do xmodmap -pke? – dirkt Jan 31 '17 at 13:08
  • it's a soft lock - ctrl-alt-backspace quits X, and the mouse still works, but the clock freezes along with all other window updates. I presume SSH still works. I'll try xev and xmodmap - thanks! – antonyh Jan 31 '17 at 13:34
  • I just tried starting gdm first, and it works without issue. The thing is I use the console a lot, I go into X about 40% of the time. – antonyh Jan 31 '17 at 13:58
  • 1
    So it's only an issue of you use startx directly, not with gdm? What window manager is run with startx? The sterling symbol is different than other keys in that it consists of two UTF-8 bytes, are any applications (including the window manager) running that could possibly choke on that? Can you try to ssh in after a freeze, and start killing X applications until you narrow it down to possible culprits? What happens you try to replace the sterling symbol with something else using xmodmap (see manpage how to do that)? – dirkt Jan 31 '17 at 15:21
  • 1
    Do you have this problem with any other key, in particular ¬? Do you have this problem if you change to another keyboard layout (e.g. try a French keyboard layout and press Shift + the key that is ] in a UK/US layout to insert £)? – Gilles 'SO- stop being evil' Jan 31 '17 at 23:07
0

Removing dbus-launch --exit-with-session from .xinitrc appears to resolve this, for reasons unknown.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.