Merge ~joalif/ubuntu/+source/systemd:lp1806012 into ubuntu/+source/systemd:ubuntu/eoan-devel
Status: | Needs review |
---|---|
Proposed branch: | ~joalif/ubuntu/+source/systemd:lp1806012 |
Merge into: | ubuntu/+source/systemd:ubuntu/eoan-devel |
Diff against target: |
66 lines (+30/-22) 1 file modified
debian/extra/set-cpufreq (+30/-22) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek (community) | Disapprove | ||
Dimitri John Ledkov | Pending | ||
git-ubuntu developers | Pending | ||
Review via email: mp+367469@code.staging.launchpad.net |
Description of the change
This change adds flexibility to the 'ondemand' service;
it provides the user with the option to configure the cpufreq governor through
/etc/default/
In addition, there is an existing bug when cpufrequtils package is installed;
both 'ondemad' service and cpufrequtils race to set the governor.
In case cpufrequtils is installed and user has chosen a different
governor (by editing the /etc/default/
by ondemand service, the ondemand service will overwrite user's settings and
stick to its selection.
With this change the ondemand service will first check if the /etc/default/
files exist and in case there is a governor defined, the ondemand service will select
the defined governor.
In case there is no such file, ondemand service will behave as it does currently.
The /etc/default/
compatibility between ondemand service and cpufrequtils package.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
I do not agree with the rationale for this change. /etc/default files are not a particularly good interface overall, and the use cases presented are all addressed by disabling the systemd unit completely instead of supporting selection of different governors via this unit.