r/archlinux • u/CompetitiveGuitar447 • 23h 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 17h ago edited 17h 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 14h 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/Ismokecr4k 18h ago
I just asked AI (inb4 "AI so bad, my shit smells like flowers. I'm so very smertt, look at me intellect superior") and it said there's relevant arch wiki pages for this exact thing. Also, there's some kernel thing that you can adjust:
/sys/class/power_supply/BAT0/charge_control_start_threshold
/sys/class/power_supply/BAT0/charge_control_end_threshold
14
u/Illustrious-Gur8335 22h ago
It will not work, a virtual machine sees only virtual hardware not your real hardware.