You are not logged in.
I have a laptop running with Intel i7-2630QM. I know my laptop had worse-than-expected battery life, but I never realized how bad until I installed powertop. Turns out I'm idling at 29W(!). This is even after enabling pcie_aspm=force and the related boot arguments that supposedly improve battery life in Intel laptops.
I think a big part of the problem is my fan, as my laptop has always been particularly noisy. However, I can't figure out which chipset I should be modifying in sensors.conf.
Output of sensors:
acpitz-virtual-0
Adapter: Virtual device
temp1: +57.0°C (crit = +120.0°C)
temp2: +55.0°C (crit = +127.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +55.0°C
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +58.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +53.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +52.0°C (high = +86.0°C, crit = +100.0°C)
Core 2: +55.0°C (high = +86.0°C, crit = +100.0°C)
Core 3: +54.0°C (high = +86.0°C, crit = +100.0°C)Compared with my friends' laptops, I expected to see a line that corresponds to my chipset, but I don't - what line(s) should I expect to modify?
Last edited by chimeracoder (2012-05-24 20:09:43)
Offline
I can't answer your question as stated, but for my systems I've taken a different approach to fan control when needed by finding the right file and echoing a speed to it. This takes some exploration of /sys/devices/platform/* but has never been to hard to find.
I first started playing with these when I found an entry on Allan's blog on writing a fan control daemon for macbooks. I've since learned that a similar simple approach can work on many other systems.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
How do you automate this, though? I don't mind manually slowing it down when I know I'm not doing much, but I'd be afraid of accidentally not starting it back up before running something computationally intensive.
Also, there's a file specified in the wiki page linked - I assume that's the one you're referring to?
Last edited by chimeracoder (2012-05-24 20:34:30)
Offline
Setting it up takes some investigation as you have to find the appropriate sensors, but once you figure out the right files in that directory you're set with a simple loop that could be written in nearly any programming language.
Here's the page that got me started on it. That is specifically for macbook's, but a similar approach has worked well for me on some other systems. This may be a 'closer to the metal' approach than many of the monitor and control tools available out there. The cost of this is the requirement to really explore your /sys/device/... directory tree and figure out which files to use. The benefit is more control and less "moving parts" that can go wrong with updates.
I can't say I'd recommend this for everyone, or all systems. It's just an alternative worth considering.
Edit: this was as an alternative to the sensors package which I'm not remotely familiar with. The exact files that need to be read and written to differs on different hardware. Hence the need to explore the device directory a bit if you wanted to try this route. Perhaps someone else can help with the sensor package, I have no reason to doubt it's suitability to the task, I've just used a different approach.
Last edited by Trilby (2012-05-24 20:42:51)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
More info about your system would be nice. For example, do you have a nvidia card in there?
Offline
Have you checked you're not using performance CPU scaling rather than ondemand?
Offline
I use Thinkfan for my Thinkpad T420i. pcie_aspm=force is no longer required in latest kernel. On my system, discrete graphic card constantly sucks 5-10W but integrated GPU works with minimum resources. Checkout these kernel arguments and also laptop-mode-tool helps.
Offline
I use Thinkfan for my Thinkpad T420i. pcie_aspm=force is no longer required in latest kernel. On my system, discrete graphic card constantly sucks 5-10W but integrated GPU works with minimum resources. Checkout these kernel arguments and also laptop-mode-tool helps.
Those are the arguments I was talking about - when I enabled those I got a boost from the 1.5 hours I was getting before (to the 2 hours I get now).
I have an Intel Core i7-2630QM (2 GHz, 6MB L3 Cache) with Turbo Boost up to 2.9 GHz and a 1GB DDR3 Radeon(TM) HD 6630 switchable Graphics card. I'm not using performance CPU scaling;
Right now, for example, my computer is running at about 51 degrees and the fan isn't on full blast, but enough to be decently noisy. So while using more a proactive CPU governor might help, the fan itself is sucking a huge amount of power even when idling and cold.
Offline
@chimeracoder your temperature seems to be normal. What is the idle power consumption as reported by Powertop? My fan runs at least 2XXX because temperature settings are a bit conservative.
Do you get better battery life in windows? Quad cores are not so forgiving when it comes to battery.
Last edited by donniezazen (2012-05-26 19:09:27)
Offline
Yes, the temperature is normal, but the fact that the fan is operating at such a high speed regardless of the temperature (even in the 40s) is not.
Also, I'm currently idling at 30.6 W. I don't think I've ever seen it dip below 25 W.
Offline
25W to 30W is outrageous. I am not knowledgeable enough to help but you got to figure out how to get that down to 10-15W and your battery life will improve. What is your DE? My system is powerful but gets crazy with Gnome, so, I moved to Awesome which is very light weight.
Offline
Haha, yes, I know it's outrageous. It's not the DE/WM, though - I use wmii, and I had the same battery life when I was using xmonad, awesome, and xfce.
Offline
Digging around, I do think it may be a problem with the GPU, not the CPU. I'm using the xf86-video-ati driver.
When I try to do
echo dynpm > /sys/class/drm/card0/device/power_methodas specified in https://wiki.archlinux.org/index.php/ATI#Powersaving, I get the errror
bash: /sys/class/drm/card0/device/power_method: No such file or directoryOffline
Okay, I've half-solved the issue - I turned off the radeon card, and my idle temperature dropped by about 10 degrees. I'm idling at about 18 W now, so I get about an extra hour of battery life (~3 hours). That said, since I could get about 5 in Windows on this computer, I think there's still some room for improvement, especially since the fan is still a bit noisy. (I can't measure it exactly, but to my ear, it sounds like it's running too high given my low temperature of ~45 degrees).
I'm assuming the fan is the number one power draw at this point, so is there any other way that I can get it down without pwm?
Here are the other devices in powertop:
860.6 pkts/s Network interface: wlan0 (iwlwifi)
100.0% Display backlight
9.0% CPU use
0.0 pkts/s Network interface: eth0 (atl1c)
100.0% USB device: usb-device-8087-0024
100.0% USB device: HP Integrated Module (Broadcom Corp)
100.0% USB device: EHCI Host Controller
100.0% Radio device: btusb
100.0% Radio device: iwlwifi
100.0% Radio device: hp-wmi
100.0% Radio device: hp-wmi
100.0% Radio device: hp-wmi
100.0% Audio codec hwC0D3: Intel
100.0% Audio codec hwC0D0: IDT
0.0% USB device: EHCI Host ControllerOffline
Offline
At the moment, nothing - the original post for this thread was because I couldn't configure lm_sensors to control the fan. Here's the full output of sensors, though:
acpitz-virtual-0
Adapter: Virtual device
temp1: +48.0°C (crit = +120.0°C)
temp2: +0.0°C (crit = +127.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +50.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +44.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +43.0°C (high = +86.0°C, crit = +100.0°C)
Core 2: +49.0°C (high = +86.0°C, crit = +100.0°C)
Core 3: +46.0°C (high = +86.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: -128.0°C (Obviously, the 0 and -128 readings are because I turned off the Radeon card - before they were giving readings in the same range as the others).
Offline
If your output does not display an RPM value for your CPU fan, and you are positive it is running, you need to increase the fan divisor. If your fan speed is shown and higher than 0, skip the next step - Wiki.
Last edited by donniezazen (2012-05-27 19:45:30)
Offline
Yes, I saw that, though I'm not sure which chipset to modify, since I don't see anything in the sensors.conf file copied from /etc/sensors3.conf that corresponds to anything in the sensors output.
Offline
Just wanted to check in on this again - after switching off the radeon card, I was able to get the power consumption down to ~20W, but I still don't see anything in the sensors output that tells me where to modify sensors.conf to help me adjust the fan speed. Is there any way to do this on this hardware?
Offline
I think yo are looking for thinkfan or something like this...
Offline
Just to check, did sensors find your fan when you configured it (as explained at https://wiki.archlinux.org/index.php/Lm … m_sensors)?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
chimeracoder, I am having the same chicken/egg problem on a Latitude E6400:
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.5°C (crit = +107.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +39.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +41.0°C (high = +105.0°C, crit = +105.0°C)Not much to work with! And yes, the fan is absolutely spinning ...
Offline
Two things:
1. That dedicated radeon card *Will* suck your power if you are using the OSS radeon drivers. You can try setting the oss drivers to low profile, but that didn't help enough in my experience. Catalyst is the only way to get good power management on those cards, and its a PIA to use on arch due to the kernel being so up to date.
2. You should probably look into using cpupower for frequency scaling, and using pm-utils and/or laptop-mode-tools for additional powersaving. I currently get ~5 hours, and all good powertop results on my intel only laptop usuing just cpupower and pm-utils hooks.
EDIT: Missed the post above where you turned off the radeon ![]()
Last edited by bwat47 (2012-07-01 14:33:46)
Offline