Wake up from sleep with GPIO (I2C)
- by spambas
My situation:
Ubuntu 10.10 running on an atom driven main board
the main board has a GPIO chip integrated (F75111 by Fintek).
They communicate through I2C(SMBus). We have a driver running that works, we can send outputs and read inputs. Great!
We would like to use the I/O interface to suspend (sleep) and wake up again.
Sleep is no problem. On an incoming input: run s2both. Ubuntu goes to sleep and prepares a hibernate state, so when the power-cord is unplugged by accident, it will wake from hibernate.
But the big question: how to wake on an input if the OS is already sleeping! You can wake from a lot of devices (lan, usb, ring, etc) but I can't find out how to wake from a I2C card.
PLEASE HELP!