Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

X61 CPU clock limiter on 65w charger w/o batt, and Linux loophole?

Linux on ThinkPads
Post Reply
Message
Author
axur-delmeria
Senior ThinkPadder
Senior ThinkPadder
Posts: 3858
Joined: Mon May 28, 2012 5:49 am
Location: Metro Manila, Philippines

X61 CPU clock limiter on 65w charger w/o batt, and Linux loophole?

#1 Post by axur-delmeria » Sat Mar 11, 2017 4:54 am

Certain Thinkpad models (including the X61) have a BIOS quirk that limits the CPU clock speed to 1.2GHz when running the laptop on a 65w AC adapter without a battery installed.

In Linux, this shows up as /sys/devices/system/cpu/cpuN/cpufreq/bios_limit. Note that the N is the CPU core # minus 1, so for a dual-core processor, there would be two, like this:

/sys/devices/system/cpu/cpu0/cpufreq/bios_limit
/sys/devices/system/cpu/cpu1/cpufreq/bios_limit


We do know the reason for this-- it's a protection mechanism in order to prevent drawing more current than the 65w adapter can supply.

However, I encountered a bug, or perhaps a loophole.

If I start the laptop with both charger and battery plugged in, put the system on standby, then remove the battery, the
bios_limit file does not appear (or is not generated) when I resume from suspend.

This allows me to run my X61 at full speed on AC even without the battery. I ran a few 7z benchmarks to confirm its performance.

on AC, without battery at boot --> 1877 MIPs
on AC, with battery installed --> 3522 MIPs
on AC, battery removed during suspend --> 3522 MIPs

I'm running Debian 8 64-bit on an X61 with a Core 2 Duo T7500 processor and 2GB RAM. I have TLP installed, and the processor is undervolted.

I don't know if this is reproducible in other Thinkpads and other Linux distributions. Just reporting my discovery and findings.
Planned Purchase: T480s i5-8350 FHD Touch
Impulse Buy: Thinkpad not named for safety reasons :lol:
RIP: X220 4291-C91 X61 7676-A24 760XD-U9E :cry:

dr_st
Admin
Admin
Posts: 9716
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: X61 CPU clock limiter on 65w charger w/o batt, and Linux loophole?

#2 Post by dr_st » Sat Mar 11, 2017 6:50 am

Nice find!

Since we are talking about a BIOS feature, it's quite possible that the same quirk can be reproduced on Windows. I bet some would like to test it out. Not that I advocate anyone run their laptop without a battery installed, but I know that some folks do like to do this from time to time, so your discovery will be interesting for them. :D
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad

shawross
Senior Member
Senior Member
Posts: 662
Joined: Mon Oct 28, 2013 5:48 am
Location: Perth Australia

Re: X61 CPU clock limiter on 65w charger w/o batt, and Linux loophole?

#3 Post by shawross » Sat Mar 11, 2017 7:15 am

Interesting .

But obviously there isn't any advantage in removing the battery. Threshold charging with the X61 and all Thinkpads is a clear advantage.
Active --- Love the X series
X301 W 7/Mint | X201 540M L Mint | X220 2520 W7/Mint

Nostalgia
X61 T7500 / T41 T42 T43 / A31

Rogue daily driver - Samsung RV511 15.6 " Screen - W 7

axur-delmeria
Senior ThinkPadder
Senior ThinkPadder
Posts: 3858
Joined: Mon May 28, 2012 5:49 am
Location: Metro Manila, Philippines

Re: X61 CPU clock limiter on 65w charger w/o batt, and Linux loophole?

#4 Post by axur-delmeria » Sat Mar 11, 2017 9:26 am

The primary advantage is not letting the battery heat up due to its proximity to the CPU heatsink. :D

The real danger IMO, is whether it will cause sudden shutdowns when the system is fully stressed (not just the CPU, but also the USB, graphics, and other subsystems), and also shorten the lifespan (and eventually kill) the 65w AC adapter.

This might be safer to do on the X61s and Tablet, as they have LV processors and are less likely to overload the 65w AC adapter.
Planned Purchase: T480s i5-8350 FHD Touch
Impulse Buy: Thinkpad not named for safety reasons :lol:
RIP: X220 4291-C91 X61 7676-A24 760XD-U9E :cry:

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 10 guests