[Toshiba Satellite -10J] cpufreq is not working properly

Bug #987531 reported by luca
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I'm trying Ubuntu 12.04 beta2 and I'm having a problem with cpufreq. The default governor is ondemand and it's not working properly, the frequency is stuck at the lowest one, which makes the notebook really annoying to use. I've tried the performance governor and it looks like the CPU goes to the maximum frequency, but when querying with cpufreq-info, I still see the minimum freq, but in the statistics about the frequencies used, I see the maximum frequency getting more and more percentage of use.

Finally I tried the convervative governor, and it really look like it behaves like the ondeman should. The frequency is rapidily increased as needed and dropped down again when is not needed anymore. This is the only governor that seems to be changing the frequency in a way cpufreq-info can really see it, as I see the frequency going up and down when using that governor. The userspace governor also seems to be working as expected.

Another strange this is that among the supported frequencies, I get 1.60GHz (the maximum frequency supported) listed twice.

Here is an example run of cpufreq-info:
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to <email address hidden>, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
  cpufreq stats: 1.60 GHz:6.40%, 1.60 GHz:0.01%, 1.50 GHz:0.02%, 1.40 GHz:0.02%, 1.30 GHz:0.02%, 1.20 GHz:0.06%, 1.10 GHz:0.03%, 1000 MHz:0.04%, 900 MHz:0.07%, 800 MHz:93.33% (795)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
  cpufreq stats: 1.60 GHz:20.97%, 1.60 GHz:0.02%, 1.50 GHz:0.06%, 1.40 GHz:0.07%, 1.30 GHz:0.10%, 1.20 GHz:0.18%, 1.10 GHz:0.10%, 1000 MHz:0.15%, 900 MHz:0.19%, 800 MHz:78.16% (424)
analyzing CPU 2:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
  cpufreq stats: 1.60 GHz:20.95%, 1.60 GHz:0.02%, 1.50 GHz:0.11%, 1.40 GHz:0.10%, 1.30 GHz:0.12%, 1.20 GHz:0.32%, 1.10 GHz:0.24%, 1000 MHz:0.25%, 900 MHz:0.38%, 800 MHz:77.51% (622)
analyzing CPU 3:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "conservative" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
  cpufreq stats: 1.60 GHz:20.89%, 1.60 GHz:0.03%, 1.50 GHz:0.09%, 1.40 GHz:0.11%, 1.30 GHz:0.11%, 1.20 GHz:0.19%, 1.10 GHz:0.15%, 1000 MHz:0.13%, 900 MHz:0.14%, 800 MHz:78.15% (451)

My notebook is a Toshiba Z830, I guess all the proper information has been submitted to the bug already, otherwise please let me know what other information do you need. It would be nice if the final Precise release goes out without this issue, as it really will get people a very bad impression about Ubuntu because their notebooks will seem to be too slow!

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image (not installed)
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: luca 24968 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xc0720000 irq 50'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0269,1179063e,00100100 HDA:80862805,11790001,00100000'
   Controls : 24
   Simple ctrls : 11
Date: Mon Apr 23 23:13:07 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
MachineType: TOSHIBA SATELLITE Z830
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.2.0-23-generic root=UUID=0e8db42e-d125-4bd5-bd3a-2181d1fa3301 ro rootflags=subvol=@ quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-23-generic N/A
 linux-backports-modules-3.2.0-23-generic N/A
 linux-firmware 1.79
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/08/2012
dmi.bios.vendor: TOSHIBA
dmi.bios.version: Version 1.60
dmi.board.asset.tag: 0000000000
dmi.board.name: Portable PC
dmi.board.vendor: TOSHIBA
dmi.board.version: Version A0
dmi.chassis.asset.tag: 0000000000
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: Version 1.0
dmi.modalias: dmi:bvnTOSHIBA:bvrVersion1.60:bd02/08/2012:svnTOSHIBA:pnSATELLITEZ830:pvrPT22LE-00300GGR:rvnTOSHIBA:rnPortablePC:rvrVersionA0:cvnTOSHIBA:ct10:cvrVersion1.0:
dmi.product.name: SATELLITE Z830
dmi.product.version: PT22LE-00300GGR
dmi.sys.vendor: TOSHIBA

Revision history for this message
luca (llucax) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Do you know if this issue happened in a previous version of Ubuntu, or is this a new issue?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.4kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-rc4-precise/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
luca (llucax) wrote :

I didn't try with previous versions of Ubuntu, is a new notebook and I only tried Precise beta2. I guess I can try a live version of Oneiric to check if that would be useful.

I'll try using the latest upstream kernel.

Revision history for this message
luca (llucax) wrote :

3.4rc4 is still having the issue. Are you reporting the bug upstream or should I do it myself?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Revision history for this message
luca (llucax) wrote :

BTW, I have the same issue in Ubuntu 11.10 Oneiric, at least in the live CD version.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This issue appears to be an upstream bug, since you tested the latest upstream kernel. Would it be possible for you to open an upstream bug report at bugzilla.kernel.org [1]? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

If you are comfortable with opening a bug upstream, It would be great if you can report back the upstream bug number in this bug report. That will allow us to link this bug to the upstream report.

[1] https://wiki.ubuntu.com/Bugs/Upstream/kernel

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
YAFU (yafu) wrote :

I have a problem with CPU over "ondemand" governor on Kubuntu 12.04 Precise Pangolin, but I'm not sure if this is related with that report.
CPU AMD Athlon X2 4800+ under "powernow-k8" driver. Tested with 3.2.0-24-generic Kernel, and 3.3.6 Kernel from this PPA: https://launchpad.net/~upubuntu-com/+archive/kernel

The problem is that my CPU constantly running at full speed over "ondemand" governor (2.50 GHz) even the CPU usage is low , with a consequent increase in temperature. This problem did not occur in Kubuntu 11.10 Oneiric, which under "ondemand" CPU cores running at 1000 MHz when CPU usage is low and frecuency increased when required. Therefore, the CPU temperature remains lower in Oneiric.
I set "conservative" as governor with cpufreq-set, but CPU is always running at full speed too.

Whatever governor I choose, only allows higher frequency(not scaling allowed):
 current policy: frequency should be within <"2.50 GHz and 2.50 GHz">.
                  The governor "ondemand" may decide which speed to use
                  within this range.

$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to <email address hidden>, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 109 us.
  hardware limits: 1000 MHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz.
  cpufreq stats: 2.50 GHz:99,95%, 2.40 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.80 GHz:0,00%, 1000 MHz:0,05% (2)
analyzing CPU 1:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 109 us.
  hardware limits: 1000 MHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.40 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz.
  cpufreq stats: 2.50 GHz:99,95%, 2.40 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.80 GHz:0,00%, 1000 MHz:0,05% (2)

Revision history for this message
YAFU (yafu) wrote :

Sorry. My problem was that I had installed "cpufreqd" daemon in Presice. In the configuration file (/etc/cpufreqd.conf) "ondemand/conservative" are disabled by default. I purged the package and now everything works.
Regards.

Daniel Bonniot (bonniot)
summary: - cpufreq si not working properly
+ cpufreq is not working properly
penalvch (penalvch)
summary: - cpufreq is not working properly
+ [Toshiba Satellite -10J] cpufreq is not working properly
tags: added: bios-outdated-1.80 needs-upstream-testing regression-potential
penalvch (penalvch)
tags: added: oneiric
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
luca (llucax) wrote :

I'm investigating how to update the BIOS without windows (I completely remove windows from the computer). I'll report back when/if I succeed. Any tips are welcome (the Ubuntu community page doesn't really help).

Revision history for this message
luca (llucax) wrote :

OK, after quite some time trying to upgrade the BIOS I finally succeed. For other people that might find this information useful, this is how I finally did it, using FreeDOS and an usb drive.

1. Install unetbootin: apt-get install unetbootin
2. connect the USB drive
3. umount it if it was automatically mounted, make a linux16 partition on it (I've used fdisk), mark the partition as booteable
4. open unetbootin and select FreeDOS as the distribution, select the USB drive partition you just formatted (it has to be mounted) and write it
5. Instead of downloading the BIOS update from the Toshiba Europe website that only offers a Windows executblae, go to the US website and download the update from any Portage Z830 (I've used the one for the BT8300 model), which is zip file disguised as a Windows executable. I downloaded this file precisely: http://cdgenp01.csd.toshiba.com/content/support/downloads/t224v180.exe
6. Unzip the file contents in the USB drive with FreeDOS
7. Reboot from your USB drive
8. Select safe mode from the boot menu
9. go to the C: drive: C:
10. run: CHGBIOSF C:\BIO0081T.COM

Now I need to play with different kernel booting option to see if I can get the CPU frequency properly working without breaking other stuff. I just realized I never commented here how I partially fixed this problem. Here it is:
http://www.llucax.com.ar/blog/blog/post/-31ba9e5e

The issue I have now is the brightness control gets broken after the first suspend-resume.

Revision history for this message
luca (llucax) wrote :

Yes, sorry, I forgot:
# dmidecode -s bios-version && dmidecode -s bios-release-date
Version 1.80
04/18/2013

The issue has changed but not by the BIOS upgrade, but by the procedure I mention in the blog post. Basically changing:
PowerManagement
   -> BIOS Power Management
      -> Battery Save Mode (using custom settings)
         -> Processor Speed
            <Low>
To <High>

With that change, the ondemand governor works fine, I don't remember if any of the current extra options I pass to the kernel currently are needed or if I added them to deal with other problems. The current set of extra options I'm using are:
acpi_osi=Linux acpi_backlight=vendor pcie_aspm=force i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1

With this configuration, the only remaining issue I get is I can't control the brightness after a suspend-resume with the keyboard keys (I have to manually write to /sys/class/backlight/intel_backlight/brightness). I think if I changed the parameters above in some way, the brightness problem was gone but the cpufreq issues came back. But I might be remembering incorrectly, last time I experimented with this was a LONG time ago.

penalvch (penalvch)
tags: added: latest-bios-1.80
removed: bios-outdated-1.80
Revision history for this message
penalvch (penalvch) wrote :

luca, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/987531/comments/13 regarding this being fixed by adjusting in the BIOS the Processor Speed from Low to High. Regarding your suspend issue, please file a new report via a terminal:
ubuntu-bug linux

For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.