LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-11-2015, 12:29 PM   #1
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Rep: Reputation: Disabled
Shutdown and reboot issues


Hello,

I'm using Debian Sid xfce on my laptop. When i try to shutdown, the screen always stays on (the fans turn off). It says "reached target shutdown", then this happens: http://oi67.tinypic.com/21o4fon.jpg and then it hangs. I have to press the power button to shut it down. (I have the same problem with restart). I tried various commands (shutdown -h, shutdown -P, systemctl poweroff etc) but all of them failed. I also tried to add acpi=force, acpi=off to /etc/default/grub but the problem persists. I had the same issues with Jessie but other distros work fine. Please help, this is driving me crazy..
 
Old 12-11-2015, 12:59 PM   #2
cesarbergara
Member
 
Registered: Feb 2012
Location: Buenos Aires, Argentina
Distribution: Debian, Suse, Mandrake,
Posts: 92

Rep: Reputation: Disabled
Hi. I had a problem with Debian 7 and 8. But i resolve it with

'halt'

This is similar to 'shutdown -h now' but can't reset.
 
Old 12-11-2015, 01:02 PM   #3
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cesarbergara View Post
Hi. I had a problem with Debian 7 and 8. But i resolve it with

'halt'

This is similar to 'shutdown -h now' but can't reset.
I tried 'halt' but it didn't work
 
Old 12-11-2015, 03:51 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
have you tried
Code:
sudo shutdown -h now
or, which commands did you use?
 
Old 12-11-2015, 04:37 PM   #5
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
have you tried
Code:
sudo shutdown -h now
or, which commands did you use?
I tried:

poweroff
halt
shutdown -h now
shutdown -P now
systemctl poweroff
init 0
 
Old 12-12-2015, 01:43 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by brcr View Post
I'm using Debian Sid xfce on my laptop. When i try to shutdown, the screen always stays on (the fans turn off). It says "reached target shutdown", then this happens: http://oi67.tinypic.com/21o4fon.jpg and then it hangs
ok, i heard about something like this before, maybe even had it on one of my laptops (this is a laptop, right?).
had something to do with acpi, iirc.
you can try adding some options to your kernel command line (grub) - search your laptop model and similar problems, you will see what i mean.
 
Old 12-12-2015, 08:28 AM   #7
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Update

This is what i get now when i try to shutdown http://oi63.tinypic.com/14nisjq.jpg

Does this help?


Update 2

Reboot works with Alt + sysrq + REISUB key combination

Last edited by brcr; 12-12-2015 at 09:53 AM.
 
Old 12-12-2015, 10:06 PM   #8
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
I had the same problem when i did an apt-get dist-upgrade after changing my sources.list to Sid. This will take up a lot of time and diligence, and may or may not work for you. Download the latest stable kernel (i prefer the latest longterm), compile it from source exactly as per the kernel compile guide by @m_yates in the Sticky here in the Debian forum. This should take care of the shutdown/reboot issue permanently, it did for me. But i advise this only after you have explored all other avenues. It will take a lot more time and effort than a simple reinstall so it's your call whether it's worth the trouble.

Last edited by mzsade; 12-13-2015 at 12:16 PM.
 
Old 12-13-2015, 12:13 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
try adding "acpi=vendor" or some such to your grub command line.
it's probably not the exact right command, but please do some web searches based on that, then come back and tell us what you found & tried.
 
Old 12-13-2015, 02:15 PM   #10
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mzsade View Post
I had the same problem when i did an apt-get dist-upgrade after changing my sources.list to Sid. This will take up a lot of time and diligence, and may or may not work for you. Download the latest stable kernel (i prefer the latest longterm), compile it from source exactly as per the kernel compile guide by @m_yates in the Sticky here in the Debian forum. This should take care of the shutdown/reboot issue permanently, it did for me. But i advise this only after you have explored all other avenues. It will take a lot more time and effort than a simple reinstall so it's your call whether it's worth the trouble.
I tried to upgrade my kernel from 4.2 to 4.3 but it didn't work. I will try compiling it as a last resort. Thank you.

Quote:
Originally Posted by ondoho View Post
try adding "acpi=vendor" or some such to your grub command line.
it's probably not the exact right command, but please do some web searches based on that, then come back and tell us what you found & tried.
Thanks.
I googled this and someone suggested to edit the /etc/default/grub lines like this:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"
I did it and it worked 2 times. On the third shutdown it hanged again. I also tried only the "acpi_backlight=vendor" option but it failed. This is getting frustrating

Last edited by brcr; 12-13-2015 at 02:21 PM.
 
Old 12-13-2015, 03:09 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
some trial and error is involved, i guess.
how about testing one acpi option first, and only then another one?
 
Old 12-13-2015, 03:39 PM   #12
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
some trial and error is involved, i guess.
how about testing one acpi option first, and only then another one?
This is what i've been doing for some days. I test every acpi option i can find. So far, the only options that worked for a few times are the one i mentioned above and reboot=bios.

I tried acpi=force, acpi=off, acpi=noirq, noapic, reboot=bios, reboot=acpi, reboot=pci, reboot=force
 
Old 12-19-2015, 07:27 PM   #13
kiyop
Member
 
Registered: Jun 2015
Distribution: Debian, Arch
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by brcr View Post
Reboot works with Alt + sysrq + REISUB key combination
Then, Alt + sysrq + REISUO may poweroff.
 
Old 12-20-2015, 04:38 AM   #14
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
Quote:
Originally Posted by kiyop View Post
Then, Alt + sysrq + REISUO may poweroff.
OP's lucky that worked for him, thought i'd try out 4.3 on my Sid install by installing it from the repos and REISUB didn't work at all, system just froze with "watchdog did not shutdown". Neither did adding "reboot=bios" to the "GRUB_CMDLINE_LINUX_DEFAULT" line in /etc/default/grub..Flushed it immediately. It's some bug with systemd and as i said and insist, compiling the kernel from source is the only way a kernel upgrade will work without any glitches..in such cases.

Last edited by mzsade; 12-20-2015 at 04:41 AM.
 
1 members found this post helpful.
Old 12-20-2015, 11:49 AM   #15
brcr
LQ Newbie
 
Registered: Dec 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Could it be some issue with my hardware?

I was away from home for a few days. I upgraded my BIOS but still no luck. I have no problem with windows.

Can i simulate somehow the REISUO combination with a script or something like that, instead of using the keyboard every time?

Thank you for your help guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC18: running a command on shutdown (or reboot) before every other shutdown operation P5music Fedora 3 04-23-2013 03:56 PM
Unable to shutdown/reboot server, no shutdown process running dctw Linux - Server 5 03-31-2010 05:46 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM
SUSE 11 shutdown/reboot issues. linuxlover.chaitanya SUSE / openSUSE 4 08-21-2008 01:15 AM
Reboot,shutdown,logout issues in 10.1 Volt Slackware - Installation 3 08-12-2005 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:40 PM.

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