Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2085  / 3 Years ago, wed, october 20, 2021, 2:06:33

whenever I try to restart or shutdown my laptop it freezes up completely and never continues with the process.



Things I have attempted:




  • Setting GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force apm=power_off" in /etc/default/grub

  • Adding apm power_off=1 to /etc/modules

  • Updating everything fully

  • Installing Nvidia graphic drivers



This doesn't only occur on shutdown, it sometimes stalls from regular use.



I also went through the logs and here is everything in the important section:
Screenshot of logs



Any help is extremely appreciated!


More From » drivers

 Answers
2

I was planning on just marking @Bernard's answer as correct when it started working, but then I wanted to go one step further and show y'all the steps I did to fix it while still using GDM3.



The first thing I did was undo all of my previous attempts including the Nvidia driver, and I noticed that without the Nvidia driver it did shutdown properly somehow. The odd part is, later on I figured out that secure boot was preventing Nvidia's driver to even enable so I'm not sure what happened on that front.



After this realization, I properly loaded in Nvidia's driver and reached the same issue Bernard probably experienced.



On shutdown I received a warning saying "Failed to connect to lvmetad", which cancelled the shutdown and looped to the login screen.



After some Googling I came across this post on linuxquestions.org which told me the following step.




Originally Posted by AwesomeMachine View Post
Try first to disable lvmetad from /etc/lvm/lvm.conf and set use_lvmetad = 0. Use a live CD if you have to.




This allowed me to shutdown normally, but there is still a message on startup which I will deal with in the future.



The reason I made this post, is due to my experience with the hassle regarding Nvidia drivers and Ubuntu, I want to make it easier for the next person who comes around, hopefully this helps.



Thank you again Bernard for pointing me in the right direction



Edit: Solved the lvmetad error showing on startup by running




sudo update-initramfs -k KERNEL_VERSION -u ; sync




after changing the value in the config. Ps: replace KERNAL_VERSION with your kernal version


[#7917] Wednesday, October 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fertion

Total Points: 436
Total Questions: 121
Total Answers: 156

Location: England
Member since Sun, May 21, 2023
1 Year ago
;