Your message dated Sat, 01 Oct 2011 13:04:37 +0530
with message-id <[email protected]>
and subject line Re: Bug#643905: laptop-mode-tools: laptop-mode hook fails to 
replace original vm values after AC power is reattached
has caused the Debian Bug report #643905,
regarding laptop-mode-tools: laptop-mode hook fails to replace original vm 
values after AC power is reattached
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
643905: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643905
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: laptop-mode-tools
Version: 1.58-3
Severity: normal

Dear Maintainer,

The /usr/lib/pm-utils/power.d/laptop-mode script which is executed by a hook
fails to return the original /proc/sys/vm/[laptop_mode, dirty_ratio,
dirty_background_ratio, dirty_writeback_centisecs] values after AC power is
reattached.

On first boot with AC power attached,
>/etc/init.d/laptop-mode status
Laptop mode status:

root@debian-n81vg:/home/jameschew# Mounts:
   /dev/sda6 on / type ext4 (rw,errors=remount-ro,commit=0)
   tmpfs on /lib/init/rw type tmpfs
(rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
   tmpfs on /run type tmpfs
(rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)
   proc on /proc type proc (rw,noexec,nosuid,nodev)
   sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
   udev on /dev type tmpfs (rw,mode=0755)
   tmpfs on /run/shm type tmpfs
(rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
   devpts on /dev/pts type devpts
(rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
   /dev/sda5 on /VMs type ext4 (rw,commit=0)
   /dev/sda1 on /boot type ext2 (rw)
   /dev/mapper/n81vg-home on /home type ext4 (rw,commit=0)
   rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
   fusectl on /sys/fs/fuse/connections type fusectl (rw)
   binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)

Drive power status:

   /dev/sda:
    drive state is:  active/idle

(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)

Readahead states:
   /dev/sda6: 128 kB
   /dev/sda5: 128 kB
   /dev/sda1: 128 kB
   /dev/mapper/n81vg-home: 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:
   10

/proc/sys/vm/dirty_background_ratio:
   5

/proc/sys/vm/dirty_expire_centisecs:
   3000

/proc/sys/vm/dirty_writeback_centisecs:
   500

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:
   2533000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:
   ondemand

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:
   ondemand

/proc/acpi/button/lid/LID/state:
   state:      open

/sys/class/power_supply/AC0/online:
   1




When I remove AC power, and am running on batteries:
>/etc/init.d/laptop-mode status
Laptop mode status:

root@debian-n81vg:/home/jameschew# Mounts:
   /dev/sda6 on / type ext4 (rw,errors=remount-ro,commit=600)
   tmpfs on /lib/init/rw type tmpfs
(rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
   tmpfs on /run type tmpfs
(rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)
   proc on /proc type proc (rw,noexec,nosuid,nodev)
   sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
   udev on /dev type tmpfs (rw,mode=0755)
   tmpfs on /run/shm type tmpfs
(rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
   devpts on /dev/pts type devpts
(rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
   /dev/sda5 on /VMs type ext4 (rw,commit=600)
   /dev/sda1 on /boot type ext2 (rw)
   /dev/mapper/n81vg-home on /home type ext4 (rw,commit=600)
   rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
   fusectl on /sys/fs/fuse/connections type fusectl (rw)
   binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)

Drive power status:

   /dev/sda:
    drive state is:  active/idle

(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)

Readahead states:
   /dev/sda6: 3072 kB
   /dev/sda5: 3072 kB
   /dev/sda1: 3072 kB
   /dev/mapper/n81vg-home: 3072 kB

Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists.

/proc/sys/vm/laptop_mode:
   5

/proc/sys/vm/dirty_ratio:
   60

/proc/sys/vm/dirty_background_ratio:
   40

/proc/sys/vm/dirty_expire_centisecs:
   60000

/proc/sys/vm/dirty_writeback_centisecs:
   60000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:
   ondemand

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:
   ondemand

/proc/acpi/button/lid/LID/state:
   state:      open

/sys/class/power_supply/AC0/online:
   0




When I reattach AC power:
>/etc/init.d/laptop-mode status
Laptop mode status:

root@debian-n81vg:/home/jameschew# Mounts:
   /dev/sda6 on / type ext4 (rw,errors=remount-ro,commit=0)
   tmpfs on /lib/init/rw type tmpfs
(rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
   tmpfs on /run type tmpfs
(rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)
   proc on /proc type proc (rw,noexec,nosuid,nodev)
   sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
   udev on /dev type tmpfs (rw,mode=0755)
   tmpfs on /run/shm type tmpfs
(rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
   devpts on /dev/pts type devpts
(rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
   /dev/sda5 on /VMs type ext4 (rw,commit=0)
   /dev/sda1 on /boot type ext2 (rw)
   /dev/mapper/n81vg-home on /home type ext4 (rw,commit=0)
   rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
   fusectl on /sys/fs/fuse/connections type fusectl (rw)
   binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)

Drive power status:

   /dev/sda:
    drive state is:  active/idle

(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)

Readahead states:
   /dev/sda6: 128 kB
   /dev/sda5: 128 kB
   /dev/sda1: 128 kB
   /dev/mapper/n81vg-home: 128 kB

Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists.

/proc/sys/vm/laptop_mode:
   2

/proc/sys/vm/dirty_ratio:
   60

/proc/sys/vm/dirty_background_ratio:
   1

/proc/sys/vm/dirty_expire_centisecs:
   3000

/proc/sys/vm/dirty_writeback_centisecs:
   60000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:
   2534000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:
   ondemand

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:
   ondemand

/proc/acpi/button/lid/LID/state:
   state:      open

/sys/class/power_supply/AC0/online:
   1




The main differences are the /proc/sys/vm/ files:
1. laptop_mode: is now 2 instead of 0.
2. dirty_ratio: is now 60 instead of 10.
3. dirty_background_ratio: is now 1 instead of 5.
4. dirty_writeback_centisecs: is now 60000 instead of 500



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_SG.utf8, LC_CTYPE=en_SG.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages laptop-mode-tools depends on:
ii  lsb-base    3.2-28  
ii  psmisc      22.13-1 
ii  util-linux  2.19.1-5

Versions of packages laptop-mode-tools recommends:
ii  acpid           1:2.0.12-1
ii  apmd            3.2.2-14  
ii  ethtool         1:3.0-1   
ii  hal             0.5.14-7  
ii  hdparm          9.32-1    
ii  net-tools       1.60-24.1 
ii  sdparm          1.06-3    
ii  udev            172-1     
ii  wireless-tools  30~pre9-5 

laptop-mode-tools suggests no packages.

-- Configuration Files:
/etc/laptop-mode/conf.d/intel-hda-powersave.conf changed [not included]

-- no debconf information



--- End Message ---
--- Begin Message ---
On 10/01/2011 12:15 PM, James Chew wrote:
> As you had diagnosed, it does look like laptop-mode-tools and pm-utils
> are not playing nice with one another. However, while laptop_mode is now
> 0, dirty_ratio and dirty_background_ratio are not returned to their
> original values (but I think this has to do with the configuration files).
> 
> On a side note, pm-utils really does perform a lot of the actions
> laptop-mode-tools does. I was hoping to add Runtime Power Management for
> the PCI bus with the addition of the laptop-mode-tools package. I have
> written a small script that does what I wanted from /etc/pm/power.d/
> with the pm-utils package.
> 
> Do you still want the Verbose output from laptop-mode-tools with
> pm-utils installed?


lmt tries its best to co-exist with pm-utils. But because of the
duplication of the features, pm-utils ends up overriding many of the
settings lmt applies.

Which one you choose is a matter of preference. Also you could look into
any maybe disable the overlapping features.


I'm closing this bug now.

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to