Skip to content

Lots od csd-power-WARNING in logs #418

@typhoon71

Description

@typhoon71

Distribution

Linux Mint 22.1 Xia

Package version

6.4.8+xia

Graphics hardware in use

Intel TigerLake-LP GT2

Frequency

Quite often

Bug description

I was inspecting the .xsession-errors log file and noticed there are a lot of unexpected csd-power-WARNING lines:

(csd-power:1213): csd-power-WARNING **: 15:25:30.594: enum unrecognised: 17
(csd-power:1213): csd-power-WARNING **: 15:25:30.594: enum unrecognised: 17
(csd-power:1213): csd-power-WARNING **: 15:25:30.594: in an undefined state we are not charging or discharging and the batteries are also not charged
(csd-power:1213): csd-power-WARNING **: 15:26:00.675: enum unrecognised: 17
(csd-power:1213): csd-power-WARNING **: 15:26:00.675: enum unrecognised: 17
(csd-power:1213): csd-power-WARNING **: 15:26:00.675: in an undefined state we are not charging or discharging and the batteries are also not charged

I investigated a bit and I have a guess about this.
My notebook (LENOVO IdeaPad 3 15ITL6) has a set of custom power policies in the BIOS, where one can set how much to charge the battery - in my case I have it always plugged so I choose the so called "maximum protection" option.
This makes it so it never charges it more than 60%.
My guess here is that it's reporting an APCI value of 17 and this is not understood by csd-power-manager - maybe it's a non standard value.

Can this be handled more gracefully, without spamming the logs?

Steps to reproduce

Install Linux Mint 22.1 Xia on a LENOVO IdeaPad 3 15ITL6, update all packages, check .xsession-errors log file.

Expected behavior

No csd-power-WARNING in the logs.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions