Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27976 - [cpufrequtils] Auto load kernel module

Attached to Project: Arch Linux
Opened by vitok (vitok) - Tuesday, 17 January 2012, 16:52 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 24 August 2012, 07:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I'm attached a working init script for starting cpufrequtils and automatically load kernel module.
The code stolen from open-suse ;)
P.S sorry for my bad english.
   cpufreq (2.4 KiB)
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Friday, 24 August 2012, 07:17 GMT
Reason for closing:  Won't fix
Additional comments about closing:  cpufrequtils has been removed from the repos.
Comment by Pierre Schmitz (Pierre) - Tuesday, 17 January 2012, 18:54 GMT
Aren't these tools deprecated and will by replaced by cpupower?

And a naive question: Isn't there a way to do this with udev?
Comment by vitok (vitok) - Tuesday, 17 January 2012, 20:29 GMT
"Aren't these tools deprecated and will by replaced by cpupower?"

I can easily modify the cpupower init script for adding this functionality.
But some package depends on cpufrequtils for example gnome-applets, so i use cpufrequtils.


"Isn't there a way to do this with udev?"

There is no way.
Comment by Jan de Groot (JGC) - Friday, 20 January 2012, 00:09 GMT
I don't think randomly loading every kernel module that has some relation to cpufreq is the way to go.
Comment by vitok (vitok) - Friday, 20 January 2012, 18:33 GMT
I don't say what it's the perfect way to do this, but it's works very well. You can't load powernow-k8 module if you have intel CPU, or acpi-cpufreq if you have amd CPU. So I don't think that's the way that can break the system.
Comment by Marius (65kid) - Sunday, 06 May 2012, 17:05 GMT
the cpufreq drivers will be autoloaded starting with kernel 3.4 anyway:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=fa8031aefec0cf7ea6c2387c93610d99d9659aa2

I already tested this with linux-mainline from the AUR, acpi_cpufreq is loaded automatically. And ondemand is the default since 3.3, so cpufreq/cpupower should be unnecessary for most people then.

Loading...