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

/sys/kernel/debug/asus-nb-wmi/dsts for dev id 0x0004001B returns the same value for both states, #17

Open
ldrahnik opened this issue Dec 2, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ldrahnik
Copy link
Member

ldrahnik commented Dec 2, 2024

so how to read current state and calculate opposite new state when interface '/sys/devices/platform/asus-nb-wmi/ is not provided?

# always returns DSTS(0x4001b) = 0x3000
$ echo "0x0004001B" > dev_id && echo "0x0000001"|"0x0000000" > ctrl_param && cat devs && cat dsts

Responsible part of DSDT table:

$ sudo apt-get install iasl
$ cd <work-dir>
$ sudo cp /sys/firmware/acpi/tables/DSDT DSDT
$ sudo iasl -d DSDT
$ cat DSDT.dsl

...
If ((IIA0 == 0x0004001B))
{
   Local0 = Zero
   Local0 |= Local1
   Local2 = 0x00010000
   Local0 |= Local2
   Return (Local0)
}
...
@ldrahnik ldrahnik added the help wanted Extra attention is needed label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant