Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327735 - Missing dependency on sys-power/acpid in sys-power/cpufreqd
Summary: Missing dependency on sys-power/acpid in sys-power/cpufreqd
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2014-05-06
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2010-07-11 01:16 UTC by Phil Stracchino (Unix Ronin)
Modified: 2014-05-11 08:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Stracchino (Unix Ronin) 2010-07-11 01:16:08 UTC
If built with USE=acpi, sys-power/cpufreqd requires sys-power/acpid for ACPI functionality.  The dependencies do not reflect this.

(This may also be true with regard to sys-power/apmd and USE=apm, but I don't know because I don't have a Gentoo system that requires apm.)

Reproducible: Always

Steps to Reproduce:
1. USE=acpi emerge sys-power/cpufreqd
2. Set up cpufreqd with acpi rules without first emerging acpid

Actual Results:  
No rules using any ACPI functions will work unless acpid is installed and running, which will cause cpufreqd to fail to start.

Expected Results:  
With USE=acpi, sys-power/cpufreqd should depend upon sys-power/acpid.
Comment 1 Phil Stracchino (Unix Ronin) 2010-07-11 01:20:09 UTC
er, sorry, replace sys-power/apmd with sys-apps/apmd in the above.
Comment 2 Sergey Popov (RETIRED) gentoo-dev 2012-11-19 09:42:31 UTC
@ppc team, what do you think? acpid keyworded -ppc, so, probably if we add it to DEPEND, ppc keyword should be dropped from sys-power/cpufreqd?
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2013-03-28 13:35:23 UTC
No, cpufreqd works fine on PowerPC, we don't use ACPI profiles, so there's no need for acpid.
Comment 4 Sergey Popov (RETIRED) gentoo-dev 2013-03-28 13:48:08 UTC
(In reply to comment #3)
> No, cpufreqd works fine on PowerPC, we don't use ACPI profiles, so there's
> no need for acpid.

So, drop keywords from acpid too, huh?
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2013-03-28 14:15:45 UTC
There are no keywords on ppc for acpid? I'm not sure what you're asking for. The use flag "acpi" is already masked on ppc, so this doesn't effect us.
Comment 6 Sergey Popov (RETIRED) gentoo-dev 2013-03-28 14:21:29 UTC
(In reply to comment #5)
> The use flag "acpi" is already masked on ppc, so this doesn't effect us.

Ok, thanks for clarification. It seems that we can just add optional dependency on acpid to cpufreqd with 'acpi' USE-flag
Comment 7 Pavel Kazakov (RETIRED) gentoo-dev 2013-09-15 01:36:07 UTC
I am unable to reproduce this issue using sys-power/cpufreqd-2.4.2-r2. Maybe this problem has been fixed in the latest revision?

I compiled cpufreqd with the acpi USE flag and without acpid running, and cpufreqd starts and stops without any problems. Using 'cpufreqd --no-daemon -V 7', I debugged the program to make sure it was properly running acpi command, and it seemed to.

The only issue I can potentially see is setting 'acpid_socket=/var/run/acpid.socket' since this config setting requires acpid explicitly.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-09-25 08:12:05 UTC
Are people aware cpufreqd is completely dead package and shouldn't be used? I believe Gentoo is the only distribution still carrying the package in repository.
The Linux kernel source tree has the current tool, which is cpupower. That's cpupower or linux-misc-apps in Portage.
Comment 9 Pacho Ramos gentoo-dev 2013-10-13 11:37:35 UTC
(In reply to Samuli Suominen from comment #8)
> Are people aware cpufreqd is completely dead package and shouldn't be used?
> I believe Gentoo is the only distribution still carrying the package in
> repository.
> The Linux kernel source tree has the current tool, which is cpupower. That's
> cpupower or linux-misc-apps in Portage.

CCing treecleaners (a lot of months passed since we talked about this ;))
Comment 10 Richard Freeman gentoo-dev 2014-04-08 10:37:37 UTC
(In reply to Samuli Suominen from comment #8)
> Are people aware cpufreqd is completely dead package and shouldn't be used?
> I believe Gentoo is the only distribution still carrying the package in
> repository.
> The Linux kernel source tree has the current tool, which is cpupower. That's
> cpupower or linux-misc-apps in Portage.

Does cpupower include a daemon allowing setting frequency in response to temperature?

For anyone interested - I put cpufreqd in my overlay until I figure out whether I want to maintain it in-tree.  Arch appears to have cpufreqd in their repository as well.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2014-04-08 10:57:28 UTC
(In reply to Richard Freeman from comment #10)
> (In reply to Samuli Suominen from comment #8)
> > Are people aware cpufreqd is completely dead package and shouldn't be used?
> > I believe Gentoo is the only distribution still carrying the package in
> > repository.
> > The Linux kernel source tree has the current tool, which is cpupower. That's
> > cpupower or linux-misc-apps in Portage.
> 
> Does cpupower include a daemon allowing setting frequency in response to
> temperature?

cpupower doesn't have a daemon, as daemon is not required, kernel will do that based on selected governor

$ cpupower frequency-info --governors

You can then enable one of these governors on all CPUs using:

$ cpupower frequency-set --governor [governor]

And cpupower frequency-set allows more finetuned settings like '--max'

And there is a /etc/init.d/cpupower script that allows setting these on boot, kernel will do the rest

Seriously, cpupower and the kernel can replace whatever cpufreqd does, it might be a learning curve, but google is full of examples :)
Comment 12 Stefano 2014-04-11 15:41:47 UTC
(In reply to Samuli Suominen from comment #11)

> Seriously, cpupower and the kernel can replace whatever cpufreqd does, it
> might be a learning curve, but google is full of examples :)

Not true AFAIK.

For instance, it is not possible to link the change in governors to the battery charge, except by playing with ACPI maybe.
Comment 13 Valentin Avram 2014-04-15 14:53:12 UTC
One more problem: by uninstalling cpufreqd and moving to cpupower, cpufrequtils also gets uninstalled (since it's blocked by cpupower) and this way gkrellm-cpufreq gets broken (uses libcpufreq.so provided by cpufrequtils package), and that library does not come with either cpupower or linux-misc-apps.
Comment 14 Pacho Ramos gentoo-dev 2014-05-11 08:05:35 UTC
dropped