Map ir button of remote on Android?

Post Reply
lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Map ir button of remote on Android?

Post by lightsout »

I have a Minix neo remote. The power button is ir. Anyone know how to make it work in Android?

User avatar
rooted
Posts: 8114
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Map ir button of remote on Android?

Post by rooted »

You can find the proper code using irw:

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

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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?

User avatar
rooted
Posts: 8114
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Map ir button of remote on Android?

Post by rooted »

The Odroid remote will reboot when you hit power?

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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.

User avatar
rooted
Posts: 8114
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Map ir button of remote on Android?

Post by rooted »

Then all you have to do is replace the code in the configuration with the power button code from the Minix remote.

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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?

User avatar
rooted
Posts: 8114
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Map ir button of remote on Android?

Post by rooted »

I don't know where the remote configuration is stored in Android, someone else will have to answer that.

User avatar
voodik
Posts: 1929
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 46 times
Been thanked: 290 times
Contact:

Re: Map ir button of remote on Android?

Post 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.
These users thanked the author voodik for the post:
rooted (Sun Oct 13, 2019 8:29 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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.

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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.

User avatar
tobetter
Posts: 6629
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Map ir button of remote on Android?

Post by tobetter »

@lightsout, you can use 'adb shell' from your desktop and run the command. Simply, try the command adb shell dmesg | grep remote.

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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?

User avatar
rooted
Posts: 8114
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Map ir button of remote on Android?

Post 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.

lightsout
Posts: 87
Joined: Wed Aug 28, 2019 5:26 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Map ir button of remote on Android?

Post 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.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest