On Mon, Mar 09, 2009 at 06:58:56PM +0100, Davide wrote:
> Hi,
> 
> I am using fso on debian.
> 
> If I suspend the freerunner with apm -s no problem.
> 
> But if the gsm is active .... then the freerunner will wakeup
> about in a minute ... without I am receiving a call or sms.
> 
> Any idea?
> 
> Where can I find the event that wake up the phone? Any log?

Hi,

1. You will have to suspend the GSM modem. It would be the easiest
to do this via DBus. Here is a small Python script, which will
suspend the GSM modem *and* your system:

---------------------------------------------------------------------
#!/usr/bin/python
import dbus, sys, os, gobject

# Setup mainloop and dbus
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
mainloop = gobject.MainLoop()
bus = dbus.SystemBus()

def getObject( busname, objectpath ):
    return bus.get_object( busname, objectpath,
follow_name_owner_changes=True )
def getInterface( busname, objectpath, interface ):
    return dbus.Interface(getObject(busname, objectpath), interface)

usageiface  = getInterface( "org.freesmartphone.ousaged",
"/org/freesmartphone/Usage", "org.freesmartphone.Usage" )

usageiface.Suspend()
---------------------------------------------------------------------


2. You will get the wakeup reason by:
$ cat /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason | grep 
"*"
In your case it should be "EINT01_GSM"

3. Please be aware of the fact, that the current (2.6.28) debian kernel
will resume with an WSOD, because some of Openmoko's recent patches
are missing.

-- Sebastian Reichel

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to