LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 01-25-2013, 02:00 AM   #1
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 85

Rep: Reputation: 15
Cpu frequency scaling not working when power adaptor not charging


I have Dell D630 laptop and my power adaptor has some issue and it is not charging the battery, so laptop is running on AC power but not charging the battery. The problem is, the CPU is always on the lowest frequency.
When I use other adaptor, which charges the battery as well, cpu freq scaling works normally. Do you know what needs to be configured?
I'm on Debian unstable.
 
Old 01-25-2013, 04:40 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
This is almost certainly the laptop mode tools package which you need to configure. Do you have the file "/etc/acpi/handler.sh"?
 
Old 01-25-2013, 05:08 PM   #3
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 85

Original Poster
Rep: Reputation: 15
No, I don't.
 
Old 01-26-2013, 06:45 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Okay, well, I've found http://packages.debian.org/sid/all/l...tools/filelist. Perhaps it might be in

Code:
/etc/acpi/actions/lm_ac_adapter.sh
/etc/acpi/actions/lm_battery.sh
You're looking for code along the lines of

Code:
 ac_adapter)
     case "$2" in
         AC*)
             case "$4" in
                 00000000)
                     echo "conservative" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor    
                     echo -n $minspeed >$setspeed
                     #/etc/laptop-mode/laptop-mode start
                 ;;
(particularly the 'echo "conservative"' part).

Another possibility is /etc/laptop-mode/conf.d/cpufreq.conf - that may have lines similar to:

Code:
BATT_CPU_GOVERNOR=conservative
...
LM_AC_CPU_GOVERNOR=ondemand
...
NOLM_AC_CPU_GOVERNOR=ondemand
which can be tweaked to select an appropriate governor when the laptop thinks it's running on battery.
 
Old 01-30-2013, 04:37 AM   #5
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 85

Original Poster
Rep: Reputation: 15
I have all the *_CPU_GOVERNOR set to ondemand, so CPU freq should scale regardless of the power. But it does not.
 
Old 02-02-2013, 04:18 PM   #6
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 85

Original Poster
Rep: Reputation: 15
Finally figured it out. E17 starts all apps with nice 3 by default, and the default CPU configuration on Debian seems to set ignore nice load on battery. Once I changed this, CPU freq scaling works.
 
  


Reply

Tags
cpu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM
cpu frequency scaling tramni1980 Slackware 5 12-27-2008 11:51 AM
cpu frequency scaling not working properly in 2.6.18.8 BCarey Slackware 19 05-08-2007 12:34 PM
P4 and CPU Frequency scaling tkalfaoglu Linux - Kernel 3 05-31-2006 09:56 AM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration