aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.suspend
Commit message (Collapse)AuthorAgeFilesLines
* Revert r211288 and move the logic to the acpi_timer itself.Jung-uk Kim2012-02-081-12/+0
| | | | Notes: svn path=/head/; revision=231226
* Consistently use full pathnames for external commands.Jung-uk Kim2010-08-131-4/+4
| | | | Notes: svn path=/head/; revision=211291
* Do not fork a subshell unnecessarily.Jung-uk Kim2010-08-131-2/+2
| | | | Notes: svn path=/head/; revision=211289
* Enforce ACPI timer as the timecounter hardware before we change sleep stateJung-uk Kim2010-08-131-0/+12
| | | | | | | | | unless it is the current timer. When we have resumed successfully, restore the previous timecounter hardware if it was changed earlier. Only the ACPI timer is guaranteed to increase monotonically between S-state changes. Notes: svn path=/head/; revision=211288
* With uart(4) default, change sio# to uart# so thatMarcel Moolenaar2008-07-191-1/+1
| | | | | | | out-of-the-box FreeBSD is consistent. Notes: svn path=/head/; revision=180620
* Update the suspend/resume user API while maintaining backwards compat.Nate Lawson2007-06-211-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=170976
* Make sure pid file creation doesn't complain if it can't create the file.Nate Lawson2004-01-211-1/+1
| | | | | | | | This removes a warning message when suspending is called by a non-root user. Notes: svn path=/head/; revision=124766
* Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They areNate Lawson2003-12-301-3/+15
| | | | | | | | called directly from acpiconf(8). Change both scripts to take a subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument. Notes: svn path=/head/; revision=124001
* Add copyright notices. Other systems have been barrowing our /etc filesDavid E. O'Brien2000-10-081-0/+25
| | | | | | | w/o giving any credit. Notes: svn path=/head/; revision=66830
* Apply a consistent style to most of the etc scripts. Particularly, useSheldon Hearn1999-09-131-4/+2
| | | | | | | | | | | | case instead of test where appropriate, since case allows case is a sh builtin and (as a side-effect) allows case-insensitivity. Changes discussed on freebsd-hackers. Submitted by: Doug Barton <Doug@gorean.org> Notes: svn path=/head/; revision=51231
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50472
* Put apmd configuration and rc files in /etc.Mitsuru IWASAKI1999-07-101-0/+27
Update some files for apmd. Notes: svn path=/head/; revision=48734