Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
No, it's because these people have acpi configured. When you press the power button it initiates a normal shutdown procedure. To force a hardware shutdown you have to hold the power button for 3 seconds.
My laptop is configured to hibernate if you press the power button, so I use it. The desktop stays on all the time, it only gets restarted for kernel updates.
That means that you don't need root-privilegues in Arch? Or that you are working as root?
I think you misunderstood my post or I didn't give the whole picture.
When I said I use shutdown -h now, this is after I log in as root.
I do everything as a regular user and when I'm ready to shutdown, I log in as root and type the command above.
I could give my regular user the privilege to shutdown the machine, but I won't because I'm old school. I like to follow the old tradition of unix where root is the almighty and regular users are just users with limited privileges.
I technically wouldn't recommend sudo /etc/init.d/halt stop as it would halt the system *IMMEDIATELY* without shutting down system daemons/services first, which in turn crashes those apps and can cause loss of data.
And sudo init 0 initializes the system to runlevel 0, which basically shuts down the system. sudo halt does the same thing as well.
In my opinion, it's all a matter of personal preference.
I don't have sudo on my system (I prefer to actually remember my root password TYVM ), but I do use init 0 if I want to shut down from the CLI as root (or init 6 to reboot). Easier to type that way, I think.
$ su -c "init 0"
Most of the time, though, I do it from Xfce: Quit->Shutdown ("Quit" is the button on the very right side of the Xfce panel).
Last edited by MrCode; 12-02-2010 at 05:41 PM.
Reason: su-ing to root from root...department of redundancy department :-P