[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Starting powertop --auto-tune from systemd



[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@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@master:~# 

enabled it for systemd and got

root@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@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/


Reply to: