Sponsored Content
Full Discussion: Sane for Whom?
The Lounge War Stories Sane for Whom? Post 302590473 by Corona688 on Monday 16th of January 2012 10:50:19 AM
Old 01-16-2012
I did find a disquieting resemblance to windows 98's ancient behavior, a behavior which annoyed me even then. But it's apparently a real standard now, known as "zeroconf", and the dhcpcd maintainers decided to be all helpful and implement it just because it's a standard now.

It's not a "distribution" thing, though distributions have the choice whether to compile in that feature at all or not. And not all distributions use dhcpcd.

Last edited by Corona688; 01-16-2012 at 12:00 PM..
 
ACPILID(4)						   BSD Kernel Interfaces Manual 						ACPILID(4)

NAME
acpilid -- ACPI Lid Switch SYNOPSIS
acpilid* at acpi? DESCRIPTION
The acpilid driver supports ACPI ``lid switches''. The powerd(8) daemon can be used to control actions against the events of opening or closing the lid. The script used is /etc/powerd/scripts/lid_switch, and the events are either pressed (the lid was closed) or released (the lid was opened). EXAMPLES
The following example modifies the mentioned script in order to put the system into (S3) sleep when the lid is closed: ... case "${2}" in pressed) logger -p info "${0}: suspending..." # As in sleep_button, kill some daemons. # /etc/rc.d/dhcpcd stop /etc/rc.d/network stop /etc/rc.d/wpa_supplicant stop # Suspend. # if /sbin/sysctl hw.acpi.sleep.state >/dev/null 2>&1; then /sbin/sysctl -w hw.acpi.sleep.state=3 fi # Waking up. # /etc/rc.d/wpa_supplicant start /etc/rc.d/network start /etc/rc.d/dhcpcd start ... SEE ALSO
acpi(4), powerd(8), sysmon_pswitch(9) HISTORY
The acpilid driver appeared in NetBSD 1.6. BSD
January 9, 2011 BSD
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy