mini_banner

Tuesday, March 27, 2007

Fix for Shift+Backspace Restarting X

There is a annoying glitch with Beryl that has been around since Compiz. It causes x to restart when you hit the shift and back space keys at the same time. This is how to fix it:

Open up a Terminal:
sudo gedit /usr/local/bin/x_restart_fix.sh

Add this line to the script:
xmodmap -e "keycode 22 = BackSpace BackSpace Terminate_Server"
Save and close the text file.

Make it executable:
sudo chmod 755 /usr/local/bin/x_restart_fix.sh

Go to System>Preferences>Sessions> Startup Programs and then add to your Startup Programs:
/usr/local/bin/x_restart_fix.sh

Now shift+backspace doesn't ruin your fun. Enjoy!
edited by pHreaksYcle

6 comments:

Anonymous said...

Dude, I don't think this one is a "glitch", from what I understand it's a standard Linux feature. Shift + Backspace to restart X is way better than rebooting the the entire system.

redDEAD said...

R.M. you are thinking of Ctrl+Alt+Backspace. Maybe calling it a glitch was wrong, huge annoyance and a standard complaint of new Beryl users would be more accurate.

Jorge A. said...

Please move it, if am posting in the wrong place.

Hi, as usual, thanks for all the help in the forum, without it, it would have been a larger PITA setting up my Ubuntu Linux on this thing, now down to asking:
1. Not that it matters, but I suspect there something important behind, some of the screen savers do have pretty good performance, but some others, even though looking simpler are really sluggish. I would pinpoint 2D screen savers with bad performance.
2. Whenever I try and change the brightness, using the Fn+ Up/Down arrow keys, X restarts immediately.
Nevermind the ATI Catalyst control center, doesn't even start.
I've checked dmesg and it appears that the graphics driver restarts.
Data:
uname -a:
Linux Doughnut 2.6.17-11-generic #2 SMP Thu Feb 1 18:03:05 UTC 2007 x86_64 GNU/Linux

fglrxinfo:
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon Xpress Series
OpenGL version string: 2.0.6400 (8.35.5)

fgl_glxgears:
Using GLX_SGIX_pbuffer
1062 frames in 5.0 seconds = 212.400 FPS


lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:05.0 PCI bridge: ATI Technologies Inc Unknown device 5a37
00:06.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:12.0 IDE interface: ATI Technologies Inc Unknown device 4380
00:13.0 USB Controller: ATI Technologies Inc Unknown device 4387
00:13.1 USB Controller: ATI Technologies Inc Unknown device 4388
00:13.2 USB Controller: ATI Technologies Inc Unknown device 4389
00:13.3 USB Controller: ATI Technologies Inc Unknown device 438a
00:13.4 USB Controller: ATI Technologies Inc Unknown device 438b
00:13.5 USB Controller: ATI Technologies Inc Unknown device 4386
00:14.0 SMBus: ATI Technologies Inc Unknown device 4385 (rev 13)
00:14.1 IDE interface: ATI Technologies Inc Unknown device 438c
00:14.2 Audio device: ATI Technologies Inc Unknown device 4383
00:14.3 ISA bridge: ATI Technologies Inc Unknown device 438d
00:14.4 PCI bridge: ATI Technologies Inc Unknown device 4384
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200M]
05:00.0 Network controller: Broadcom Corporation Unknown device 4311 (rev 01)
08:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
08:01.0 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
08:01.1 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)

The machine is pretty standard from Dell, 1GB ram, Turion64 x2 TL50, I think.

redDEAD said...

I haven't tried the new 8.35.8 driver, I couldn't even tell you if it works well with the x1150 card.

TheJinX0r said...

Thanks :)

I thought openoffice was always randomly crashing...

Unknown said...

Thanks. This works. It /is/ a glitch. Damn stupid idea. If you want to restart X there are other ways of doing it.