OpenELEC.tv
OpenELEC.tv copied to clipboard
GPIO for Power Led
Hi "codesnake"
I have issue about GPIO for Led.
This is my GPIO on my device when run Android.
and in OpenELEC
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.
What build do you use?
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.
Don't quite understand what you want to achieve. What you mean by "change port"?
I want to change:
gpio-1 (power_led ) out hi ----> gpio-3 (power_led ) out hi.
And what gpio_key mean?
Thanks
To be honest, I don't know how to do that.
@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).