Laptop "reboots" instead of powering off. Cannot shut it down.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mr_Furry_Tail

Laptop "reboots" instead of powering off. Cannot shut it down.

Post by Mr_Furry_Tail »

Hi Everyone!
I am running Linux Mint 18.2 Sonya and 4.10.0-32-generic kernel.
My problem is that sometimes, when I want to turn off my laptop, it goes dark as usual, but than immediately turns back on to the login screen. It does not matter how I do it, from the menu or doing "poweroff". Poweroff command gives no result, but error message that reads something like "cannot ...do-not-remember-what... operation is destructive" It happens randomly, maybe once a week or two. One I catch that glitch the only way I can power off the machine is holding the power button. After hard power off, the glitch disappears.
I looked into the log and see lines like that:

Code: Select all

Oct 16 22:24:24 Nitro-G kernel: [  828.503993] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160930/nsarguments-95)
But google says it is harmless warning and has nothing to do with my problem.
I have attached pieces of my /var/log/syslog that might have some clues, please help me figure out what causes such behaviour and how to stop it.
Feel free to ask any additional details / log files.
Thanks.

syslog syslog1
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12337
Joined: Sun Aug 09, 2015 10:00 am

Re: Laptop "reboots" instead of powering off. Cannot shut it down.

Post by deepakdeshp »

Please give following commands before you switch off .

Code: Select all

sync;sync
As an emergency mode , you can keep the on off switch pressed till it powers off. If it doesnt power off with this method, you may have an on off switch problem.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Mr_Furry_Tail

Re: Laptop "reboots" instead of powering off. Cannot shut it down.

Post by Mr_Furry_Tail »

deepakdeshp wrote:Please give following commands before you switch off .

Code: Select all

sync;sync
As an emergency mode , you can keep the on off switch pressed till it powers off. If it doesnt power off with this method, you may have an on off switch problem.
Thanks! I'll try doing that and see if it still happens.
The on off switch always worked so far.
User avatar
BG405
Level 9
Level 9
Posts: 2507
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: Laptop "reboots" instead of powering off. Cannot shut it down.

Post by BG405 »

Try holding CTRL + ALT & then pressing SysRQ then, leaving a few seconds between each keypress, R E I S U O & see if that powers the machine off successfully. There are apparently a few variants (which I will research) if this doesn't work.

This is a temporary measure; will need to look into a proper fix. :wink:
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------Acer Aspire One D255E - LM21.3 Xfce
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Two ROMS don't make a WRITE
Mr_Furry_Tail

Re: Laptop "reboots" instead of powering off. Cannot shut it down.

Post by Mr_Furry_Tail »

BG405 wrote:Try holding CTRL + ALT & then pressing SysRQ then, leaving a few seconds between each keypress, R E I S U O & see if that powers the machine off successfully. There are apparently a few variants (which I will research) if this doesn't work. ...
Thank you very much for your response, I'll try your temporary solution next time!

Actually I had another episode of this today.
It happened after closing the lid and opening it back several times, and executing "sync" command as suggested in previous reply did not help. I'll post the logs after lunch.

I am starting to think that I might screw the OS installation in a some way and this is a consequence. As I remember, I tried to do full disc encryption installation and it did not work in some way, and than re installed OS with just home folder encrypted. Now, when I power on the machine, first it asks me for a password to decrypt some partition (crypt something, I believe it is swap), and then I see actual login screen and need to enter my password once again. But even if I enter invalid password for the first time, everything seems to work fine. And it also asks for a password during installation of some updates (like new kennels).

UPD:

Code: Select all

goog@Nitro-G ~ $ sync
goog@Nitro-G ~ $ poweroff
Failed to power off system via logind: Transaction is destructive.
Failed to start poweroff.target: Interactive authentication required.
See system logs and 'systemctl status poweroff.target' for details.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.
goog@Nitro-G ~ $ sync;sync
goog@Nitro-G ~ $ poweroff
Failed to power off system via logind: Transaction is destructive.
Failed to start poweroff.target: Interactive authentication required.
See system logs and 'systemctl status poweroff.target' for details.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.
goog@Nitro-G ~ $ ssudo poweroff
No command 'ssudo' found, did you mean:
 Command 'sudo' from package 'sudo-ldap' (universe)
 Command 'sudo' from package 'sudo' (main)
ssudo: command not found
goog@Nitro-G ~ $ sudo poweroff
[sudo] password for goog: 
Failed to start poweroff.target: Transaction is destructive.
See system logs and 'systemctl status poweroff.target' for details.
goog@Nitro-G ~ $ 
Log for today Tried to power off about 8 am.
Locked

Return to “Other topics”