write(msg)

write(msg)

A Linux blog to share any hints, tips, ebuilds, and insight I have picked up along the way. My interests mainly lie in security, photography, the web, and multimedia.

Friday, August 15, 2008

Fix frequency scaling on Gentoo >=2.6.25

I created this blog for a few reasons. One of those reasons is to document tips, tricks, and workarounds for computer related problems that I have come across. I have been creating notes on my computer to reference these problems but this blog will allow me to not only store my findings on the web but also allow other people to access them should they provide useful. So without futher ado here is my first fix.

First a little background, my OS of choice is Gentoo Linux. Currently I am running a 64-bit kernel with a hardened profile, and a hardened gcc 4.2 from Xake's toolchain overlay. I am using PaX/Grsec for hardening.

The Problem:

After upgrading to kernel with version 2.6.25 or higher frequency scaling stopped working with cpufreqd. After hours of investigating the problem, and a few Gentoo forum posts it was determined that the problem lay with cpufrequtils. In order to work properly cpufrequtils had to be upgraded. Unfotunately there is only one cpufrequtils package in portage and it is quite old.

The Solution:

A new ebuild had to be created for the latest cpufrequtils. I based the new ebuild on the current ebuild only modifying the "epatch" line. Here are the results for anyone who may be experiencing issues with cpu frequency scaling on Gentoo.
/usr/local/portage/sys-power/cpufrequtils/cpufrequtils-004.ebuild

/usr/local/portage/sys-power/cpufrequtils/files/cpufrequtils-conf.d

/usr/local/portage/sys-power/cpufrequtils/files/cpufrequtils-init.d

Labels: , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

write(msg)

A Linux blog to share any hints, tips, ebuilds, and insight I have picked up along the way. My interests mainly lie in security, photography, the web, and multimedia.

Friday, August 15, 2008

Fix frequency scaling on Gentoo >=2.6.25

I created this blog for a few reasons. One of those reasons is to document tips, tricks, and workarounds for computer related problems that I have come across. I have been creating notes on my computer to reference these problems but this blog will allow me to not only store my findings on the web but also allow other people to access them should they provide useful. So without futher ado here is my first fix.

First a little background, my OS of choice is Gentoo Linux. Currently I am running a 64-bit kernel with a hardened profile, and a hardened gcc 4.2 from Xake's toolchain overlay. I am using PaX/Grsec for hardening.

The Problem:

After upgrading to kernel with version 2.6.25 or higher frequency scaling stopped working with cpufreqd. After hours of investigating the problem, and a few Gentoo forum posts it was determined that the problem lay with cpufrequtils. In order to work properly cpufrequtils had to be upgraded. Unfotunately there is only one cpufrequtils package in portage and it is quite old.

The Solution:

A new ebuild had to be created for the latest cpufrequtils. I based the new ebuild on the current ebuild only modifying the "epatch" line. Here are the results for anyone who may be experiencing issues with cpu frequency scaling on Gentoo.
/usr/local/portage/sys-power/cpufrequtils/cpufrequtils-004.ebuild

/usr/local/portage/sys-power/cpufrequtils/files/cpufrequtils-conf.d

/usr/local/portage/sys-power/cpufrequtils/files/cpufrequtils-init.d

Labels: , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home