NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/52398: Provide sleep ability in powerd lid_switch, even if commented out



>Number:         52398
>Category:       misc
>Synopsis:       Provide sleep ability in powerd lid_switch, even if commented out
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 12 11:55:00 +0000 2017
>Originator:     Chris Humphries
>Release:        7.1
>Organization:
>Environment:
NetBSD shrimpy.sogubsys.com 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
Provide details of how to sleep on lid open/close in /etc/powerd/scripts/lid_switch, even if commented out. Referencing another script and decoding that could be improved upon for a better user experience. 

Maybe even briefly describe the magic values for sleep state and/or where to look like in acpi(4). 

I'd venture that most users expect a laptop to enter sleep mode when closing the lid and not just turn off the display. This is bad default behavior.


--snip--
root:shrimpy /etc/powerd/scripts>> diff lid_switch~ lid_switch
12a13,19
> 	/etc/rc.d/bluetooth stop
> 	/etc/rc.d/ntpd stop
> 	/etc/rc.d/dhcpcd stop
> 	/etc/rc.d/network stop
> 	/etc/rc.d/wpa_supplicant stop
> 
> 	/sbin/sysctl -w hw.acpi.sleep.state=3
21a29,37
>     	/etc/rc.d/wpa_supplicant start
> 	/etc/rc.d/network start
> 	/etc/rc.d/dhcpcd start
> 	/etc/rc.d/ntpdate start
> 	/etc/rc.d/ntpd start
> 	/etc/rc.d/bluetooth start
> 
> 	/sbin/sysctl -w hw.acpi.sleep.state=0
> 
root:shrimpy /etc/powerd/scripts>>
--snip--



>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index