southoz / RetroOZ

RetroOZ Odroid Hardkernel Go Super and Powkiddy RGB 10 Max firmware
56 stars 6 forks source link

Add power off delay function #27

Open dj5927 opened 3 years ago

dj5927 commented 3 years ago

It would be nice to be able to set a delay on the power button. I wish there was an option to shut it down by holding it down for 2-3 seconds. Too many situations where you accidentally click and exit.

JuanMiguelBG commented 3 years ago

Yes, it's a great suggestion. But all solutions I see need ACPI.

Double pressed solution

southoz commented 3 years ago

The power key handling is based on /dev/input/event0 which I am fairly sure is handled by something watching /dev/input/by-path/platform-ff180000.i2c-event to issue the shutdown command.