LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-21-2015, 07:09 PM   #1
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Rep: Reputation: Disabled
Lightbulb [14.1-x64] High Power Consumption


Greetings

I am using Lenovo x201s laptop with SSD disk and slackware 14.1-x64 with XFCE desktop. Battery power consumption is super high compared to other distros including even Windows 7. In complete idle with brightness=0 and wifi=off I am getting around 20 CPU wakeups/sec but power consumption goes to around 8-10W! On this laptop it should be around 5-6W, even lower with finest tweaking.

The only packages I have installed/modified over basic installation was getting wicd installed and running, laptop-mode-tools installed and running and iptables configured. Beside that I have also updated all system packages with slackpkg and set scheduler to nano in LILO. Launched discard and noatime options there, set swap to be completely off to reduce writes as I have 8GB of RAM. Temperatures are around 40C and CPU 'ondemand' governor keeps it at 1.2GHz when idle(stock reference 2GHz, turbo 2.8GHz). 8W in pure shell with all powertop turnables, jumps to around 9-10W in XFCE. System baseline estimated 6.6W currently - this is more than I get running Windows 7!

Any ideas what is wrong? Perhaps it's 3.10 kernel itself?

Last edited by X20055; 08-21-2015 at 07:52 PM.
 
Old 08-22-2015, 12:22 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then control the cpu frequency scaling.
 
Old 08-22-2015, 12:39 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
In /etc/rc.d/rc.modules, try changing "CPUFREQ=battery" to "CPUFREQ=on". And then rebooting.
 
Old 08-22-2015, 01:09 PM   #4
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
CPU frequency was scaled properly. In fact I was using battery for testing, and on battery it defaults to CPUFREQ=on. It still defaults at 10W while XFCE on debian without any tweaking sits stable at 7W. I can easily drop it below 6W there.
 
Old 08-23-2015, 02:19 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
How are you calculating the power consumption?
 
Old 08-23-2015, 03:03 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Looking into this via powertop (which has a newer version [2.7 vs 2.4 in Slackware 14.1]), there are a LOT of tweaks that you'd have to turn on. (I'm running a totally different model of laptop, but I'd expect similar results from the OP.)
Attached Thumbnails
Click image for larger version

Name:	powertop.png
Views:	93
Size:	93.1 KB
ID:	19252  
 
Old 08-23-2015, 05:53 PM   #7
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
*how to delete this?

Last edited by X20055; 08-24-2015 at 01:11 AM.
 
Old 08-24-2015, 01:03 AM   #8
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
I have reduced all tasks in htop to just "htop, init, bash, agetty(x5)". Removed all manually installed modules, also few modules that came with slackware like rc.consolekit or rc.wireless. Also compiled new kernel 4.1.6 to check difference. Tried few tricks and laptop-mode-tools. Disk is using ext4 file system with noatime option for more journaling. All powerTOP turnables are enabled too. But still there is no change in power consumption, in best case it idles at around 8-10W.

Any ideas what could be causing it?

Last edited by X20055; 08-24-2015 at 01:11 AM.
 
Old 08-24-2015, 01:49 AM   #9
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
Probably some options passed to the kernel-modules (graphics card?). Check /sys/module/*/parameters. You might also give tlp a try.
 
Old 08-24-2015, 11:40 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Do you have a dual video card setup? Usually Intel + Nvidia? If so, your Nvidia card is likely running without being used. You'll want to set up bumblebee so it can shut down your nvidia card when it's not being used.

Also, what is the frequency range for your CPUs? 1.2GHz seems higher as a minimum than most CPUs I have dealt with (it might be the lowest, but if it can go lower, it would certainly help).
 
Old 08-24-2015, 04:04 PM   #11
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
It's first generation of Intel i7-620LM with integrated "Intel HD". 1.2GHz is lowest CPU can go, also test on other distros has been made on same/similar settings. In fact I have set plenty power-saving options on Slackware and it's still much worse than other default kernels. In my opinion it could be some hardware piece drawing just much more power than it should, hence such tweaks as described above do not help with it.
 
Old 08-28-2015, 01:25 PM   #12
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
The issue has been (most likely, still not sure) tracked to my SSD or filesystem, sadly at a cost of full format. The drive is MX200 by Crucial and I have just tried ext4 with journaling. Would there be any tips on what to do, as I can't find any different driver module for it?
 
Old 08-29-2015, 01:23 PM   #13
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
I perhaps found most odd thing related to this. I have a wifi button on my laptop, having it off disables wifi obviously - it is very common way of saving power. But in my case powerTOP is reporting reversed values - enabling wifi actually shows decreased consumption, disabling it makes it higher. Is there any way of fixing it?
 
Old 09-10-2015, 11:26 AM   #14
X20055
LQ Newbie
 
Registered: Aug 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
I am going to bump this again. To summarize and with new findings:

My Lenovo Thinkpad x201s draws too much power in IDLE in slackware. The problem is not existent in Windows or other distros.

As of my current findings, measured by software upower/powertop/BAT0 redings/etc my computer can get to really low idle states, like 15 CPU wakeups/sec but the consumption there hits around 8-10W.

Now when I launch something that draws some power, but not much - like turning wifi on(150 wakeups) or running "glxgears"(350 wakeups) the power consumption does not go up from IDLE, but instead goes down - to like 6-7W, dependent on what I run. Putting IDLE computer just to sleep(suspend to RAM) makes it draw similar 6-7W.

Compared with other distros, I get there 5-6W IDLE and 6-7W in light load(100-500 wakeups). This puts my guess at obvious problems with IDLE states. Would anyone be able to tell me what could be causing it?

Last edited by X20055; 09-10-2015 at 01:37 PM.
 
Old 09-10-2015, 05:45 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What does lsmod under slackware and lsmod under debian show?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High power consumption after reinstallation warmos Linux - Laptop and Netbook 2 03-26-2014 10:03 AM
AIX 7.1 on Power 750 is very slow with no high memory or process consumption aLuViAn AIX 11 03-05-2014 08:55 AM
Power off USB storage device/port to avoid power consumption johndir Linux - Hardware 4 11-15-2011 05:04 PM
Power consumption? meniscus Linux - Hardware 4 12-08-2006 04:58 AM
high memory consumption and slow speed ryancw Linux - Newbie 1 03-24-2004 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration