Closed krysopath closed 2 years ago
Could you please provide an acpi dump? Refer to https://01.org/linux-acpi/utilities for more information.
Installed acpica-tools
via apt.
$ sudo acpidump > acpi-tables.out
$ sha256sum acpi-tables.out
775424a87f8e12e3f4047e8050237a9396465b1b268552d25268939433a5944c acpi-tables.out
gzipped to satisfy github contraints.
I also updated
lspci.txt
by running it with uid 0. Now includes Capabilities
for each device.
Can I help by further remote command execution or via learning how acpi actually does work?
Can you upload the output of dmidecode > dmidecode.txt
Could you please try building the module from the source and report what files get exposed under /sys/devices/platform/huawei-wmi/
$ modinfo huawei_wmi
filename: /lib/modules/5.4.0-89-generic/extra/huawei-wmi.ko
license: GPL v2
description: Huawei WMI laptop extras driver
author: Ayman Bagabas <ayman.bagabas@gmail.com>
alias: wmi:ABBC0F5B-8EA1-11D1-A000-C90629100000
srcversion: 9EE027D22741953CF93ADF0
alias: wmi:ABBC0F5C-8EA1-11D1-A000-C90629100000
alias: wmi:59142400-C6A3-40fa-BADB-8A2652834100
depends: ledtrig-audio,wmi,sparse-keymap
retpoline: Y
name: huawei_wmi
vermagic: 5.4.0-89-generic SMP mod_unload modversions
parm: battery_reset:Reset battery charge values to (0-0) before disabling it using (0-100) (bint)
parm: report_brightness:Report brightness keys. (bint)
$ tree /sys/devices/platform/huawei-wmi/
/sys/devices/platform/huawei-wmi/
├── charge_control_thresholds
├── driver -> ../../../bus/platform/drivers/huawei-wmi
├── driver_override
├── fn_lock_state
├── input
│ └── input8
│ ├── capabilities
│ │ ├── abs
│ │ ├── ev
│ │ ├── ff
│ │ ├── key
│ │ ├── led
│ │ ├── msc
│ │ ├── rel
│ │ ├── snd
│ │ └── sw
│ ├── device -> ../../../huawei-wmi
│ ├── event7
│ │ ├── dev
│ │ ├── device -> ../../input8
│ │ ├── power
│ │ │ ├── async
│ │ │ ├── autosuspend_delay_ms
│ │ │ ├── control
│ │ │ ├── runtime_active_kids
│ │ │ ├── runtime_active_time
│ │ │ ├── runtime_enabled
│ │ │ ├── runtime_status
│ │ │ ├── runtime_suspended_time
│ │ │ └── runtime_usage
│ │ ├── subsystem -> ../../../../../../class/input
│ │ └── uevent
│ ├── id
│ │ ├── bustype
│ │ ├── product
│ │ ├── vendor
│ │ └── version
│ ├── modalias
│ ├── name
│ ├── phys
│ ├── power
│ │ ├── async
│ │ ├── autosuspend_delay_ms
│ │ ├── control
│ │ ├── runtime_active_kids
│ │ ├── runtime_active_time
│ │ ├── runtime_enabled
│ │ ├── runtime_status
│ │ ├── runtime_suspended_time
│ │ └── runtime_usage
│ ├── properties
│ ├── subsystem -> ../../../../../class/input
│ ├── uevent
│ └── uniq
├── leds
│ └── platform::micmute
│ ├── brightness
│ ├── device -> ../../../huawei-wmi
│ ├── max_brightness
│ ├── power
│ │ ├── async
│ │ ├── autosuspend_delay_ms
│ │ ├── control
│ │ ├── runtime_active_kids
│ │ ├── runtime_active_time
│ │ ├── runtime_enabled
│ │ ├── runtime_status
│ │ ├── runtime_suspended_time
│ │ └── runtime_usage
│ ├── subsystem -> ../../../../../class/leds
│ ├── trigger
│ └── uevent
├── modalias
├── power
│ ├── async
│ ├── autosuspend_delay_ms
│ ├── control
│ ├── runtime_active_kids
│ ├── runtime_active_time
│ ├── runtime_enabled
│ ├── runtime_status
│ ├── runtime_suspended_time
│ └── runtime_usage
├── subsystem -> ../../../bus/platform
└── uevent
19 directories, 66 files
I'll try test on Huawei Matebook D15 with 3700U
@krysopath please test this https://github.com/aymanbagabas/Huawei-WMI/issues/55#issuecomment-1025651920
@krysopath if you set "0 0" or "0 100" in charge_control_thresholds
then it turn on smart charge
https://github.com/aymanbagabas/Huawei-WMI/issues/55#issuecomment-1028953673
@sermart1234 @aymanbagabas
Still not working is pulseaudios recording device change, when a microphone jack is plugged into the laptop, but I was able to verify smart charge device node working. Thank you all. <3
Now my battery can breathe a bit more freely with the 55% capacity it has left.
Is it feasible to solve the audio jack problem here as well?
@krysopath test please https://github.com/aymanbagabas/Huawei-WMI/pull/64
battery thresholds and external microphone
I recently purchased Matebook D15 and am really glad you pioneered support. Most features do work right out of the box. I am missing control over battery thresholds, and an issue with my external microphone audio jack.
To Reproduce battery Steps to reproduce the behavior:
5.4.0-42-generic
in ubuntu 20.04/sys/class/power_supply
Expected behavior
I want to set charging thresholds via sysfs interface to have less wear on the battery.
To Reproduce audio Steps to reproduce the behavior:
5.4.0-42-generic
in ubuntu 20.04Expected behavior I want to use external input source when plugging in external headset via that jack.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop:
Linux porta 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
with ubuntu focal 20.04the wmi related modules:
dmesg.log
alsa-info: http://alsa-project.org/db/?f=6e2af66bedb483f0f613cae40382c90a4d590efa
lspci.txt
Additional context I can help and will dedicate time if this behavior can be fixed via a contribution. Give me directions for more specific debug output.