Page 1 of 1

Map ir button of remote on Android?

Posted: Wed Oct 09, 2019 11:49 pm
by lightsout
I have a Minix neo remote. The power button is ir. Anyone know how to make it work in Android?

Re: Map ir button of remote on Android?

Posted: Sat Oct 12, 2019 1:10 pm
by rooted
You can find the proper code using irw:

https://wiki.odroid.com/odroid-n2/appli ... _wakeup_n2

Re: Map ir button of remote on Android?

Posted: Sat Oct 12, 2019 1:49 pm
by lightsout
rooted wrote:You can find the proper code using irw:

https://wiki.odroid.com/odroid-n2/appli ... _wakeup_n2
I actually want the button to work while inside Android. To reboot. The $5 ir remote I got from ameridroid does it. In the link I only saw waking it up. Or would that work as well for within Android?

Re: Map ir button of remote on Android?

Posted: Sat Oct 12, 2019 4:07 pm
by rooted
The Odroid remote will reboot when you hit power?

Re: Map ir button of remote on Android?

Posted: Sat Oct 12, 2019 10:52 pm
by lightsout
rooted wrote:The Odroid remote will reboot when you hit power?
In the Odroid settings in the rom you can tell it what to do when you push power. So as long as you have a working power button then yeah it will work.

Re: Map ir button of remote on Android?

Posted: Sun Oct 13, 2019 6:22 am
by rooted
Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.

Re: Map ir button of remote on Android?

Posted: Sun Oct 13, 2019 10:53 am
by lightsout
rooted wrote:
Sun Oct 13, 2019 6:22 am
Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.
The code in what configuration?

Re: Map ir button of remote on Android?

Posted: Sun Oct 13, 2019 4:53 pm
by rooted
I don't know where the remote configuration is stored in Android, someone else will have to answer that.

Re: Map ir button of remote on Android?

Posted: Sun Oct 13, 2019 5:13 pm
by voodik
lightsout wrote:
Sun Oct 13, 2019 10:53 am
rooted wrote:
Sun Oct 13, 2019 6:22 am
Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.
The code in what configuration?
set debug_enable = 1
in /vendor/etc/remote.cfg
reboot device.

Hit power key on your remote.
after this dump dmesg for logs

Code: Select all

dmesg | grep remote
Post output here, i told you what to do next.

Re: Map ir button of remote on Android?

Posted: Sun Oct 13, 2019 9:12 pm
by lightsout
voodik wrote:
lightsout wrote:
Sun Oct 13, 2019 10:53 am
rooted wrote:
Sun Oct 13, 2019 6:22 am
Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.
The code in what configuration?
set debug_enable = 1
in /vendor/etc/remote.cfg
reboot device.

Hit power key on your remote.
after this dump dmesg for logs

Code: Select all

dmesg | grep remote
Post output here, i told you what to do next.
Excellent I’ll try it out later after church thanks.

Re: Map ir button of remote on Android?

Posted: Tue Oct 15, 2019 1:18 am
by lightsout
voodik wrote:
Sun Oct 13, 2019 5:13 pm
lightsout wrote:
Sun Oct 13, 2019 10:53 am
rooted wrote:
Sun Oct 13, 2019 6:22 am
Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.
The code in what configuration?
set debug_enable = 1
in /vendor/etc/remote.cfg
reboot device.

Hit power key on your remote.
after this dump dmesg for logs

Code: Select all

dmesg | grep remote
Post output here, i told you what to do next.
I am lost here, is this something that has to be done through ADB? If so I don't know how to use it.

Re: Map ir button of remote on Android?

Posted: Tue Oct 15, 2019 1:24 am
by tobetter
@lightsout, you can use 'adb shell' from your desktop and run the command. Simply, try the command adb shell dmesg | grep remote.

Re: Map ir button of remote on Android?

Posted: Tue Oct 15, 2019 4:14 am
by lightsout
tobetter wrote:
Tue Oct 15, 2019 1:24 am
@lightsout, you can use 'adb shell' from your desktop and run the command. Simply, try the command adb shell dmesg | grep remote.
This is while connected to the device over USB?

Re: Map ir button of remote on Android?

Posted: Tue Oct 15, 2019 4:52 am
by rooted
lightsout wrote:
tobetter wrote:
Tue Oct 15, 2019 1:24 am
@lightsout, you can use 'adb shell' from your desktop and run the command. Simply, try the command adb shell dmesg | grep remote.
This is while connected to the device over USB?
Yes, by connecting to the micro USB OTG port.

Re: Map ir button of remote on Android?

Posted: Tue Oct 15, 2019 6:14 am
by lightsout
rooted wrote:
Tue Oct 15, 2019 4:52 am
lightsout wrote:
tobetter wrote:
Tue Oct 15, 2019 1:24 am
@lightsout, you can use 'adb shell' from your desktop and run the command. Simply, try the command adb shell dmesg | grep remote.
This is while connected to the device over USB?
Yes, by connecting to the micro USB OTG port.
Thanks, I'll give it a go when I get some time.