Support for Intel 3.10/3.11 kernel

If you have trouble with PHC you can ask and hope for help here.
maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Support for Intel 3.10/3.11 kernel

Post by maratc » Sun 8. Sep 2013, 13:02

Hi,

I have a fairly old Pentium M 1.86GHz laptop that I'm trying to bring back to life with Xubuntu 13.04.
Just being idle, it fairly quickly gets to 55-58ºC, at which point the fans kick in rather loudly.

I'd be happy to try undervolting it with PHC but it seems that the last supported Ubuntu is 12.04 LTS.

Any plans to bring the update for an Intel x86 to 13.04/13.10? That would be great!

Thanks,
maratc

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: Support for Intel 3.10/3.11 kernel

Post by lio » Sun 8. Sep 2013, 14:12

Let me cite a post not long ago:
ibidem wrote:See https://bugs.launchpad.net/ubuntu/+sour ... bug/984288
(New kernel no longer needed; build and boot with the right options.)

maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Re: Support for Intel 3.10/3.11 kernel

Post by maratc » Sun 8. Sep 2013, 15:04

Uhmmm, thanks for that but I'm unsure if it answers my question.
I'm not on AMD (which is, I suppose, what k8 means?) but on Intel.
What is meant by "build and boot with the right options"?
(Sorry if I'm saying something stupid.)

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: Support for Intel 3.10/3.11 kernel

Post by lio » Sun 8. Sep 2013, 16:56

Altough they talk about AMD(K8) the solution is "universal". Ubuntu has added a new kernel parameter*: cpufreq_driver. Set this to the driver you want to use., like phc-intel and it should work. Typically you would set this parameter in your boot manager config like grub to cpufreq_driver=phc-intel. Please consult it's manual (or search engine) on how and where exactly to set it on your system.

*) Great, a patch for a problem that would never exist if they would just build this stuff as a module and not built-in.

maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Re: Support for Intel 3.10/3.11 kernel

Post by maratc » Mon 9. Sep 2013, 08:25

Thanks lio, so no need in "building"? Everything I have to do is to boot with "cpufreq_driver=phc-intel" in the grub config options? I'll try it later today.

maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Re: Support for Intel 3.10/3.11 kernel

Post by maratc » Tue 10. Sep 2013, 22:12

That doesn't seem to work. Any ideas as to what's wrong?

Code: Select all

user@user-M6V:~$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=8d4839bd-639c-4b38-8e6c-254edac20bf7 ro quiet splash cpufreq_driver=phc-intel vt.handoff=7
user@user-M6V:~$ uname -a
Linux user-M6V 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013 i686 i686 i686 GNU/Linux
user@user-M6V:~$  cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 13
model name	: Intel(R) Pentium(R) M processor 1.86GHz
stepping	: 8
microcode	: 0x20
cpu MHz		: 1861.920
cache size	: 2048 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 2
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2
bogomips	: 3723.84
clflush size	: 64
cache_alignment	: 64
address sizes	: 32 bits physical, 32 bits virtual
power management:

user@user-M6V:~$ ls -Al /sys/devices/system/cpu/cpu0/cpufreq/
ls: cannot access /sys/devices/system/cpu/cpu0/cpufreq/: No such file or directory
user@user-M6V:~$ sudo tlp-stat | grep -i phc
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=8d4839bd-639c-4b38-8e6c-254edac20bf7 ro quiet splash cpufreq_driver=phc-intel vt.handoff=7
PHC kernel not available.

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: Support for Intel 3.10/3.11 kernel

Post by lio » Tue 10. Sep 2013, 22:57

Ehm, only to be on the safe side: You built and installed the phc-intel module beforehand. Did you? If the answer is yes: What happens if you just "modprobe phc-intel"? If no: build and install phc-intel and try again. :)

maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Re: Support for Intel 3.10/3.11 kernel

Post by maratc » Tue 10. Sep 2013, 23:09

Well, at a point of sounding embarrassing, no I didn't. I've tried to apt-get install linux-generic-phc and linux-headers-generic-phc but was greeted with a message of unmet dependencies. This might have something to do with no builds since 12.04. Which was the point of my post :)

Is there a guide or tutorial available that specifically targets newer kernels? Or anything that will work with my environment? I'm fairly proficient with ubuntu as a user, but building kernels is not my strong side.

EDIT: Specifically, I was following this guide: http://linuxsolver.blogspot.it/2012/05/ ... -1204.html.

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: Support for Intel 3.10/3.11 kernel

Post by lio » Tue 10. Sep 2013, 23:35

:) Of course you need to build the phc-intel module. But you don't need to built your own kernel anymore - at least that's what the link I posted is promising.

So get a copy of phc-intel from http://www.linux-phc.org/forum/viewtopic.php?f=7&t=267 extract it and make sure you have dkms installed on your machine (aptitude install dkms). Now enter the extracted phc-intel-pack directory and execute "make dkms_mkdeb". This will build a *.deb package which you install on your system. (e.g. dpkg -i phc-intel-dkms_0.3.2_all.deb). Then reboot and see what happens.

maratc
Posts: 8
Joined: Sun 8. Sep 2013, 12:55

Re: Support for Intel 3.10/3.11 kernel

Post by maratc » Wed 11. Sep 2013, 19:56

I'm slowly progressing, I've built and installed it, and rebooted, but it won't start.
I've blacklisted acpi-cpufreq but it still won't start :(

Code: Select all

user@user-M6V:~$ sudo modprobe phc-intel
ERROR: could not insert 'phc_intel': Invalid argument
user@user-M6V:~$ cat /etc/modprobe.d/blacklist.conf

#blackist required to load phc drivers
blacklist acpi_cpufreq
blacklist cpufreq_stats
user@user-M6V:~$ sudo modprobe -r acpi-cpufreq
FATAL: Module cpufreq_stats is builtin.
FATAL: Error running remove command for acpi_cpufreq
user@user-M6V:~$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-3.8.0-30-generic root=UUID=8d4839bd-639c-4b38-8e6c-254edac20bf7 ro quiet splash cpufreq_driver=phc-intel

Post Reply