Page 1 of 1

Laptop sometimes reboots after shutting any Puppy down

Posted: Mon Nov 08, 2021 6:48 am
by Feek

Hello,
sometimes when I press shutdown in any Puppy (or Fatdog), everything is closed as expected but the laptop starts rebooting instead of the power off.
This behaviour does not happen always and I can not find the cause of it, some rule of what to do to avoid it.

E.g. for the last 2 months everything was fine while I used only the Puppies.
One week ago I booted windows7 and since then I cannot turn off the machine with Puppy (I have to boot windows7 and do the shutdown from there).

Puppy versions I use most often: Fossapup64 9.5, Fatdog812rc, Bionicpup64 8.0 (the issue is the same in all versions).
Laptop make and model: Lenovo Thinkpad edge E530 (windows7 preinstalled).
Puppy manual frugal install --> bootloader on usb stick (extlinux), Puppy files on the harddrive (ext3 partition).

Does anyone have any idea or similar experience?


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Mon Nov 08, 2021 7:30 pm
by bigpup

When you shutdown Windows 7.
Always do a complete full normal shutdown.
Do not shutdown in hibernate!!
Hibernate does not fully release control of the drive from Windows.


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Mon Nov 08, 2021 8:33 pm
by Feek

Thanks for the advice, I know about it.

I always shutdown windows the same way - complete full normal shutdown (as you say).
I do not use hibernation in windows.
I have a little suspicion that it could have something to do with battery power management.


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Mon Nov 08, 2021 10:16 pm
by williams2

It is usually the acpi driver that allows Linux to poweroff.
Acpi also supports suspend, see /etc/acpi.
Acpi also supports battery power management.

When running BionicPup64, I usually just press the power button to poweroff.
(Just a normal, quick press and release, no need to hold the power button for 5 to 10 seconds.)

What does this do: grep -i acpi /var/log/messages

I have to boot windows7 and do the shutdown from there

You should be able to poweroff the machine just by giving the power button a normal, quick press,
when the machine is not running Linux or Windows.
Easiest way is probably to press the power button when the boot manager appears.
When you get the choice of booting Puppy or MS Windows, just give the power button a normal, quick press to poweroff the machine.

This should also work at any boot menu, or if FreeDos is running, for example.

Also, the machine should immediately reboot if you press ctrl+alt+del
(from the boot menu, not when Linux or MS Windows is running.)

You can reboot Puppy by pressing ctrl+alt+del but not while Xwindows (X, Xorg) is running.
You must kill X first, for example, by pressing ctrl+alt+backspace
then press ctrl+alt+del to reboot Puppy.
And of course, giving the power button a quick press when it gets to the boot menu will power off the machine.


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Tue Nov 09, 2021 8:01 am
by redquine

I had the same issue with a couple of older laptops - and yes, it was power management. Fixed it by adding the bootcodes

Code: Select all

pfix=noapic,nolapic

I was advised to try just noapic first and add nolapic if that didn't work - although for the life of me, I can't remember why!


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Tue Nov 09, 2021 5:05 pm
by Feek

Thank you all for your replies!

@williams2
it is good to know that the power button can be used this way (I was told to use it only for turning the machine on and then do not touch it with explanation that the shutdown will do the operating system).
Thanks for very useful tips.

I decided to check all possible settings in power manager in windows7.
Although the hibernation was disabled all the time, there are bunch of other options to configure. E.g. the hybrid sleep was active when the laptop uses energy from battery, so I disabled it. In fact I disabled more items here like "usb selective suspend setting".
Then I rebooted into Fossapup64 and this time the shutdown was fine (without reboot).
So it seems that by disabling „something“ is the problem solved but I don´t know what specific item did the effect.
Time will show wether it's really ok.


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Sat Oct 15, 2022 3:25 pm
by Feek
Feek wrote: Mon Nov 08, 2021 6:48 am

sometimes when I press shutdown in any Puppy (or Fatdog), everything is closed as expected but the laptop starts rebooting instead of the power off.
This behaviour does not happen always and I can not find the cause of it, some rule of what to do to avoid it.

This problem has not yet completely disappeared, although it only appears sometimes and has a simple solution suggested by williams2 (poweroff the machine just by giving the power button a normal, quick press, when the machine is not running Linux or Windows. Easiest way is probably to press the power button when the boot manager appears).

However, I discovered today that the wake-on-LAN feature can cause a similar problem on some CPU's:
https://wiki.archlinux.org/title/Wake-on-LAN

"It is known that some motherboards are affected by a bug that can cause immediate or random wake-up after a shutdown whenever the BIOS WoL feature is enabled"

"....When I have this enabled, I can indeed start the machine using the community/wol package, but there is an undesired side-effect: about 25% of the time I issue a `shutdown -h now` the box shuts off only to turn on all by itself several seconds later. If I disable the option in the BIOS, this does not happen...."

I disabled wake-on-LAN in Bios and will see if that fixes the problem.


Re: Laptop sometimes reboots after shutting any Puppy down

Posted: Sat Oct 15, 2022 5:38 pm
by williams2

If acpi is not working properly reboot probably works
but poweroff should eventually halt the kernel
with a message something like "it's safe to poweroff now"
and you can press the power button to poweroff.

I think that WoL requires that the charger is plugged in.
i don't think WoL works on just battery power.

Also WoL requires the network to be active and connected at poweroff

It says here https://wiki.archlinux.org/title/Power_ ... p_triggers

If the nouveau driver is used, the reason for instantaneous wakeups may be a bug in the driver, which sometimes prevents GPU from suspending

I don't think that is your problem,