Wake up from sleep with GPIO (I2C)

Posted by spambas on Ask Ubuntu See other posts from Ask Ubuntu or by spambas
Published on 2012-09-06T14:14:47Z Indexed on 2012/09/06 15:50 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

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!

© Ask Ubuntu or respective owner

Related posts about 10.10

Related posts about sleep