aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2023-04-13 17:29:16 +0200
committerTharre <tharre3@gmail.com>2023-04-25 05:33:37 +0200
commitacd5f889d2dd2696f539d5ffda2d81af9ecda68a (patch)
tree0b2085f45c02068aac0cc32ad3f16755e4d3380e /arch-system
parent53487f09b947637283a72cafe61350ae270019a7 (diff)
downloadpkgbuilds-acd5f889d2dd2696f539d5ffda2d81af9ecda68a.tar.gz
pkgbuilds-acd5f889d2dd2696f539d5ffda2d81af9ecda68a.tar.xz
pkgbuilds-acd5f889d2dd2696f539d5ffda2d81af9ecda68a.zip
arch-system: add pci_pm.rules
Diffstat (limited to 'arch-system')
-rw-r--r--arch-system/.SRCINFO4
-rw-r--r--arch-system/PKGBUILD7
-rw-r--r--arch-system/xps13-pci_pm.rules16
3 files changed, 24 insertions, 3 deletions
diff --git a/arch-system/.SRCINFO b/arch-system/.SRCINFO
index 706057b..6a4af24 100644
--- a/arch-system/.SRCINFO
+++ b/arch-system/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = arch-system
pkgdesc = Arch Linux system configuration
- pkgver = 2022.05.25
+ pkgver = 2023.04.13
pkgrel = 1
arch = any
license = custom
@@ -21,6 +21,7 @@ pkgbase = arch-system
source = borgbackup
source = intel-undervolt.conf
source = xps13-i915.conf
+ source = xps13-pci_pm.rules
sha256sums = 271d6a7ac30da0d2ba055067d4ebbab76812c1735e4c2b45c619e004edc1fbba
sha256sums = 70b74b741f3b1b58eeb97d8d5b9e6148a35ff8dced47cf4a231c1d0420aff5eb
sha256sums = b11ab0ea3d5c300afa0fb877d1f367993425a3fda0382f50f0e122625154f566
@@ -38,6 +39,7 @@ pkgbase = arch-system
sha256sums = 276a79a04359ffae6ddf597d060278f6f58890ce2d5f6c185948b31c7a5c8927
sha256sums = 895305808aa91be3294dbaeb7840e38497fb8dbcd6309cc95c417e1a0379e596
sha256sums = 5613c98d32e513a973e8a0e250ab0b267882a73615f507b6208d4a5f21487fe6
+ sha256sums = 4aa61e0833083d0d90e1b732374bfa5da6aa8e86aa291ab1299fc4e87e70f4e0
pkgname = base-system
install = base-system.install
diff --git a/arch-system/PKGBUILD b/arch-system/PKGBUILD
index bba13bf..3b07eeb 100644
--- a/arch-system/PKGBUILD
+++ b/arch-system/PKGBUILD
@@ -15,7 +15,7 @@ source=('etc-pacman.conf' 'etc-locale.conf' 'etc-locale.gen' 'etc-vconsole.conf'
'sudoers-borgbackup' 'backup-sudo' 'borg-backup.service'
'borg-backup.timer' 'borgbackup'
- 'intel-undervolt.conf' 'xps13-i915.conf')
+ 'intel-undervolt.conf' 'xps13-i915.conf' 'xps13-pci_pm.rules')
sha256sums=('271d6a7ac30da0d2ba055067d4ebbab76812c1735e4c2b45c619e004edc1fbba'
'70b74b741f3b1b58eeb97d8d5b9e6148a35ff8dced47cf4a231c1d0420aff5eb'
'b11ab0ea3d5c300afa0fb877d1f367993425a3fda0382f50f0e122625154f566'
@@ -32,7 +32,8 @@ sha256sums=('271d6a7ac30da0d2ba055067d4ebbab76812c1735e4c2b45c619e004edc1fbba'
'e1bf3dc5978a7641f86975b7ee770a6914b30a8e4b7e3be2f1b07eaa7098591d'
'276a79a04359ffae6ddf597d060278f6f58890ce2d5f6c185948b31c7a5c8927'
'895305808aa91be3294dbaeb7840e38497fb8dbcd6309cc95c417e1a0379e596'
- '5613c98d32e513a973e8a0e250ab0b267882a73615f507b6208d4a5f21487fe6')
+ '5613c98d32e513a973e8a0e250ab0b267882a73615f507b6208d4a5f21487fe6'
+ '4aa61e0833083d0d90e1b732374bfa5da6aa8e86aa291ab1299fc4e87e70f4e0')
package_base-system() {
depends=('gvim' 'zsh' 'tmux' 'htop' 'git' 'reflector' 'sudo' 'avahi'
@@ -70,6 +71,8 @@ package_xps13() {
install -Dm0644 xps13-i915.conf "$pkgdir"/etc/modprobe.d/i915.conf
install -Dm0644 intel-undervolt.conf -t "$pkgdir"/etc/
+ install -Dm0644 xps13-pci_pm.rules \
+ "$pkgdir"/usr/lib/udev/rules.d/99-pci_pm.rules
}
# TODO: docker, vagrant, devtools
diff --git a/arch-system/xps13-pci_pm.rules b/arch-system/xps13-pci_pm.rules
new file mode 100644
index 0000000..8a59bbf
--- /dev/null
+++ b/arch-system/xps13-pci_pm.rules
@@ -0,0 +1,16 @@
+# whitelist for pci autosuspend
+
+# Intel Sunrise PCI Express Port #1
+SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0x9d10", ATTR{power/control}="auto"
+
+# Intel Xeon E3-1200 v6/7th Gen
+SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0x5914", ATTR{power/control}="auto"
+
+# Intel Sunrise Point LPC Controller/eSPI Controller
+SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0x9d4e", ATTR{power/control}="auto"
+
+# SK hynix PC300 NVMe SSD
+SUBSYSTEM=="pci", ATTR{vendor}=="0x1c5c", ATTR{device}=="0x1283", ATTR{power/control}="auto"
+
+# Qualcomm Atheros QCA6174 802.11ac Wireless Adapter
+SUBSYSTEM=="pci", ATTR{vendor}=="0x168c", ATTR{device}=="0x003e", ATTR{power/control}="auto"