[systemd-devel] GPIO Reset Button

microcai microcai at fedoraproject.org
Fri Nov 2 18:47:39 PDT 2012


On Friday 02 November 2012 09:56:53 Pawel Pastuszak wrote:
> Hi all,
> 
> I was wondering if there is an way to attach an GPIO line to reboot 
the
> system. I am currently working on an Embedded device that has an 
GPIO line
> which needs to act as an reboot button this GPIO comes up as an
> /sys/class/gpio/gpio103/ which i want to have it trigger when it 
switches
> state to low and do an system soft reboot. Does systemd allow any
> functionally like this?

why not write a evdev driver that report that button as poweroff  
button ?

> 
> Thanks,
> Pawel
-- 



More information about the systemd-devel mailing list