diff options
author | Mike Crute <mike@crute.us> | 2023-08-28 08:05:30 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-28 08:05:30 -0700 |
commit | f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba (patch) | |
tree | a173cce8ec016c7f3f46696fa52f2ee5e3489842 | |
parent | be900a9ae7f6ce612af68f05eb879ba8eba72547 (diff) | |
download | dotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.tar.bz2 dotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.tar.xz dotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.zip |
Cleanup Framework laptop config
-rw-r--r-- | .linux/etc/modprobe.d/framework-laptop.conf | 2 | ||||
-rw-r--r-- | .linux/etc/systemd/logind.conf.d/hybrid-sleep.conf | 12 | ||||
-rw-r--r-- | .linux/etc/systemd/sleep.conf.d/fix-9310.conf | 2 | ||||
-rw-r--r-- | .linux/etc/systemd/system/ath11k-resume.service | 11 | ||||
-rw-r--r-- | .linux/etc/systemd/system/ath11k-suspend.service | 10 | ||||
-rw-r--r-- | .linux/etc/systemd/system/ax500-resume.service | 11 | ||||
-rw-r--r-- | .linux/etc/systemd/system/ax500-suspend.service | 10 |
7 files changed, 4 insertions, 54 deletions
diff --git a/.linux/etc/modprobe.d/framework-laptop.conf b/.linux/etc/modprobe.d/framework-laptop.conf index bb33a52..210904b 100644 --- a/.linux/etc/modprobe.d/framework-laptop.conf +++ b/.linux/etc/modprobe.d/framework-laptop.conf | |||
@@ -13,4 +13,4 @@ options i915 enable_psr=0 | |||
13 | # This is a Framework EC firmware bug | 13 | # This is a Framework EC firmware bug |
14 | # | 14 | # |
15 | # Reference: https://community.frame.work/t/20605/55 | 15 | # Reference: https://community.frame.work/t/20605/55 |
16 | blacklist hid-sensor-hub | 16 | blacklist hid_sensor_hub |
diff --git a/.linux/etc/systemd/logind.conf.d/hybrid-sleep.conf b/.linux/etc/systemd/logind.conf.d/hybrid-sleep.conf index 4bdee52..20819d6 100644 --- a/.linux/etc/systemd/logind.conf.d/hybrid-sleep.conf +++ b/.linux/etc/systemd/logind.conf.d/hybrid-sleep.conf | |||
@@ -1,11 +1,5 @@ | |||
1 | [Login] | 1 | [Login] |
2 | # This config is what should be used for laptops with S3 support | 2 | # This config is what should be used for laptops with S3 support |
3 | #HandlePowerKey=suspend-then-hibernate | 3 | HandlePowerKey=suspend-then-hibernate |
4 | #HandleLidSwitch=suspend-then-hibernate | 4 | HandleLidSwitch=suspend-then-hibernate |
5 | #HandleLidSwitchExternalPower=suspend-then-hibernate | 5 | HandleLidSwitchExternalPower=suspend-then-hibernate |
6 | |||
7 | # But in their infinite wisdom Dell removed S3 support from the 9310, so | ||
8 | # this is needed to make sure the laptop actually sleeps well. | ||
9 | HandlePowerKey=hybrid-sleep | ||
10 | HandleLidSwitch=hybrid-sleep | ||
11 | HandleLidSwitchExternalPower=hybrid-sleep | ||
diff --git a/.linux/etc/systemd/sleep.conf.d/fix-9310.conf b/.linux/etc/systemd/sleep.conf.d/fix-9310.conf deleted file mode 100644 index e18032c..0000000 --- a/.linux/etc/systemd/sleep.conf.d/fix-9310.conf +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | [Sleep] | ||
2 | HibernateMode=shutdown | ||
diff --git a/.linux/etc/systemd/system/ath11k-resume.service b/.linux/etc/systemd/system/ath11k-resume.service deleted file mode 100644 index ca4afd5..0000000 --- a/.linux/etc/systemd/system/ath11k-resume.service +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Resume: modprobe ath11k_pci | ||
3 | After=suspend.target hibernate.target hybrid-sleep.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStartPre=/usr/bin/sleep 3 | ||
8 | ExecStart=/usr/sbin/modprobe ath11k_pci | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=suspend.target hibernate.target hybrid-sleep.target | ||
diff --git a/.linux/etc/systemd/system/ath11k-suspend.service b/.linux/etc/systemd/system/ath11k-suspend.service deleted file mode 100644 index 3f69497..0000000 --- a/.linux/etc/systemd/system/ath11k-suspend.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Suspend: rmmod ath11k_pci | ||
3 | Before=sleep.target hibernate.target hybrid-sleep.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStart=/usr/sbin/rmmod ath11k_pci | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=sleep.target hibernate.target hybrid-sleep.target | ||
diff --git a/.linux/etc/systemd/system/ax500-resume.service b/.linux/etc/systemd/system/ax500-resume.service deleted file mode 100644 index 5697f2a..0000000 --- a/.linux/etc/systemd/system/ax500-resume.service +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Resume: modprobe hci_uart | ||
3 | After=suspend.target hibernate.target hybrid-sleep.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStartPre=/usr/bin/sleep 3 | ||
8 | ExecStart=/usr/sbin/modprobe hci_uart | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=suspend.target hibernate.target hybrid-sleep.target | ||
diff --git a/.linux/etc/systemd/system/ax500-suspend.service b/.linux/etc/systemd/system/ax500-suspend.service deleted file mode 100644 index a1e5ed3..0000000 --- a/.linux/etc/systemd/system/ax500-suspend.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Suspend: rmmod hci_uart | ||
3 | Before=sleep.target hibernate.target hybrid-sleep.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStart=/usr/sbin/rmmod hci_uart | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=sleep.target hibernate.target hybrid-sleep.target | ||