Coder Social home page Coder Social logo

Comments (13)

aymanbagabas avatar aymanbagabas commented on June 6, 2024 1

Could you please provide an acpi dump? Refer to https://01.org/linux-acpi/utilities for more information.

from huawei-wmi.

aymanbagabas avatar aymanbagabas commented on June 6, 2024 1

Can you upload the output of dmidecode > dmidecode.txt

from huawei-wmi.

aymanbagabas avatar aymanbagabas commented on June 6, 2024 1

Could you please try building the module from the source and report what files get exposed under /sys/devices/platform/huawei-wmi/

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024

Installed acpica-tools via apt.

$ sudo acpidump > acpi-tables.out
$ sha256sum acpi-tables.out 
775424a87f8e12e3f4047e8050237a9396465b1b268552d25268939433a5944c  acpi-tables.out

gzipped to satisfy github contraints.

acpi-tables.out.gz

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024

I also updated
lspci.txt
by running it with uid 0. Now includes Capabilities for each device.

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024

Can I help by further remote command execution or via learning how acpi actually does work?

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024

dmidecode.txt.gz

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024
$ 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 <[email protected]>
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

from huawei-wmi.

sermart1234 avatar sermart1234 commented on June 6, 2024

I'll try test on Huawei Matebook D15 with 3700U

from huawei-wmi.

sermart1234 avatar sermart1234 commented on June 6, 2024

@krysopath please test this #55 (comment)

from huawei-wmi.

sermart1234 avatar sermart1234 commented on June 6, 2024

@krysopath if you set "0 0" or "0 100" in charge_control_thresholds then it turn on smart charge
#55 (comment)

from huawei-wmi.

krysopath avatar krysopath commented on June 6, 2024

@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?

from huawei-wmi.

sermart1234 avatar sermart1234 commented on June 6, 2024

@krysopath test please
#64

from huawei-wmi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.