9

I am having this weird problem in Ubuntu 22.04. My laptop gets stuck at the shutdown screen every time I use shutdown and I have to manually press the power button for 5 seconds to turn the machine off.

I've tried this solution. it does not work for me. please help me to solve this issue.

saroven
  • 91
  • 1
  • 1
  • 2

6 Answers6

12

I recently upgraded to Ubuntu 22.04.3 and, both the machines that I upgraded, faced this issue.

For me the issue was fixed on both the machines by installing the Nvidia driver version applicable for the Nvidia graphics card on the machines. This is the same solution that is linked in the question, and mentioned here.

The graphics cards on my machines were GeForce RTX 3050 and GeForce RTX 3050 Ti, so I picked the correct driver version from this site. In essence, the search on the site is just used to identify the correct driver version.

enter image description here

Replacing the Nouveau driver by the Nvidia driver was done by simply installing the Nvidia driver (version 535 in my case). Specifically, I didn't have to explicitly remove the nouveau driver. Just running the command below worked for me.

Note: It's worth mentioning that don't just copy paste and run the command from below, but replace the 535 in the driver version with the driver version applicable for your hardware, the one identified from the search mentioned earlier.

$ sudo apt install nvidia-driver-535

Following a reboot, the machines were restored to their normal shutdown behaviour.

Update

Another point mentioned by Capitoneo in his answer is also relevant. The Additional Drivers section was blank after the upgrade to 22.04. After following the above steps even the additional drivers list got restored.

Dhwani Katagade
  • 383
  • 5
  • 11
1

just say my experience (on ubuntu22 today)
//not applicable in all situations

check last poweroff log

after boot, check previous power off syslog.

journalctl -b -1 -r
  • -b -1 //previous boot
  • -r //show log in reverse order
Nov 11 20:10:45 u22 systemd[1]: et.service: Failed with result 'timeout'.
...
Nov 11 20:10:45 u22 systemd[1]: cups-browsed.service: Failed with result 'timeout'.
...
Nov 11 20:09:16 u22 systemd[1731]: Reached target Shutdown. 

It really wait 90 sec timeout..

disable stuck service

mine was 2 service stop timeout,
// 90 seconds force stop as default.

  • et.service
  • cups-browsed

I don't use them, stop & disable it.

sudo systemctl stop et.service
sudo systemctl disable et.service

sudo systemctl stop cups-browsed sudo systemctl disable cups-browsed

then poweroff succeed in 5 seconds.

ref: https://www.cnblogs.com/apirobot/p/14528996.html

yurenchen
  • 471
1

Last year I encountered an issue where my laptop wouldn't shut down properly requiring a manual power button press. I resolved this by installing the correct Nvidia graphics card driver as others had mentioned above and on other forums, however after updating to Ubuntu 22.04 the problem resurfaced. The laptop would hang on a black screen indefinitely during shutdown. Here's how I fixed it:

  1. Purge all Nvidia-related packages:

    sudo apt-get remove --purge '^nvidia-.*'
    sudo ap remove --purge '^libnvidia-.*'
    sudo apt remove --purge '^cuda-.*'
    
  2. Reboot the laptop:

    sudo reboot
    
  3. Update the system:

    sudo apt update && sudo apt upgrade
    
  4. Reboot to test it with sudo reboot

And voila, my system is shutting down properly. After these steps, when I checked the Software & Updates app -> Additional Drivers, I noticed that the graphics card driver reverted to the X.org X server - Nouveau display driver.

karel
  • 122,292
  • 133
  • 301
  • 332
0

I just did sudo apt update and sudo apt upgrade and it fixed the issue for me.

0

For me the issue was resolved by installing the GPU driver , NVIDIA in mycase GEFORCE RTX 3050, which I downloaded from the website https://www.nvidia.in/Download/index.aspx?lang=en-in

  1. Ensure cc is already installed in your system in order to compile the driver sudo apt install build-essential

  2. Before Installing the driver, be ensure that service of xserver must be stopped, use following command

sudo service lightdm stop

  1. goto tty terminal sudo init 3

  2. Enter login and password and then go to folder where the driver is downloaded and execute the following command sudo ./NVIDIA-Linux-x86_64-535.104.05.run

Amul Bhatia
  • 398
  • 2
  • 6
  • 14
0

When I encounter a power off issue, I troubleshoot by testing different kernel parameters. I do this by editing the /etc/default/grub file and adding the parameter to the GRUB_CMDLINE_LINUX_DEFAULT variable. I then test each parameter individually as follows:

acpi=force
acpi=noirq
acpi=off
pci=noacpi
pci=nomsi
apm=power_off
reboot=force
reboot=pci
reboot=force
reboot=efi
noapic
noacpi
acpi_osi=!
acpi_osi=Linux