Powertop systemd service failed to load
up vote
2
down vote
favorite
After my installing of powertop and calibrating it, I create systemd service with following text:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
After system load I get this log:
nikon-laptop powertop[615]: Load 55 measurement
nikon-laptop powertop[615]: Error opening terminal: unknown.
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop systemd[1]: powertop.service: main process exited, code=exited, status=1/FAILURE
nikon-laptop systemd[1]: Failed to start PowerTop.
nikon-laptop systemd[1]: Unit powertop.service entered failed state.
nikon-laptop systemd[1]: powertop.service failed.
and all tunes bad again (if I run auto-tune after system load in my term all tunes stay good). How to fix that.
power-management systemd powertop
add a comment |
up vote
2
down vote
favorite
After my installing of powertop and calibrating it, I create systemd service with following text:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
After system load I get this log:
nikon-laptop powertop[615]: Load 55 measurement
nikon-laptop powertop[615]: Error opening terminal: unknown.
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop systemd[1]: powertop.service: main process exited, code=exited, status=1/FAILURE
nikon-laptop systemd[1]: Failed to start PowerTop.
nikon-laptop systemd[1]: Unit powertop.service entered failed state.
nikon-laptop systemd[1]: powertop.service failed.
and all tunes bad again (if I run auto-tune after system load in my term all tunes stay good). How to fix that.
power-management systemd powertop
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
After my installing of powertop and calibrating it, I create systemd service with following text:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
After system load I get this log:
nikon-laptop powertop[615]: Load 55 measurement
nikon-laptop powertop[615]: Error opening terminal: unknown.
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop systemd[1]: powertop.service: main process exited, code=exited, status=1/FAILURE
nikon-laptop systemd[1]: Failed to start PowerTop.
nikon-laptop systemd[1]: Unit powertop.service entered failed state.
nikon-laptop systemd[1]: powertop.service failed.
and all tunes bad again (if I run auto-tune after system load in my term all tunes stay good). How to fix that.
power-management systemd powertop
After my installing of powertop and calibrating it, I create systemd service with following text:
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
After system load I get this log:
nikon-laptop powertop[615]: Load 55 measurement
nikon-laptop powertop[615]: Error opening terminal: unknown.
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: RAPL device for cpu 0
nikon-laptop powertop[615]: Cannot load from file /var/cache/powertop/saved_parameters.powertop
nikon-laptop systemd[1]: powertop.service: main process exited, code=exited, status=1/FAILURE
nikon-laptop systemd[1]: Failed to start PowerTop.
nikon-laptop systemd[1]: Unit powertop.service entered failed state.
nikon-laptop systemd[1]: powertop.service failed.
and all tunes bad again (if I run auto-tune after system load in my term all tunes stay good). How to fix that.
power-management systemd powertop
power-management systemd powertop
asked Aug 31 '15 at 16:29
user2010633
113
113
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
up vote
3
down vote
Powertop needs a TTY attached even when in auto-tune mode. You can use screen to fake it for the purposes of startup scripts like this:
screen -d -m powertop --auto-tune
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
add a comment |
up vote
1
down vote
Try adding the following:
[Service]
StandardOutput=tty
....
add a comment |
up vote
0
down vote
This issue is as of this writing still relevant under CentOS/RHEL and other OS's, that are relying on older versions of powertop.
The most elegant workaround I've seen for this is to set:
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
Setting a dumb terminal will prevent powertop's bailing out.
add a comment |
up vote
0
down vote
I realize the question is old and this may have changed since, but your ExecStart line was:
ExecStart=/usr/bin/powertop
However, the executable is in /usr/sbin, not /usr/bin, at least on Ubuntu 18.10:
$ ls /usr/bin/powertop
ls: cannot access '/usr/bin/powertop': No such file or directory
$ which powertop
/usr/sbin/powertop
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Powertop needs a TTY attached even when in auto-tune mode. You can use screen to fake it for the purposes of startup scripts like this:
screen -d -m powertop --auto-tune
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
add a comment |
up vote
3
down vote
Powertop needs a TTY attached even when in auto-tune mode. You can use screen to fake it for the purposes of startup scripts like this:
screen -d -m powertop --auto-tune
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
add a comment |
up vote
3
down vote
up vote
3
down vote
Powertop needs a TTY attached even when in auto-tune mode. You can use screen to fake it for the purposes of startup scripts like this:
screen -d -m powertop --auto-tune
Powertop needs a TTY attached even when in auto-tune mode. You can use screen to fake it for the purposes of startup scripts like this:
screen -d -m powertop --auto-tune
answered Sep 18 '15 at 3:47
Lispnik
1311
1311
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
add a comment |
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
I am kind of disappointed that this is the solution but it works. Seems like PowerTOP should either not require a TTY or Systemd should be able to provide one.
– nnutter
Mar 25 '16 at 22:28
add a comment |
up vote
1
down vote
Try adding the following:
[Service]
StandardOutput=tty
....
add a comment |
up vote
1
down vote
Try adding the following:
[Service]
StandardOutput=tty
....
add a comment |
up vote
1
down vote
up vote
1
down vote
Try adding the following:
[Service]
StandardOutput=tty
....
Try adding the following:
[Service]
StandardOutput=tty
....
answered Jun 19 '16 at 13:59
Felix
112
112
add a comment |
add a comment |
up vote
0
down vote
This issue is as of this writing still relevant under CentOS/RHEL and other OS's, that are relying on older versions of powertop.
The most elegant workaround I've seen for this is to set:
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
Setting a dumb terminal will prevent powertop's bailing out.
add a comment |
up vote
0
down vote
This issue is as of this writing still relevant under CentOS/RHEL and other OS's, that are relying on older versions of powertop.
The most elegant workaround I've seen for this is to set:
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
Setting a dumb terminal will prevent powertop's bailing out.
add a comment |
up vote
0
down vote
up vote
0
down vote
This issue is as of this writing still relevant under CentOS/RHEL and other OS's, that are relying on older versions of powertop.
The most elegant workaround I've seen for this is to set:
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
Setting a dumb terminal will prevent powertop's bailing out.
This issue is as of this writing still relevant under CentOS/RHEL and other OS's, that are relying on older versions of powertop.
The most elegant workaround I've seen for this is to set:
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
Setting a dumb terminal will prevent powertop's bailing out.
answered Mar 17 '17 at 20:09
nodonttakethose
963
963
add a comment |
add a comment |
up vote
0
down vote
I realize the question is old and this may have changed since, but your ExecStart line was:
ExecStart=/usr/bin/powertop
However, the executable is in /usr/sbin, not /usr/bin, at least on Ubuntu 18.10:
$ ls /usr/bin/powertop
ls: cannot access '/usr/bin/powertop': No such file or directory
$ which powertop
/usr/sbin/powertop
add a comment |
up vote
0
down vote
I realize the question is old and this may have changed since, but your ExecStart line was:
ExecStart=/usr/bin/powertop
However, the executable is in /usr/sbin, not /usr/bin, at least on Ubuntu 18.10:
$ ls /usr/bin/powertop
ls: cannot access '/usr/bin/powertop': No such file or directory
$ which powertop
/usr/sbin/powertop
add a comment |
up vote
0
down vote
up vote
0
down vote
I realize the question is old and this may have changed since, but your ExecStart line was:
ExecStart=/usr/bin/powertop
However, the executable is in /usr/sbin, not /usr/bin, at least on Ubuntu 18.10:
$ ls /usr/bin/powertop
ls: cannot access '/usr/bin/powertop': No such file or directory
$ which powertop
/usr/sbin/powertop
I realize the question is old and this may have changed since, but your ExecStart line was:
ExecStart=/usr/bin/powertop
However, the executable is in /usr/sbin, not /usr/bin, at least on Ubuntu 18.10:
$ ls /usr/bin/powertop
ls: cannot access '/usr/bin/powertop': No such file or directory
$ which powertop
/usr/sbin/powertop
answered Nov 25 at 13:21
Knuckles
565
565
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f667798%2fpowertop-systemd-service-failed-to-load%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown