LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2016, 08:27 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post "halt" command can't shutdown my system.


Hello.
I use Debian 8.6 amd64 and when I use "halt" command via root account then it can't shutdown my system completely! I mean is that "halt" command close all programs and...but show em a black screen and a text like "System halted" but my case is powered on!!

Any idea?

Thank you.
 
Old 12-06-2016, 08:41 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
it just shuts you windows, but your system is still running?
Can you rephrase that?

Debian Shutting down the system

Last edited by BW-userx; 12-06-2016 at 08:42 AM.
 
Old 12-06-2016, 08:44 AM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Try:
Code:
sudo shutdown -h now
If that doesn't work; make this change to the grub file: (make a copy of the original so you can change it back if it doesn't work.

Code:
GRUB_CMDLINE_LINUX_DEFAULT=quiet splash noapic irqpoll
OR w/0 irqpoll:-
 
1 members found this post helpful.
Old 12-06-2016, 10:06 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by BW-userx View Post
it just shuts you windows, but your system is still running?
Can you rephrase that?

Debian Shutting down the system
Yes, System coming to an state that I just see a black screen and my system Case is powered on.
 
Old 12-06-2016, 10:11 AM   #5
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
How about
Code:
# poweroff
 
Old 12-06-2016, 10:12 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hack3rcon View Post
Yes, System coming to an state that I just see a black screen and my system Case is powered on.
Halt is and is suppose to shut down you system completely, even according to debain, in that page link I posted. do you have power management options on setting what does when when you preform an action on your laptop? ie. push your power button causes your system to either go to sleep or power down? chaning them settings may help.

Try issuing the 'shutdown -h now' command just to see if you get the same results.

Last edited by BW-userx; 12-06-2016 at 10:13 AM.
 
Old 12-06-2016, 12:06 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
did you try: halt -p
 
1 members found this post helpful.
Old 12-06-2016, 12:15 PM   #8
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
`halt` isn't meant to poweroff a machine unless explicitly told to do so. From the man page:

Code:
...tells the kernel to halt, reboot or power-off the system.
Operative word: "or"

From the man page:

Code:
-p     When halting the system, switch off the power. This is the default when halt is called as
       poweroff.
So, as colorpurple21859 says, as root (or with sudo, or whatever you use):

Code:
# halt -p
 
1 members found this post helpful.
Old 12-06-2016, 01:22 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by notKlaatu View Post
`halt` isn't meant to poweroff a machine unless explicitly told to do so. From the man page:

Code:
...tells the kernel to halt, reboot or power-off the system.
Operative word: "or"

From the man page:

Code:
-p     When halting the system, switch off the power. This is the default when halt is called as
       poweroff.
So, as colorpurple21859 says, as root (or with sudo, or whatever you use):

Code:
# halt -p
well then, my halt has always shut me down completely, debian, Slackware, Void linux, Ubuntututu, crunchbang ... on three different laptops, so ... that is where i got lost.

Last edited by BW-userx; 12-06-2016 at 01:23 PM.
 
Old 12-06-2016, 06:29 PM   #10
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
I always use `shutdown -h now`. It's what I learned. *Shrug*
 
Old 12-06-2016, 06:36 PM   #11
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,001
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Just because of my own experience, is your system by any chance a broadwell-based intel processor?

I ask because none of my Broadwell system will shutdown via halt (or shutdown -h now). Older, haswell systems do. Newer, Skylake systems do. But neither of my Broadwells do.
 
Old 12-06-2016, 06:41 PM   #12
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
checking in with sysv and systemd:

Code:
telinit 0
systemctl isolate poweroff.target
 
Old 12-12-2016, 10:40 AM   #13
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Thank you.
problem solved via "halt -p". In Debian 7 I can use "halt" for shutdown but in Debian 8 it need "-p".
 
Old 09-11-2019, 01:46 PM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by hack3rcon View Post
Thank you.
problem solved via "halt -p". In Debian 7 I can use "halt" for shutdown but in Debian 8 it need "-p".
Indeed, I got rather annoyed all my haswell systems will not power down completely with Debian 9. A google search leads me to this page after finally getting frustrated enough to search and that -p option that is the solution. As an additional bonus I get to see the necro posting warning for doing this response saying yes this works. I see an alias halt="halt -p" in my /root/.bash_aliases file coming up for inclusion shortly. Thanks for the information.
 
  


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
How could a computer technician use the "top" command with "ps" and "kill" to investigate how a system is misbehaving? geckono1 Linux - Newbie 13 07-03-2016 07:51 AM
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
What's the difference between "shutdown -h now" and "halt"? shadkong Slackware 2 04-07-2005 12:43 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Shutdown problem; how to get fresh "halt" seedpress Linux - Newbie 2 06-28-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 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