Ubuntu gnome 17.04 freezes on shutdown

5,463

I seem to be having the same issue with Ubuntu GNOME 17.04 on an XPS 9560, even reproducing your settings/details freeze, which I hadn't though to check before. It appears to be related to the graphics interface and drivers. From exploring a variety of message boards, I see that there is a huge amount of discussion about graphics problems with Ubuntu causing lockups, in particular with the Nvidia GPU's. (I'm assuming you have one of these...if not, I'm not sure if the following would work.)

Long story short, I got my machine back into a stable state by installing the Nvidia drivers over the default nouveau graphics drivers. But even this has some caveats, which requires a bit of extra work. Below are the steps I followed and the issues that arose.

First, get the Nvidia drivers using the Software & Updates tool from the GNOME applications. Go to the Additional Drivers tab, click the "Using NVIDIA binary driver" option, and then "Apply Changes".

This will by default run the Nvidia card all the time. In principle this is fine, and I had minimal trouble shutting down and booting, though the latter takes a little longer than before. In practice, if like me you use your laptop almost all the time on battery and doing graphics non-intensive tasks, it is a bit of a power hog. Typically 20-30 W while idling, compared with < 10 W when running through the built-in Intel graphics card. (I also use TLP for power management.)

Conveniently, the Nvidia driver installation also installs a handy NVIDIA X Server Settings app that allows switching between the graphics cards, at the cost of a logout/login. Not-so-conveniently, switching to the Intel card causes the login to hang indefinitely.

So, the second-order part of this solution is to modify the kernel boot-up options as follows. (See discussion here: https://www.reddit.com/r/Dell/comments/63cavx/fixed_nvidia_1050_freezing_in_ubuntu_linux/) Edit the grub configuration file, e.g. by typing

sudo nano /etc/default/grub

into the terminal. Alter the variable GRUB_CMDLINE_LINUX_DEFAULT to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_rev_override=1"

Save and exit (Ctrl-X). Then update grub

sudo update-grub

I find that I can now freely switch between Nvidia and Intel cards without problems (so far).

Share:
5,463

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    I have a dell XPS 9560 and am running dual boot windows 10 / ubuntu gnome 17.04

    Everything has been working fine until recently where the screen / computer freezes on shutdown and reboot.

    It freezes showing the whatever is on screen including dash / dock and power levels etc.

    If it helps at all when I go to settings and click into details it freezes then after a few seconds.

    Can anyone suggest what has gone wrong?

    I have tried a fresh install and the same thing happens.