Fixing a kernel panic on my laptop
Background So recently I bought a ThinkPad L14 AMD G2. I’m pretty happy with it. It’s got good performance (thanks AMD) great battery life and overall has a good build quality.
But there’s one thing about it. I installed Arch on it and I kept getting random kernel panics at boot. Half of the time I would boot my laptop I got a kernel panic.
Thankfully it’s Linux, so we can debug it and fix it ourselves (with the help of the community).
Keyboard and mouse passthrough using evdev with libvirt
Let’s say you have a Windows VM on Linux and you want to use the same keyboard and mouse inside the VM.
What if I told you this was a very easy process thanks to the evdev input device type on libvirt.
If you go to edit the XML definition of your VM you will find a <device> ... </device> block.
All you have to do to make this work is add this snippet into the this block.
Running a high performance Windows VM on Linux
Being a developer, Linux is my main OS as I find it easier to use for a lot of stuff. Additionally, I am a gamer and like to play after a good day of work. Let me just say that Linux has made a lot of progress in the gaming space. With Proton being integrated to Steam and Lutris for non Steam games, it’s easier than ever to run games on Linux without much performance loss most of the time.