WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?  (Read 3304 times)

Offline magicloud

  • Newbie
  • *
  • Posts: 30
[SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
« on: November 28, 2013, 04:26:19 AM »
Hi,
  Put DontZap in ServerFlags used to work with Xorg 7.4 in 2.x. Now when I am working with 5.x, the same configuration does not work. I see (**) Option "DontZap" "false" in Xorg.0.log, but actually there is nothing happening.
« Last Edit: November 28, 2013, 08:13:11 PM by magicloud »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15001
Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #1 on: November 28, 2013, 04:51:04 AM »
Xorg-7.6 was patched for <ctrl-alt-backspace>, but I was unable to make the patch work for Xorg-7.7.

If you search these forums there was an explanation of a line to add to .xsession to enable this in Xorg-7.7

Offline magicloud

  • Newbie
  • *
  • Posts: 30
Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #2 on: November 28, 2013, 09:37:12 AM »
Xorg-7.6 was patched for <ctrl-alt-backspace>, but I was unable to make the patch work for Xorg-7.7.

If you search these forums there was an explanation of a line to add to .xsession to enable this in Xorg-7.7
Thanks.

I read the patch. It is pretty much what I did manually for the configuration files. And I failed to make it work....

I searched the forum with 'xsession zap 7.7' keywords, even using Google, but I did not find the explanation. Any more clues?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11909
Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #3 on: November 28, 2013, 10:44:05 AM »

Offline magicloud

  • Newbie
  • *
  • Posts: 30
Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #4 on: November 28, 2013, 08:12:46 PM »
I get it.
setxkbmap -option terminate:ctrl_alt_bksp

Offline neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 466
Re: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #5 on: February 27, 2025, 01:42:49 AM »
In TC15x86-64 I want to kill Xorg with ctrl+alt+backspace.

I tried to modificate
/usr/local/share/X11/xorg.conf.d/xorg.conf

Code: [Select]
Section "InputDevice"
   Identifier "Generic Keyboard"
   Driver "kbd"
   Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

but it doesn't work. I discovered that nowadays Xorg use many config files.
I modificated
/usr/local/share/X11/xorg.conf.d/xorg.conf.d/90-custom-kbd.conf
Code: [Select]
Section "InputDevice"
   Identifier "Generic Keyboard"
   Driver "kbd"
Option "XkbOptions" "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
but it doesn't work.

There are many different options.

keyboard.conf
00-keyboard.conf
90-custom-kbd.conf

My questions is "Is it possible to have out-of-the-box kill switch in Xorg.
Or put "sudo killall Xorg" in to menulist? I want to have ready solution in repo without any reconfiguration of my system.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11909
Re: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
« Reply #6 on: February 27, 2025, 09:36:31 AM »
Hi neonix
... Or put "sudo killall Xorg" in to menulist? I want to have ready solution in repo without any reconfiguration of my system.
It's already there. In the menu list, click exit. When the little  TC Exit Options  window
pops up, select  Exit to Prompt  and click OK. That will kill Xorg.

You can also get there by clicking the  Exit  icon in the wbar.