gpio-poweroff demo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gpio-poweroff demo

gpio-poweroff demo

Some case need configure the GPIO as power off button.

One solution is to use “gpio-keys” to send the “KEY_POWER” event to the system.

Co-work with systemd, system gets power off.

 

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1324306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Egpio-poweroff%20demo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1324306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3ESome%20case%20need%20configure%20the%20GPIO%20as%20power%20off%20button.%3C%2FP%3E%0A%3CP%3EOne%20solution%20is%20to%20use%20%E2%80%9Cgpio-keys%E2%80%9D%20to%20send%20the%20%E2%80%9CKEY_POWER%E2%80%9D%20event%20to%20the%20system.%3C%2FP%3E%0A%3CP%3ECo-work%20with%20systemd%2C%20system%20gets%20power%20off.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎08-16-2021 09:16 PM
Updated by: