LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   I think i have a problem (power management) (https://www.linuxquestions.org/questions/slackware-14/i-think-i-have-a-problem-power-management-4175430721/)

kernel-P4N1C 10-05-2012 12:51 PM

I think i have a problem (power management)
 
I'm running -current (or 14) on an asus 1005ha and after noticing lowered battery time I started to check stuff.. check this out.

Code:

root@netbook:/home/weput# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
root@netbook:/home/weput#

Code:

root@netbook:/home/weput# uname -a
Linux netbook 3.2.29-smp #2 SMP Mon Sep 17 13:16:43 CDT 2012 i686 Intel(R) Atom(TM) CPU N270  @ 1.60GHz GenuineIntel GNU/Linux

I have no idea what happened... maybe the upgrade from 3.2.28 to 3.2.29 broke something.

System has laptop-mode-tools installed and is not able to be activated
Code:

root@netbook:/home/weput# /etc/rc.d/rc.laptop-mode restart
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  f0 01 05 00 00 00 00 0a 00 aa 55 21 20 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  f0 01 05 00 00 00 00 0a 00 aa 55 21 20 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Warning: Configuration file /etc/laptop-mode/conf.d/board-specific/*.conf is not readable, skipping.
Laptop mode
disabled, not active
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  f0 01 05 00 00 00 00 0a 00 aa 55 21 20 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  f0 01 05 00 00 00 00 0a 00 aa 55 21 20 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Warning: Configuration file /etc/laptop-mode/conf.d/board-specific/*.conf is not readable, skipping.
Laptop mode
enabled, not active
root@netbook:/home/weput#

Code:

root@netbook:/home/weput# /etc/rc.d/rc.laptop-mode status
Laptop mode status:

Warning: Configuration file /etc/laptop-mode/conf.d/board-specific/*.conf is not readable, skipping.
Mounts:
  /dev/root on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
  proc on /proc type proc (rw)
  sysfs on /sys type sysfs (rw)
  /dev/sda1 on /mnt/win type fuseblk (rw,allow_other,blksize=4096,default_permissions)
  tmpfs on /dev/shm type tmpfs (rw)
  /dev/sda6 on /mnt/shared type fuseblk (rw,allow_other,blksize=4096,default_permissions)
  gvfs-fuse-daemon on /home/weput/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=weput)
 
Drive power status:
 
  /dev/sda:
    drive state is:  active/idle
 
  /dev/sdb:
    drive state is:  standby
 
  /dev/sdc:
    drive state is:  standby
 
  /dev/sdd:
    drive state is:  standby
 
(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)
 
Readahead states:
  /dev/sda1: 128 kB
  /dev/sda6: 128 kB
 
Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists.
 
/proc/sys/vm/laptop_mode:
  0
 
/proc/sys/vm/dirty_ratio:
  40
 
/proc/sys/fs/xfs/xfsbufd_centisecs:
  100
 
/proc/sys/fs/xfs/xfssyncd_centisecs:
  3000
 
/proc/sys/vm/dirty_background_ratio:
  10
 
/proc/sys/vm/dirty_expire_centisecs:
  3000
 
/proc/sys/vm/dirty_writeback_centisecs:
  500
 
/proc/acpi/button/lid/LID/state:
  state:      open
 
/proc/acpi/ac_adapter/AC0/state:
  state:                  on-line
 
/proc/acpi/battery/BAT0/state:
  present:                yes
  capacity state:          ok
  charging state:          charged
  present rate:            0 mA
  remaining capacity:      2330 mAh
  present voltage:        12355 mV
 
/sys/class/power_supply/AC0/online:
  1
 
root@netbook:/home/weput#

Please advice

TobiSGD 10-05-2012 01:25 PM

Have a look at line 823 in /etc/rc.d/rc.modules and set the CPUFREQ option to on. i had to do that on my desktop machine to activate frequency scaling.

I also don't see a reason why this is off by default.

kernel-P4N1C 10-05-2012 03:19 PM

is empty...

I have a rc.modules-3.2.29 instead... maybe that's the problem.


Code:

#
root@netbook:/home/weput# less /etc/rc.d/rc.modules-3.2.29
.
.
.
CPUFREQ=battery

I'll make a soft link or something and reboot to see what happens

kernel-P4N1C 10-05-2012 03:35 PM

ok

didn't work

kernel-P4N1C 10-08-2012 08:56 AM

ok guys

I did the windows thing (format and reinstall)... and now i have it working..
Code:

weput@netbook:~$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  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.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: ondemand, userspace
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 1
  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.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: ondemand, userspace
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.



All times are GMT -5. The time now is 11:50 PM.