Skip to content

Instantly share code, notes, and snippets.

View saidsay-so's full-sized avatar
🎯
Focusing

Sayafdine Said saidsay-so

🎯
Focusing
View GitHub Profile
@saidsay-so
saidsay-so / HP speakers.md
Last active March 15, 2024 13:52
Activate rear/front speakers on HP laptops

Activate rear speakers on HP laptops

Some laptops, mostly from the HP brand, are equipped with rear and front speakers to improve the sound experience. Sadly, they aren't detected on Linux. The reason is because those speakers are under "unconnected" ports, which makes Linux not using them because it considers them to be inactive. So, I made this little tutorial to (try to) get them working.

Installation

  • First, you have to install hdajackretask to activate the hidden ports, which you can find under the package alsa-tools on most distributions.

Debian:

sudo apt install alsa-tools
@saidsay-so
saidsay-so / cdrom-emulation.patch
Last active January 9, 2024 21:12
A recent patch to add CD-ROM emulation to your Android kernel (3.18+).
From 45b0c1da3ed92b232b35cc2922e696a5d0fc5c16 Mon Sep 17 00:00:00 2001
From: MusiKid
Date: Sat, 23 Sep 2017 19:46:02 +0200
Subject: [PATCH] Add CD-ROM emulation support.
# This is a recent patch to add CD-ROM emulation to your kernel
---
drivers/usb/gadget/function/f_mass_storage.c | 25 +++++++++++++++++++++++++
drivers/usb/gadget/function/storage_common.c | 4 ++--