]> code.delx.au - monosys/commitdiff
nouveau-pstate.service
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 11 Feb 2020 14:53:06 +0000 (01:53 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 11 Feb 2020 14:53:06 +0000 (01:53 +1100)
etc/systemd/system/nouveau-pstate.service [new file with mode: 0644]

diff --git a/etc/systemd/system/nouveau-pstate.service b/etc/systemd/system/nouveau-pstate.service
new file mode 100644 (file)
index 0000000..0e139b2
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Set nouveau pstate
+After=basic.target
+
+[Service]
+Type=oneshot
+ExecStart=/bin/bash -c 'echo AUTO > /sys/kernel/debug/dri/0/pstate'
+
+[Install]
+WantedBy=basic.target