-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on huawei matebook d16 2022 #10
Comments
Do you have this sysfs path? You can test by ls command in terminal
|
no such file or directory. |
Which Linux distro do you use? |
ubuntu. i found a file called "charge_control_thresholds" in this folder. when i write "0 75" in it it stops charging at 75% for example. edit: ok, it worked with "0 60" now with "0 75" it does not seem to work, with 60 it stopped at 59% but now with 75 it already charged to 76% |
Oh. Seems like I was using the older sysfs path.
Just to confirm are you using the above path to set charge threshold? Did you try setting a any other custom value besides zero. Such as 50 60?
Apologies if there are any typo's commenting using mobile. |
path is correct, i will try different values tomorrow and come back to you, i have to discharge it first. |
I was reading this issue. From what I understand ( I could be wrong)
You can check in bios if you have the smart charging and turn it off. Also if you do not have smart charging feature I would recommend you to set it above 40-50 and definately not use 0
Test everything and let me know what you find. I will update the extension accordingly. |
i found no option in bios to disable smart charge, bios is very limited on this device. i am dual booting and in windows there is a software called huawei pc manager where i can activate smart charge or set the stop charging treshold to 50%, 60%, 70%, 80%, 90% or 100%. i did some testing with 50 60, 60 70, 70 80, 60 78 and 40 76 it always charged to 1% under the end treshold, stopped charging and stayed there. under gnome settings -> energy it changes from "charging" to "not charging", when i unplug it just tells me the time remaining on battery. the first time when i plugged the ac in at around 63% with settings set 60 70 it discharged to 60 and stayed there. but i couldnt reproduce this. all the other times it charged to 69% and stayed there. it only starts discharging when for example i set 70 80 and battery stopped at 79% and then i change it to for example 60 78 and it starts discharging to 78 and stays there. |
This is normal behavior. The 1% error is also I would say is an accepted value.
This is a strange issue. No idea what is the reason behind this.
This too is a normal expected behaviour when start and end threshold are set. Kindly test this extesnion, I have added the correct sysfs file path. Extract and open terminal in the extracted folder. Run
|
my fault, i thought when set for example 50 60 it would charge to 60 and then discharge to 50 and do this again and again. i got the unexpected error when i turned trial1 version on the first time, the threshold was 0 0 when i looked in the file. i changed it to 50 60 in terminal and turned your extension on again and it seems to work now. i can change tresholds. but when i change from balanced (80 75) to maximum lifespan (60 55) mode i get no notification like normal and it only changes the start charging treshold to 55. so i get 80 55 instead of 60 55. when i try to set it again to maximum lifespan mode it changes to the correct values and i get the notification. this also happens from full capacity mode to balanced mode where i get 75 100 the first try. the second try it sets the values correctly to 75 80. |
Strange. I just tried it using a dummy file it seem to update the both start and end threshold values. Could you do few test for me.
Repeat the test for all 3 modes. use both echo and cat in 1 command
Try 3 different sets of values. and let me know what are the results. |
Another question. Are you using any additional custom kernel module? Such as https://github.com/aymanbagabas/Huawei-WMI Or is it the default Ubuntu kernel? |
full capacity mode gives me 95 100 only when i select the mode a second time the stop charging value also sets correctly.
i tried 3 different values and echo and cat results are the same.
i dont use custom kernel modules, i am on 6.2.7 but i also tried it with ubuntus latest 5.19.0.38 which gives me the same results. |
On last test. First echo 95 100 |
Yes. Ok there is no issues with kernel or your system, but my extension. Need to figure out by trial. I have changed it to this in trial2 If it work then good. If it doesnt the send me the logs
|
same issue, here is the log. i started at full, clicked balanced, clicked balanced a second time, clicked lifespan, clicked lifespan a second time. clicked blanced, clicked full.
just noticed that going full -> balanced -> lifespan hast the problem but going lifespan -> balanced -> full works just fine. |
The extension it not using the correct path to change threshold Instead extension is using Huawei has two way of setting threshold, but the recommended way is using charge_control_threshold I will fix this issue first to force it to use charge_control_threshold |
Please test trial 4. It should work. If not test trial5. If both not working send me log of trial 4 |
Sorry about this. ignore trial4 .logs are not enabled trial4 and 5 test trial6 instead. if 6 fails. test trial5. if trial5 fails too then install trial6 again and send me the log. if trial 6 works no logs needed. |
i tried trial6 and it works perfectly. thank you again for your work! |
Thanks for support helping me fix it. |
Hello mascherm. When you have free time could you test this new version. Link here #11 |
thank you for this nice extension but i cant get it to work on my matebook d16 2022. it always says "Battery Health Charging encountered an unexpected error.".
The text was updated successfully, but these errors were encountered: