[Gta04-owner] 3.3 kernel for gta04.
neilb at suse.de
Mon Apr 9 11:39:39 CEST 2012
I finally got 3.3 working happily on my GTA04. Partly there were new issues
to fix, partly I wanted to explore more deeply some of the issues that I have
previously hacked-around rather than fixed properly (there are still some more
of those though).
3.3 seems to work much the same as 3.2. I would appreciate it if others could
test and confirm that it works for them. Then we can encourage everyone to
upgrade while I look at 3.4 :-)
Code can be found at
Yes, I have changed the name of the github repository - I won't change it
The 3.2 kernel (slightly updated) can be found at the same places with
"3.3" replaced with "3.2". Both have been updated to the latest -stable
kernel (3.2.14 and 3.3.1).
The only (intended) functionality changes are:
twl4030_usb: export status of id pin via sysfs
from Andreas Kemnade
and GTA04 - make 3G wakeup a shared interrupt
This allows sysfs to get interrupts from the 3G wakeup line so they can be
detected from user-space. This means the following python script will print a
message each time the 3G module sends an interrupt.
I find that if I get an SMS while suspended I don't see the "+CMTI" notifier,
so I hook into this interrupt instead.
Any feedback always welcome,
import gobject, sys
# watch for changes on a sysfs file and report them
# We read the content, report that, wait for a change
# and report again
def __init__(self, path, action):
self.path = path
self.action = action
self.fd = open(path, "r")
self.watcher = gobject.io_add_watch(self.fd, gobject.IO_PRI, self.read)
def read(self, *args):
r = self.fd.read(4096)
print "just read", val
x = SysfsWatcher("/sys/class/gpio/gpio176/value", act)
c = gobject.main_context_default()
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 828 bytes
Desc: not available
More information about the Gta04-owner