Solved killall Xorg

Hi

Is this a proper way to routinely exit X (back into console) with the following command?
killall Xorg

I am using Openbox desktop. And because my Thinkpad (laptop)'s right-mouse button is very hard to use, it is difficult for me to use the right-mouse button to get the GUI to exit the desktop. So I avoid using the GUI to exit. So I use command line to exit Xorg.

But killall sounds very extreme. Wondering if it will cause problem sooner or later. Like the sort of thing you want to avoid unnecessarily.
 
I can't comment on right or wrong, after all it's just a process. I usually close xorg by (2 methods):
#1 I have binding in x11-wm/i3 i.e. $mod+Shift+v to exit from i3 => xorg
#2 CTRL+ALT+(F1-F8) => switch to Virtual console and CTRL+C the startx!
 
this time is not bad kill ..
another alternative is kill or exit the last command in .xinitrc in your home folder
generaly is the WM
 
I like messing around with X -retro and when it goes wrong I use another terminal with CTL-F2 and pkill xorg to get out of X.
 
  • Thanks
Reactions: a6h
Absolutely, yes: +1. Unfortunately (or luckily?) some DEs disable that zap keys Ctrl+Alt+BkSpc to protect the innocent users from shooting themselves into their feet by accidently "discovering" how to kill their session & all work is dull... So one has to find the config how to enable that if one wants to have it. Luckily this is fairly easy with KDE :)
 
Hi

Is this a proper way to routinely exit X (back into console) with the following command?
killall Xorg

I am using Openbox desktop. And because my Thinkpad (laptop)'s right-mouse button is very hard to use, it is difficult for me to use the right-mouse button to get the GUI to exit the desktop. So I avoid using the GUI to exit. So I use command line to exit Xorg.

But killall sounds very extreme. Wondering if it will cause problem sooner or later. Like the sort of thing you want to avoid unnecessarily.
Openbox has a config file $HOME/.config/openbox/rc.xml that you can edit to include a keybinding for the Exit action. For help with key bindings, you can consult the relevant documentation.
 
Back
Top