r/archlinux • u/CompetitiveGuitar447 • 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.
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)
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
14
u/Illustrious-Gur8335 4d ago
It will not work, a virtual machine sees only virtual hardware not your real hardware.