Android - remote control - Odroid C2

Post Reply
thejck
Posts: 6
Joined: Thu Sep 21, 2017 7:19 am
languages_spoken: english
ODROIDs: C2
Contact:

Android - remote control - Odroid C2

Unread post by thejck » Wed Nov 21, 2018 9:53 pm

Is there any documentation on how to change what the IR power button does in Android?
I want to be able to shutdown the android OS with a button press rather than using the menu. I am currently using a logitech harmony remote but am open to switching.

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Android - remote control - Odroid C2

Unread post by odroid » Thu Nov 22, 2018 9:06 am

Try scan code 116 with your harmony remote.
https://wiki.odroid.com/accessory/conne ... controller

thejck
Posts: 6
Joined: Thu Sep 21, 2017 7:19 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: Android - remote control - Odroid C2

Unread post by thejck » Tue Nov 27, 2018 11:30 am

in this file
Vendor_0001_Product_0001.kl
key 116 POWER

on my remote when i do a short power button press it seems to turn the screen off but the odroid is sitll running. another short press brings the screen right back up.

if i do a long press it brings up a menu asking for power off or reboot and i have to click ok to choose.

Anyway to map the 116 buton to power power off instead of giving the open to power off or reboot?

User avatar
tobetter
Posts: 2581
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Android - remote control - Odroid C2

Unread post by tobetter » Tue Nov 27, 2018 12:20 pm

thejck wrote:in this file
Vendor_0001_Product_0001.kl
key 116 POWER

on my remote when i do a short power button press it seems to turn the screen off but the odroid is sitll running. another short press brings the screen right back up.

if i do a long press it brings up a menu asking for power off or reboot and i have to click ok to choose.

Anyway to map the 116 buton to power power off instead of giving the open to power off or reboot?
Could you keep pressing the power button long enough even though pop up menu comes?

thejck
Posts: 6
Joined: Thu Sep 21, 2017 7:19 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: Android - remote control - Odroid C2

Unread post by thejck » Wed Nov 28, 2018 2:43 am

i will try that. for now i have written my IR sequence to be
long power
1 sec later
OK

that seems to turn it off

Post Reply

Return to “Android”

Who is online

Users browsing this forum: themoonlitknight and 1 guest