[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cpufreqd: different config file for kernel 2.4 and 2.6



On Fri, Oct 24, 2003 at 01:11:34PM +0200, Mattia Dongili wrote:
> Now, if I provide percent based cpufreqd.conf it won't be 2.6
> compatible, but provinding a Hz based config file is meaningless for
> most systems.

Hm, is it possible to provide one cpufreqd.conf-2.4 for 2.4.x Kernels
and one cpufreqd-conf-2.6, which supports 2.6 Kernel Versions?

Maybe it would be useful to provide an Debconf Config. interface, which
is started during Installation and makes it possible to select an proper
Configuration file, ala:

	"These Kernel Versions where found on your system:"
		
		2.4.18 		[ ]
		2.6.0-test4 	[ ]

	"Please select which Kernel Version should be supported
	 by the cpufreqd Configuration File per default"..

(.. the Debconf Iface should provide detailed informations why the
user has to select the right configuration file ..)  

Based on the selection, the right configuration file is copied to /etc/
and the other Configurations are copied to /usr/share/doc/cpufreqd/
examples/cpufreqd.conf-2.6-example and so on ..

> At the moment cpufreqd exits with an error (and a fat warning) if kernel
> is >2.6 and if frequency is in percentage, so the installation process
> breaks in postinst when starting the daemon.

You can try to tweak the startup scripts to not start the Daemon
if the User selected an Configuration file which is not matching
the running Kernel. (so, if he selected an config file, which
supports 2.4 Kernels and runs 2.6x the deamon does not get started)

> Any suggestion on how to manage such a situation? Any other package
> faces a similar problem?

I hope i got it ;-)

bye,
    - michael



Reply to: