08-28-2016, 03:12 AM
(This post was last modified: 08-28-2016, 03:40 AM by MarkHaysHarris777.)
(08-28-2016, 02:45 AM)AidenH Wrote: Just an update - I tried to test the input of the power button using evtest in Ubuntu and nothing is showing up when I push the button - not for the button soldered to the connection points at the front or for the button connect to the EXP connector. Should this be working in Ubuntu or am I doing something wrong? I think I'm going to try and Andriod image to see if the power button is actually work properly.
hi, yeah, the power|suspend button and the reset button attach directly to the PMIC (power management integrated circuit). See the schematic diagram here (although its a bit out-of-date).
... I have not tried to see the event from evtest !?! ... also I have tested in both debian and ubuntu, holding the power on button for two seconds will cause the PMIC to signal the GPU ( OS ) to pull up the power off dialogue.
edit: ok... the trick to see the event ( power on ) in evtest, is to select the axp81x option (1).
... the event comes up nicely, code 116 ( key_power ).
( this I tested with evtest on ubuntu mate )
So, if you want to build your own monitor, you need to first tell the OS not to respond to 116, key_power, then map that key for your own purposes.
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )