LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   System won't shut down fully on Intel Desktop Board (https://www.linuxquestions.org/questions/linux-hardware-18/system-wont-shut-down-fully-on-intel-desktop-board-4175611081/)

mikou 08-01-2017 05:22 PM

System won't shut down fully on Intel Desktop Board
 
Hello,
I'm having a problem with shutting down my PC.
Hardware specs:
CPU Intel Core 2 Duo E8200
Intel Desktop Board DG33TL
3 GB RAM, 160 GB HDD, 350W PSU...
___________
If I wanna shut down my computer, then it'll hang on shutting down screen, fans are still running, but HDD will power off. If I'll suspend my PC to RAM and then wake up it, it won't power on my HDD correctly and it freezes.
___________
What I have tried:
1.) reinstalling my distro - I have tried Debian Stretch and Jessie, Ubuntu Trusty, Fedora 26
2.) updating BIOS to last version - this solved my problem for 1 week
3.) disabling UEFI boot
4.) forcing ACPI in GRUB
5.) shutting down with SysRq key and combination of another keys as is explained here https://askubuntu.com/questions/5080...ck-on-shutdown
___________
I don't have any problem with shutting down while I use Microsoft Windows. I think there is a problem with ACPI, but I don't know where.

Thanks to all who will help me with this problem.
Best regards,
mikou.

business_kid 08-02-2017 02:02 PM

Tell us what happens when you try each of these commands
1. sudo shutdown -h now #It should power off
2. sudo shutdown -r now #it should reboot
3. echo mem > /sys/power/state #it should suspend to memory. Disk should stop
4. echo disk > /sys/power/state # It should hibernate to disk.

TheEzekielProject 08-02-2017 02:48 PM

It sounds like you are dualbooting here. Did you make sure to turn off "Fast StartUp"
on Windows? If not, when "shutting down" Windows, it is actually being put into a hibernation and suspended to disk. If you boot linux while Windows is suspended, it can cause all kinds of issues. I would check on this first if you have not already

Shadow_7 08-02-2017 02:58 PM

What used to be:

# shutdown -h now

Is now, thanks to systemd:

# shutdown -H -P +0

YMMV depending on your distro. Although acpi-support still has /etc/acpi/powerbtn-acpi-support.sh using:

# shutdown -h -P now

in debian stretch.

jefro 08-02-2017 03:19 PM

I had a distro do that on a server for a while till a kernel update. Guess you could rule out Debian by trying other distro's. Flash drive install should be OK to test. If Debian usb flash drive works correctly then that may lead to issue. I assume it is stopping too fast.

mikou 08-02-2017 05:40 PM

Quote:

Originally Posted by business_kid (Post 5743424)
Tell us what happens when you try each of these commands
1. sudo shutdown -h now #It should power off
2. sudo shutdown -r now #it should reboot
3. echo mem > /sys/power/state #it should suspend to memory. Disk should stop
4. echo disk > /sys/power/state # It should hibernate to disk.

It didn't power off, however, rebooting is not problem. If I suspend it with that command, it froze while I wanted to wake up it, so it's same like powering off/rebooting/suspending from dialog in XFCE (xfce4-logout).

mikou 08-02-2017 05:43 PM

Quote:

Originally Posted by TheEzekielProject (Post 5743447)
It sounds like you are dualbooting here. Did you make sure to turn off "Fast StartUp"
on Windows? If not, when "shutting down" Windows, it is actually being put into a hibernation and suspended to disk. If you boot linux while Windows is suspended, it can cause all kinds of issues. I would check on this first if you have not already

I don't have dualboot, only one system is installed on my HDD. I tried to use Microsoft Windows with different HDD. However, thanks for your advice, it might be good solution.

mikou 08-02-2017 05:44 PM

Quote:

Originally Posted by Shadow_7 (Post 5743452)
What used to be:

# shutdown -h now

Is now, thanks to systemd:

# shutdown -H -P +0

YMMV depending on your distro. Although acpi-support still has /etc/acpi/powerbtn-acpi-support.sh using:

# shutdown -h -P now

in debian stretch.

Thanks for your advice, but it still freezes.

mikou 08-02-2017 05:48 PM

Quote:

Originally Posted by jefro (Post 5743463)
I had a distro do that on a server for a while till a kernel update. Guess you could rule out Debian by trying other distro's. Flash drive install should be OK to test. If Debian usb flash drive works correctly then that may lead to issue. I assume it is stopping too fast.

I also tried other distributions (Ubuntu, Fedora) and different HDDs. This problem happened also when I used Live CD.

TheEzekielProject 08-02-2017 05:55 PM

Do you have the latest BIOS update for your board?

EDIT: My bad. I missed that. I swear I read that 4 times haha

jefro 08-02-2017 09:23 PM

If other not related distro's do this then you have a problem. I guess you could look at bios for any settings that might affect this. Setting it all to factory or default may help. There are some acpi settings usually. I guess you could run memtest for a day just to see if that is hanging up. I get the feeling the power drops too fast in part of it. Maybe try different psu?

beachboy2 08-03-2017 01:26 AM

mikou,

One possible solution:
https://askubuntu.com/questions/7626...-shutting-down

Alternatively try:
https://askubuntu.com/questions/7645...utdown-restart

Edit /etc/default/grub line:


Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to


Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Run:


Code:

update-grub

Shadow_7 08-03-2017 01:51 AM

Is this NEW hardware?

The acpi=force is a good option. I have that plus acpi_backlight=vendor so I can fiddle with the backlight on my "new" laptop. Without those I have no control over the backlight and it's super bright by default. Well, limited control while running X I can use xrandr and --off to shut off the LCD. Looks a bit like this in the actual grub.cfg:

Code:

linux  /boot/vmlinuz-4.11.0-1-amd64 root=UUID=11111111-1111-1111-1111-111111111111 ro  quiet acpi=force acpi_backlight=vendor
Several other kernel parms that might help deal with it. If it's a very OLD machine then acpi=false might help since it might use APM. Although you might need a new kernel to enable those options depending on distro.

business_kid 08-03-2017 03:24 AM

Quote:

Originally Posted by mikou (Post 5743521)
It didn't power off, however, rebooting is not problem. If I suspend it with that command, it froze while I wanted to wake up it, so it's same like powering off/rebooting/suspending from dialog in XFCE (xfce4-logout).

Please give us a numbered reaction with what stops and what doesn't. Also the systemd command should be used (shutdown -H -P +0 or shutdown -h -P now depending on your distro)

AwesomeMachine 08-03-2017 11:03 PM

I've had more than one machine that simply halted instead of turning off. I had to press the power button to actually turn off the machine.


All times are GMT -5. The time now is 08:45 AM.