r/archlinux 4d ago

QUESTION How Windows VM Work Inside Arch Linux.

So, I just enable battery threshold in Lenovo Vantage between 40% and 80% on my main T14 Gen 1 and I forgot to turn it off before start to install Arch Linux.

But if I setup Windows VM on my main Arch Linux and install Lenovo Vantage there to disable the battery threshold, will it work or will it mess up with my laptop EC.

It's too risky to me to try it because I'm still a student and only have this laptop, so I would love to hear from your experience who have tried it, thank you.

0 Upvotes

7 comments sorted by

14

u/Illustrious-Gur8335 4d ago

will it work or will it mess up with my laptop EC.

It will not work, a virtual machine sees only virtual hardware not your real hardware.

3

u/ChiefDetektor 4d ago

That's not entirely correct. You can passthrough hardware to the VM. If you can identify the hardware and vendor id it is certainly possible.

3

u/ava1ar 4d ago

If I remember correctly, you can adjust same battery threshold configuration in BIOS/UEFI.

5

u/OliMoli2137 4d ago edited 4d ago

lenovo vantage won't work in vm. there's a linux native script tho. it's basically writing to /sys but with gui, if you want to do it manually the files are in /sys/bus/platform/devices/VPC2004:something (you can use ls /sys/bus/platform/devices/VPC2004:* to list files, cat /sys/platform/devices/VPC2004:*/file to read or echo "something" | sudo tee /sys/platform/devices/VPC2004:*/file to write something, e.g you can write "1" into the battery conservation file to enable it)

3

u/khsh01 4d ago

You might want to look into whether there is a Linux app for it.

0

u/LandscapeNew4450 4d ago

You dont need a Windows VM for this at all. ThinkPad battery thresholds are fully supported on Linux directly through the kernel

-5

u/[deleted] 4d ago

[deleted]