Make the smart cover thing work.  This was originally by Roman Birg <roman@cyngn.com>
by way of Slayher for another device.
Merge remote-tracking branch 'github/cm-12.0' into cm-12.0