Page 1 of 1

MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 5th, '14, 20:17
by endat
My Mageia installation takes a long time to shut down for some reason. Sometimes I get impatient and close the laptop lid before it finishes totally shutting down.. This interrupts the shutdown, it will not continue shutting down while the lid is closed. If I leave my laptop plugged in, I can come back to it the next day and when I open the lid, it is still shutting down because it stopped shutting down when I closed the lid yesterday.

I do not want to keep waiting for it to finish shutting down before I put my laptop away. How can I fix this?

Re: MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 5th, '14, 21:49
by doktor5000
Press Esc key during shutdown or have a look in the last lines of the logs from last boot to see where it hangs, I've posted in your previous thread on the same topic how to do that.

Apart from that you can still use alternate ways to shutdown, like suggested in your previous thread (which you seem to have ignored)
viewtopic.php?p=49790#p49790

Re: MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 5th, '14, 22:08
by endat
It hangs when I close the laptop lid. The output stops as soon as I close the lid and resumes shutting down when I open the lid again. Not at any certain point..

I have not ignored any suggestions, I just havent seen any that were helpful in this situation.

Are you suggestion that I...
OptionA: Open a terminal, login as root, and run "shutdown -h now"
OptionB: HOLD the power button until it dies
... every time I shutdown?

Re: MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 5th, '14, 22:39
by doktor5000
endat wrote:OptionA: Open a terminal, login as root, and run "shutdown -h now"

That (actually it was poweroff, which does exactly the same thing) was the suggestion from the other thread, just click the link I've posted.
Just checked, poweroff an be run as normal user and takes 3 seconds for complete shutdown here. You should even be able ro run it via Alt+F2 dialog, so no need to open a terminal.

endat wrote:OptionB: HOLD the power button until it dies
... every time I shutdown?

You can try that to, but I'd not suggest that until the machine is severely frozen.
As it will not unmount filesystems and so on, so you'll risk data loss and/or hardware damage.

Re: MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 9th, '14, 20:01
by jtwdyp
endat wrote: Sometimes I get impatient and close the laptop lid before it finishes totally shutting down.. This interrupts the shutdown,
--{{snip}}--
I do not want to keep waiting for it to finish shutting down before I put my laptop away. How can I fix this?


Perhaps your asking the wrong question...

Do you have much use for suspend/hibernation functions? I think they are triggered by closing the lid to avoid overheating that can otherwise affect {at least some} laptops. But if you don't close the lid for long while it's running, and you found out how to disable suspend/hibernation functions, they would no longer be able to interrupt the poweroff sequence. Unfortunately I'm not sure how to disable the suspend/hibernation functions... So all I can do is offer this hint.

Re: MGA4: Closing the laptop lid interrupts shutdown.

PostPosted: Aug 10th, '14, 01:30
by doktor5000
jtwdyp wrote:Unfortunately I'm not sure how to disable the suspend/hibernation functions...

Depends on the desktop environment used. For KDE it would be systemsettings -> powermanagement and check all profiles for action on lid close, and what to do after idling for X mins.

But it can also be disabled systemwide, check e.g. viewtopic.php?f=8&t=6340