于 2017年4月28日 GMT+08:00 下午5:48:33, Menion <[email protected]> 写到: >Yes, but board-wise, apart that this button is labeled as power button, >it >is the only way to gracefull shutdown the board, without having to >access >the linux terminal somehow. >Force shutdown and restart can be achieved by unplug/plug the power >supply. >I see only pro, but I have a limited view of course, to map this button >to >KEY_POWER instead of BTN_0, from an usability perspective
In fact if you like you can bind it to anything, including KEY_POWER. Just modify the DT ;-) If you do not want to modify dt every time you upgrade it, consider usr "fdt" command in u-boot to update it on-the-fly. >Bye > >Il giorno venerdì 28 aprile 2017 11:44:29 UTC+2, Chen-Yu Tsai ha >scritto: >> >> >> >> IIRC this was done on purpose. The button is a simple GPIO trigger. >> It does not have the specific function of a power button, like >bringing >> it back on, or forceful shutdown. >> >> ChenYu >> >> -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
