Don't try to standby on a lid_switch pressed event, this has a few problems:

1. ACPI S1 doesn't work properly for many people on NetBSD
  2. It prevents someone from using their laptop with an external display
This commit is contained in:
jmcneill 2008-06-20 02:38:00 +00:00
parent 6c1a2fee8f
commit 0814e53527

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: lid_switch,v 1.4 2006/09/27 01:41:45 jnemeth Exp $
# $NetBSD: lid_switch,v 1.5 2008/06/20 02:38:00 jmcneill Exp $
#
# Generic script for lid switch events. We try to put the system to sleep.
#
@ -10,11 +10,11 @@
case "${2}" in
pressed)
if /etc/rc.d/apmd status >/dev/null ; then
/usr/sbin/apm -S
else
/usr/sbin/apm -d -S
fi
#if /etc/rc.d/apmd status >/dev/null ; then
# /usr/sbin/apm -S
#else
# /usr/sbin/apm -d -S
#fi
exit 0
;;
released)