Earthworm4478
Member
I have a 2 liner bash script that refuses to work at boot.
I created a corresponding service unit to start at boot.
After booting I get the error that the script exited with error.
When I run the script manually after boot process I get no issue.
I am just trying to set my video card profile to powersave. Everything works fine if I execute the below after boot.
Service Unit
I created a corresponding service unit to start at boot.
After booting I get the error that the script exited with error.
When I run the script manually after boot process I get no issue.
I am just trying to set my video card profile to powersave. Everything works fine if I execute the below after boot.
Code:
#!/bin/sh
sudo sh -c "echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level"
sudo sh -c "echo 2 > /sys/class/drm/card0/device/pp_power_profile_mode"
Service Unit
Code:
[Unit]
Description=Change GPU core profile to powersave
[Service]
Type=oneshot
ExecStart=/usr/bin/gpu
[Install]
WantedBy=multi-user.target