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 5th June 2008
Malinda Malinda is offline
New User
 
Join Date: Jun 2008
Posts: 6
Question Power button - nicely switch down the computer?

Hi!

If you press the power button on a OpenBSD computer you will mess with the filesystem. I have google that I can use apm and apmd to nicely switch down the computer, but not how to do it.

Do anybody know how to fix this on 4.3?

Thanks
/Malinda
__________________
Yes! I'am a girl...
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

See these man pages: apm(4), apm(8), apmd(8), and acpi(4).

----

Hint #1:

Powering down your computer may be done with halt(8) or shutdown(8).

----

Hint #2

APM can be used to set the computer to standby or suspend mode, but only if the computer's BIOS supports APM. Modern BIOSes may not support APM.

----

Hint #3

ACPI support on OpenBSD does not support standby or suspend.
Reply With Quote
  #3   (View Single Post)  
Old 14th June 2008
Peter_APIIT Peter_APIIT is offline
Shell Scout
 
Join Date: Jun 2008
Posts: 121
Default

There are a lot of tutorial out there.
Reply With Quote
  #4   (View Single Post)  
Old 14th June 2008
cursedcompiler cursedcompiler is offline
New User
 
Join Date: Jun 2008
Posts: 7
Default

openbsd's APM framework does support standby/suspend/sleep (aka S1/2/3 sleep) if your BIOS passes the information to the operating system (pushing the power button to go to standby also works then); on some systems (IBM/Lenovo Thinkpads and some others with a Phoenix Bios) it even supports hibernation. i haven't tried this with the ACPI framework but it should work ;you can always disable ACPI in your kernel, and most BIOS's will emulate APM, which will work.
Reply With Quote
  #5   (View Single Post)  
Old 14th June 2008
cursedcompiler cursedcompiler is offline
New User
 
Join Date: Jun 2008
Posts: 7
Default

on hindsight: i'm not sure if most BIOS's will emulate APM; mine does also, i can configure the powerbutton via the BIOS to do either a standby, sleep or a shutdown...
Reply With Quote
  #6   (View Single Post)  
Old 14th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

APM emulation under ACPI depends on the BIOS, cursedcompiler.

ACPI support, in one form or another, has been in OpenBSD since the 3.8 days. However, it wasn't until after -current was several months beyond 4.2-release that it was enabled by default. It was normally left disabled, and one would enable it for testing or problem solving.

Today, (4.3-release and -current), both APM and ACPI are enabled in the kernel. The kernel will look for APM first, and use it if found. If the BIOS has both, you will see kernel messages configuring apm0, and you will see a message that acpi exists but is not configured. If you wish to see what the acpi(4) and related drivers can do on those platforms, disable APM.
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
Fighting for the power vermaden FreeBSD General 0 5th May 2009 06:49 AM
Trouble with ZFS switch dewarrn1 FreeBSD General 2 11th September 2008 11:58 PM
USB KVM switch logfile mess crayoxide General Hardware 1 15th August 2008 06:23 PM
What's all this power for ? Snoop1990 FreeBSD General 20 9th July 2008 10:59 PM
Home Button JMJ_coder Feedback and Suggestions 4 5th May 2008 05:13 PM


All times are GMT. The time now is 10:12 AM.


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