Linux - General This 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. |
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.
|
|
|
11-24-2001, 03:28 PM
|
#1
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Rep:
|
Slackware shutdown
Help !!!
Hope someone would tell me how to shut Slackware down. Really down . No buttons . just poweroff my machine . I tried:
su - c halt and i stood there for a long time and nothing happend (it stucked at the last step powerdown, but it was still ON). I also tried to shut it with the powerbutton but i couldn't . To get the computer turned off i have to reboot into windows and then swith it off.
|help|
PEACE
|
|
|
11-24-2001, 05:10 PM
|
#2
|
LQ Newbie
Registered: Sep 2001
Posts: 5
Rep:
|
I just use "shutdown now" sans quots
|
|
|
11-24-2001, 07:07 PM
|
#3
|
Member
Registered: Oct 2001
Location: /dev/null
Distribution: Debian, Slackware
Posts: 44
Rep:
|
poweroff
halt
shutdown -h now
???
|
|
|
11-25-2001, 03:06 AM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
I do "su -c shutdown -h now"
|
|
|
11-25-2001, 10:00 AM
|
#5
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Original Poster
Rep:
|
It is not working. Assuming that these commands don't shut the machine down, does that mean that my computer is not ok? I posted on the newbies section and i got similar tips but they don't work at all.I even installed slackware again and nothing happened. I know i have to be root and: poweroff
halt
shutdown -h now
su -c shutdown -h now
shutdown now
but it's really not working. Now i just found that if i reboot (Ctrl+Alt+Del), when its going to start i press the power button and it shutsdown .I hope there is another way.
PEACE
|
|
|
11-25-2001, 02:46 PM
|
#6
|
Member
Registered: Dec 2000
Location: Toronto Canada
Distribution: slackware 7.1
Posts: 95
Rep:
|
It depends on the kernel your using.If its the 2.2.19 series,then you have to compile APM into the kernel or the computer wont shut off 100%
I use the 2.4 series and it shuts mine off.
|
|
|
11-25-2001, 03:27 PM
|
#7
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Original Poster
Rep:
|
when i installed Slackware i disbled 3 kernel versions :
2.2.19 scsi ; 2.2.19 non scsi ; 2.4.5 scsi versions i left only the 2.4.5 non scsi version so i assume that i have the 2.4.5 kernel. I'm afraid of turn it off like i said because it might damage something (machine or sofware).
|
|
|
11-25-2001, 04:36 PM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well, if you're happily booting on the standard 2.4.5 kernel, then what are you afraid of? nothing will go wrong if it's already booting frin on that kernel
|
|
|
11-25-2001, 07:31 PM
|
#9
|
Member
Registered: Jun 2001
Location: Antarctica.
Distribution: Slackware
Posts: 78
Rep:
|
If you installed Slackware using the kernel "Linux" or "bare.i" and you haven't recompiled the kernel, it is most likely still 2.2.19
|
|
|
11-26-2001, 10:10 AM
|
#10
|
LQ Newbie
Registered: Nov 2001
Location: Midwest
Distribution: Slackware
Posts: 1
Rep:
|
shutdown
I know this is a dumb q??? but are you logged in as root when your running shutdown -h now if not you need to be.
su
roots password
you should get a # prompt
now type in /sbin/shutdown -h now
sorry if this dosn't help
|
|
|
11-26-2001, 11:59 PM
|
#11
|
Member
Registered: Oct 2001
Location: Sydney
Distribution: Arch
Posts: 295
Rep:
|
Ohh man..look its really quite simple
As someone before has stated, you will prob need to recompile your kernel with either APM support if you are using 2.2.x or APM *OR* ACPI if you are using kernel 2.4.x. which one you will need depends mainly on your motherboard/bios.
|
|
|
11-27-2001, 07:31 AM
|
#12
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Original Poster
Rep:
|
The only thing i know to compile the kernel is my motherboard's type
ASUS K7M slot A
I Have some questions i would like to ask you :
1. How can i know what bios and kernel i have ?
2. Is compiling the kernel the same procedure in all linux distros ?(the reason i'm asking this is because i bought a book "complete guide to linux" from Peter Norton and Arthur G. that show how to compile the kernel on a red hat linux )
3. Is it possible to have kernel 2.2.9 running if i disabled it during instalation ? what good is it to have different kernel versions then ?
4. Is there an easy way to know for sure that i really have to go through all that SICKBOY ? thanks
PEACE
|
|
|
11-27-2001, 12:33 PM
|
#13
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
--- wondering if the australian will stop being insulting ---
1 - to get the kernel version, run 'uname -r'
2 - yes, you get the kernel source, and it's all dependent on that.
3 - handy to have a few kernel version available for various compatability things you might come across, e.g. i can't seem to get the loopback block to compile on my 2.4.14 kernel, so i keep the 2.4.8 kernel from an rpm so i can use loopback filesystems if i want.
4 - well i've really no idea what it is you're trying to do... but generally you have no need to recompile a kernel to do anything really, unless you know for a fact you need to
5 - sorry about certain people being rude and patronising.
|
|
|
11-27-2001, 01:52 PM
|
#14
|
Member
Registered: Mar 2001
Location: Sweden, Lund
Distribution: Slackware
Posts: 68
Rep:
|
Alright. I'f I'm not mistaken that motherboard is using the VIA chipset. A couple of days ago I sent an email to ACPI's mailinglist regarding poweroff when using a VIA chipset. I really don't got an answer, only that alot of people ask why it's not working but no one knows how to fix it.
Alot of people are having problem powering off with VIA chipset, I really hopes there will be a solution.
/Cyth
|
|
|
11-27-2001, 02:34 PM
|
#15
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
to get the system to actually switch off you need an APM kernel (i just found this out). You could use ACPI but apparently that is still experimental.
you will need to recompile the kernel to get this going (unless it is already a module. try )
just do the make menuconfig (to configure the kernel. any probs you have with this step check the forum. we've done this a thousand times so the answer should be there) and then go to the 'General Setup' section then at the bottom of that is an option saying 'Power Management Support'. put yes here and some sub menus should pop down. choose APM (or ACPI if you're feeling lucky). recompile it all then it should work
this is using the 2.4.x series of kernels. im assuming that the 2.2.x is pretty similar if not the same.
Hope That Helps
Alex
|
|
|
All times are GMT -5. The time now is 02:09 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
|
|