Skip to content

power-profiles-daemon package conflicts with TLP #564

Description

@mhadidg

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

  1. Install power-profiles-daemon package.
  2. Reboot.
  3. Inspect the runtime status of tlp.service unit.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions