OpenELEC.tv icon indicating copy to clipboard operation
OpenELEC.tv copied to clipboard

GPIO for Power Led

Open spartacus199 opened this issue 9 years ago • 6 comments

Hi "codesnake" I have issue about GPIO for Led. This is my GPIO on my device when run Android. image_11986 and in OpenELEC 123 when I turn off my Device, Led still Green. My device is MXQ all black. Please tell me how can I change GPIO port for it. Thanks. Sorry about my English.

spartacus199 avatar Sep 15 '15 10:09 spartacus199

What build do you use?

codesnake avatar Sep 15 '15 10:09 codesnake

I use HD18Q 5.0.8.20 from "kszaq" but his patch for Power_Led only change HIGH or LOW output, can 't change port. I was tried MXQ.arm-5.0.8.zip from you but the sam issue. Power Led still green when turn off.

spartacus199 avatar Sep 15 '15 14:09 spartacus199

Don't quite understand what you want to achieve. What you mean by "change port"?

codesnake avatar Sep 15 '15 15:09 codesnake

I want to change: gpio-1 (power_led ) out hi ----> gpio-3 (power_led ) out hi. And what gpio_key mean? 2345

Thanks

spartacus199 avatar Sep 15 '15 17:09 spartacus199

To be honest, I don't know how to do that.

codesnake avatar Sep 15 '15 18:09 codesnake

@spartacus199 Let me chime in. Since you're using my builds, I think you should have opened the issue in my fork. ;)

First of all, you should modify this patch to use GPIOAO_3 instead of GPIOAO_1: https://github.com/kszaq/OpenELEC.tv/blob/openelec-5.0/projects/Amlogic/devices/HD18Q/patches/linux/power_led.patch

If this alone doesn't work, you should extract device tree from your Android kernel (Google "Amlogic extract DTS") and replace it (I wasn't able to find a tutorial, sorry).

kszaq avatar Sep 15 '15 19:09 kszaq