-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WSL2: Missing /sys/class/dmi/id/product_version #4391
Comments
What is your use case and the nature of the "some of my", just so this one doesn't go as straight-to-chirping-crickets as #1161 did three years ago. |
Hey sorry yeah, I have a System76 laptop which has some features which only work on Linux. Another one of their tools uses dmidecode for similar purposes. Another tool fails accessing /sys/bus/pci. Does it make more sense for your team to potentially fix missing pieces with the goal of running a specific program/accomplishing a task/userstory? Is there any additional way that I could contribute? I'd love to be able to turn off the backlight on my keyboard on windows. :) |
That word again.
Yes, the issue template that you deleted asks for the CLI steps.
Okay if I'm following your scenario correctly, you are running Windows 10 on your System76 laptop, and WSL under that. Correct? In this case the way to go would be to use WSL interop and a powershell script. Couldn't tell you how to do that script specifically (a quick google search wasn't encouraging) but you could pursue that on stack overflow and similar. There is no keyboard device in either WSL 1 nor WSL 2. |
Right, I'm running Win10 on my System76 Laptop and WSL[2]. This laptop has a set of tools[1] which are explicitly only available on Linux which control features (sorry) of the laptop such as the keyboard backlight, GPU switching, fan control, the screen backlight, etc. Essentially usermode drivers. which just poke at things in /sys/* I can not use these tools to control these pieces of hardware from Windows (or WSL currently) without rewriting their code to do it. Some of the tools available: The OLED tool is the simplest one, it literally just controls the screens backlight brightness. I guess the real question is, will we ever be able to generally interact with the hardware from WSL2? I'm starting to understand the usage scenarios you care about now, in that implementing /sys/class/dmi/id/* is generally not that useful for me if I won't ever get access to /sys/class/backlight/intel_backlight/, /sys/bus/pci, etc. I was approaching this with the expectation that WSL2 would eventually get there, and /sys/class/dmi/id/ are just low hanging fruit which get me closer to running these tools. I'll update the first post this with the template and from this angle if it's valuable to you. 👍 |
Right; if your hardware vendor doesn't provide Windows drivers then you are looking at writing them, or more realistically, coaxing existing drivers into working (mostly because these laptops are all at least loosely based off of reference designs from Intel or AMD). On WSL 2, you aren't running your laptop's hardware. You're running Hyper-V's virtual hardware. That virtual hardware suite has a keyboard. But that keyboard doesn't have a backlight.
Good example. If you fire up Hyper-V in Windows Pro or better, you'll find Or, as an other example, if you poke the power hardware controller in a VM, you aren't turning off your laptop.
Answer depends entirely on "the hardware", and what the Hyper-V peeps (contrast WSL peeps) choose to emulate. For example, there's a popular ask for raw USB device support, and one could imagine, entirely in the hypothetical, that being added. But it wouldn't be a real USB device; it would be predicated on Windows USB device drivers being used emulate fake ones by Hyper-V. In your screen backlight ask, WSL doesn't have a screen. In the keyboard backlight ask, you don't have Windows drivers even if the Hyper-V people were to emulate such a thing. |
Excellent, thank you that clears up a lot! This was my big disconnect:
I guess this is also similar to #327 |
/sys/class/dmi/id/product_version contains hardware information required by some of my linux-only hardware drivers.
This would be a nice feature to have.
Related: #1161
The text was updated successfully, but these errors were encountered: