Call for testing: power indicator (esp. if it works for you now!)
-
@klh how can i copy/paste from terminal to provide results for MX4 ?
-
@keneda I usually just run
adb shell COMMAND > ~/somefilename
oradb shell COMMAND | xclip -sel clip
so I have the results on my PC. If you mean the device terminal, it's the same but withoutadb shell
of course. -
@klh said in Call for testing: power indicator (esp. if it works for you now!):
@nero355 It highly depends on the batteries reported by your kernel - if you could run
upower -d
on your device and post the output I could tell you more (although the issue this is attempting to fix is apparently due to the newer kernels, I think the BQ E5 HD runs an older one).It's telling me the following :
phablet@ubuntu-phablet:~$ upower -d Device: /org/freedesktop/UPower/devices/line_power_ac native-path: ac power supply: yes updated: Sun 21 Nov 2021 01:26:13 AM CET (316435 seconds ago) has history: no has statistics: no line-power warning-level: none online: no icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/battery_battery native-path: battery power supply: yes updated: Wed 24 Nov 2021 05:20:04 PM CET (4 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 0 Wh energy-empty: 0 Wh energy-full: 0 Wh energy-full-design: 0 Wh energy-rate: 0 W voltage: 4.056 V percentage: 94% temperature: 21 degrees C capacity: 100% technology: lithium-ion icon-name: 'battery-full-charging-symbolic' Device: /org/freedesktop/UPower/devices/line_power_usb native-path: usb power supply: yes updated: Wed 24 Nov 2021 05:19:21 PM CET (47 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/line_power_wireless native-path: wireless power supply: yes updated: Sun 21 Nov 2021 01:26:13 AM CET (316435 seconds ago) has history: no has statistics: no line-power warning-level: none online: no icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: Wed 24 Nov 2021 05:19:21 PM CET (47 seconds ago) has history: no has statistics: no battery present: yes state: charging warning-level: none energy: 0 Wh energy-full: 0 Wh energy-rate: 0 W percentage: 94% icon-name: 'battery-full-charging-symbolic' Daemon: daemon-version: 0.99.4 on-battery: no lid-is-closed: no lid-is-present: no critical-action: PowerOff phablet@ubuntu-phablet:~$
And this is my Kernel :
phablet@ubuntu-phablet:~$ uname -a Linux ubuntu-phablet 3.4.67 #1 SMP PREEMPT Mon Jun 6 14:03:15 UTC 2016 b75400e armv7l armv7l armv7l GNU/Linux phablet@ubuntu-phablet:~$
-
@nero355 Seeing as you only have one battery with a defined technology I'd say this will work for you (not 100% sure as the list may be changing once you unplug).
-
@klh
Sounds good!I will try to test this during the next week or so and let you know the result!
-
Tested on a Galaxy Note 4 (910F) and it also solves the issue.
-
@keneda Hi, Working with the terminal:
Just press your finger on the screen (without moving) about 2 seconds, then select <select> from the menu, highlight the desired text with your finger and select <exit selection mode> at the bottom of the screen, now, back again, select <copy> in the menue.
Switch app and paste in the selected app (for example ForumWebApp, MorphBroserApp, EditorApp, or whatever).
That's it.Greetings Mario
-
So I also installed the Uopower thing today on my Xiaomi Redmi Note 9. Very interesting in the terminal, the battery is detected. I have posted a picture in the Xiaomi group. Will test this solution once longer. So far it runs well but is that normal that it takes a while until the battery turns green? About up to 40 seconds after plugging in.
-
@mario-ch THX !
Device: /org/freedesktop/UPower/devices/line_power_ac native-path: ac power supply: yes updated: dim. 19 déc. 2021 22:50:02 CET (38973 seconds ago) has history: no has statistics: no line-power warning-level: none online: no icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/battery_battery native-path: battery vendor: SONY power supply: yes updated: lun. 20 déc. 2021 09:39:07 CET (28 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging warning-level: none energy: 0 Wh energy-empty: 0 Wh energy-full: 0 Wh energy-full-design: 0 Wh energy-rate: 0 W voltage: 3,858 V percentage: 76% temperature: 21 degrees C capacity: 100% technology: lithium-ion icon-name: 'battery-full-symbolic' Device: /org/freedesktop/UPower/devices/line_power_usb native-path: usb power supply: yes updated: ven. 17 déc. 2021 05:17:55 CET (274900 seconds ago) has history: no has statistics: no line-power warning-level: none online: no icon-name: 'ac-adapter-symbolic' Device: /org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: lun. 20 déc. 2021 09:14:44 CET (1491 seconds ago) has history: no has statistics: no battery present: yes state: discharging warning-level: none energy: 0 Wh energy-full: 0 Wh energy-rate: 0 W percentage: 76% icon-name: 'battery-full-symbolic' Daemon: daemon-version: 0.99.4 on-battery: yes lid-is-closed: no lid-is-present: yes critical-action: PowerOff
-
@keneda Looking at this the patch shouldn't change anything since you only have one battery anyway - would be nice to know if it doesn't break anything though
Also,
lid-is-present: yes
is... interesting. -
@klh said in Call for testing: power indicator (esp. if it works for you now!):
Also, lid-is-present: yes is... interesting.
Why ? I'm total noob so don't know what that line says.
+Sorry i did not understand that was for device with more than one battery.
-
lid-is-present: yes is... interesting.
Many phones have a hall effect sensor that's set as a lid in the kernel. This allows book-like cases to embed a small magnet to shut off the device screen when they are closed.
-
@keneda Not with more than one physical battery, with more than one battery reported by upower - this causes issues with the indicator. Still would love to see if it breaks anything for you
@UniSuperBox Oh that's cool, good to know.
-
@klh said in Call for testing: power indicator (esp. if it works for you now!):
@nero355 Seeing as you only have one battery with a defined technology I'd say this will work for you (not 100% sure as the list may be changing once you unplug).
Just so you know : I did not forget about you but I have just been busy with too much stuff the last few weeks!
I have switched to the right branch today and will do some testing during the next 2 weeks!
@klh said in Call for testing: power indicator (esp. if it works for you now!):
@keneda Looking at this the patch shouldn't change anything since you only have one battery anyway - would be nice to know if it doesn't break anything though
Also,
lid-is-present: yes
is... interesting.@keneda said in Call for testing: power indicator (esp. if it works for you now!):
@klh said in Call for testing: power indicator (esp. if it works for you now!):
Why ? I'm total noob so don't know what that line says.
@unisuperbox said in Call for testing: power indicator (esp. if it works for you now!):
Many phones have a hall effect sensor that's set as a lid in the kernel. This allows book-like cases to embed a small magnet to shut off the device screen when they are closed.
You can test it very easily if you hold a magnet near the phone in the right area : It will react as the lid of the case has been closed!
I am guessing you will get something like this when you activate it : https://shopee.ph/redmi-note-9-s-smart-mirror-flip-case-for-xiaomi-redmi-note-9-pro-max-9s-redmy-note9s-phone-cases-redmi9-readmi-note9-s-stand-cover-casing-i.60314136.3636360348
(Scroll to the picture with the clock shown on the phone!) -
Hi guys this Upower application is a stroke of luck at least on Merlin I've tested it for a while now and it works great, no more empty battery on full charge in the display. Many thanks to you that you have written the commands to install it in the forum. Here again to all happy holidays and best wishes for the new year.
-
@klh said in Call for testing: power indicator (esp. if it works for you now!):
@nero355 Seeing as you only have one battery with a defined technology I'd say this will work for you (not 100% sure as the list may be changing once you unplug).
Sorry to say this but... no improvement on my BQ phone...
The behaviour is pretty much the same as before!
Luckily the battery is still good so it's not a big deal but it would be cool if someone knows how to fix the batterystatus reading one day
-
The Upower Tool from the Test Thread works 100 Prozent oh the Xiaomi Redmi Note 9 Pro. Thank You Nice Tool. Update:
Is this indicator APP also available somewhere as an executable version? I've always had bad luck installing them in the terminal. Actually a nice APP but the unsightly effect the device becomes unstable.