LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-26-2004, 08:33 AM   #1
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
Slackware 9.1 poweroff


I'm using the poweroff command to shut down slackware but it stops the operating system and the IDE hdds without switching off the hardware. What should I do to make it to switch it off without pressing the power button ?

And one more question how can I set up the dpms in order to switch the monitor off in suspend(or any dpms) mode instead of simply showing blank black screen.
These features are supported on my hardware because Windows can do all of them.
 
Old 04-26-2004, 10:17 AM   #2
mysterio
Member
 
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
Check to see if your using apm or acpi, then as root modprobe apm or acpi, whichever one your using and try shutting down.If that works put it in your /etc/modules (I think that's what slack uses, I'm not in my slack box right now) and it will start up when you start your machine.
If that doesn't work look in your kernel config file to see if it's enabled if not you'll have to recompile it in.
 
Old 04-27-2004, 10:47 AM   #3
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
I found that I have apm installed. After typing apm the answer was no support for apm in the kernel. Then i used modprobe apm and after typing apm it answers AC-online so it seems to work. Now the poweroff command tries tries to switch down the power supply but instead it causes segmentation fault and hangs.What have i mistaken?
 
Old 04-27-2004, 05:54 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
In Slackware you have to uncomment the APM module line in:

/etc/rc.d/rc.modules

Though that will make it start at boot, it won't clear up errors you are getting.

Can you post your kernel messages? Does the kernel say anything right before the errors?
 
Old 04-28-2004, 06:16 AM   #5
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
The kernel returns normal information displayed at poweroff and after "flushing hda, hdb" it prints error messages instead of "power down". The message tells about segmentation fault and gives the status of the CPU registers and tells that there is incorrect value in the ESP. I can guess it is a stack related problem but I can't post the messages because it is the last thing the kernel does before halting and the messages are too long for handwriting. Even if I do there is a great chance for mistakes.
 
Old 04-28-2004, 02:15 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Are you sure your BIOS has support for APM? Perhaps it is an ACPI BIOS?
 
Old 04-28-2004, 03:03 PM   #7
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
I'm not so sure. How to determine this ? Maybe I should try with acpi but I don't have any acpi modules installed so what should I install ? Excuse me for asking stupid questions, but i'm still newbie.
 
Old 05-19-2004, 06:38 PM   #8
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 32
To poweroff monitor... modprobe apm if you use apm or enable acpi then edit your XF86Config... under ... this is mine...

# Any number of graphics device sections may be present

Section "Device"
Identifier "VESA Framebuffer"
Driver "ati"
Option "DPMS" <------ Put that option in.... restart X and hopefully it should work...
#VideoRam 4096
# Insert Clocks lines here if appropriate
vendorname "Generic"
boardname "ati"
 
Old 05-20-2004, 08:00 AM   #9
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
Yeah I've already done it and it works. It doesn't require apm or acpi - just after adding the option dpms it worked. The problem now is that poweroff always exits with segmentation fault error when i turn on apm.
 
Old 05-20-2004, 10:58 AM   #10
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Quote:
Originally posted by iZvi
Yeah I've already done it and it works. It doesn't require apm or acpi - just after adding the option dpms it worked. The problem now is that poweroff always exits with segmentation fault error when i turn on apm.
Upgrading to Kernel 2.6.x fixed all of this for me, didn't need to do anything for acpi or apm, it just worked.
 
Old 06-21-2004, 08:32 AM   #11
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
With any kernel, including 2.6.7 the poweroff allways ends with segmentation fault and it can never shut down the computer. This should be related to the apm which is enabled in the kernel. If apm doesn't work can acpi do the job and how?

How do you shut down your PCs guys?
 
Old 06-21-2004, 09:39 AM   #12
kauggie
LQ Newbie
 
Registered: Jun 2004
Location: Bucharest, RO
Distribution: Slackware 9.1
Posts: 9

Rep: Reputation: 0
Shutdown with

shutdown -h now

It is the safest and best way around.
 
Old 06-22-2004, 11:33 AM   #13
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
Ok, but this halts the machine but doesn't turn off the power supply. Can I do this without apm?
 
Old 06-25-2004, 06:43 PM   #14
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Rep: Reputation: 30
I'm waiting for an answer to this one too. It's silly for me to reboot into Windows just so i can turn off the computer when we get thunderstorms (which is every day around 4!)
 
Old 06-25-2004, 07:35 PM   #15
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Rep: Reputation: 30
Oh, duh, I am just so used to windows doing everything for me that has to be my excuse!
Shutdown, and then push the black button to turn off the power!
 
  


Reply



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
poweroff Poszukiwacz Ubuntu 2 08-17-2005 05:10 AM
how to poweroff ?? perdesiz Linux - Laptop and Netbook 5 12-29-2004 03:31 AM
Poweroff using the AT command? a_calder Linux - Newbie 1 07-02-2004 07:58 PM
poweroff praveen_2003 Linux - Software 1 07-13-2003 01:31 PM
Auto poweroff in Slackware 9 Radicalm16 Linux - General 8 06-01-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:17 PM.

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
Open Source Consulting | Domain Registration