summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/acpiconf
Commit message (Collapse)AuthorAgeFilesLines
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-1/+0
|
* Import ACPICA 20090521.jkim2009-06-051-1/+2
|
* Update the suspend/resume user API while maintaining backwards compat.njl2007-06-211-28/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improvements: * /etc/rc.suspend,rc.resume are always run, no matter the source of the suspend request (user or kernel, apm or acpi) * suspend now requires positive user acknowledgement. If a user program wants to cancel the suspend, they can. If one of the user programs hangs or doesn't respond within 10 seconds, the system suspends anyway. * /dev/apm is clonable, allowing multiple listeners for suspend events. In the future, xorg-server can use this to be informed about suspend even if there are other listeners (i.e. apmd). Changes: * Two new ACPI ioctls: REQSLPSTATE and ACKSLPSTATE. Request begins the process of suspending by notifying all listeners. acpi is monitored by devd(8) and /dev/apm listener(s) are also counted. Users register their approval or disapproval via Ack. If anyone disapproves, suspend is vetoed. * Old user programs or kernel modules that used SETSLPSTATE continue to work. A message is printed once that this interface is deprecated. * acpiconf gains the -k flag to ack the suspend request. This flag is undocumented on purpose since it's only used by /etc/rc.suspend. It is not intended to be a permanent change and will be removed once a better power API is implemented. * S5 (power off) is no longer supported via acpiconf -s 5 or apm -z/-Z. This restores previous behavior of halt/shutdown -p being the interface. * Miscellaneous improvements to error reporting Approved by: re
* Correct column alignment.njl2005-07-281-1/+1
|
* Fix nits in reporting battery information and add battery status reporting.njl2005-07-281-35/+54
| | | | | | | | Rate units are mA/mW, not mAh/mWh. Get full battery status and time remaining from ACPIIO_BATT_GET_BATTINFO instead of BST. PR: bin/83672 MFC after: 2 days
* Use the current BST/BIF ioctls, not the deprecated ones.njl2005-07-221-2/+2
| | | | MFC after: 2 days
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+1
|
* o Report charge/discharge rate and remaining capacity in the properimp2004-11-241-7/+38
| | | | | | | units (as specified in _BIF). (noted by Bruno Ducrot) o In looking in the standard, if the cap numbers are 0xffffffff, then acpi is reporting unknown for that field. Report unknown numbers properly. o Update the state to reflect charging, discharging and critical.
* phk jumped the gun and posted what looks like a preliminary version ofimp2004-11-241-4/+8
| | | | | | | | my patches for this information. Commit my more complete version. This version isn't complete yet, since some details aren't handled right just yet. Poaching by: phk
* Dump current status of battery as well.phk2004-11-241-0/+8
| | | | | The -i code doesn't really belong here in the first place I would think, but keep it together for now.
* Minor style(9) before possible larger commits.imp2004-11-161-4/+2
|
* Somehow I missed this last night, acpi_init() doesn't return an int.philip2004-11-131-1/+1
| | | | Spotted by: Randy Bush <randy@psg.com>
* With the addition of a proper prototype, this is now WARNS=6 clean.philip2004-11-132-1/+2
|
* Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as allnjl2004-08-182-31/+4
| | | | | | | | | | callers. These ioctls attempted to enable and disable the ACPI interpreter at runtime. In practice, it is not possible to boot with ACPI and then disable it on many systems and trying to do so can cause crashes, interrupt storms, etc. Binary compatibility with userland is retained. MFC after: 2 days
* Comment out the ability to enable/disable ACPI at runtime. This appearsnjl2004-08-151-0/+4
| | | | | to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed.
* Markup nit: make the list of options look better.ru2004-06-041-1/+1
|
* Fix style breakage.takawata2004-03-051-0/+1
| | | | Noticed by: njl
* Make unprivilaged user can see battery info.takawata2004-03-041-2/+5
|
* I don't normally use my middle name, so remove it from attributions indes2004-01-251-2/+2
| | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
* Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They arenjl2003-12-302-4/+31
| | | | | called directly from acpiconf(8). Change both scripts to take a subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument.
* Add the -i flag to acpiconf(8) to retrieve battery information.njl2003-09-132-29/+69
| | | | Rename a few structure elements.
* Allow sleep states to be specified as S1, S2, ...njl2003-07-282-1/+5
| | | | This is used by zzz(8).
* Support functions for the new ACPI import.njl2003-04-291-2/+1
| | | | | | | | | | | * AcpiOsDerivePciId(): finds a bus number, given the slot/func and the acpi parse tree. * AcpiOsPredefinedOverride(): use the sysctl hw.acpi.os_name to override the value for _OS. Ideas from: takawata, jhb Reviewed by: takawata, marcel Tested on: i386, ia64
* mdoc(7) police: markup fixes.ru2002-11-271-9/+9
| | | | Approved by: re
* Add sleep state explanation.takawata2002-09-161-4/+10
| | | | Requested by: murray at Cafe in Tokyo.
* The .Nm utilitycharnier2002-07-141-3/+3
|
* Resolve conflicts arising from the ACPI CA 20020611 import.iwasaki2002-07-091-1/+1
|
* Make the error messaging more helpful.cjc2001-11-301-9/+11
| | | | | | PR: 31483 Approved by: iwasaki, ru MFC after: 4 days
* ACPI CA doesn't recognis S4BIOS as a seperate sleep type anymore, somsmith2001-07-212-17/+0
| | | | drop support for it here until we work out a better way of handling it.
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* Remove double //'s in path.obrien2001-06-021-1/+1
|
* Catch up to new include paths.msmith2001-05-301-2/+2
| | | | Submitted by: walt <wsheets@att.net>
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: .Dv -> .Cm where appropriate.ru2001-01-221-6/+6
|
* Spell my name right in the copyright.des2001-01-141-1/+1
|
* Oops, forgotten to add manpage.iwasaki2001-01-131-0/+80
|
* Add manpage for acpiconf.iwasaki2001-01-131-2/+1
| | | | Submitted by: des
* Remove dependence on old acpi driver from acpi userland tools.iwasaki2000-11-081-8/+38
| | | | | | | | | | - acpiconf Replace include files from old acpi driver to acpica driver. New sleep type `4b' had been added (S4BIOS) for `-s' option. Of course this has no effect because driver doesn't support it for now :-) - acpidump All needed structs in sys/dev/acpi/*.h had been merged into local header file. No changes on its usage.
* Update include paths for new header locations.msmith2000-09-301-1/+4
| | | | Submitted by: iwasaki
* import acpiconf(8) from ACPI For FreeBSD project.iwasaki2000-08-312-0/+118
Obtained from: ACPI For FreeBSD project
OpenPOWER on IntegriCloud