|
2014-01-31
, 19:28
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#462
|
Software can act when it has sensor/input, not sure how software can magically sense keyboard open without it. Hopefully I am missing something
The Following User Says Thank You to Zeta For This Useful Post: | ||
|
2014-01-31
, 19:32
|
Posts: 1,104 |
Thanked: 5,652 times |
Joined on Feb 2010
@ Holland
|
#463
|
It looks like no one proposed the obvious solution : use the interrupt pin...
The only goal of this pin is for the other half to notify the phone that something is happening. In that case, when a key is pressed, the chip will trigger the interrupt pin, and the phone will know it has to check the chip for which key is pressed/released. No polling involved.
About the slide in/out of the keyboard, this could be done through a contact (for example both parts have a metal part on them, springy on one side, and when closed they enter in contact, or a "real" switch) which is connected as a standard key.
|
2014-01-31
, 19:47
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#464
|
The Following User Says Thank You to kimmoli For This Useful Post: | ||
|
2014-01-31
, 21:02
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#465
|
About the interrupt pin... atm it is exported to userspace... which works fine when phone is active.
Issue here is the deep-sleep where the phone goes. Seems that this interrupt-expoprted-to-userspace method is not able to wake-up the phone, so if it goes to sleep and you press a key on the keyboard .. nothing happens until something else triggers e.g. front proximity sensor is enough to wake up - then it processes the pending interrupt from the keyboard (and hopefully activates the screen - need a lot of dbus magic still (i don't want to restart mce service to get screen active))
|
2014-01-31
, 21:11
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#466
|
|
2014-02-01
, 14:20
|
Posts: 172 |
Thanked: 170 times |
Joined on Jan 2010
@ Sweden
|
#467
|
|
2014-02-01
, 15:06
|
Posts: 1,104 |
Thanked: 5,652 times |
Joined on Feb 2010
@ Holland
|
#468
|
It might be possible to make a simple short-circuit signal between the keyboard top and bottom halves when opening/closing the keyboard.
That would require adding an extra element in the i2c stream, besides the data from the keyboard, and I don't know if you can do that. If that can't be done, how about a special gesture on the keyboard to turn it on/off? I.e. double alt, or something?
The Following User Says Thank You to dirkvl For This Useful Post: | ||
|
2014-02-02
, 10:47
|
Posts: 1,104 |
Thanked: 5,652 times |
Joined on Feb 2010
@ Holland
|
#469
|
|
2014-02-02
, 10:56
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#470
|
Probably. It will work fine, if I wasn't confident about that I would not put parts out for production. There is more than one way to skin a cat!
Last edited by dirkvl; 2014-01-31 at 13:52.