Page 1 of 1

aPower (Actions on Power) for PBO

PostPosted: 13 Nov 2015, 18:29
by pbodev
Hello colleagues,

I have recently join moServices :D , I have installed the latest version amp 12, with the pohd skin on PBO the model is PCMPBO25. Now I am stuck on which setting I need to choose for the aPower (Actions on Power) ?
There is no options for this player :(

I have notice that the USB led is always on before it would only turn on only if a usbkey or usbdrive would be plugged in, is this also because I need to setup aPower?

Thank you for a great firmware :)
Nick

Re: aPower (Actions on Power) for PBO

PostPosted: 13 Nov 2015, 19:16
by Pokrass
First of all you can try all variants.

Re: aPower (Actions on Power) for PBO

PostPosted: 14 Nov 2015, 11:54
by pbodev
Hi Pokrass,

I have tried all the variants form the menu and rebooted my PBO. Can it be because the pohd skin?

Thanks again :)

Re: aPower (Actions on Power) for PBO

PostPosted: 19 Nov 2015, 22:02
by FarVoice
change skin to vrtn and then try any GPIOs via gpio utility. Or get a GPIO map on original FW and compare it with map on vrtn.
To get GPIO map run gpio without patameters:

/usr/local/etc/mos/bin/gpio

For change GPIO run gpio winth parameters:

/usr/local/etc/mos/bin/gpio <port> <value>
where port - a number of port 0-127
value - 0 or 1

Re: aPower (Actions on Power) for PBO

PostPosted: 20 Nov 2015, 07:57
by pbodev
Hi FarVoice,

Thank you for the great tip :) I don't have the gpl firmware the patriot website doesn't show the player anymore :(

So I brute forced it :) I have found that the : gpio 93 is the HDD led
81 is the USB led
44 turn's off the player.
78 send the off command.

I have compared vrtn and the pohd skin. The pohd does not look at the aPower configuration for example if turn off the led ( $gpio 81 0 ) in the start section of aPower there is no changes the led are on even if the firmware detects no HDD or USB are plugged in. So I decided to use the vrtn skin instead. in section drive how can I turn on $gpio 81if I plug a USB stick?

I used the Asus O!Play R1/R3 as an example but the { if ["$ACTION" == 'add']; then $gpio 81 1...} does not work :( can you give more great tips ?

Thank you so much,
Pbodev

Re: aPower (Actions on Power) for PBO

PostPosted: 20 Nov 2015, 11:16
by FarVoice
And where is GPIOs on LAN and Power LEDs?

gpio 44 0 is power off? Or 1?

Re: aPower (Actions on Power) for PBO

PostPosted: 20 Nov 2015, 11:45
by FarVoice
apower r16 - add Patriot Book Office . Please, test it.

Re: aPower (Actions on Power) for PBO

PostPosted: 22 Nov 2015, 01:57
by pbodev
Hi FarVoice,

I have tested your new version and it works flawlessly :D :) I have tested with 2.5" drive and USB key both light up the LED perfectly :) I have also tested YOUTUBE :) I wish I had found the moServices before !!! :)

Thanks again for the help,
PboDev