Hi,
I've done some study to try and set my laptops GPU to a lower power setting.. I can set the profile from the terminal rather easily:
Code:
echo low > /sys/class/drm/card0/device/power_profile
and can dynamically (for demanding times) power it by:
Code:
echo dynpm > /sys/class/drm/card0/device/power_method
and I can use nano to view the power_profile (its changed from default to low). Thats a small victory. The next step is I'd like to have my power profile set to low without having to change it each time myself. I thought maybe I could accomplish this by adding the above code to rc.local
So....
Code:
#!bin/sh
echo low > /sys/class/drm/card0/device/power_profile
echo dynpm > /sys/class/drm/card0/device/power_method
Not quite done yet... I make it executable and restart the service to verify its acceptable to systemd
Code:
# chmod a+x /etc/rc.d/rc.local
# systemctl restart rc-local.service
# systemctl status rc-local.service
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static)
Active: active (exited) since Fri, 13 Apr 2012 14:42:39 -0600; 3s ago
Process: 2285 ExecStart=/etc/rc.d/rc.local start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/rc-local.service
Now this makes me happy as far as keeping my GPU running on the lower power profile. However I'd like to know the next step - that is initializing this power profile without having to depend on the rc.local compatability..
Can anyone help me (or point me in the right direction) to do this using systemd?