Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18347

Edison breakout board power button is not issuing a shutdown

$
0
0

After about 8 seconds pressing the power button the system is just turning off power. What I expect is that it is issuing a "systemctl power off" or "shutdown now" command.

 

I traced it a little bit and figured out that the "pwr_button_handler" daemon receives a message from the "/dev/input/event1" device. So I believe it is a problem in the "pwr_button_handler" daemon. I looked for the source of it but have not figured out were it is.

 

A fix would be appreciated.

 

PS: Is there a timer power-on function available on the Edison?

 

Regards Helmut

 

Some tracing details:

# ps ax | grep pwr

  168 ?        Ss     0:00 /usr/bin/pwr_button_handler

The strace tracing of the pwr_button_handler shows:

root@edison:~# strace -p 168

 

Process 168 attached

restart_syscall(<... resuming interrupted call ...>) = 1

read(3, "\322\276}T\201v\7\0\1\0t\0\1\0\0\0", 16) = 16

gettimeofday({1417526994, 490450}, NULL) = 0

poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])

read(3, "\322\276}T\201v\7\0\0\0\0\0\0\0\0\0", 16) = 16

poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])

read(3, "\322\276}T\262\16\n\0\1\0t\0\0\0\0\0", 16) = 16

gettimeofday({1417526994, 660343}, NULL) = 0

poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])

read(3, "\322\276}T\262\16\n\0\0\0\0\0\0\0\0\0", 16) = 16

poll([{fd=3, events=POLLIN}], 1, -1


Viewing all articles
Browse latest Browse all 18347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>