Just a quick question about shutting down with remote.
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Just a quick question about shutting down with remote.
I was wondering, is there a way to turn off the Odroid C2 with the IR remote when running Android? Right now when I go to turn it off it opens up the power menu instead of just shutting down but I'd rather it just shut down by pressing the button, or is there a way to have a delayed shut down like the Ubuntu OS that waits 60 seconds before it shuts down when the power button is pressed on the remote?
- tobetter
- Posts: 2652
- 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: Just a quick question about shutting down with remote.
Sorry to say that C2 does not shutdown with power key of IR remote, For shutdown after 60 seconds what you want requires to change the frameworks...#1 GameMaster wrote:I was wondering, is there a way to turn off the Odroid C2 with the IR remote when running Android? Right now when I go to turn it off it opens up the power menu instead of just shutting down but I'd rather it just shut down by pressing the button, or is there a way to have a delayed shut down like the Ubuntu OS that waits 60 seconds before it shuts down when the power button is pressed on the remote?
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
So it is possible to set it to shutdown after 60 seconds? If so how would I go about editing the framework to do so?
Thanks
Thanks
- tobetter
- Posts: 2652
- 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: Just a quick question about shutting down with remote.
Can you try to keep pressing power key long enough? I realized that there were some changes for power off with long key press of power key on remote.
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
Tried it and all it does is turn off the display. At first I thought that it might be in sleep mode but the blue light just keeps flickering.
- tobetter
- Posts: 2652
- 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: Just a quick question about shutting down with remote.
Sleep mode is not supporting on C2. What's the version running on your ODROID-C2?#1 GameMaster wrote:Tried it and all it does is turn off the display. At first I thought that it might be in sleep mode but the blue light just keeps flickering.
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
It's running v4.2
- tobetter
- Posts: 2652
- 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: Just a quick question about shutting down with remote.
Did you keep pressing the power key on remote more than 5 seconds although power popup window is on screen?#1 GameMaster wrote:It's running v4.2
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
I'm actually using a Logitech Harmony 350 Remote that is programmed to work as an odriod remote and if you hold the power button it stops sending the signal after 2-3 seconds.
- rooted
- Posts: 6295
- Joined: Fri Dec 19, 2014 9:12 am
- languages_spoken: english
- Location: Gulf of Mexico, US
- Contact:
Re: Just a quick question about shutting down with remote.
That should be adjustable in Harmony software.#1 GameMaster wrote:I'm actually using a Logitech Harmony 350 Remote that is programmed to work as an odriod remote and if you hold the power button it stops sending the signal after 2-3 seconds.
You should have stated this in the beginning also, they are using the HK remote and you aren't. It explains the different behavior.
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
Well I figured since it was programmed to the actual remote that it wasn't that big of a deal. I mean it still sends the same IR code right?
- codewalker
- Posts: 517
- Joined: Mon Feb 25, 2013 11:03 am
- languages_spoken: english
- ODROIDs: all
- Contact:
Re: Just a quick question about shutting down with remote.
Hi, I change config_longPressOnPowerBehavior to 3.
frameworks/base/res/res/values/config.xml
You can apply it by following the instructions below.
https://dn.odroid.com/S905/Android/test ... rk-res.apk
frameworks/base/res/res/values/config.xml
Code: Select all
754 <!-- Control the behavior when the user long presses the power button.
755 0 - Nothing
756 1 - Global actions menu
757 2 - Power off (with confirmation)
758 3 - Power off (without confirmation)
759 -->
760 <integer name="config_longPressOnPowerBehavior">3</integer>
https://dn.odroid.com/S905/Android/test ... rk-res.apk
Code: Select all
$ adb remount
$ adb push framework-res.apk /system/framework/framework-res.apk
$ adb reboot
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
Sorry but I can't figure out how to get this to install. First I opened the terminal and tried putting in "adb remount" and it gave me a message like "adb not found". So then I tried to just install the APK file but it failed to install.
- codewalker
- Posts: 517
- Joined: Mon Feb 25, 2013 11:03 am
- languages_spoken: english
- ODROIDs: all
- Contact:
Re: Just a quick question about shutting down with remote.
Open Browser and goto this page.
Download framework-res.apk.
https://dn.odroid.com/S905/Android/test ... rk-res.apk
Open Terminal app.
$ su
# mount -o rw,remount /system
# cp /sdcard/Download/framework-res.apk /system/framework/
# sync
Or try this.
https://dn.odroid.com/S905/Android/test ... ter-97.zip
Download framework-res.apk.
https://dn.odroid.com/S905/Android/test ... rk-res.apk
Open Terminal app.
$ su
# mount -o rw,remount /system
# cp /sdcard/Download/framework-res.apk /system/framework/
# sync
Or try this.
https://dn.odroid.com/S905/Android/test ... ter-97.zip
#1 GameMaster wrote:Sorry but I can't figure out how to get this to install. First I opened the terminal and tried putting in "adb remount" and it gave me a message like "adb not found". So then I tried to just install the APK file but it failed to install.
-
- Posts: 8
- Joined: Mon Jun 25, 2018 4:20 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Contact:
Re: Just a quick question about shutting down with remote.
Thank you, codewalker. I managed to get that working this time through the terminal so if that is the code that is sent to the system by holding the power button on the remote I'll just need to figure out how to prolong the time the power signal is sent from my 350 remote. The reason I know that it works now is from clicking on the power icon at the bottom.
- codewalker
- Posts: 517
- Joined: Mon Feb 25, 2013 11:03 am
- languages_spoken: english
- ODROIDs: all
- Contact:
Re: Just a quick question about shutting down with remote.
Probably about 5 seconds is enough.
#1 GameMaster wrote:Thank you, codewalker. I managed to get that working this time through the terminal so if that is the code that is sent to the system by holding the power button on the remote I'll just need to figure out how to prolong the time the power signal is sent from my 350 remote. The reason I know that it works now is from clicking on the power icon at the bottom.
Who is online
Users browsing this forum: No registered users and 0 guests