LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-01-2017, 05:22 PM   #1
mikou
LQ Newbie
 
Registered: Aug 2017
Distribution: Debian
Posts: 20

Rep: Reputation: Disabled
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.
 
Old 08-02-2017, 02:02 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,370

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
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.
 
Old 08-02-2017, 02:48 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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
 
Old 08-02-2017, 02:58 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
1 members found this post helpful.
Old 08-02-2017, 03:19 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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.
 
Old 08-02-2017, 05:40 PM   #6
mikou
LQ Newbie
 
Registered: Aug 2017
Distribution: Debian
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
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).
 
Old 08-02-2017, 05:43 PM   #7
mikou
LQ Newbie
 
Registered: Aug 2017
Distribution: Debian
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TheEzekielProject View Post
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.
 
Old 08-02-2017, 05:44 PM   #8
mikou
LQ Newbie
 
Registered: Aug 2017
Distribution: Debian
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
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.
 
Old 08-02-2017, 05:48 PM   #9
mikou
LQ Newbie
 
Registered: Aug 2017
Distribution: Debian
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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.
 
Old 08-02-2017, 05:55 PM   #10
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Do you have the latest BIOS update for your board?

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

Last edited by TheEzekielProject; 08-02-2017 at 05:58 PM.
 
Old 08-02-2017, 09:23 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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?
 
Old 08-03-2017, 01:26 AM   #12
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,978
Blog Entries: 33

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
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
 
Old 08-03-2017, 01:51 AM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 08-03-2017, 03:24 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,370

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Quote:
Originally Posted by mikou View Post
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)
 
Old 08-03-2017, 11:03 PM   #15
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system bell won't shut up bioe007 Slackware 15 06-20-2007 09:45 PM
System won't shut down, just reboots fatherg Linux - Hardware 0 10-22-2004 03:17 AM
redhat 8.0 - intel desktop mobos cannot shut down automaticly maxut Red Hat 3 03-18-2004 11:03 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration