power button behavior
This commit is contained in:
34
pc_fedora.md
34
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.
|
||||
|
||||
Reference in New Issue
Block a user