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

Cannot set charge_control_thresholds on Matebook 13 AMD #90

Open
OllyFunkster opened this issue Nov 4, 2024 · 1 comment
Open

Cannot set charge_control_thresholds on Matebook 13 AMD #90

OllyFunkster opened this issue Nov 4, 2024 · 1 comment

Comments

@OllyFunkster
Copy link

Describe the bug
Attempting to change battery charge thresholds, either using TLP or by directly, has no effect, and /sys/devices/platform/huawei-wmi/charge_control_thresholds always reads "0 100"

To Reproduce
Steps to reproduce the behavior:

  1. cat /sys/devices/platform/huawei-wmi/charge_control_thresholds
    0 100

  2. echo "75 80" | sudo tee /sys/devices/platform/huawei-wmi/charge_control_thresholds
    75 80

  3. cat /sys/devices/platform/huawei-wmi/charge_control_thresholds
    0 100

Expected behavior

  1. cat /sys/devices/platform/huawei-wmi/charge_control_thresholds
    0 100

  2. echo "75 80" | sudo tee /sys/devices/platform/huawei-wmi/charge_control_thresholds
    75 80

  3. cat /sys/devices/platform/huawei-wmi/charge_control_thresholds
    75 80

Screenshots
If applicable, add screenshots to help explain your problem.

(please complete the following information):

  • acpidump > acpidump.out.txt
    acpidump.out.txt
  • Kernel 6.11.5-1-default
  • Distro OpenSUSE Tumbleweed
  • Loaded WMI modules
    huawei_wmi 24576 0
    wmi_bmof 12288 0
    sparse_keymap 12288 1 huawei_wmi
    battery 28672 1 huawei_wmi
    wmi 32768 3 video,huawei_wmi,wmi_bmof

output of sudo lshw:

matebook                    
    description: Notebook
    product: HN-WX9X (C100)
    vendor: HUAWEI
    version: M1060
    serial: 2EDBB20528800269
    width: 64 bits
    capabilities: smbios-3.1.1 dmi-3.1.1 smp vsyscall32
    configuration: chassis=notebook family=MateBook sku=C100 uuid=20200529-1cbf-c01c-f607-1cbfc01cf608
  *-core
       description: Motherboard
       product: HN-WX9X-PCB
       vendor: HUAWEI
       physical id: 0
       version: M1060
       serial: [REDACTED]
     *-firmware
          description: BIOS
          vendor: HUAWEI
          physical id: 0
          version: 1.17
          date: 03/10/2022
          size: 128KiB
          capacity: 8MiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd acpi usb smartbattery biosbootspecification uefi

I see in some threads about other Huawei machines that "smart battery" may be interfering with this, and they give some commands that can be used to debug. I am assuming that these are very machine-specific, is there a set of commands available for this SKU?

Many thanks for your time and attention

@OllyFunkster
Copy link
Author

OllyFunkster commented Nov 4, 2024

One small update: I did try the commands in e.g. this guide anyway, and it did report being in mode 4. Using the example commands to set it to mode 1 and configure the start/stop thresholds does work - but n.b. that writing to charge_control_thresholds will set it back to mode 4 again (and charge_control_thresholds will contain "0 100" still).

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

1 participant