359076 |
18-Mar-2020 |
hrs |
MFC of r355574, r358095, and r358395:
Add ACPI battery subsystem man page.
Add _BIX (Battery Information Extended) object support.
ACPI Control Method Batteries have a _BIF and/or _BIX object which provide static properties of the battery. FreeBSD acpi_cmbat module supported _BIF object only, which was deprecated as of ACPI 4.0. _BIX is an extended version of _BIF defined in ACPI 4.0 or later.
As of writing, _BIX has two revisions. One is in ACPI 4.0 (rev.0) and another is in ACPI 6.0 (rev.1). It seems that hardware vendors still stick to _BIF only or _BIX rev.0 + _BIF for the maximum compatibility. Microsoft requires _BIX rev.0 for Windows machines, so there are some laptop machines with _BIX rev.0 only. In this case, FreeBSD does not recognize the battery information.
After this change, the acpi_cmbat module gets battery information from _BIX or _BIF object and internally uses _BIX rev.1 data structure as the primary information store in the kernel. ACPIIO_BATT_GET_BI[FX] returns an acpi_bi[fx] structure built by using information obtained from a _BIF or a _BIX object found on the system. The revision number field can be used to check which field is available. The acpiconf(8) utility will show additional information if _BIX is available.
Although ABIs of ACPIIO_BATT_* were changed, the existing APIs for userland utilities are not changed and the backward-compatible ABIs are provided. This means that older versions of acpiconf(8) can also work with the new kernel. The (union acpi_battery_ioctl_arg) was padded to 256 byte long to avoid another ABI change in the future. A _BIX object with its revision number >1 will be treated as compatible with the rev.1 _BIX format.
Add workaround for models which do not follow the ACPI specification strictly. Extra objects are now simply ignored instead of rejecting everything.
Differential Revision: https://reviews.freebsd.org/D22556 Differential Revision: https://reviews.freebsd.org/D23728 |
340966 |
26-Nov-2018 |
eugen |
MFC r339818: rcorder(8):
Add support for /etc/rc.resume, so it calls "rcorder -k resume" and runs scripts containing "KEYWORD: resume" with single "resume" argument.
Working example is the port sysutils/cpupdate that defines extra_commands="resume" to reload CPU microcode cleared by suspend/resume sequence.
This change does nothing for a system having no scripts with KEYWORD: resume.
PR: 227866 Differential Revision: https://reviews.freebsd.org/D15247 |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
322880 |
25-Aug-2017 |
jkim |
MFC: r316627 (kan)
Use int to receive the return value of getopt function. |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
288116 |
22-Sep-2015 |
jkim |
Remove unsupported S5 (power off) state since r170976.
Reported by: Iam Smith (smithi at nimnet dot asn dot au) MFC after: 3 days
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
281171 |
06-Apr-2015 |
jkim |
Tidy up battery status information. Remove a trailing white space.
PR: 193671
|
272444 |
02-Oct-2014 |
jkim |
Merge ACPICA 20140926.
|
267668 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part2)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
267320 |
10-Jun-2014 |
eadler |
acpiconf(8): tell users not to use -k Add language from jhb
Requested by: jhb, jkim
|
267261 |
09-Jun-2014 |
eadler |
acpiconf(8): check the calendar
|
267260 |
09-Jun-2014 |
eadler |
acpiconf(8): bump .Dd
Reported by: gjb
|
267248 |
09-Jun-2014 |
eadler |
acpiconf(8): document 'k' option
Add missing documentation for the 'k' option based on reading the source code.
|
228976 |
30-Dec-2011 |
uqs |
Reencode files to UTF-8. Drop CP1252 em-dash.
|
211763 |
24-Aug-2010 |
mav |
When ACPI reports current battery consumption rate in mAmps, print it also in mWatts. Values in mAmps are not always suitable, because they depend on battery voltage, which depends on battery type and charge level.
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
193531 |
05-Jun-2009 |
jkim |
Import ACPICA 20090521.
|
170976 |
21-Jun-2007 |
njl |
Update the suspend/resume user API while maintaining backwards compat.
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
|
148493 |
28-Jul-2005 |
njl |
Correct column alignment.
|
148491 |
28-Jul-2005 |
njl |
Fix nits in reporting battery information and add battery status reporting. 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
|
148310 |
22-Jul-2005 |
njl |
Use the current BST/BIF ioctls, not the deprecated ones.
MFC after: 2 days
|
141580 |
09-Feb-2005 |
ru |
Fixed the misplaced $FreeBSD$.
|
138049 |
24-Nov-2004 |
imp |
o Report charge/discharge rate and remaining capacity in the proper 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.
|
138047 |
24-Nov-2004 |
imp |
phk jumped the gun and posted what looks like a preliminary version of 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
|
138044 |
24-Nov-2004 |
phk |
Dump current status of battery as well.
The -i code doesn't really belong here in the first place I would think, but keep it together for now.
|
137763 |
16-Nov-2004 |
imp |
Minor style(9) before possible larger commits.
|
137666 |
13-Nov-2004 |
philip |
Somehow I missed this last night, acpi_init() doesn't return an int.
Spotted by: Randy Bush <randy@psg.com>
|
137638 |
13-Nov-2004 |
philip |
With the addition of a proper prototype, this is now WARNS=6 clean.
|
133933 |
18-Aug-2004 |
njl |
Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as all 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
|
133788 |
15-Aug-2004 |
njl |
Comment out the ability to enable/disable ACPI at runtime. This appears to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed.
|
130082 |
04-Jun-2004 |
ru |
Markup nit: make the list of options look better.
|
126625 |
05-Mar-2004 |
takawata |
Fix style breakage.
Noticed by: njl
|
126609 |
04-Mar-2004 |
takawata |
Make unprivilaged user can see battery info.
|
124963 |
25-Jan-2004 |
des |
I don't normally use my middle name, so remove it from attributions in man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
|
124001 |
30-Dec-2003 |
njl |
Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They are called directly from acpiconf(8). Change both scripts to take a subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument.
|
120036 |
13-Sep-2003 |
njl |
Add the -i flag to acpiconf(8) to retrieve battery information. Rename a few structure elements.
|
118127 |
28-Jul-2003 |
njl |
Allow sleep states to be specified as S1, S2, ... This is used by zzz(8).
|
114246 |
29-Apr-2003 |
njl |
Support functions for the new ACPI import. * 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
|
107312 |
27-Nov-2002 |
ru |
mdoc(7) police: markup fixes.
Approved by: re
|
103400 |
16-Sep-2002 |
takawata |
Add sleep state explanation. Requested by: murray at Cafe in Tokyo.
|
99968 |
14-Jul-2002 |
charnier |
The .Nm utility
|
99682 |
09-Jul-2002 |
iwasaki |
Resolve conflicts arising from the ACPI CA 20020611 import.
|
87121 |
30-Nov-2001 |
cjc |
Make the error messaging more helpful.
PR: 31483 Approved by: iwasaki, ru MFC after: 4 days
|
80109 |
21-Jul-2001 |
msmith |
ACPI CA doesn't recognis S4BIOS as a seperate sleep type anymore, so drop support for it here until we work out a better way of handling it.
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
77633 |
02-Jun-2001 |
obrien |
Remove double //'s in path.
|
77449 |
30-May-2001 |
msmith |
Catch up to new include paths.
Submitted by: walt <wsheets@att.net>
|
74816 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74532 |
20-Mar-2001 |
ru |
Set the default manual section for usr.sbin/ to 8.
|
71368 |
22-Jan-2001 |
ru |
mdoc(7) police: .Dv -> .Cm where appropriate.
|
71030 |
14-Jan-2001 |
des |
Spell my name right in the copyright.
|
70996 |
13-Jan-2001 |
iwasaki |
Oops, forgotten to add manpage.
|
70995 |
13-Jan-2001 |
iwasaki |
Add manpage for acpiconf.
Submitted by: des
|
68475 |
08-Nov-2000 |
iwasaki |
Remove dependence on old acpi driver from acpi userland tools.
- 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.
|
66490 |
30-Sep-2000 |
msmith |
Update include paths for new header locations.
Submitted by: iwasaki
|
65284 |
31-Aug-2000 |
iwasaki |
This commit was generated by cvs2svn to compensate for changes in r65283, which included commits to RCS files with non-trunk default branches.
|