LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-09-2004, 07:13 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Shutdown and Standby


How can I put my system on standby (ie shutdown HD, write RAM to file, put monitor on standby)

Also

When I shutdown Linux thru KDE, it does to a terminal screen, shuts down the HD and CDROM, and it says on the screen "Power Down". Then I have to hold the power button for 5 seconds until it shuts off.

How can I shut it down completely.
 
Old 03-09-2004, 07:30 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
"standby" is still experimental in linux (it is done through the linux kernel)

as for automatic shutdown, you will need to recompile your kernel and enable acpi support (build it into the kernel, not as modules)

check out the kernel recompile guide at the top of the slackware forum on this site

slackware then has a script that will autodetect acpi and get it running
 
Old 03-09-2004, 09:56 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Eeek! Recompileing Kernal? Sound dangerous... I'll give it a shot. Sounds like a good learning experiance!
 
Old 03-09-2004, 10:31 PM   #4
geesh
Member
 
Registered: Feb 2004
Posts: 51

Rep: Reputation: 16
For your total shut down problem try going to your bios and make sure your enabled there....

Greg
 
Old 03-10-2004, 05:36 PM   #5
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I think BIOS is okay, as I was able to do it with XP. Thanks for the input though! ( :
 
Old 03-10-2004, 07:13 PM   #6
delta9
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 66

Rep: Reputation: 15
You don't need to recompile your kernel!

You can have your computer shut down automatically by using apm (instead of acpi) too, just load the module "modprobe apm", and it should work
 
Old 03-10-2004, 07:31 PM   #7
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks. I will try it out and see how it works! ( :
 
Old 03-11-2004, 12:11 AM   #8
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
modprobe apm worked! Thanks!
 
Old 03-18-2004, 09:54 AM   #9
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
modprobe apm worked, but the next time I boot up, I have to run the command again in order to get it to work. How can I run it one time, and get it to work every time I boot up?
 
Old 04-01-2004, 03:11 AM   #10
preclose
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
put in in one of the startup scripts

When linux boots up it reads from various scripts. In slack there's a script in /etc/rc.d/ called rc.local. I'd assume you could put the modprobe command in there and it would run. Haven't tested it, not 100% sure, but if it's not that script surely another one will work. I'm guessing local runs after the boot is 99% complete so it'd probably be the right place....

preclose
 
Old 04-01-2004, 04:35 AM   #11
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
preclose: yea that would work,

also kernel recompile! (don't worry, just get the kernel sources used by Slackware, it should be configured already)

go into /usr/src/linux (linux source tree) and type
make menuconfig
now go into general (i think thats were its at) and search around till you find a place for power management or arm or anything like that, then look for a option for arm, if its the one your looking for there will be a "M" before it (this tells it to make it a module), now highlight it and press "y" with no quotes, then go to exit, and you should be back at the main menu, scroll all the way down to exit, then it asks if you want to save, hit yes (think is different from that save option you can select before exiting)

now type
make {bzImange,modules,modules_install)
cp (System.map,arch/i386/boot/bzImage} /boot
lilo


if you don't use lilo as the boot loader, then ask someone how it install a new kernel image with it
 
Old 04-01-2004, 09:35 AM   #12
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks, I found the rc.local thing on google a little while ago and it did work. Thanks for the reply.
 
  


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 to setup Standby and Hibernate as options during shutdown murkin Linux - Distributions 0 09-08-2005 01:16 PM
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 08:38 AM
shutdown after standby melon2003 Linux - Laptop and Netbook 0 01-23-2005 08:20 AM
Monitor Standby Shutdown harley51 Fedora 1 11-19-2004 07:54 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 11:44 AM

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

All times are GMT -5. The time now is 09:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration