summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-08-28 08:05:30 -0700
committerMike Crute <mike@crute.us>2023-08-28 08:05:30 -0700
commitf78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba (patch)
treea173cce8ec016c7f3f46696fa52f2ee5e3489842
parentbe900a9ae7f6ce612af68f05eb879ba8eba72547 (diff)
downloaddotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.tar.bz2
dotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.tar.xz
dotfiles-f78d64c60d0a8b3870bc4e2ef527d2a2841bd4ba.zip
Cleanup Framework laptop config
-rw-r--r--.linux/etc/modprobe.d/framework-laptop.conf2
-rw-r--r--.linux/etc/systemd/logind.conf.d/hybrid-sleep.conf12
-rw-r--r--.linux/etc/systemd/sleep.conf.d/fix-9310.conf2
-rw-r--r--.linux/etc/systemd/system/ath11k-resume.service11
-rw-r--r--.linux/etc/systemd/system/ath11k-suspend.service10
-rw-r--r--.linux/etc/systemd/system/ax500-resume.service11
-rw-r--r--.linux/etc/systemd/system/ax500-suspend.service10
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
16blacklist hid-sensor-hub 16blacklist 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 3HandlePowerKey=suspend-then-hibernate
4#HandleLidSwitch=suspend-then-hibernate 4HandleLidSwitch=suspend-then-hibernate
5#HandleLidSwitchExternalPower=suspend-then-hibernate 5HandleLidSwitchExternalPower=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.
9HandlePowerKey=hybrid-sleep
10HandleLidSwitch=hybrid-sleep
11HandleLidSwitchExternalPower=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]
2HibernateMode=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]
2Description=Resume: modprobe ath11k_pci
3After=suspend.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStartPre=/usr/bin/sleep 3
8ExecStart=/usr/sbin/modprobe ath11k_pci
9
10[Install]
11WantedBy=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]
2Description=Suspend: rmmod ath11k_pci
3Before=sleep.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStart=/usr/sbin/rmmod ath11k_pci
8
9[Install]
10WantedBy=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]
2Description=Resume: modprobe hci_uart
3After=suspend.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStartPre=/usr/bin/sleep 3
8ExecStart=/usr/sbin/modprobe hci_uart
9
10[Install]
11WantedBy=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]
2Description=Suspend: rmmod hci_uart
3Before=sleep.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStart=/usr/sbin/rmmod hci_uart
8
9[Install]
10WantedBy=sleep.target hibernate.target hybrid-sleep.target