aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/apm
Commit message (Collapse)AuthorAgeFilesLines
* Remove APM BIOS supportWarner Losh2020-10-081-95/+0
| | | | | | | | | | | | | | | | APM BIOS was relevant only to early laptops (approximately P166 or P200 and slower). These have not been relevant for a long time, and this code has been untested for a long time (as far as I can tell). The APM compat code in ACPI and the apm(8) command is not being retired. Both of these items are still in use (apm(8) is more scriptable than the replacement acpiconf, for the most part). This has been commented out of i386 GENERIC since 2002. This code is not relevant to any other port. Discussed on: arch@ Notes: svn path=/head/; revision=366546
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326255
* APM was calling the suspend process from a timeout. This meant thatWarner Losh2006-05-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | other timeouts could not happen while suspending, including timeouts for things like msleep. This caused the system to hang on suspend when the cbb was enabled, since its suspend path powered down the socket which used a timeout to wait for it to be done. APM now creates a thread when it is enabled, and deletes the thread when it is disabled. This thread takes the place of the timeout by doing its polling every ~.9s. When the thread is disabled, it will wakeup early, otherwise it times out and polls the varius things the old timeout polled (APM events, suspend delays, etc). This makes my Sony VAIO 505TS suspend/resume correctly when APM is enabled (ACPI is black listed on my 505TS). This will likely fix other problems with the suspend path where drivers would sleep with msleep and/or do other timeouts. Maybe there's some special case code that would use DELAY while suspending and msleep otherwise that can be revisited and removed. This was also tested by glebius@, who pointed out that in the patch I sent him, I'd forgotten apm_saver.c MFC After: 3 weeks Notes: svn path=/head/; revision=158922
* No need to ifdef this pc98.Warner Losh2005-04-041-2/+0
| | | | Notes: svn path=/head/; revision=144619
* Catch up with recent events.Matthew N. Dodd2003-03-271-3/+1
| | | | Notes: svn path=/head/; revision=112700
* Use repo-copied files in sys/i386/bios.Matthew N. Dodd2003-03-241-1/+1
| | | | Notes: svn path=/head/; revision=112551
* Added dependency on the apm(4) module.Ruslan Ermilov2003-02-151-0/+1
| | | | Notes: svn path=/head/; revision=110960
* Remove __P.Alfred Perlstein2002-03-201-1/+1
| | | | Notes: svn path=/head/; revision=92762
* Added necessary include for pc98.Yoshihiro Takahashi2001-01-251-0/+1
| | | | Notes: svn path=/head/; revision=71619
* Added PC-98 apm support.Yoshihiro Takahashi2001-01-221-0/+4
| | | | | | | Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp> Notes: svn path=/head/; revision=71370
* select() DKI is now in <sys/selinfo.h>.Garrett Wollman2001-01-091-1/+1
| | | | Notes: svn path=/head/; revision=70834
* Don't needlessly indirect the APM softstate. It does nothing butNick Sayer2000-10-311-6/+2
| | | | | | | obfuscate the code. Notes: svn path=/head/; revision=68103
* Add the apm_saver syscons screen saver module.Nick Sayer1999-10-021-0/+91
apm_saver uses the apm_display() routine from the apm system to "suspend" the "display" part of the machine. This is beneficial for some laptops (or other machines with non-traditional displays) that choke on the 'green' saver's effect. Another way of looking at this is that it's the same as a screen saver that does an 'apm -d 0' to blank the display and an 'apm -d 1' to bring it back. One probably ought to use these commands to make sure the effect will be correct before using it unattended. Notes: svn path=/head/; revision=51851