Describe the bug
After I upgraded to Ubuntu 21.04. I noticed that tlp.service was not activated on system startup. It turns out that the service unit power-profiles-daemon.service of the new power-profiles-daemon package is the problem. It's declaring a conflict with tlp.service causing tlp.service to be effectively disabled.
Disabling power-profiles-daemon.service or removing power-profiles-daemon package resolves the issue for me.
This package is installed by default in Ubuntu 21.04+ and some other distributions as well.
/lib/systemd/system/power-profiles-daemon.service (notice the Conflicts directive)
[Unit]
Description=Power Profiles daemon
Conflicts=tuned.service tlp.service auto-cpufreq.service
Before=multi-user.target display-manager.target
...
Expected behavior
- The documentation may include a note under Installation > Ubuntu and FAQ > Installation sections explaining that a user must either disable
power-profiles-daemon.service or remove power-profiles-daemon package for TLP to work properly; or
- TLP service unit may include
Conflicts=power-profiles-daemon.service directive. This will resolve the issue in the current setup of both services, as tlp.service is activated before power-profiles-daemon.service.
- Optionally, configure TLP service unit with
Before=power-profiles-daemon.service to make sure that tlp.service activation will always take precedence over power-profiles-daemon.service.
To Reproduce
- Install power-profiles-daemon package.
- Reboot.
- Inspect the runtime status of
tlp.service unit.
Describe the bug
After I upgraded to Ubuntu 21.04. I noticed that
tlp.servicewas not activated on system startup. It turns out that the service unitpower-profiles-daemon.serviceof the new power-profiles-daemon package is the problem. It's declaring a conflict withtlp.servicecausingtlp.serviceto be effectively disabled.Disabling
power-profiles-daemon.serviceor removing power-profiles-daemon package resolves the issue for me.This package is installed by default in Ubuntu 21.04+ and some other distributions as well.
/lib/systemd/system/power-profiles-daemon.service (notice the Conflicts directive)
Expected behavior
power-profiles-daemon.serviceor remove power-profiles-daemon package for TLP to work properly; orConflicts=power-profiles-daemon.servicedirective. This will resolve the issue in the current setup of both services, astlp.serviceis activated beforepower-profiles-daemon.service.Before=power-profiles-daemon.serviceto make sure thattlp.serviceactivation will always take precedence overpower-profiles-daemon.service.To Reproduce
tlp.serviceunit.