Android 12, Bluetooth mouse

Hi there,
For android 12, Bluetooth mouse is not able to connect to edge 2 after edge 2 comeback from sleep mode, I have to turn off the bluetooth and turn it back on again to connect to the mouse.
Maybe this has something to do with the power saving? The “Bluetooth radio” is deactivated somehow?

Please help
Thanks.

No bluetooth remote seems to be able to reconnect automatically after waking from sleep, not even ChromeCast 4K or a Xiaomi remote.
Also button presses on bluetooth remotes can’t wake device.
It seems to affect all RK3588 devices and a bug in Rockchip code.

Please add the following modifications after modifying this issue.

kernel-5.10$ git log -p
Date:   Wed Apr 26 10:27:02 2023 +0800

    BT: fix the issue of Bluetooth mouse not being able to wake up the system after system hibernation

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
index 615182d904de..559388c1cb93 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
@@ -368,7 +368,7 @@
                                regulator-max-microvolt = <3300000>;
                                regulator-name = "vcc_3v3_s0";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
                                };
                        };
Date:   Wed Apr 26 09:13:49 2023 +0800

    IR: fix the issue of infrared remote control not being able to wake up the system after system hibernation

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
index 42b362518c41..615182d904de 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rk806-single.dtsi
@@ -242,7 +242,7 @@
                                regulator-ramp-delay = <12500>;
                                regulator-name = "vdd_log_s0";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
                                        regulator-suspend-microvolt = <750000>;
                                };
                        };
@@ -334,7 +334,7 @@
                                regulator-max-microvolt = <1800000>;
                                regulator-name = "avcc_1v8_s0";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
                                };
                        };
 
@@ -345,7 +345,7 @@
                                regulator-max-microvolt = <1800000>;
                                regulator-name = "vcc_1v8_s0";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
                                        regulator-suspend-microvolt = <1800000>;
                                };
                        };
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
index 3c5d630fff92..fce7960b2173 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
@@ -1602,15 +1602,13 @@
                rockchip,sleep-debug-en = <0>;
                rockchip,sleep-mode-config = <
                        (0
-                       | RKPM_SLP_ARMOFF_LOGOFF
-                       | RKPM_SLP_PMU_PMUALIVE_32K
-                       | RKPM_SLP_PMU_DIS_OSC
-                       | RKPM_SLP_32K_EXT
+                       | RKPM_SLP_ARMOFF_DDRPD
                        )
                >;
                rockchip,wakeup-config = <
                        (0
                        | RKPM_GPIO_WKUP_EN
+                       | RKPM_CPU0_WKUP_EN
                        )
                >;
        };

Hi, I do not know how to add code to the system. Can you include this in the next update? Thank you.

@TCBLyolo Can you include this in the next update?==>it will be.

1 Like