Re: [Debian] Wlan and suspend/resume

2008-12-20 Thread Paul Fertser
Hi,

Timo Juhani Lindfors  writes:
> Paul Fertser  writes:
>> echo s3c2440-sdi > /sys/bus/platform/devices/s3c2440-sdi/driver/unbind
>
> Aha, so this should reduce power consumption?

As far as i understand it is as effective as sending the magic ioctl
and equally effective to suspending the whole device.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-20 Thread Timo Juhani Lindfors
Paul Fertser  writes:
> echo s3c2440-sdi > /sys/bus/platform/devices/s3c2440-sdi/driver/unbind

Aha, so this should reduce power consumption?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-20 Thread Paul Fertser
Hi,

Timo Juhani Lindfors  writes:
>> That's not good.
>> Is there another way to get the wlan status with help of a console
>> command like dbus or anything else?
>
> I am not sure. There's an ioctl but it seems to give different results
> than the power_on sysfs node.

It was recently clarified on kernel ml that the power_on wlan node
actually applies reset to the chip. Therefore nobody should really use
it. Either the magic ioctl or binding/unbinding the driver works.

echo s3c2440-sdi > /sys/bus/platform/devices/s3c2440-sdi/driver/unbind

and

echo s3c2440-sdi > /sys/bus/platform/drivers/s3c2440-sdi/bind

can be used for the time being.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-20 Thread Timo Juhani Lindfors
Fox Mulder  writes:
> That's not good.
> Is there another way to get the wlan status with help of a console
> command like dbus or anything else?

I am not sure. There's an ioctl but it seems to give different results
than the power_on sysfs node.




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-20 Thread Fox Mulder
Timo Juhani Lindfors wrote:
> Fox Mulder  writes:
>> Is in this om 2.6.24 kernel also any sysfs file which i can use?
> 
> Afaik not.

That's not good.
Is there another way to get the wlan status with help of a console
command like dbus or anything else?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-19 Thread Timo Juhani Lindfors
Fox Mulder  writes:
> Is in this om 2.6.24 kernel also any sysfs file which i can use?

Afaik not.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-19 Thread Fox Mulder
Timo Juhani Lindfors wrote:
> Fox Mulder  writes:
>> My problem now is, that i can't find any suitable file for wlan. I only
> 
> Which kernel? andy-tracking de473 has one for wlan too.
> 
> Btw, I have a similar script too. It tells me how many percentage
> units of capacity per hour were lost during suspend when the phone resumes.

At the moment i use the openmoko kernel testing-om-gta02-20081216.uImage
because last time i tried andy-tracking it didn't work very well because
of the many sysfs changes.
Is in this om 2.6.24 kernel also any sysfs file which i can use?

Ciao,
 Rainer

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Debian] Wlan and suspend/resume

2008-12-19 Thread Timo Juhani Lindfors
Fox Mulder  writes:
> My problem now is, that i can't find any suitable file for wlan. I only

Which kernel? andy-tracking de473 has one for wlan too.

Btw, I have a similar script too. It tells me how many percentage
units of capacity per hour were lost during suspend when the phone resumes.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community