The ryzen 7 5800H CPU has some weird sleeping quirks on linux that I couldn't figure out. This looooooooooooooooong thread explains the issue in great detail, but I couldn't understand a word of it. Through fiddling and mashing however I now have things working. I'm documenting my boot parameters and sleep configs here for any future lost souls. My laptop (the 2021 Xiaomi Notebook Pro Ryzen Edition) now correctly sleeps, hibernates and restores from those states just fine. Note this works on Kernel 5.14+
It's been just over a year since my last blog post and I'm back, with a fresh theme made from scratch! There's not much to report on regarding the new blog, I'm still running Zola but I'm now hosting on github pages. The handmade theme has no external dependencies and is a ton of cobbled together css, but it works.
Pulseaudio's autoconfiguration is very limited and simply selects the first HDMI output per card to create sources with. What if you have two monitors with speakers on the same card and want to play different simulatenous streams?
Recently I've been working on a rust web service written using Rocket and Diesel. A big issue I came across was handling
muitpart forms with content-type: multipart/form-data
. Rocket has yet to add official support for this, but you can
hack it in fairly easily thanks to the Request Guard system.
I stumbled upon strange search engine results leading to pages on a large corporate subdomain. These pages load obfuscated and encrypted code from a myriad of domains, and it went un-noticed for months. By the time I got around to finally writing this, I went and checked and it had been fixed.