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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-24-2005, 09:33 AM
|
#1
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:
|
slackware: how to shutdown (seriously)
in my slackware install there is no 'shutdown' button or something like this, normally there is in other distros. there is a logout button, which exits X and then brings me to the initial console. that i guess would be fine if i can just type one command to shutdown the computer, but it doesnt seem to be the case.
i have tried commands like shutdown, shutoff, poweroff, but they dont work. the only one that does something is 'powerdown' (only when root) and this still doesnt work. this command seems to work at first.. it gives output like 'sending term signal to all...' etc etc... and finally says 'Powerdown.' but stays there (over 8hours, i left it like that all night). so every tiem i have done a hard shutdown at this screen... and i dont think this is the way it should be done.
so, right now i have to: click logout, wait for x to exit, login as root, type powerdown, wait for that to finish, then hard shutdown the computer... when all i normally would have to do is click shutdown from a gui.
any help appreciated.
|
|
|
04-24-2005, 09:47 AM
|
#2
|
Member
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
|
Try:
su -c "shutdown -h now"
and let us know (after your reboot) if it works.
Also, look at the ACCESS CONTROL section of the shutdown manpage. It will explain how to set up CTL+ALT+DEL so you can use this key sequence or `shutdown -a` as a user to shut down the machine.
|
|
|
04-24-2005, 09:50 AM
|
#3
|
Member
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669
Rep:
|
I use the 2.6 kernel and acpi and acpid. I modprobe button then i can shutdown the pc by pressing the button.
|
|
|
04-24-2005, 10:01 AM
|
#4
|
Member
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
|
Whoops! I think I misunderstood the question. Re-reading your initial post, it seems that you are already able to use shutdown to go through the shutdown sequences. The problem is that the machine is not turning itself off.
Have you used another distro on that machine, and did shutdown or hitting a shutdown button shut the machine down and turn it off?
|
|
|
04-24-2005, 10:44 AM
|
#5
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Rep:
|
Re: slackware: how to shutdown (seriously)
Quote:
Originally posted by nadroj
in my slackware install there is no 'shutdown' button or something like this, normally there is in other distros.
|
Have a look around in the Control Center (I'm running KDE 3.4), somewhere there's an optional to add this button to the K-menu. I only found it a couple of days ago
|
|
|
04-24-2005, 01:55 PM
|
#6
|
Member
Registered: Apr 2005
Location: Rio de Janeiro, Brazil
Distribution: Ubuntu 9.04 (Jaunty), Arch Linux 2009.08
Posts: 83
Rep:
|
Re: slackware: how to shutdown (seriously)
Quote:
Originally posted by nadroj
in my slackware install there is no 'shutdown' button or something like this, normally there is in other distros. there is a logout button, which exits X and then brings me to the initial console. that i guess would be fine if i can just type one command to shutdown the computer, but it doesnt seem to be the case.
i have tried commands like shutdown, shutoff, poweroff, but they dont work. the only one that does something is 'powerdown' (only when root) and this still doesnt work. this command seems to work at first.. it gives output like 'sending term signal to all...' etc etc... and finally says 'Powerdown.' but stays there (over 8hours, i left it like that all night). so every tiem i have done a hard shutdown at this screen... and i dont think this is the way it should be done.
so, right now i have to: click logout, wait for x to exit, login as root, type powerdown, wait for that to finish, then hard shutdown the computer... when all i normally would have to do is click shutdown from a gui.
any help appreciated.
|
Is apmd running on your machine when you do that? apmd is the APM (Advanced Power Management) daemon for Linux which manages that function (and sends the power down command to the motherboard when requested by the system). You might want to check that out. Also check to see if APM is enabled in your BIOS settings.
|
|
|
04-24-2005, 02:48 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
halt
|
|
|
04-24-2005, 03:38 PM
|
#8
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
they made some changes in kernel 2.6.X.
you want to add the option acpi=force to your lilo options in lilo.conf or grub.conf/menu.lst.
add the option right after for example root=/dev/hdaX
this will shutdown the system.
|
|
|
04-24-2005, 04:01 PM
|
#9
|
Member
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255
Rep:
|
Ok I had The exact problem and I solved it....I think what you mean is when you type in a command say...halt....in the command line and then the computer starts to make a string of outputs saying shutting down this and that and then its stops at the end asaying power down when it doesn't....
This is easy...all you have to do is remove the leading '# ' in the line ' /sbin/modprobe apm ' in file /etc/rc.d/rc.modules.
and for this session type :#modprobe apm
summery:
1./ type in pico or gedit in gnome.....
so it will be pico /etc/rc.d/rc.modules or
gedit /etc/rc.d/rc.modules
2./ remove the leading '# ' in the line ' /sbin/modprobe apm
3./ and add #modprobe apm a line below
|
|
|
04-24-2005, 04:02 PM
|
#10
|
Member
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255
Rep:
|
this will enable your computer to shut down with out you needing to push the power button to finish it off.....however every time you shut down you have to type in halt in the command line when X is not started
|
|
|
All times are GMT -5. The time now is 02:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|