@jugg 这个还是从应用软件想办法解决,底层暂时没有可以修改的。可以参考一下MPV播放器的源码实现。
Posts
-
RE: CoolPi 4B硬件扩展四:GPIO
@zensation
The current operation method does not support configuring the up and down status. If you need to modify the up and down status of GPIO, you can use DTS's PINCTRL to achieve it.lcd { lcdpwr_en: lcdpwr-en { rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>; }; bl_en: bl-en { rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; }; };
-
RE: CoolPi 4B硬件扩展四:GPIO
@zensation
First, set the password for the root user, and then log in as root.coolpi@Ubuntu:~$ sudo passwd root [sudo] password for coolpi: New password: BAD PASSWORD: The password is shorter than 8 characters Retype new password: passwd: password updated successfully coolpi@Ubuntu:~$ su Password: root@Ubuntu:/home/coolpi# echo 128 > /sys/class/gpio/export root@Ubuntu:/home/coolpi# cd /sys/class/gpio/ root@Ubuntu:/sys/class/gpio# ls export gpiochip0 gpiochip32 gpiochip64 unexport gpio128 gpiochip128 gpiochip509 gpiochip96 root@Ubuntu:/sys/class/gpio#
-
RE: CoolPi 4B硬件扩展四:GPIO
@zensation
Can you be more specific about which commands are not working. -
RE: merge back to armbian source
@reddfoxx
Thank you for your suggestion. As I haven't paid too much attention to ARMBIAN, I have only tried to develop the corresponding firmware. Currently, my main focus is on Ubuntu Debian Android and the optimization and expansion of the upper and lower layers of the system. You can try adding the Armbian mainline in the future. -
RE: is there a available kernel with hibernate mode enabled to allow for faster booting?
@zensation
The firmware I tested is the latest version 20230613, and you can check if there is a problem with your power adapter causing the reboot. -
RE: is there a available kernel with hibernate mode enabled to allow for faster booting?
@zensation
I tested the latest image of ubuntu22.04 and did not find the problem you described. As shown in the following figure, the PWR button is configured as suspend. The first press to enter sleep can be seen from the log information, and the second press to wake up the system.
-
RE: is there a available kernel with hibernate mode enabled to allow for faster booting?
@zensation I will confirm the CP4 machine and reply to you with the results later.
-
RE: is there a available kernel with hibernate mode enabled to allow for faster booting?
@zensation The latest images can support suspend operations, including ubuntu. Are you using CP4 or CM5