Skip to content
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

Charging thresholds. Matebook 13 & deprecated APIs #650

Closed
zoitrok opened this issue Feb 18, 2024 · 3 comments
Closed

Charging thresholds. Matebook 13 & deprecated APIs #650

zoitrok opened this issue Feb 18, 2024 · 3 comments

Comments

@zoitrok
Copy link
Contributor

zoitrok commented Feb 18, 2024

Fill out information requested in this template, without doing so issue will be ignored & closed!

Have you tried?

Error output:

N/A

System information:

Matebook 13

Add/paste output of:

N/A

The current threshold code is touching /sys/class/power_supply/BATx/charge_start_threshold (and end). AFAIK, these are deprecated and only used and introduced by thinkpad_acpi. There's a parallel device for /sys/class_power_supply/BATx/charge_control_start_threshold (and end), that works identically and seems to be the standard for other kernel modules.

That one controls the thresholds on my Matebook 13, for example. I'm not quite sure which module supplies it, but I'd not look at modules but just if the path exists.

Matebook 13 lists these modules with the name acpi

snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
acpi_als               16384  1
industrialio_triggered_buffer    12288  1 acpi_als
snd_soc_acpi           16384  2 snd_sof_amd_acp,snd_acp_config
acpi_cpufreq           32768  0
industrialio          135168  3 industrialio_triggered_buffer,acpi_als,kfifo_buf
i2c_hid_acpi           12288  0
i2c_hid                40960  1 i2c_hid_acpi```

---
@PurpleWazard
Copy link
Contributor

the kernal module that supplies that path might not be named acpi like example ideapad_laptop is a kernal module for lenovo ideapads

check this site https://linrunner.de/tlp/settings/bc-vendors.html and lsmod | grep modules and see if you have of these

@zoitrok
Copy link
Contributor Author

zoitrok commented Feb 19, 2024

Aha, you're right. It's huawei_wmi for the matebook 13 (2020).

@AdnanHodzic
Copy link
Owner

Closing the issue due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants