sys-power/acpid: добавлен suspend при закрытии крышки ноутбука

mhiretskiy 1987
parent d6d0031004
commit 95b679636b

@ -0,0 +1,21 @@
# Calculate chmod=0755 comment=#
#!/bin/sh
if [[ -z "$(/usr/libexec/calculate/cl-variable --value desktop.cl_desktop_online_user)" ]]
then
source /etc/conf.d/acpid
case "${LID_CLOSE_ACTION}" in
suspend)
pm-suspend
;;
hibernate)
pm-hibernate
;;
suspend-hybrid)
pm-suspend-hybrid
;;
shutdown)
halt
;;
esac
fi

@ -0,0 +1,5 @@
# Calculate comment=#
# /etc/acpi/events/lid
event=button/lid LID close
action=/etc/acpi/actions/lid.sh %e

@ -0,0 +1,4 @@
# Calculate comment=# format=openrc
# Available values: suspend/hibernate/suspend-hybrid/shutdown
LID_CLOSE_ACTION="suspend"

@ -0,0 +1 @@
# Calculate link=/etc/init.d/acpid symbolic ini(runlevels.acpid)!=on&&ini(runlevels.acpid,on)==||grep(/var/lib/calculate/-runlevels-acpid,/acpid)!=

@ -2,4 +2,4 @@
[overlay-calculate]
# Save the latest version, because when switching profile cl-setup-profile 3.2.2 makes a call cl-setup-system
remerge = 20200317
remerge = 20200317.1

@ -0,0 +1,4 @@
# Calculate format=samba name=ini.env ini(overlay-calculate.remerge)<#-cl_pass_file-# merge=sys-power/acpid
[overlay-calculate]
remerge = #-cl_pass_file-#
Loading…
Cancel
Save