Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: magicloud on November 28, 2013, 04:26:19 AM

Title: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: magicloud 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.
Title: Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: Juanito 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
Title: Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: magicloud 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?
Title: Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: Rich on November 28, 2013, 10:44:05 AM
Hi magicloud
Maybe this is of some use:
http://forum.tinycorelinux.net/index.php/topic,16263.msg96450.html#msg96450
Title: Re: How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: magicloud on November 28, 2013, 08:12:46 PM
I get it.
setxkbmap -option terminate:ctrl_alt_bksp
Title: Re: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: neonix 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.
Title: Re: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: Rich 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.
Title: Re: [SOLVED}How to kill Xorg with Ctrl Alt Backspace in 5.x?
Post by: PDP-8 on June 23, 2025, 06:13:24 PM
Just a little followup for newbs and configs ..  I use the gui menu to exit to the command prompt, you are left at the commandline of course.

But they may be tempted to type startx again.

I prefer to *totally* log out from the cli typing exit.  And at the next login prompt, type tc to start it all up again.  I normally do this if I make changes to .Xdefaults for example...