Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2016-12-01 Thread Super Twang
I think I'm missing something, and I wonder if Robert C. Nelson would chime 
in. I'm trying to EN-able (not disable) the power button to run a custom 
script when pressed.  I've searched online and have found a lot of related 
questions but not an approach that I can get to work...
 
I'm running kernel pixelite 4.1.34-bone-rt-r24, inside of a distro based 
off of the wheezy console image of 2015-11-03.

The systemd rules seem to DISable the power button (I think), and they are 
present on my system.  But commenting them out doesn't seem to re-enable 
the functionality.  Fwiw I have acpid installed and active, but it doesn't 
seem to work.

Thanks in advance for any pointers you (or anyone else) could provide,
Dave


On Monday, November 2, 2015 at 11:04:15 AM UTC-6, RobertCNelson wrote:
>
> On Mon, Nov 2, 2015 at 11:00 AM, Alberto Potenza 
>  wrote: 
> > Thanks for the answer. 
> > It seems there is not /etc/acpi. I guess it is done somewhere else. 
> > Any ideas? 
>
> systemd: 
>
>
> https://github.com/systemd/systemd/blob/master/src/login/70-power-switch.rules#L13
>  
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/bb1afeb6-ad46-476d-b610-7eb2a85473cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-11-02 Thread toni incog

iirc power button input event is routed to acpid. See the /etc/acpi for the 
actual shutdown script.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-11-02 Thread Robert Nelson
On Mon, Nov 2, 2015 at 11:00 AM, Alberto Potenza
 wrote:
> Thanks for the answer.
> It seems there is not /etc/acpi. I guess it is done somewhere else.
> Any ideas?

systemd:

https://github.com/systemd/systemd/blob/master/src/login/70-power-switch.rules#L13

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-11-02 Thread Alberto Potenza
Thanks for the answer.
It seems there is not /etc/acpi. I guess it is done somewhere else.
Any ideas?



Il giorno lunedì 2 novembre 2015 15:43:52 UTC+1, toni incog ha scritto:
>
>
> iirc power button input event is routed to acpid. See the /etc/acpi for 
> the actual shutdown script.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-11-02 Thread Alberto Potenza
Great!!!
It works. Thans a lot for all your effort.
Regards.

Alberto

Il giorno lunedì 2 novembre 2015 18:04:15 UTC+1, RobertCNelson ha scritto:
>
> On Mon, Nov 2, 2015 at 11:00 AM, Alberto Potenza 
>  wrote: 
> > Thanks for the answer. 
> > It seems there is not /etc/acpi. I guess it is done somewhere else. 
> > Any ideas? 
>
> systemd: 
>
>
> https://github.com/systemd/systemd/blob/master/src/login/70-power-switch.rules#L13
>  
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-11-02 Thread Alberto Potenza
Dear Robert,
thanks for the answer. With the patch now the /dev/input/event0 is created.
Now, when the BBB is running and I push the Boot Button, it starts the 
shutdown procedure, while in the previous kernel version (3.18) it does 
not. 
It could be nice for me to have the same behaviour of the previous kernel 
(I would like to have not a shutdown in case of accidental button pressure) 
->  I would like to monitor the button status by checking event0 avoiding 
to have a shutdown when I push it. 
Is there a patch to do that? Or could you show me where I should modifiy 
the kernel to do that?  
Thanks a lot for your help.
Regards.
Alberto


Il giorno martedì 27 ottobre 2015 17:44:23 UTC+1, RobertCNelson ha scritto:
>
> On Tue, Oct 27, 2015 at 11:38 AM, Alberto Potenza 
>  wrote: 
> > Dear all, 
> > I tried to upgrade my kernel version (from 3.8 to 4.1.10-bone16) of my 
> BBB. 
> > It looks like with the new kernel, the /dev/input/event0 related to the 
> > power button is not created and I need it to monitor the power button 
> status 
> > (I would like to avoid the i2get command). 
> > 
> > I am not so sure if it is the same problem shown here: 
> > 
> > 
> https://groups.google.com/forum/embed/?place=forum/beagleboard=true=true=true=true=http%3A%2F%2Fbeagleboard.org%2FCommunity%2FForums#!searchin/beagleboard/power$20button|sort:date/beagleboard/Lr1NbU0fdGg/vPVJzqHjBwAJ
>  
> 
>  
> > 
> > 
> > Can you help me to fix it? 
>
> It's the same patch... copy it over and rebuild.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-10-27 Thread Robert Nelson
On Tue, Oct 27, 2015 at 11:38 AM, Alberto Potenza
 wrote:
> Dear all,
> I tried to upgrade my kernel version (from 3.8 to 4.1.10-bone16) of my BBB.
> It looks like with the new kernel, the /dev/input/event0 related to the
> power button is not created and I need it to monitor the power button status
> (I would like to avoid the i2get command).
>
> I am not so sure if it is the same problem shown here:
>
> https://groups.google.com/forum/embed/?place=forum/beagleboard=true=true=true=true=http%3A%2F%2Fbeagleboard.org%2FCommunity%2FForums#!searchin/beagleboard/power$20button|sort:date/beagleboard/Lr1NbU0fdGg/vPVJzqHjBwAJ
>
>
> Can you help me to fix it?

It's the same patch... copy it over and rebuild..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Power button and /dev/input/event0 on 4.1.10-bone16

2015-10-27 Thread Alberto Potenza
Dear all,
I tried to upgrade my kernel version (from 3.8 to 4.1.10-bone16) of my BBB.
It looks like with the new kernel, the /dev/input/event0 related to the 
power button is not created and I need it to monitor the power button 
status (I would like to avoid the i2get command).

I am not so sure if it is the same problem shown here:

https://groups.google.com/forum/embed/?place=forum/beagleboard=true=true=true=true=http%3A%2F%2Fbeagleboard.org%2FCommunity%2FForums#!searchin/beagleboard/power$20button|sort:date/beagleboard/Lr1NbU0fdGg/vPVJzqHjBwAJ


Can you help me to fix it?

Thanks
Alberto

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.