Bug#481180: [laptop-mode-tools] wireless-ipw-power not working on ac

2008-05-14 Thread Sten Heinze
Package: laptop-mode-tools
Version: 1.41-1
Severity: normal

--- Please enter the report below this line. ---
When switching from battery to AC two command are executed 
in /usr/share/laptop-mode-tools/modules/wireless-ipw-power, which are for my 
ipw2100 card:

/sbin/iwconfig eth1 power off
/sbin/iwpriv eth1 set_power 5

According to man iwconfig the first command disabled power management, so that 
the second has no effect. This results on a significant higher temperature in 
my laptop (Thinkpad X40) of:
CPU=41 GPU=42 MB=46 MiniPCI=39 BAT=35 N/A=-128 BAT=33 N/A=-128
with power management off than having it on:
CPU=41 GPU=42 MB=46 MiniPCI=37 BAT=35 N/A=-128 BAT=33 N/A=-128
(consistent temperatures in a few runs, temperatures after 10~15 min idle, fan 
off)

So it should be changed to keep powermanagement switched on, and to use the 
power level for AC instead of the battery one (just a typo).

Thanks,
Sten

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.20.15-sh-pentiumm

Debian Release: lenny/sid
  500 testing security.debian.org 
  500 testing mirrors.ecology.uni-kiel.de 
  500 testing ftp.de.debian.org 
  500 stable  security.debian.org 
  500 stable  ftp.de.debian.org 

--- Package information. ---
Depends  (Version) | Installed
==-+-
lsb-base   (= 3.0-10) | 3.1-24
util-linux   (= 2.13) | 2.13.1-1
*** /root/Desktop/wireless-ipw-power	2008-05-13 21:28:24.0 +0200
--- /root/Desktop/wireless-ipw-power.new	2008-05-14 13:37:59.0 +0200
***
*** 50,56 
  	SET_I2200_AC_PARMS=power off
  	SET_I2200_BAT_PARMS=power on
  
! 	SET_I2100_AC_PARMS_1=power off
  	SET_I2100_BAT_PARMS_1=power on
  	SET_I2100_AC_PARMS_2=set_power $IPW2100_AC_POWER
  	SET_I2100_BAT_PARMS_2=set_power $IPW2100_BATT_POWER
--- 50,56 
  	SET_I2200_AC_PARMS=power off
  	SET_I2200_BAT_PARMS=power on
  
! 	SET_I2100_AC_PARMS_1=power on
  	SET_I2100_BAT_PARMS_1=power on
  	SET_I2100_AC_PARMS_2=set_power $IPW2100_AC_POWER
  	SET_I2100_BAT_PARMS_2=set_power $IPW2100_BATT_POWER
***
*** 124,130 
  
  	intel2100_AcPwrSave () {
  		setWifiPwrSave $I2100_DRIVERNAME $IWCONFIG $SET_I2100_AC_PARMS_1
! 		setWifiPwrSave $I2100_DRIVERNAME $IWPRIV $SET_I2100_BAT_PARMS_2
  	}
  
  
--- 124,130 
  
  	intel2100_AcPwrSave () {
  		setWifiPwrSave $I2100_DRIVERNAME $IWCONFIG $SET_I2100_AC_PARMS_1
! 		setWifiPwrSave $I2100_DRIVERNAME $IWPRIV $SET_I2100_AC_PARMS_2
  	}
  
  


Bug#481180: [laptop-mode-tools] wireless-ipw-power not working on ac

2008-05-14 Thread Bart Samwel

Hi Sten,

Sounds fair. I don't have an ipw2100 card, so I just included something 
that somebody else contributed. I'll fix this up in the next release!


Cheers,
Bart

Sten Heinze wrote:

Package: laptop-mode-tools
Version: 1.41-1
Severity: normal

--- Please enter the report below this line. ---
When switching from battery to AC two command are executed 
in /usr/share/laptop-mode-tools/modules/wireless-ipw-power, which are for my 
ipw2100 card:


/sbin/iwconfig eth1 power off
/sbin/iwpriv eth1 set_power 5

According to man iwconfig the first command disabled power management, so that 
the second has no effect. This results on a significant higher temperature in 
my laptop (Thinkpad X40) of:

CPU=41 GPU=42 MB=46 MiniPCI=39 BAT=35 N/A=-128 BAT=33 N/A=-128
with power management off than having it on:
CPU=41 GPU=42 MB=46 MiniPCI=37 BAT=35 N/A=-128 BAT=33 N/A=-128
(consistent temperatures in a few runs, temperatures after 10~15 min idle, fan 
off)


So it should be changed to keep powermanagement switched on, and to use the 
power level for AC instead of the battery one (just a typo).


Thanks,
Sten

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.20.15-sh-pentiumm

Debian Release: lenny/sid
  500 testing security.debian.org 
  500 testing mirrors.ecology.uni-kiel.de 
  500 testing ftp.de.debian.org 
  500 stable  security.debian.org 
  500 stable  ftp.de.debian.org 


--- Package information. ---
Depends  (Version) | Installed
==-+-
lsb-base   (= 3.0-10) | 3.1-24
util-linux   (= 2.13) | 2.13.1-1






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]