Starting powertop --auto-tune from systemd

Rainer Dorsch ml at bokomoko.de
Sat Mar 10 17:55:48 GMT 2018


[Please follow-up to debian-user]

Hello,

I run

/usr/bin/powertop --auto-tune

to optimize the power consumption of my system. Running it manually works 
nicely. When I try to run from systemd, I see no effect :-/

I followed

https://wiki.archlinux.org/index.php/Powertop#Apply_settings

added

root at master:~# cat /etc/systemd/system/powertop.service 
[Unit]
Description=Powertop tunings

[Service]
ExecStart=/usr/bin/powertop --auto-tune
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
root at master:~# 

enabled it for systemd and got

root at master:~# systemctl status powertop.service 
● powertop.service - Powertop tunings
   Loaded: loaded (/etc/systemd/system/powertop.service; enabled; vendor 
preset: enabled)
   Active: active (exited) (Result: exit-code) since Sat 2018-03-10 18:29:53 
CET; 22min ago
  Process: 642 ExecStart=/usr/bin/powertop --auto-tune (code=exited, 
status=203/EXEC)
 Main PID: 642 (code=exited, status=203/EXEC)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/powertop.service

Mar 10 18:29:53 master systemd[1]: Started Powertop tunings.
Mar 10 18:29:53 master systemd[1]: powertop.service: Main process exited, 
code=exited, status=203/EXEC
root at master:~# 

powertop still report that the parameters are "Bad". Runnung

# powertop --auto-tune

makes them all good (and reduces the power consumption).

Any idea is welcome :-)

Thanks
Rainer

-- 
Rainer Dorsch
http://bokomoko.de/



More information about the Pkg-systemd-maintainers mailing list