OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Ostots 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!
-
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
-
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.
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.
-
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 (http://breezyweb.dtdns.net/zaurus/index.html#inet)
Zumi
-
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