The gnome-shell card dead solution

  

When switching applications in development, when the card is stuck. Nothing can be entered is the most troublesome. At first, this is only restarted by power, but the cost is too high. Later, I found two better methods.

Method 1: Restart lightdm

1: Press ctrl+alt+F1, enter terminal mode, log in as root user

2: Execute: /etc/init.d/lightdm restart

3: Re-login at this time

Method 2: kill gnome-shell

1: Press ctrl+alt +F1, enter terminal mode, log in as root user

2: Execute: ps -ef| Grep gnome-shell, find gnome-shell pid

3: Execute: kill -9 gnome-shell-pid, kill gnome-shell, then the system will start gnome-shell.

Obviously Still the first method will cause the program of the graphical interface to be completely killed, and it is not a good solution.

The second method is to restart gnome-shell without any influence on other graphical interface programs, so of course it is recommended This kind of.

Copyright © Windows knowledge All Rights Reserved