create two files:
- /etc/acpi/events/lm_lid
- /etc/acpi/lid.sh (chmod +x /etc/acpi/lid.sh)
restart acpid service:
- systemctl restart acpid.service
create two files:
restart acpid service:
| #!/bin/sh | |
| grep -q open /proc/acpi/button/lid/*/state | |
| if [ $? = 0 ]; then | |
| rmmod iwlmvm iwlwifi && modprobe iwlwifi | |
| fi |
| event=button/lid.* | |
| action=/etc/acpi/lid.sh |
Is there some way to use this to prevent the actions from happening?