Gnome Shell quick reload via console (like alt + f2 and r)
Gnome Shell can freeze sometimes, you cannot move any window but keyboard and console works fine. Normally you would press alt+f2 and input r and press enter. Sometimes this does not work. The solution is this command:
1 |
gnome-shell --replace |
If this does not help, you can go to tty (alt + ctrl + f2), login and use this command:
1 |
sudo service gdm restart |
You might need to change gdm to lightgdm depends on distro version you have installed.
UPDATE 24/08/2016
Other helpful commands from tty (alt + ctrl + f2) that should not close all your apps but just reload gnome-shell instead:
1 |
killall -1 gnome-shell |
(you may need to replace number 1 with 3 but I personally tested 1 and worked perfectly – reloaded frozen gnome-shell without closing all apps) or
1 |
DISPLAY=:0 gnome-shell --replace |
(you may need to replace number 0 with 6 or 7)