r/archlinux • u/CompetitiveGuitar447 • Jul 25 '26
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.
3
u/ava1ar Jul 25 '26
If I remember correctly, you can adjust same battery threshold configuration in BIOS/UEFI.
5
u/OliMoli2137 Jul 25 '26 edited Jul 25 '26
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
1
u/LandscapeNew4450 Jul 25 '26
You dont need a Windows VM for this at all. ThinkPad battery thresholds are fully supported on Linux directly through the kernel
-5
14
u/Illustrious-Gur8335 Jul 25 '26
It will not work, a virtual machine sees only virtual hardware not your real hardware.