History log of /src/libexec/rc/rc.suspend (Results 1 – 16 of 16)
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 2cf8ef59 23-May-2023 Johannes Totz <jo@bruelltuete.com>

rc.suspend: execute rc-scripts with suspend keyword

For symmetry with rc.resume, give rc.suspend the ability to execute
rc-scripts. Use the suspend keyword for that.

Use-case is for setting a wake-

rc.suspend: execute rc-scripts with suspend keyword

For symmetry with rc.resume, give rc.suspend the ability to execute
rc-scripts. Use the suspend keyword for that.

Use-case is for setting a wake-up time, e.g. via efiwake.

Reviewed by: christos
Approved by: markj (mentor)
Differential Revision: https://reviews.freebsd.org/D39965

show more ...


# 0696600c 17-Oct-2018 Bjoern A. Zeeb <bz@FreeBSD.org>

Move the rc framework out of sbin/init into libexec/rc.

The reasons for this are forward looking to pkgbase:
* /sbin/init is a special binary; try not to replace it with
every package update bec

Move the rc framework out of sbin/init into libexec/rc.

The reasons for this are forward looking to pkgbase:
* /sbin/init is a special binary; try not to replace it with
every package update because an rc script was touched.
(a follow-up commit will make init its own package)
* having rc in its own place will allow more easy replacement
of the rc framework with alternatives, such as openrc.

Discussed with: brd (during BSDCam), kmoore
Requested by: cem, bz
PR: 231522
Approved by: re (gjb)

show more ...


# df89e317 28-Jul-2018 Brad Davis <brd@FreeBSD.org>

Opps, I missed moving a couple of files in r336845.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16466


# cc43a851 08-Feb-2012 Jung-uk Kim <jkim@FreeBSD.org>

Revert r211288 and move the logic to the acpi_timer itself.


# 4a2637c4 13-Aug-2010 Jung-uk Kim <jkim@FreeBSD.org>

Consistently use full pathnames for external commands.


# ca988da3 13-Aug-2010 Jung-uk Kim <jkim@FreeBSD.org>

Do not fork a subshell unnecessarily.


# ed82feee 13-Aug-2010 Jung-uk Kim <jkim@FreeBSD.org>

Enforce ACPI timer as the timecounter hardware before we change sleep state
unless it is the current timer. When we have resumed successfully, restore
the previous timecounter hardware if it was cha

Enforce ACPI timer as the timecounter hardware before we change sleep state
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.

show more ...


# ba5e4570 19-Jul-2008 Marcel Moolenaar <marcel@FreeBSD.org>

With uart(4) default, change sio# to uart# so that
out-of-the-box FreeBSD is consistent.


# 00a30448 21-Jun-2007 Nate Lawson <njl@FreeBSD.org>

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

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

show more ...


# 88a86ded 21-Jan-2004 Nate Lawson <njl@FreeBSD.org>

Make sure pid file creation doesn't complain if it can't create the file.
This removes a warning message when suspending is called by a non-root
user.


# e776370e 30-Dec-2003 Nate Lawson <njl@FreeBSD.org>

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) argu

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.

show more ...


# a1c43e3f 08-Oct-2000 David E. O'Brien <obrien@FreeBSD.org>

Add copyright notices. Other systems have been barrowing our /etc files
w/o giving any credit.


# 32170429 13-Sep-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Apply a consistent style to most of the etc scripts. Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity

Apply a consistent style to most of the etc scripts. Particularly, use
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>

show more ...


# 9b7a44a6 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 701279af 10-Jul-1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Put apmd configuration and rc files in /etc.
Update some files for apmd.