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

(Re)setting bios settings help or documentation #17

Open
smaftoul opened this issue May 19, 2020 · 5 comments
Open

(Re)setting bios settings help or documentation #17

smaftoul opened this issue May 19, 2020 · 5 comments

Comments

@smaftoul
Copy link

smaftoul commented May 19, 2020

I'm sorry, there is some documentation, but the only thing I'm able to do for now with this driver is listing bios settings (cat /sys/kernel/debug/thinkpad-wmi/bios_settings).

I can't find a way to set a particular setting with /sys/kernel/debug/thinkpad-wmi/bios_setting:
I tried echo'ing on argument a setting, and it's value in bios_setting, tried echo'ing KEY=VALUE in bios_setting, with or without -e on the echo, without success. I can write anything to argument, it works, but writing on /sys/kernel/debug/thinkpad-wmi/bios_setting always gives echo: write error: Invalid argument

Also, I would be fine just loading the default, but that is also something I can't manage to do:

# echo 1 > /sys/kernel/debug/thinkpad-wmi/load_default 
bash: echo: write error: Invalid argument

How can I set a particular setting ? How can I load the defaults ?

This is maybe a debugfs / sysfs miscomprehension, but I think , having a bit more documentation would help. If I get some help to do what I want, I cant make a PR to improve docs.

@iksaif
Copy link
Owner

iksaif commented May 20, 2020

# echo 1 > /sys/kernel/debug/thinkpad-wmi/load_default 
bash: echo: write error: Invalid argument

This should really just work, if it doesn't it means there is likely a bug with the driver (or bad interaction with your model). That's also probably why the other commands are giving you an "Invalid argument".

@smaftoul
Copy link
Author

I have this:

$ dmidecode -s system-family 
ThinkPad X1 Yoga 1st

Which is not listed in https://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkcentre_pdf/hrdeploy_en.pdf.

Though, it is listed in https://download.lenovo.com/pccbbs/mobiles_pdf/kbl-r_deploy_01.pdf which is follows a bit the same structure.

Do you know if this driver could add support for those models ? or it needs a different driver ?

@iksaif
Copy link
Owner

iksaif commented May 22, 2020 via email

@smaftoul
Copy link
Author

smaftoul commented Aug 3, 2020

I suspect that the model might be different enough that it will at least requires somebody to adapt the driver.

I can probably try to do the work, but I don't really know where can I get those GUIDs, where did you find the ones in your driver ?

@iksaif
Copy link
Owner

iksaif commented Aug 19, 2020

I looked at the documentation I found online + at the DSDT (see https://lwn.net/Articles/391230/)

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

2 participants