Author Topic: Wifi Card Batery Hungry (dis/conecting Card)  (Read 2584 times)

Ostots

  • Newbie
  • *
  • Posts: 6
    • View Profile
Wifi Card Batery Hungry (dis/conecting Card)
« on: June 18, 2005, 05:39:31 am »
Hi,
A very big problem for me is the battery consumption using wifi card, I have temporally solve this problem with this little script:

#!/bin/sh
if [ -f /tmp/wifion ]; then
   rm /tmp/wifion
   cardctl suspend
else
   touch /tmp/wifion
   cardctl resume
fi

and asigning it to a "silkscreen" botton I can power down wifi-cf card easily.

But I am searching info (or and finished app!) to make it and/or automatic. I think I most do a deamon like program... but what are the parameters I must look? I want mean: when suspend and when resume (events...). Some body can orientate me?

Sorry my poor english...

Thanks!
Sharp Zaurus SL-C700
pdaXrom 1.1.0 RC10
Buffalo "WLI2-CF-S11" 802.11b Wifi card
Dane-elec 128Mb SD

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Wifi Card Batery Hungry (dis/conecting Card)
« Reply #1 on: June 18, 2005, 03:45:54 pm »
Scripts in the /etc/pcmcia/ and /etc/hotplug/ directories handle the events when you suspend/resume/plug in-out the cards. When do you want to trigger the suspend/resume?

In the next release there will be a "Power Saving" switch in the Network setup tool, but if you want to use it now, issue a "iwconfig eth0 power on" command to turn it on.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

Ostots

  • Newbie
  • *
  • Posts: 6
    • View Profile
Wifi Card Batery Hungry (dis/conecting Card)
« Reply #2 on: June 19, 2005, 06:22:52 am »
Quote
Scripts in the /etc/pcmcia/ and /etc/hotplug/ directories handle the events when you suspend/resume/plug in-out the cards. When do you want to trigger the suspend/resume?
I want suspend/resume between conections, (while I am reading a web loaded, when I am using X remotely between activity periods...) I prefer wait for resuming the connection to waste the batery level...
I supose it can be a problem with jabber or similar IM protocols but it doesn't matter me, It can be an optional function to activate or disactivate.

Quote
In the next release there will be a "Power Saving" switch in the Network setup tool, but if you want to use it now, issue a "iwconfig eth0 power on" command to turn it on.

Zumi
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84826\"][{POST_SNAPBACK}][/a][/div]
It is great notice!   , but when will enter the card to Power saving mode? timing?

Sorry I have an C-700 with a Buffalo CF wifi card, and my wifi device is wlan0 and not eth0. I have tryed "iwconfig wlan0 power off" and "iwconfig wlan0 power on" and the card power doesn't power on or off... I think I must use cardctl resume/suspend to power saving isn't it?

I think that I have not explained well my goal: I want to power off my wifi card during inactivity periods at wlan0, and power on it when be activity at wlan0. If this mode is transparent for the user (automatic), better.

Thanks again.
Sharp Zaurus SL-C700
pdaXrom 1.1.0 RC10
Buffalo "WLI2-CF-S11" 802.11b Wifi card
Dane-elec 128Mb SD

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Wifi Card Batery Hungry (dis/conecting Card)
« Reply #3 on: June 19, 2005, 04:22:10 pm »
Quote
Sorry I have an C-700 with a Buffalo CF wifi card, and my wifi device is wlan0 and not eth0. I have tryed "iwconfig wlan0 power off" and "iwconfig wlan0 power on" and the card power doesn't power on or off... I think I must use cardctl resume/suspend to power saving isn't it?
This only reduce the power consumption at the price of the transfer speed. It doesn't turn your wifi card off. See the output of the "iwconfig" program without argument.

I think there's no out of box solution for you problem. But it looks like a problem worth the effort.
If you're familiar with C a bit, then you can cook a program for your problem form this one (+using the cardctl resume/suspend):
http://breezyweb.dtdns.net/zaurus/index.html#inet

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

gromituk

  • Full Member
  • ***
  • Posts: 207
    • View Profile
Wifi Card Batery Hungry (dis/conecting Card)
« Reply #4 on: June 20, 2005, 06:20:45 am »
If you're worried about battery consumption, it will help a little if you make sure you're not running KA/Pi, which uses 14% CPU constantly