projects/rohieb.name-repo: somehow a false line from the draft slipped into the instr...
[www-rohieb-name.git] / blag / post / tell-xorg-to-re-grab-the-keyboard.mdwn
1 [[!meta title="Tell Xorg to re-grab the keyboard"]]
2 [[!meta date="2011-12-29 23:45"]]
3 [[!meta author="rohieb"]]
4 [[!meta license="CC-BY-SA 3.0"]]
5
6 OK, I was doing some debugging with Xorg, and thought I had to use the
7 [Magic SysRq][0] key to kill it. But when I had pressed Alt-SysRq-R to
8 give the keyboard control from Xorg back to the kernel, it turned out
9 that I not longer needed to do another SysRq because my Xorg magically
10 worked again… ;-) Unfortunately now, everytime I pressed Alt-F4 to close
11 a window, I found myself on tty4… rather poor. So I needed some way to
12 tell Xorg to grab the keyboard again, and [there it is][1]: Just open an
13 xterm and execute
14
15 sudo kbd_mode -s
16
17 [0]: http://en.wikipedia.org/wiki/Magic_SysRq_key
18 [1]: https://learninginlinux.wordpress.com/2010/06/16/debugging-notes-to-self/
19
20 [[!tag fix howto debugging Linux shell SysRq Xorg]]
This page took 0.049823 seconds and 5 git commands to generate.