Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!!
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.
`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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.