Lenovo Y510p BIOS flash to remove wifi card whitelist

Lenovo Y510p has been out for more than 7 years, to this date I am still using it as my go-to workstation. The specification is quite old and I have upgraded and replaced everything that I could, except the wireless card, due to the infamous BIOS whitelisting.

Continue reading “Lenovo Y510p BIOS flash to remove wifi card whitelist”

Lenovo Legion 5 Gen 6 AMD with nvidia backlight issue under Manjaro

The Legion 5 Gen 6 AMD Ryzen with NVIDIA graphics (15ACH6H, model 82JU00APUS) is what I have on my hand. The Linux system I use is Manjaro due to its simplicity. I’ve experienced a very common backlight issue, Fn key won’t adjust the backlight at all, it’s always on 100% brightness. I use discrete / dedicated nvidia graphics all the time, so this solution may not be suitable for everyone.

Continue reading “Lenovo Legion 5 Gen 6 AMD with nvidia backlight issue under Manjaro”

Screenshot crop to clipboard under Linux

Now Manjaro is my major operating system for my desktop, I am joining the Arch team! With so many documentations available online it’s been a really good ride to customize my OS to my taste. Today I am gonna talk about my use for taking a screenshot, cropping it and copy it to the clipboard.

Continue reading “Screenshot crop to clipboard under Linux”

mutt integration with Gmail using OAuth

As I mentioned before, I am a heavy terminal user, including viewing and replying emails with it. Mutt is my email client. Once you have setup your 2 factor authentication with Google, you won’t be able to access your Gmail using IMAP with your password, you’ll have to generate a specific password for the so called “Less Secure Apps”. There is a problem with that, if you use IMAP with less-secure-app password on your company account where “less secure app” is not allowed, you are probably stuck.

In this tutorial, I am going to show you how to setup the Google recommended OAuth 2.0 way with Mutt.

Continue reading “mutt integration with Gmail using OAuth”

Resolve virsh start a domain (VM) failed problem

After CVE-2019-11477 and a few other CVEs broke out, Linux kernel released 5.1.11 to address the vulnerabilities. My VM host machine is constantly running on the latest kernel (provided by ELRepo).

When I reboot into the new kernel and want to start one of my KVM boxes, this error appears:

Host CPU does not provide required features: spec-ctrl

Continue reading “Resolve virsh start a domain (VM) failed problem”

tmux select then copy to clipboard

Using mouse to select text with tmux sometimes is inefficient. For my setup, I’ll have to press shift key during text selection and keyboard copy will convert empty line as spaces. The following 2 lines in the configuration file works with version 2.8 (latest at the time of writing).

Continue reading “tmux select then copy to clipboard”