- #1
- 2,138
- 2,713
Ubuntu has given me a far more stable working system compared to Windows and its buggy updates. But, once in a while, I do find GNOME becoming slow or even crashing. If I find that the GUI is becoming unresponsive, I promptly restart GNOME using
But sometimes, the GUI becomes unresponsive such that the above does not work. The only option I have got is to use
Note that even when the shell is frozen, I can still go to a TTY using
Given that Linux has given its users the freedom to use different desktop environments, I guess that the underlying OS is not tightly "tied" with the desktop GUI, when compared to Windows. This rouses my question: is it possible to restart GNOME from a TTY command-line, without killing the running applications?
Upon searching the net, I found this question on AskUbuntu. The most upvoted answer states one should use
There are other answers to the question on AskUbuntu, and according to the comments, most don't (or occasionally) work.
Is there any other way that is known to work, and will not kill the running applications but restart GNOME shell?
Alt
+ F2
→ r
→ Enter
This does the job most of the time, and GNOME works properly again.But sometimes, the GUI becomes unresponsive such that the above does not work. The only option I have got is to use
Alt
+ SysRq
+ REISUB
. But this will reboot the system, and I will have to re-open all applications and lose unsaved work, if any.Note that even when the shell is frozen, I can still go to a TTY using
Ctrl
+ Alt
+ Fn
.Given that Linux has given its users the freedom to use different desktop environments, I guess that the underlying OS is not tightly "tied" with the desktop GUI, when compared to Windows. This rouses my question: is it possible to restart GNOME from a TTY command-line, without killing the running applications?
Upon searching the net, I found this question on AskUbuntu. The most upvoted answer states one should use
killall -3 gnome-shell
. Some comments say this works. I haven't tried it yet, but I am a bit sceptical: -3
corresponds to SIGQUIT
, which, according to this, is the harshest of ignorable kill signals, and the process receiving the signal is expected to terminate itself as soon as possible without saving its state. So, the process is not expected to restart itself. The first comment under the above answer on AskUbuntu says that -3
should be replaced by -1
(SIGHUP
), but that too is a kill signal and not a restart signal.There are other answers to the question on AskUbuntu, and according to the comments, most don't (or occasionally) work.
Is there any other way that is known to work, and will not kill the running applications but restart GNOME shell?