site  contact  subhomenews

Restore ctrl-alt-backspace to exit from X

May 06, 2026 — BarryK

It used to work in the old pups. /etc/X11/xorg.conf had this:

Section "ServerFlags"
# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...
Option "RandR" "on"
# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...
Option "DontZap" "false"
EndSection

However, many years ago, Xorg stopped recognising "DontZap", as explained here:

https://unix.stackexchange.com/questions/375/how-to-enable-killing-xorg-with-ctrlaltbackspace

Forum member Caramel discovered this, and posted the fix here:

https://forum.puppylinux.com/viewtopic.php?p=169477#p169477

I have implemented this. /etc/X11/xorg.conf.d/10-evdev-puppy.conf now has this:

Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbRules" "xorg"
Option "XkbModel" "pc102" #xkbmodel0
Option "XkbLayout" "us" #xkeymap0
#Option "XkbVariant" "" #xkbvariant0
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Mystery solved!    

Tags: easy