Skip to content

Instantly share code, notes, and snippets.

@leyiang
leyiang / lenovo-thinkBook-16p-gen4-irh-6.3.4-sound-fix.patch
Created September 11, 2023 00:43 — forked from levihuayuzhang/fix-DSD-thinkBook-16p-g4-IRH-linux-6.7.0-rc2.patch
Workaround for Lenovo Thinkbook 16p Gen4 IRH sound issue (by adding a quirk that hasn't been officially verified)
diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c
index f7815ee24f83..93d86c5a9d53 100644
--- a/sound/pci/hda/cs35l41_hda.c
+++ b/sound/pci/hda/cs35l41_hda.c
@@ -1270,6 +1270,8 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i
size_t nval;
int i, ret;
+ printk("CSC3551: probing %s\n", hid);
+
@leyiang
leyiang / gist:4dc908a5b7621acff18386946ba3de13
Last active June 19, 2022 16:25
`zathura not found` when installing zathura plugin
// Ubuntu
```shell
sudo apt install zathura-dev
```
// If you want to install djvu-extension
```shell
sudo apt install libdjvulibre-dev
```
@leyiang
leyiang / 40-libinput.conf
Last active June 5, 2022 17:51
With the power of libinput to enable natural scrolling, tap to click, 2 finger tap convert to right click and 3 finger tap emulate middle click.
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
# Natural Scrolling
Option "NaturalScrolling" "True"
# Tap to Click
Option "Tapping" "on"