power button behavior

This commit is contained in:
ducoterra
2023-02-26 16:59:06 -05:00
parent 8b304f8673
commit bd624d3e03
2 changed files with 64 additions and 0 deletions

View File

@@ -630,3 +630,33 @@ In order to restore the correct state of the fprintd service if you disconnect/r
`sudo systemctl enable laptop-lid.service`
Now the status should be correct even after connecting/disconnecting when the computer is off.
## Wifi Connection
Check wifi connection information
```bash
iw wlp170s0 info
```
Edit connection info (for example, force 5GHz)
```bash
nm-connection-editor
```
## Power Button Behavior
The power button is controlled from 2 locations:
1. DCONF (or gnoem settings) at `gnome.settings-daemon.plugins.power`
2. ACPI at /etc/acpi/events/powerconf
The powerconf acpi configuration will execute at the same time the gnome settings do.
This can lead to situations where the gnome settings say "suspend" but the acpi settings
say "shutdown". On waking up your laptop it will immediately shutdown.
The solution is to comment out everything in /etc/acpi/events/powerconf and rely on the
gnome settings **OR** set the gnome settings to "nothing" and edit
`/etc/acpi/actions/power.sh` with the behavior you expect. Either way you should pick
one to control power button behavior.