summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/apm
Commit message (Collapse)AuthorAgeFilesLines
* APM was calling the suspend process from a timeout. This meant thatimp2006-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
* No need to ifdef this pc98.imp2005-04-041-2/+0
|
* Catch up with recent events.mdodd2003-03-271-3/+1
|
* Use repo-copied files in sys/i386/bios.mdodd2003-03-241-1/+1
|
* Added dependency on the apm(4) module.ru2003-02-151-0/+1
|
* Remove __P.alfred2002-03-201-1/+1
|
* Added necessary include for pc98.nyan2001-01-251-0/+1
|
* Added PC-98 apm support.nyan2001-01-221-0/+4
| | | | Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-1/+1
|
* Don't needlessly indirect the APM softstate. It does nothing butnsayer2000-10-311-6/+2
| | | | obfuscate the code.
* Add the apm_saver syscons screen saver module.nsayer1999-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.
OpenPOWER on IntegriCloud