From bd624d3e03b7c2f93068043f63cb45372109a97f Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 26 Feb 2023 16:59:06 -0500 Subject: [PATCH] power button behavior --- framework_fedora.md | 30 ++++++++++++++++++++++++++++++ pc_fedora.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/framework_fedora.md b/framework_fedora.md index 018029a..31998b4 100644 --- a/framework_fedora.md +++ b/framework_fedora.md @@ -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. diff --git a/pc_fedora.md b/pc_fedora.md index 654fcc2..780da40 100644 --- a/pc_fedora.md +++ b/pc_fedora.md @@ -1,5 +1,23 @@ # Fedora Gaming PC +## Drive Setup + +This assumes 2x 1TB drives and 1x 500GB drive. Note that I'm not encrypting the steam drive. +This is because you can get *slightly* better performance out of an unencrypted drive. Plus, +realistically, nothing but steam common stuff will be stored there so there's nothing to +protect. + +1. Erase the drives completely. Don't format. Make sure each only has free space. +2. Launch the installer +3. Select all 3 drives and select "Advanced Custom (Blivet-GUI)" +4. Click Done +5. On the 500GB drive create a 1024GB ext4 partition, label it boot, and mount it at "/boot" +6. On the 500GB drive create a 600GB efi partition, label it efi, and mount it at "/boot/efi" +7. On the 500GB drive create an encrypted btrfs partition with the rest of the space and mount it at "/" +8. On the slower 1TB drive create an encrypted btrfs partition and mount it at "/home" +9. On the faster 1TB drive create an unencrypted btrfs partition and mount it at "/steam" +10. Click "Done" and begin installation + ## RDP with autologin https://askubuntu.com/questions/1396745/21-10-make-screen-share-password-permanent @@ -153,3 +171,19 @@ sudo dnf install steam cd ~/.local/share/Steam/ ./steam.sh --reset ``` + +## 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.