You are not logged in.

#76 2022-08-28 23:20:47

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] Arch no longer updates battery level/state

Hubbleexplorer wrote:

this patch (https://lore.kernel.org/platform-driver … l.com/T/#t) still isn't in the kernel 6.0-rc3

That patch is part of a series that was not pulled for 6.0 as far as I can tell it is currently in the for-next branch of https://git.kernel.org/pub/scm/linux/ke … rs-x86.git so should be part of linux 6.1.
Did reverting 87d0e2f41b8cc2018499be4e8003fa8c09b6f2f not help restore battery level reporting to the same state as in 5.18?

Last edited by loqs (2022-08-28 23:25:56)

Offline

#77 2022-08-28 23:41:33

Hubbleexplorer
Member
Registered: 2021-05-15
Posts: 89

Re: [SOLVED] Arch no longer updates battery level/state

loqs wrote:
Hubbleexplorer wrote:

this patch (https://lore.kernel.org/platform-driver … l.com/T/#t) still isn't in the kernel 6.0-rc3

That patch is part of a series that was not pulled for 6.0 as far as I can tell it is currently in the for-next branch of https://git.kernel.org/pub/scm/linux/ke … rs-x86.git so should be part of linux 6.1.

Ok thanks i will wait for 6.1

Did reverting 87d0e2f41b8cc2018499be4e8003fa8c09b6f2f not help restore battery level reporting to the same state as in 5.18?

I didn't test that because i have been busy with some stuff and i don't know when i will have time to test it
so for now im just using lts

Offline

#78 2022-08-29 01:55:03

Mario156090
Member
Registered: 2018-12-04
Posts: 50

Re: [SOLVED] Arch no longer updates battery level/state

loqs wrote:
Hubbleexplorer wrote:

this patch (https://lore.kernel.org/platform-driver … l.com/T/#t) still isn't in the kernel 6.0-rc3

That patch is part of a series that was not pulled for 6.0 as far as I can tell it is currently in the for-next branch of https://git.kernel.org/pub/scm/linux/ke … rs-x86.git so should be part of linux 6.1.
Did reverting 87d0e2f41b8cc2018499be4e8003fa8c09b6f2f not help restore battery level reporting to the same state as in 5.18?

I tested your gdrive compilations 5.19.4 kernel but level reporting is not working yet.

Offline

#79 2022-08-29 02:01:58

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] Arch no longer updates battery level/state

Mario156090 wrote:

I tested your gdrive compilations 5.19.4 kernel but level reporting is not working yet.

Can you remember which of the builds was the first with the issue?  I assume the 5.18 build did not have the issue?

Offline

#80 2022-08-29 02:32:29

Mario156090
Member
Registered: 2018-12-04
Posts: 50

Re: [SOLVED] Arch no longer updates battery level/state

loqs wrote:
Mario156090 wrote:

I tested your gdrive compilations 5.19.4 kernel but level reporting is not working yet.

Can you remember which of the builds was the first with the issue?  I assume the 5.18 build did not have the issue?

Yes, I remember. The build actually is 5.18.16. In my case I use zen kernel.

[mario@Asus-Arch ~]$ uname -a
Linux Asus-Arch 5.18.16-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:10 +0000 x86_64 GNU/Linux

Offline

#81 2022-08-29 06:16:42

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] Arch no longer updates battery level/state

Either you misunderstood loqs or you might  be facing an entirely different problem w/ similar symptoms.
https://bbs.archlinux.org/profile.php?id=119502

Is 5.18.16 a good or (the first) bad version?

Offline

#82 2022-08-29 08:54:04

DodoGTA
Member
From: Lithuania
Registered: 2022-08-29
Posts: 1

Re: [SOLVED] Arch no longer updates battery level/state

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

Offline

#83 2022-08-29 12:03:40

mohdforever
Member
Registered: 2022-08-29
Posts: 2

Re: [SOLVED] Arch no longer updates battery level/state

how to apply the kernel patch for asus ec sensor

my machine is asus tuf 2021
my kernel is xanmod 5.19

Offline

#84 2022-08-29 14:51:01

Mario156090
Member
Registered: 2018-12-04
Posts: 50

Re: [SOLVED] Arch no longer updates battery level/state

DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

Offline

#85 2022-08-29 17:33:52

Annika
Member
Registered: 2022-08-14
Posts: 24

Re: [SOLVED] Arch no longer updates battery level/state

Mario156090 wrote:
DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf

Offline

#86 2022-08-29 17:35:34

Annika
Member
Registered: 2022-08-14
Posts: 24

Re: [SOLVED] Arch no longer updates battery level/state

On that note, it looks like the asus_ec_sensors module locks the ACPI mutex when loaded, which explains all the issues...as to why it happens to begin with is yet to be concluded since the module doesnt appear to load....at least it isnt present in lsmod

EDIT: maybe it doesnt have to fully load but be attempted to load, and then fails to unlock the mutex

Last edited by Annika (2022-08-29 17:45:45)

Offline

#87 2022-08-29 19:36:24

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:

On that note, it looks like the asus_ec_sensors module locks the ACPI mutex when loaded, which explains all the issues...as to why it happens to begin with is yet to be concluded since the module doesnt appear to load....at least it isnt present in lsmod

Did the issue start with 5.19 on your system?  If so why not try the bisection kernels to find which commit introduced it?

Offline

#88 2022-08-29 19:58:03

Annika
Member
Registered: 2022-08-14
Posts: 24

Re: [SOLVED] Arch no longer updates battery level/state

loqs wrote:
Annika wrote:

On that note, it looks like the asus_ec_sensors module locks the ACPI mutex when loaded, which explains all the issues...as to why it happens to begin with is yet to be concluded since the module doesnt appear to load....at least it isnt present in lsmod

Did the issue start with 5.19 on your system?  If so why not try the bisection kernels to find which commit introduced it?

yes it did, the commit is probably this https://git.kernel.org/pub/scm/linux/ke … bc1ff53d14

Offline

#89 2022-08-29 20:07:55

cradlemann
Member
Registered: 2017-07-14
Posts: 14

Re: [SOLVED] Arch no longer updates battery level/state

I can confirm after blacklisting asus_ec_sensors everything works correctly on 5.19.5 kernel

Offline

#90 2022-08-29 20:29:40

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:

https://drive.google.com/file/d/1SG8reu … sp=sharing linux-5.18rc7.r28.gde8fbac5e59e-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1iLGTTq … sp=sharing linux-headers-5.18rc7.r28.gde8fbac5e59e-1-x86_64.pkg.tar.zst
and its parent
https://drive.google.com/file/d/14FoaeB … sp=sharing linux-5.18rc7.r27.g5cd29012028d-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1V8x9qC … sp=sharing linux-headers-5.18rc7.r27.g5cd29012028d-1-x86_64.pkg.tar.zst

Offline

#91 2022-08-30 06:49:07

MarselCoder
Member
Registered: 2022-08-18
Posts: 3

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:
Mario156090 wrote:
DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf

Huawei matebook 14 KLVD-WFH9
Now it works well
Thank you!

Offline

#92 2022-08-30 08:18:39

Andy3153
Member
Registered: 2018-12-24
Posts: 89

Re: [SOLVED] Arch no longer updates battery level/state

seth wrote:

Is 5.18.16 a good or (the first) bad version?

5.18.16 was the last good version. Anything >= 5.19 doesn't work. I haven't tried patches from other people in this thread, but I did decide to try linux-zen just for fun, and it provided similar results. Right now I still am on the LTS kernel.

Offline

#93 2022-08-30 13:37:01

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] Arch no longer updates battery level/state

Ok, so you didn't answer loqs' question, however w/ the recent findings that's now moot.
Try to blacklist asus_ec_module and see whether that "fixes" it. If so, you're in the same boat as everyone else in this thread.

Offline

#94 2022-08-30 16:43:54

mohdforever
Member
Registered: 2022-08-29
Posts: 2

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:
Mario156090 wrote:
DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf


now works for me on 5.19.5

Offline

#95 2022-08-30 20:30:28

sparklyballs
Member
Registered: 2020-02-02
Posts: 2

Re: [SOLVED] Arch no longer updates battery level/state

Offline

#96 2022-08-30 23:34:30

Mario156090
Member
Registered: 2018-12-04
Posts: 50

Re: [SOLVED] Arch no longer updates battery level/state

mohdforever wrote:
Annika wrote:
Mario156090 wrote:

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf


now works for me on 5.19.5

Me too, blacklisted that module is a valid workaround but the question is:

What problem is the consecuence?

My CPU is now 90 celsius in gamming. tongue

Offline

#97 2022-08-31 09:09:39

jitoxx01
Member
Registered: 2022-08-31
Posts: 1

Re: [SOLVED] Arch no longer updates battery level/state

I can relate for my huawei matebook 14 intel version. Blacklisting the asus module fix the issue

Offline

#98 2022-08-31 09:13:06

Rijndael1998
Member
Registered: 2022-08-20
Posts: 4

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:
Mario156090 wrote:
DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf

`blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf works on 5.19.3.

Offline

#99 2022-08-31 14:18:50

Richardn
Member
Registered: 2020-10-11
Posts: 8

Re: [SOLVED] Arch no longer updates battery level/state

Annika wrote:
Mario156090 wrote:
DodoGTA wrote:

It looks like that the asus_ec_sensors module causes the battery issue on 5.19+ (I blocklisted it and my system works fine now)

I'm actually typing on this system right now (unplugged of course) and the battery percentage keeps going down

can you show your configuration about asus_ec_module?

seems you can just use kernel parameter: `modprobe.blacklist=asus_ec_sensors` or place `blacklist asus_ec_sensors` in /etc/modprobe.d/asus_ec_sensors.conf

Works for HUAWEI MateBook D 14 NbDE-WXX9. Thank you!

Offline

#100 2022-08-31 18:01:43

Hubbleexplorer
Member
Registered: 2021-05-15
Posts: 89

Re: [SOLVED] Arch no longer updates battery level/state

For those who want a recent kernel without the problems use the linux-g14 from the g14 repo  dont use the one in the aur
https://asus-linux.org/wiki/arch-guide/

Offline

Board footer

Powered by FluxBB