App GpioShutdownService for C2 / N2 / C4 / XU

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Yes I use torque with tasker : tasker open an app when I exceed 3000rpm.
And I use tasker with screen filter: tasker applied I night filter at 8P.M.

But if tasker work with your app we can add a button to any spot.

For the moment your application works in the material direction towards software (button to action volume for example).

But the best would be in the software to hardware direction(at a certain time, it performs the lighting of the inner light for example).

Edit: with tasker it exist an AutoArduino plugin, that communicate with arduino on usb or wifi or ethernet, we should make an identical plugin to communicate with our gpio

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Sorry, I made a mistake in my last post. I was thinking 'tasker' but I wrote 'torque'. So I mean with tasker you can program receiving intents. When I am back at home and find some free time I can check this and give some example.
http://tasker.dinglisch.net/userguide/en/intents.html

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

do not worry, my english is not very good.
If I find solutions I'll give you

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Hi with androidmanifest.XML of your app we can send intent with tasker

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

OK, I would need to extend my app for receiving intents. So far it only receives intent for system shutdown and for boot complete. I could do but it would take some time.
And to test sending intents from my app to tasker I need to understand how to add a receiving intent in tasker and the syntax of it. Yesterday I looked into it but without success so far.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

There is now a new version uploaded in first post.
I added the functionality to send and receive intents. You can adjust tasker to work with this intents.
GpioShutdownService sends the status of the used inputs in this form:
com.jw.shutdownservice.GpioShutdownService.GPIO_STATE_CHANGED
with extra data:
int gpio, int value
Every state change from 0 to 1 or from 1 to 0 is sent.
In the ExtraXAction the gpio number must be set, the action string can be left empty. The zero is not allowed as gpio number.

To receive with tasker add a event system:intent received under Profiles:
screen_event_receive_gpio.png
screen_event_receive_gpio.png (35.57 KiB) Viewed 8152 times
And a Task to make something with it:
screen_task_popup.png
screen_task_popup.png (39.02 KiB) Viewed 8152 times
Generates a pop up:
screen_gpio_status_changed.png
screen_gpio_status_changed.png (22.55 KiB) Viewed 8152 times
All of the not used gpio can be set with tasker. The Action must be in this form:
com.jw.shutdownservice.action.SET_GPIO
with extra data:
int gpio, int value

To send the intent with tasker add a task system:send intent and put the above string as Action, under first Extra gpio:22, under second Extra value:1
Allowed values are 0 and 1.
screen_action_set_gpio.png
screen_action_set_gpio.png (33.86 KiB) Viewed 8152 times

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Oh yes nickel thank's to you Joeg =)

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Hi,
I test intent received,
Exactly like your 2 firts picture
I d'ont have popup

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Have you got checked Preferences:Misc:Alow External Access ?

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Yes I check it
How can I test gpio to be sure Im not burn it? I've a multimeter

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Hi, you would see a message in logcat as this, when the intent is sent:

Code: Select all

com.jw.shutdownservice D/com.jw.gpioshutdown: Intent { act=com.jw.shutdownservice.GpioShutdownService.GPIO_STATE_CHANGED (has extras) }
The intent is sent when the gpio input changes from 1 to 0 or from 0 to 1.

Code: Select all

adb shell logcat|grep shutdownservice
And you always should use a resistor of 1k or 2k to connect the gpio to GND. Only to be sure not to burn the gpio.

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: App GpioShutdownService for C2

Post by InspecteurGadget »

Hi,
It work :)
I thinks its my relay board that not compatible with 3.3v .

I bought one this week

juanitomaille
Posts: 40
Joined: Thu Dec 21, 2017 12:25 am
languages_spoken: english, french
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by juanitomaille »

Hi @joerg,

I've seen in another thraed that you were interrested by rotary encoder.

Do you think it's possible to integrate this function to your app ?

thanks

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Sorry juanitomaille, maybe one day. But for now I am busy with other things.

User avatar
odroid
Site Admin
Posts: 34859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 933 times
Been thanked: 760 times
Contact:

Re: App GpioShutdownService for C2

Post by odroid »

This wiki page must be a good starting point.
https://wiki.odroid.com/odroid-c2/appli ... on_android

buffalodropkick
Posts: 4
Joined: Wed Feb 13, 2019 12:01 pm
languages_spoken: english
ODROIDs: C2 XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by buffalodropkick »

[The extension apk has been deactivated and can no longer be displayed.]
@joerg is this apk no longer available?

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

No, I think since the new version of this forum apk files cannot be uploaded. I uploaded the last version as zip instead.

buffalodropkick
Posts: 4
Joined: Wed Feb 13, 2019 12:01 pm
languages_spoken: english
ODROIDs: C2 XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by buffalodropkick »

joerg wrote:
Thu Feb 14, 2019 4:23 am
No, I think since the new version of this forum apk files cannot be uploaded. I uploaded the last version as zip instead.
Fantastic, thank you - can't wait to test it out!

mranderson
Posts: 11
Joined: Fri Jul 08, 2016 6:28 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by mranderson »

Do I still need to go through the ordeal of recompiling the DTS file to get the GPIO working in the latest android marshmellow?

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

It should work without recompiling.

mranderson
Posts: 11
Joined: Fri Jul 08, 2016 6:28 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by mranderson »

oh that would be great Joerg, I only need a shutdown button, so I thought I'd change the shutdown to 214, but when I connect the wires as a test nothing seems to happen. Thanks again for all your sharing here, it's still a few levels too high for me with all the transistors

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Oh, you need to give the wiringpi number, means 24, not 214.
Pls refer to the wiki page: https://wiki.odroid.com/odroid-c2/hardw ... connectors

mranderson
Posts: 11
Joined: Fri Jul 08, 2016 6:28 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by mranderson »

I used pin 24 and a ground wire, also I made sure in your app the shutdown referred to pin 24

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Hi @mranderson, it would be helpful, if you show the output of a logcat|grep shutdownservice here. To do this, please open a adb terminal and restart the service. The service is restarted if you press the upper left back (<) button on the settings.
And please check also, if you gave root permission and in settings/apps, if you gave all permissions.

mranderson
Posts: 11
Joined: Fri Jul 08, 2016 6:28 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by mranderson »

hi Joerg, i'm not sure what the difference is now, it suddenly worked after I connected with the adb. But it does shut off immediately, it doesn't look like the typical powerdown when you push the onscreen menu. It's correct that I don't see the dialog of android saying shutting down?

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Fine that it works now. And yes, there is no dialog to when shutdown is send. If you really need a dialog, you can use the Extra Action as this:
Extra1 Pin = 24
Extra1 Action = input keyevent --longpress KEYCODE_POWER
In that case you would need to delete the 24 in Shutdown Pin.

mranderson
Posts: 11
Joined: Fri Jul 08, 2016 6:28 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by mranderson »

actually the change is that I set the delay time to 1 ( I saw in logcat it was working but delay was too long), thanks so much for your help!

Spyderabyte
Posts: 10
Joined: Sat Apr 07, 2018 1:33 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by Spyderabyte »

Hello, i cannot for the life of me get this to work on my android xu4, running on voodiks lineageos 15.1

I do not have a shifter shield, and have changed the pins accordingly, yet the app doesnt "See" my button presses

i am getting in logcat
Model: hardkernel odroid-xu4
Wrong device!
Checking ro.product.device, check = false
Entering wiringPiSetup, check = false

and then the service crashes. i am just looking to wiring up some physical keys for android controls (Volume +/-, back, home, app switcher etc)

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

Oh, I haven't seen your post. I will look into this soon ...

Spyderabyte
Posts: 10
Joined: Sat Apr 07, 2018 1:33 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by Spyderabyte »

joerg wrote:
Mon Jan 27, 2020 5:32 pm
Oh, I haven't seen your post. I will look into this soon ...
Thank you so much!! I really appreciate it

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

@Spyderabyte, I have updated the version, you can find it in first post.
I hope it works. Please report back.

Spyderabyte
Posts: 10
Joined: Sat Apr 07, 2018 1:33 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by Spyderabyte »

I will test it tonight and update! Thank you so much!!
Edit: it does not appear to be in the first post. The post said last edited march 2019

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

You are right. I forgot to submit. :( But now it's there.
These users thanked the author joerg for the post:
odroid (Mon Feb 10, 2020 2:06 pm)

themlruts
Posts: 7
Joined: Mon Apr 20, 2020 10:07 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2

Post by themlruts »

Will this work with the XU4?

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2

Post by joerg »

The last version tries to detect the device string 'odroid-xu'. If this is not working with the XU4, you can ask here again and please show the output of /proc/cpuinfo.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

New version uploaded.
These users thanked the author joerg for the post (total 2):
rooted (Wed May 20, 2020 1:31 am) • odroid (Wed May 20, 2020 9:45 am)

smwoodward
Posts: 6
Joined: Thu May 14, 2020 8:32 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by smwoodward »

joerg wrote:
Wed May 20, 2020 1:31 am
New version uploaded.
I must be doing something wrong. When I close pin 24 aka 35 and ground with a 2k resistor, android won't start shutting down. Now if I leave them connected the legnth of time that is set in the app, the odroid board will shut off completely without shutting down the OS first.

What am I missing?

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

Yes it is right, you must set to low as long as it takes, not only for short time. It is meant for a signal like the ignition. When you turn off the car, the ignition goes to 0V. Then it starts the time to shutdown. If you put 10 minutes and if you come back earlier and switch on the car, then shutdown process is canceled. The app uses command 'reboot -p', there is no dialog, but it shuts down safe.
Or do you want only short pulse e.g a push button to shut down?
I you want to wire the ignition to the C2, then you need a voltage devider/limiter or a relay to connect safe to the gpio pin.

smwoodward
Posts: 6
Joined: Thu May 14, 2020 8:32 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by smwoodward »

joerg wrote:
Thu May 28, 2020 1:40 pm
Yes it is right, you must set to low as long as it takes, not only for short time. It is meant for a signal like the ignition. When you turn off the car, the ignition goes to 0V. Then it starts the time to shutdown. If you put 10 minutes and if you come back earlier and switch on the car, then shutdown process is canceled. The app uses command 'reboot -p', there is no dialog, but it shuts down safe.
Or do you want only short pulse e.g a push button to shut down?
I you want to wire the ignition to the C2, then you need a voltage devider/limiter or a relay to connect safe to the gpio pin.
Oh ok, so even though it shuts down what seems to be abruptly it is shutting down safely? It just seemed like it was shutting down as in a straight power off.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

Here you see a log from C4 after sending 'reboot -p'. All services (I bet: all) are halted, before the system is halted.
It takes ~0.6s. Therefor it is not a good idea to switch off voltage before the system is halted totally. As I recommended years ago, to take a gpio output 'power hold' to do this, today I recommend to have a separate off delay of about 2 - 3s. My app can't do this delay as it dies before, as all services are dying. On a C4 it is better to use the 5V-pin as it goes off when the system is halted. On a C2 this is not the case (I think).

Code: Select all

05-28 11:45:22.474  4665  5131 D com.jw.gpioshutdown: bye bye (power off)...
05-28 11:45:22.474  4665  5131 D RootShell v1.6: CommandHandler not created
05-28 11:45:22.478  4665  4727 D RootShell v1.6: Executing: reboot -p
05-28 11:45:22.478  4665  4727 D RootShell v1.6:  with context: NORMAL
05-28 11:45:22.478  4665  5151 D RootShell v1.6: Command 0 is waiting for: 20000
05-28 11:45:22.492  4665  4728 D Command : ID: 0, Done
05-28 11:45:22.493  4665  4728 D RootShell v1.6: Read all output
05-28 11:45:22.493  4665  4728 D RootShell v1.6: Command 0 finished.
05-28 11:45:22.511  5153  5153 I blank_screen: type=1400 audit(0.0:366): avc: denied { read } for name="libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:blank_screen:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.511  5153  5153 I blank_screen: type=1400 audit(0.0:367): avc: denied { getattr } for path="/vendor/lib/libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:blank_screen:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.519  2704  2704 I ServiceManager: service 'android.service.gatekeeper.IGateKeeperService' died
05-28 11:45:22.520  3298  3753 D BufferPoolAccessor: bufferpool2 0x72825cbc20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/36 (fetch/transfer)
05-28 11:45:22.520  3298  3753 D BufferPoolConnection: connection 14166391516353 closed on death
05-28 11:45:22.521  3298  3753 D BufferPoolAccessor: bufferpool2 0x728262c620 : 0(0 size) total buffers - 0(0 size) used buffers - 3/9 (recycle/alloc) - 6/38 (fetch/transfer)
05-28 11:45:22.521  3298  3753 D BufferPoolConnection: connection 14166391516355 closed on death
05-28 11:45:22.521  3298  3753 D BufferPoolAccessor: bufferpool2 0x72dc26d620 : 0(0 size) total buffers - 0(0 size) used buffers - 1/9 (recycle/alloc) - 8/18 (fetch/transfer)
05-28 11:45:22.521  3298  3753 D BufferPoolConnection: connection 14166391516357 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x72614e9c20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/18 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421953 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x72614e9e20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 8/20 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421955 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9020 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 8/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421957 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9220 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/20 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421959 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9420 : 0(0 size) total buffers - 0(0 size) used buffers - 3/9 (recycle/alloc) - 6/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421961 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9620 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421963 closed on death
05-28 11:45:22.521  2972  2972 I wificond: wificond is about to exit
05-28 11:45:22.524  2967  2967 I statsd  : StatsService::Terminating
05-28 11:45:22.524  2967  2967 W statsd  : statsd terminated on receiving signal 15.
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x72825cbc20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 36, 81% unfetced
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x728262c620 cached: 0/0M, 0/0% in use; allocs: 9, 33% recycled; transfers: 38, 84% unfetced
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x72dc26d620 cached: 0/0M, 0/0% in use; allocs: 9, 11% recycled; transfers: 18, 56% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x72614e9c20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 18, 61% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x72614e9e20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 20, 60% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9020 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 34, 76% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9220 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 20, 65% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9420 cached: 0/0M, 0/0% in use; allocs: 9, 33% recycled; transfers: 34, 82% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9620 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 34, 79% unfetced
05-28 11:45:22.529  3148  3501 W StorageManagerService: storaged died; reconnecting
05-28 11:45:22.531  2704  2704 I ServiceManager: service 'storaged' died
05-28 11:45:22.531  2704  2704 I ServiceManager: service 'storaged_pri' died
05-28 11:45:22.532  3148  3501 W StorageManagerService: storaged not found; trying again
05-28 11:45:22.544  2903  2903 D lights.odroid: light_level = 0
05-28 11:45:22.545  5153  5153 E /system/bin/blank_screen: Failed to shut off screen for type 0
05-28 11:45:22.545  2903  2903 D lights.odroid: set_light_keyboard: Not implemented.
05-28 11:45:22.546  2903  2903 D lights.odroid: set_light_buttons: Not implemented.
05-28 11:45:22.547  2903  2903 D lights.odroid: set_light_battery: Not implemented.
05-28 11:45:22.547  2903  2903 D lights.odroid: set_light_notifications: Not implemented.
05-28 11:45:22.548  2903  2903 D lights.odroid: set_light_attention: Not implemented.
05-28 11:45:22.555  2704  2704 I ServiceManager: service 'wificond' died
05-28 11:45:22.555  3932  3951 W MediaMetadataRetriever: MediaMetadataRetriever server died!
05-28 11:45:22.555  3148  3259 E WificondControl: Wificond died!
05-28 11:45:22.555  3298  5043 W IMediaDeathNotifier: media server died
05-28 11:45:22.555  3148  3259 I WifiNative: wificond died. Cleaning up internal state.
05-28 11:45:22.555  2704  2704 I ServiceManager: service 'media.player' died
05-28 11:45:22.556  2704  2704 I ServiceManager: service 'media.resource_manager' died
05-28 11:45:22.556  3148  3259 E WifiActiveModeWarden: One of the native daemons died. Triggering recovery
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.audio_flinger' died
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.audio_policy' died
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.sound_trigger_hw' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'ashmem_device_service' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'gpu' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.camera' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'adbroot_service' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.extractor' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'drm.drmManager' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'incident' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'installd' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.metrics' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'android.security.keystore' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.drm' died
05-28 11:45:22.597  2704  2704 I ServiceManager: service 'stats' died
05-28 11:45:22.605  2900  2975 E MesonHwc: sc_get_osd_positionc fail.
05-28 11:45:22.605  2900  2975 D MesonHwc: (setCalibrateInfo): sc_get_osd_position failed, use backup coordinates.
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'dnsresolver' died
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'netd' died
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'suspend_control' died
05-28 11:45:22.758  2917  3036 D gralloc : ddebug, free share_fd=125, user_hnd=0x15, ion client=24
05-28 11:45:22.772  2704  2704 I ServiceManager: service 'secure_element' died
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=77, user_hnd=0xb, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=85, user_hnd=0xd, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=98, user_hnd=0x7, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=105, user_hnd=0x8, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=101, user_hnd=0x4, ion client=24
05-28 11:45:22.835  2917  3036 D gralloc : ddebug, free share_fd=97, user_hnd=0x11, ion client=24
05-28 11:45:22.843  2704  2704 I ServiceManager: service 'network_stack' died
05-28 11:45:22.846  2900  2975 E MesonHwc: tryGet system control daemon Service failed, sleep to wait.
05-28 11:45:22.861  2705  5161 W libc    : Unable to set property "ctl.interface_start" to "vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default": error code: 0x20
05-28 11:45:22.861  2705  5161 E hwservicemanager: Failed to set property for starting vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default
05-28 11:45:22.959  5162  5162 I vdc     : type=1400 audit(0.0:368): avc: denied { read } for name="libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:vdc:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.959  5162  5162 I vdc     : type=1400 audit(0.0:369): avc: denied { getattr } for path="/vendor/lib/libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:vdc:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:23.048  2900  2975 E MesonHwc: tryGet system control daemon Service failed, sleep to wait.
05-28 11:45:23.062  2705  5163 W libc    : Unable to set property "ctl.interface_start" to "vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default": error code: 0x20
05-28 11:45:23.063  2705  5163 E hwservicemanager: Failed to set property for starting vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'mount' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'storagestats' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'uimode' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'network_management' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'textservices' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'textclassification' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'ipsec' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'network_score' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'netstats' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'netpolicy' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'wifi' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'wifiscanner' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'ethernet' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'connectivity' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'servicediscovery' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'system_update' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'updatelock' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'notification' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'devicestoragemonitor' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'location' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'country_detector' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'time_detector' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'search' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'wallpaper' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'audio' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'DockObserver' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'adb' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'usb' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'serial' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'hardware_properties' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'color_display' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'jobscheduler' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'soundtrigger' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'trust' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'backup' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'appwidget' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'role' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'voiceinteraction' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'diskstats' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'runtime' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'network_time_update_service' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'dreams' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'graphicsstats' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'print' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'companiondevice' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'restrictions' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_session' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'hdmi_control' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_resource_monitor' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_router' died
05-28 11:45:23.105  2917  3732 D gralloc : ddebug, free share_fd=90, user_hnd=0xf, ion client=24
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'biometric' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'shortcut' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'launcherapps' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'crossprofileapps' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_projection' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'slice' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media.camera.proxy' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'statscompanion' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'incidentcompanion' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'imms' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'autofill' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'clipboard' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'app_binding' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'profile' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagehardware' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineageperformance' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagelivedisplay' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineageaudio' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagetrust' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'connmetrics' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'netd_listener' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'contexthub' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'things' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'telecom' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'recovery' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'display' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dbinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'cpuinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'otadexopt' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'user' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'activity' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'procstats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'meminfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'gfxinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'permission' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'processinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'overlay' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sensor_privacy' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sensorservice' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'battery' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'batteryproperties' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'usagestats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'webviewupdate' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'binder_calls_stats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'looper_stats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'package_native' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'rollback' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'bugreport' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sec_key_att_app_id_provider' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'scheduling_policy' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'telephony.registry' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'account' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'content' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'settings' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'device_config' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dropbox' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'external_vibrator_service' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'vibrator' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dynamic_system' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'consumer_ir' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'alarm' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'inputflinger' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'deviceidle' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'input_method' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'accessibility' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'window' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'input' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'lock_settings' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'testharness' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'device_policy' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'statusbar' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'network_watchlist' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'pinner' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'uri_grants' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'device_identifiers' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'activity_task' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'package' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'batterystats' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'appops' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'power' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'thermalservice' died
05-28 11:45:23.115  2917  5164 W libc    : Unable to set property "ctl.start" to "bootanim": error code: 0x20

smwoodward
Posts: 6
Joined: Thu May 14, 2020 8:32 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by smwoodward »

joerg wrote:
Thu May 28, 2020 7:07 pm
Here you see a log from C4 after sending 'reboot -p'. All services (I bet: all) are halted, before the system is halted.
It takes ~0.6s. Therefor it is not a good idea to switch off voltage before the system is halted totally. As I recommended years ago, to take a gpio output 'power hold' to do this, today I recommend to have a separate off delay of about 2 - 3s. My app can't do this delay as it dies before, as all services are dying. On a C4 it is better to use the 5V-pin as it goes off when the system is halted. On a C2 this is not the case (I think).

Code: Select all

05-28 11:45:22.474  4665  5131 D com.jw.gpioshutdown: bye bye (power off)...
05-28 11:45:22.474  4665  5131 D RootShell v1.6: CommandHandler not created
05-28 11:45:22.478  4665  4727 D RootShell v1.6: Executing: reboot -p
05-28 11:45:22.478  4665  4727 D RootShell v1.6:  with context: NORMAL
05-28 11:45:22.478  4665  5151 D RootShell v1.6: Command 0 is waiting for: 20000
05-28 11:45:22.492  4665  4728 D Command : ID: 0, Done
05-28 11:45:22.493  4665  4728 D RootShell v1.6: Read all output
05-28 11:45:22.493  4665  4728 D RootShell v1.6: Command 0 finished.
05-28 11:45:22.511  5153  5153 I blank_screen: type=1400 audit(0.0:366): avc: denied { read } for name="libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:blank_screen:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.511  5153  5153 I blank_screen: type=1400 audit(0.0:367): avc: denied { getattr } for path="/vendor/lib/libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:blank_screen:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.519  2704  2704 I ServiceManager: service 'android.service.gatekeeper.IGateKeeperService' died
05-28 11:45:22.520  3298  3753 D BufferPoolAccessor: bufferpool2 0x72825cbc20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/36 (fetch/transfer)
05-28 11:45:22.520  3298  3753 D BufferPoolConnection: connection 14166391516353 closed on death
05-28 11:45:22.521  3298  3753 D BufferPoolAccessor: bufferpool2 0x728262c620 : 0(0 size) total buffers - 0(0 size) used buffers - 3/9 (recycle/alloc) - 6/38 (fetch/transfer)
05-28 11:45:22.521  3298  3753 D BufferPoolConnection: connection 14166391516355 closed on death
05-28 11:45:22.521  3298  3753 D BufferPoolAccessor: bufferpool2 0x72dc26d620 : 0(0 size) total buffers - 0(0 size) used buffers - 1/9 (recycle/alloc) - 8/18 (fetch/transfer)
05-28 11:45:22.521  3298  3753 D BufferPoolConnection: connection 14166391516357 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x72614e9c20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/18 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421953 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x72614e9e20 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 8/20 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421955 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9020 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 8/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421957 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9220 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/20 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421959 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9420 : 0(0 size) total buffers - 0(0 size) used buffers - 3/9 (recycle/alloc) - 6/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421961 closed on death
05-28 11:45:22.521  3148  3772 D BufferPoolAccessor: bufferpool2 0x726dbd9620 : 0(0 size) total buffers - 0(0 size) used buffers - 2/9 (recycle/alloc) - 7/34 (fetch/transfer)
05-28 11:45:22.521  3148  3772 D BufferPoolConnection: connection 13522146421963 closed on death
05-28 11:45:22.521  2972  2972 I wificond: wificond is about to exit
05-28 11:45:22.524  2967  2967 I statsd  : StatsService::Terminating
05-28 11:45:22.524  2967  2967 W statsd  : statsd terminated on receiving signal 15.
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x72825cbc20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 36, 81% unfetced
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x728262c620 cached: 0/0M, 0/0% in use; allocs: 9, 33% recycled; transfers: 38, 84% unfetced
05-28 11:45:22.525  3298  3753 D BufferPoolAccessor: Destruction - bufferpool2 0x72dc26d620 cached: 0/0M, 0/0% in use; allocs: 9, 11% recycled; transfers: 18, 56% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x72614e9c20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 18, 61% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x72614e9e20 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 20, 60% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9020 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 34, 76% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9220 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 20, 65% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9420 cached: 0/0M, 0/0% in use; allocs: 9, 33% recycled; transfers: 34, 82% unfetced
05-28 11:45:22.526  3148  3277 D BufferPoolAccessor: Destruction - bufferpool2 0x726dbd9620 cached: 0/0M, 0/0% in use; allocs: 9, 22% recycled; transfers: 34, 79% unfetced
05-28 11:45:22.529  3148  3501 W StorageManagerService: storaged died; reconnecting
05-28 11:45:22.531  2704  2704 I ServiceManager: service 'storaged' died
05-28 11:45:22.531  2704  2704 I ServiceManager: service 'storaged_pri' died
05-28 11:45:22.532  3148  3501 W StorageManagerService: storaged not found; trying again
05-28 11:45:22.544  2903  2903 D lights.odroid: light_level = 0
05-28 11:45:22.545  5153  5153 E /system/bin/blank_screen: Failed to shut off screen for type 0
05-28 11:45:22.545  2903  2903 D lights.odroid: set_light_keyboard: Not implemented.
05-28 11:45:22.546  2903  2903 D lights.odroid: set_light_buttons: Not implemented.
05-28 11:45:22.547  2903  2903 D lights.odroid: set_light_battery: Not implemented.
05-28 11:45:22.547  2903  2903 D lights.odroid: set_light_notifications: Not implemented.
05-28 11:45:22.548  2903  2903 D lights.odroid: set_light_attention: Not implemented.
05-28 11:45:22.555  2704  2704 I ServiceManager: service 'wificond' died
05-28 11:45:22.555  3932  3951 W MediaMetadataRetriever: MediaMetadataRetriever server died!
05-28 11:45:22.555  3148  3259 E WificondControl: Wificond died!
05-28 11:45:22.555  3298  5043 W IMediaDeathNotifier: media server died
05-28 11:45:22.555  3148  3259 I WifiNative: wificond died. Cleaning up internal state.
05-28 11:45:22.555  2704  2704 I ServiceManager: service 'media.player' died
05-28 11:45:22.556  2704  2704 I ServiceManager: service 'media.resource_manager' died
05-28 11:45:22.556  3148  3259 E WifiActiveModeWarden: One of the native daemons died. Triggering recovery
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.audio_flinger' died
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.audio_policy' died
05-28 11:45:22.595  2704  2704 I ServiceManager: service 'media.sound_trigger_hw' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'ashmem_device_service' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'gpu' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.camera' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'adbroot_service' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.extractor' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'drm.drmManager' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'incident' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'installd' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.metrics' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'android.security.keystore' died
05-28 11:45:22.596  2704  2704 I ServiceManager: service 'media.drm' died
05-28 11:45:22.597  2704  2704 I ServiceManager: service 'stats' died
05-28 11:45:22.605  2900  2975 E MesonHwc: sc_get_osd_positionc fail.
05-28 11:45:22.605  2900  2975 D MesonHwc: (setCalibrateInfo): sc_get_osd_position failed, use backup coordinates.
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'dnsresolver' died
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'netd' died
05-28 11:45:22.632  2704  2704 I ServiceManager: service 'suspend_control' died
05-28 11:45:22.758  2917  3036 D gralloc : ddebug, free share_fd=125, user_hnd=0x15, ion client=24
05-28 11:45:22.772  2704  2704 I ServiceManager: service 'secure_element' died
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=77, user_hnd=0xb, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=85, user_hnd=0xd, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=98, user_hnd=0x7, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=105, user_hnd=0x8, ion client=24
05-28 11:45:22.834  2917  3036 D gralloc : ddebug, free share_fd=101, user_hnd=0x4, ion client=24
05-28 11:45:22.835  2917  3036 D gralloc : ddebug, free share_fd=97, user_hnd=0x11, ion client=24
05-28 11:45:22.843  2704  2704 I ServiceManager: service 'network_stack' died
05-28 11:45:22.846  2900  2975 E MesonHwc: tryGet system control daemon Service failed, sleep to wait.
05-28 11:45:22.861  2705  5161 W libc    : Unable to set property "ctl.interface_start" to "vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default": error code: 0x20
05-28 11:45:22.861  2705  5161 E hwservicemanager: Failed to set property for starting vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default
05-28 11:45:22.959  5162  5162 I vdc     : type=1400 audit(0.0:368): avc: denied { read } for name="libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:vdc:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:22.959  5162  5162 I vdc     : type=1400 audit(0.0:369): avc: denied { getattr } for path="/vendor/lib/libOmxCoreSw.so" dev="mmcblk0p12" ino=477 scontext=u:r:vdc:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
05-28 11:45:23.048  2900  2975 E MesonHwc: tryGet system control daemon Service failed, sleep to wait.
05-28 11:45:23.062  2705  5163 W libc    : Unable to set property "ctl.interface_start" to "vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default": error code: 0x20
05-28 11:45:23.063  2705  5163 E hwservicemanager: Failed to set property for starting vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl/default
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'mount' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'storagestats' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'uimode' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'network_management' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'textservices' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'textclassification' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'ipsec' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'network_score' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'netstats' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'netpolicy' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'wifi' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'wifiscanner' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'ethernet' died
05-28 11:45:23.104  2704  2704 I ServiceManager: service 'connectivity' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'servicediscovery' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'system_update' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'updatelock' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'notification' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'devicestoragemonitor' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'location' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'country_detector' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'time_detector' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'search' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'wallpaper' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'audio' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'DockObserver' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'adb' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'usb' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'serial' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'hardware_properties' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'color_display' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'jobscheduler' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'soundtrigger' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'trust' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'backup' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'appwidget' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'role' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'voiceinteraction' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'diskstats' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'runtime' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'network_time_update_service' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'dreams' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'graphicsstats' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'print' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'companiondevice' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'restrictions' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_session' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'hdmi_control' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_resource_monitor' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_router' died
05-28 11:45:23.105  2917  3732 D gralloc : ddebug, free share_fd=90, user_hnd=0xf, ion client=24
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'biometric' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'shortcut' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'launcherapps' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'crossprofileapps' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media_projection' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'slice' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'media.camera.proxy' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'statscompanion' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'incidentcompanion' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'imms' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'autofill' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'clipboard' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'app_binding' died
05-28 11:45:23.105  2704  2704 I ServiceManager: service 'profile' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagehardware' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineageperformance' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagelivedisplay' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineageaudio' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'lineagetrust' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'connmetrics' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'netd_listener' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'contexthub' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'things' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'telecom' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'recovery' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'display' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dbinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'cpuinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'otadexopt' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'user' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'activity' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'procstats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'meminfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'gfxinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'permission' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'processinfo' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'overlay' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sensor_privacy' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sensorservice' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'battery' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'batteryproperties' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'usagestats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'webviewupdate' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'binder_calls_stats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'looper_stats' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'package_native' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'rollback' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'bugreport' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'sec_key_att_app_id_provider' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'scheduling_policy' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'telephony.registry' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'account' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'content' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'settings' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'device_config' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dropbox' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'external_vibrator_service' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'vibrator' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'dynamic_system' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'consumer_ir' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'alarm' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'inputflinger' died
05-28 11:45:23.106  2704  2704 I ServiceManager: service 'deviceidle' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'input_method' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'accessibility' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'window' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'input' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'lock_settings' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'testharness' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'device_policy' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'statusbar' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'network_watchlist' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'pinner' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'uri_grants' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'device_identifiers' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'activity_task' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'package' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'batterystats' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'appops' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'power' died
05-28 11:45:23.107  2704  2704 I ServiceManager: service 'thermalservice' died
05-28 11:45:23.115  2917  5164 W libc    : Unable to set property "ctl.start" to "bootanim": error code: 0x20
What do you mean on the gpio output 'power hold'? Is this to keep power to the board for everything to shut down before it actually powers off instead of abruptly kills power? What I have planned for my power off portion will be to use a timer relay board that once the ACC power is turned off on the car, the relay will close and hold the 2k to pin 35 for a duration (I'm thinking maybe 4 minutes) and I was going to use a PAC TR-7 to maintain power to the C2 and timer relay for 4:30 (the times I will adjust to make sure it all works properly), and once the 4:30 is reached, all power to the C2 and relay timer will be terminated. Once the car is turned back on, power will be restored to the TR-7, which will in turn send power to the relay timer and the C2.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

What do you mean on the gpio output 'power hold'? Is this to keep power to the board for everything to shut down before it actually powers off instead of abruptly kills power? What I have planned for my power off portion will be to use a timer relay board that once the ACC power is turned off on the car, the relay will close and hold the 2k to pin 35 for a duration (I'm thinking maybe 4 minutes) and I was going to use a PAC TR-7 to maintain power to the C2 and timer relay for 4:30 (the times I will adjust to make sure it all works properly), and once the 4:30 is reached, all power to the C2 and relay timer will be terminated. Once the car is turned back on, power will be restored to the TR-7, which will in turn send power to the relay timer and the C2.
Yes it was meant like this. You know when I developed this app years ago, the shutdown process on KitKat and Lollipop was very fast and I took this hold power gpio to let the power on as long as this gpio was high. But as I told, today I would do it with an external delay like time relay. Like you described it should be ok. You only need to ensure that the voltage is switched off after the system is halted. So if you put 4 min into the apps shutdown delay and the timer relay powers off after 4:30 minutes, than it should be o.k.

SBC
Posts: 5
Joined: Thu May 28, 2020 8:42 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by SBC »

Hi Joerg,

Apologies, I'm pretty new to all of this.

Am I right in saying that to make this work all I have to do is install the apk, give it root access, and connect the right pins to ground with a 2k resistor?

I've tried this, so for instance, on the N2 pin 35 (wiringPi 24) i connected to ground using a 2.2k resistor but no response.

Then I checked with gpio readall and it shows pin 35 (wiringPi 24) is set to ALT4 (0V).

Because of this I changed the shutdown pin to N2 pin 11 (wiringPi 0) because its mode is IN and it is set to high. I then connected this pin to ground using a 2.2k resistor, but still no response..

Do you have any idea where can I go from here?

Apologies for the query, but it would be so useful to have this working.

Cheers,

Will... :)

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

Hi SBC,
there is a new version 1.11.0 on first post.
A different device string on N2 caused false check and for this the service didn't start. There was also a check of Gpio pins # > 0 that made WPI pin 0 not possible.
Both is fixed with the new version.
I saw that the 24 is changed from ALT4 to IN, when the service is initializing the pin as input.

SBC
Posts: 5
Joined: Thu May 28, 2020 8:42 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by SBC »

Hi @joerg,

this is absolutely awesome, so useful. I can now shut down the N2 using a 2.2k resistor between 24 and ground. Thank you for addressing this issue.

Just one more thing, if it is working correctly, should I be able to power up the N2 using the same method of connecting a resistor between whichever PIN is selected in the app and ground? Although I can power down the N2, I am not able to power it up using the app.

Thanks a lot for looking at this for me, it is very much appreciated :)

Cheers,

Will.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

Hi Will, no sorry with the app it is not possible to power up. There is a inbuilt method that does that. You can activate it at the bottom of env.ini on the VFAT partition, simply remove the #.
After the next boot up this pin is registered and the C4 will wake up by shorten the pin for 2s.
But you can't use the same pin in my app as it is also used from odroid settings for shutting down. The behavior is different, if you short this pin then it opens a power dialog and waits for an user action. I tested this on Lineage 17.
So we may ask the hardkernel team if they add an option to deactivate the power key in odroid settings. Then it would be possible to use my app also for the wake up pin 11 to shut down.

SBC
Posts: 5
Joined: Thu May 28, 2020 8:42 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by SBC »

Hi @Joerg,

mate, thank you very much for this information, I am now able to power up and power down the N2 via the GPIO. This is so useful ;)

Do you have a paypal address for donations? I think your work and time should be rewarded.

Cheers,

Will.

User avatar
joerg
Posts: 1130
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 53 times
Been thanked: 122 times
Contact:

Re: App GpioShutdownService for C2 / N2 / C4 / XU

Post by joerg »

Do you have a paypal address for donations? I think your work and time should be rewarded.
Thank you Will, please feel free to donate to a helping organization. :)
These users thanked the author joerg for the post:
SBC (Thu Jun 04, 2020 2:15 am)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest