Is there any way of adding a custom on/off switch to the board? I have a case I want to put the board into which has a standard wired power button. Can they be connected?
Custom power button
Was a solution found to this? It seems to me that this board has limited applications if, when used headless, the rear edge of the board has to be up against a hole in the enclosure and the user must use a paper clip or similar to turn it on and off. This seems impossible if the HDMI in port is used for internal connection.
The GPIO is supposed to be the same as the Raspberry and you can add a power button via GPIO on that board. There are several tutorials online but it seems that all of those tutorials involve programming the button in Linux. I’m not using Linux ATM so I can’t try it. Can anyone with Linux verify if the same method works?
Poweroff seems possible as its just an event listener on a gpio pin, should test if poweron/wake on gpio is a thing on this board, will post my findings soon.
Try this, power off works, power on still doesn’t…
Use pins [GPIO3_B3
, aka GPIO Number 107, aka Pin 40] and any ground with a normally open switch.
Find those pins here: https://wiki.radxa.com/Rock5/hardware/5b/gpio
Its malicious, but shorting +5 and GND hard resets the board, which later turns it on. A kill switch but it boots from a power off state!! (PLEASE don’t do this btw😅)
It should be possible by either soldering it on top(or replacing) the boards power button. Alternatively it should be very possible for radxa to make this more definable by putting out a maskrom image that uses a gpio as a hardware power button, removing the need to do it in Linux. Apart from that any other os should be able to implement the above suggested solution.
I need to check the schematic to be sure, but I believe it should be tied to specific hardware pins.
Even if the pin is not bound to a specific hardware, the software to potential configure it is closed source blob from Rockchip, and we do not have the access to modify it.
So why was a button fitted instead of a header?
Looking at the board this does not seem practical, at least not without good SMD re-work equipment.
Some people want a button, and some people want a header. /shrug
Now there is only a tactile button in a fixed position on the board. An external device e.g. UPS cannot turn the Rock 5 on and off. With a header, any button can be used in any position and external device can easily start up and (safely) shutdown the Rock 5.
I love my old cubietruck for the things like this:
@RadxaYuntian, this is an idea for the future boards
Maybe this could be sth for radxa to include in future designs. Either put 2 pins on the board in addition to the button that users can solder a wire to/install a 2-pin header or make the button a through hole component that can be easily replaced(albeit I looked at my board and it does look like a straight forward replace that shouldn’t need rework equipment