Hi,
The 7.1 img have a Powerbutton app, with this I et too the download mode.
https://forum.radxa.com/t/rom-android7-1-android-tv-firmware-released/590/11
greetings
Hi,
The 7.1 img have a Powerbutton app, with this I et too the download mode.
https://forum.radxa.com/t/rom-android7-1-android-tv-firmware-released/590/11
greetings
Thanks thats not there at the moment on the 9 version … fingers crossed it gets added soon …
I think I was hoping for a keyboard shortcut ??
The power button is not available in the plain 7.1 image and only this supports Raspberry Pi’s TouchScreen and Pi camera. Please make it available also there (and also in the new version 9 image).
Found a workaround that is working for me (on the plain Android 9 Pie image):
If you install “Qute” terminal, you can create a script with command
reboot -p
and you can create a shortcut to that script on the desktop. Clicking this shortcut will trigger a shutdown (without confirmation!),
Really good workaround, Thanks! Works with plain Android 7.1 image too.
@jack
I have Rock pi4c board.
Does it has POWER pads for button or not? I need it for going to sleep mode.
This picture is correct?
And where can I download schematic of ROCK Pi 4c?
There three buttons are:
ADC key, Maskrom key, Reset key.
You can refer the schematic and the components diagram.
Ok. Thank you.
I need android sleep state when my car isn’t running. How to enter to sleep?
When I try to close the ADC key contacts, board does not go to sleep.
The next version will look for gpio at 40PIN as the Power button
What is the next version? Board or source?
The Android 10 source.
I built Android 10 from source for pi4c, but 40PIN does not work like power button.
Can you give me some patch to activate this function?
Please refer to the: https://gitlab.com/rk-vendor/rk/kernel/-/blob/rk3399-9.0/arch/arm64/boot/dts/rockchip/rk3399-rockpi-4b.dts
&rk_key {
status = "okay";
power-key {
gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>;
linux,code = <116>;
label = "power";
gpio-key,wakeup;
};
};
@Lili
This commit from Pie does not compile on Android 10.
DTC arch/arm64/boot/dts/rockchip/rk3399-rockpi-4c.dtb
Error: arch/arm64/boot/dts/rockchip/rk3399-rockpi-4c.dts:938.1-8 Label or path rk_key not found
FATAL ERROR: Syntax error parsing input tree
scripts/Makefile.lib:307: recipe for target 'arch/arm64/boot/dts/rockchip/rk3399-rockpi-4c.dtb' failed
make[1]: *** [arch/arm64/boot/dts/rockchip/rk3399-rockpi-4c.dtb] Error 1
arch/arm64/Makefile:145: recipe for target 'rockchip/rk3399-rockpi-4c.dtb' failed
Could you tell me please, how fix it?
I have committed the changes, please repo Sync.
Please press the 16PIN grounding analog Power key in 40PIN.
Thank you!
Do you mean that I need to connect 16PIN to GND PIN on header?
Power button works (16PIN to GND PIN), but if I shutdown Pi4, the power button cannot startup board. We need power button for wakeup board from deepsleep. I mean Pi4 needs to disable usb ports, disable LED flash and go to the ultra low power mode. But board does not enter to deepsleep, usb is disable, Led flash is disable too, but current still about 260mA on 5V. Then I cannot wakeup the board…
How to activate deepsleep mode with ultra low power mode? And how to wakeup board via power button?
It is very important for car usage. The Pi4 cannot be used for a car without this functionality…
What is the power button pad? Pre purchase questions Rock PI4C
Ok, good. But I don’t see it on board.
I see this pads only Shutdown (Power off) with Android?
Could you tell me please where is it on board?
You need to connect the wires from the PMU.
You’re taking the wrong approach to this. You can’t use a power button for controlling power via car signals, because the power button triggers a state TOGGLE between wake and sleep. Your car’s signals, on the other hand, will be ON when the car is on, and OFF when the car is off. This doesn’t convert into triggering of a toggle.
And further to complicate matters, assuming that you did set up a circuit to use the state transitions to trigger a button press, you will also have to deal with the eventual loss of synchronization. I.e., when the toggle causes it to go to sleep when you want it to wake up, and to wake up when you want it to go to sleep.
Instead of this sillyness with the power button, what you want to do is to use the ACC line to control a GPIO pin. For instance, an NFET like a 2n7000 with connections as ACC-Gate, GND-Source, and GPIO-Sink. Then you set the GPIO pin to input-pull-up, active low.
So what that will do, is, when the ACC line is on, it will activate the 2n7000 and pull the GPIO low (active), and when the ACC line is off, it will deactivate the 2n7000 and the GPIO will pull back up (inactive).
Then you just need to inform your vehicle HAL to monitor that GPIO to determine whether it should be on or off.