Skip to content

Instantly share code, notes, and snippets.

View hossamdash's full-sized avatar

Hossam Mostafa hossamdash

View GitHub Profile
@BXZ
BXZ / y700.md
Last active August 17, 2023 11:53
Configuring and unmuting subwoofer/LFE on Lenovo Ideapad Y700

Good news, everyone! There exists a predefined quirk in the linux kernel that we can as of version 5.15 apply to our laptops that will automatically manage the muting and unmuting of the LFE properly. For older kernel versions you'll have to use the old solution below (or patch and build the kernel driver yourself). We just have to create/edit the following files:

/lib/firmware/hda-jack-retask.fw
/etc/modprobe.d/hda-jack-retask.conf

first off the hda-jack-retask.fw file should contain the following:

@shamil
shamil / mount_qcow2.md
Last active May 21, 2024 09:52
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8