DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th May 2015
ffonz ffonz is offline
New User
 
Join Date: Apr 2015
Posts: 6
Default Soft power button doesn't power down

Hi,

I have a landisk with OpenBSD 5.6. I want the soft power button to power off the system. I added
Code:
hw.allowpowerdown=1
to /etc/sysctl.conf.
The system shuts down, but the power led keeps burning and the HDD keeps spinning.
If I type
Code:
halt -p
at the CLI, I get the correct behaviour: the led turns off and the HDD stops spinning.

So how can I make the soft power button act like "halt -p"?

Regards.
Reply With Quote
  #2   (View Single Post)  
Old 10th May 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,326
Default

One factor is whether the bios uses apm, found in older i386 systems, or acpi in amd64. By default, i386 systems use apm while the default in amd64 systems is acpi. If your system is a newer i386 using acpi, you need to disable apm either by using <UKC> or in a custom kernel.

More here in this prior thread

Last edited by shep; 10th May 2015 at 01:25 PM. Reason: Added prior thread
Reply With Quote
  #3   (View Single Post)  
Old 10th May 2015
ffonz ffonz is offline
New User
 
Join Date: Apr 2015
Posts: 6
Default

Dear shep,

Neither I have an i386 nor an amd64. I have a 'landisk' platform (Plextor PX-EH16L). This is a NAS of about 10 years old, which uses some odd Hitachi CPU. I don't have a connection for a keyboard, mouse nor monitor. I can only access the NAS via ssh. So actually it is an embedded system.

So I don't know anything about the BIOS of this system and how to access it. Do you still have some suggestions what I could try with my odd architecture?

Regards.
Reply With Quote
  #4   (View Single Post)  
Old 10th May 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,326
Default

Quote:
Originally Posted by ffonz View Post
Dear shep,

Neither I have an i386 nor an amd64. I have a 'landisk' platform (Plextor PX-EH16L). This is a NAS of about 10 years old, which uses some odd Hitachi CPU. I don't have a connection for a keyboard, mouse nor monitor. I can only access the NAS via ssh. So actually it is an embedded system.

So I don't know anything about the BIOS of this system and how to access it. Do you still have some suggestions what I could try with my odd architecture?

Regards.
Sorry, I thought you were referring to a Local Area Network Storage system. I can't help you with the bios but you may want to review the available power management options in <UKC> and if there is a choice, try temporary disabling the default.
Reply With Quote
  #5   (View Single Post)  
Old 11th May 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,868
Default

Quote:
Originally Posted by shep View Post
One factor is whether the bios uses apm, found in older i386 systems, or acpi in amd64. By default, i386 systems use apm while the default in amd64 systems is acpi.
My understanding is different. Any i386 platforms with both apm(4) and acpi(4) hardware will be assigned the appropriate driver based on a complex heuristic, which has changed over time. In brief: uniprocessors with older smbios versions will use APM. But there are also quirks for specific platforms.

References:

http://www.openbsd.org/papers/zzz-presentation.pdf
http://marc.info/?l=openbsd-tech&m=124545473209570&w=2
http://cvsweb.openbsd.org/cgi-bin/cv...86/i386/bios.c
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to power off Display? batence NetBSD General 12 15th February 2015 09:29 PM
`halt -p` cannot power off my box sw2wolf OpenBSD General 16 30th January 2014 12:21 AM
Fighting for the power vermaden FreeBSD General 0 5th May 2009 06:49 AM
What's all this power for ? Snoop1990 FreeBSD General 20 9th July 2008 10:59 PM
Power button - nicely switch down the computer? Malinda OpenBSD General 5 14th June 2008 01:57 PM


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick