Skip to content

Instantly share code, notes, and snippets.

View unya's full-sized avatar

Paweł Lasek unya

View GitHub Profile
@unya
unya / gist:a1415cbd7594d9a62fbff868a9b89df5
Created January 8, 2019 15:16
nix-shell not working
let
pkgs = import <nixpkgs> {};
fhs = pkgs.buildFHSUserEnv {
name = "versionkeeper";
targetPkgs = pkgs: with pkgs; [
alsaLib atk cairo cups dbus expat
file fontconfig freetype gdb git
glib gtk3-x11 gtk2-x11 libnotify libxml2
libxslt netcat nspr nss
strace udev watch wget which xorg.libX11
@unya
unya / cirrus_ssdt_patch.dsl
Last active September 17, 2024 11:04
Enabling proper sound on ROG Zephyrus G14 GA402XY without driver quirks
DefinitionBlock ("", "SSDT", 1, "RURI", "CSC3551", 0x00000001)
{
External (_SB.I2CD, DeviceObj)
External (_SB.I2CD.SPKR, DeviceObj)
External (_SB.PCI0, DeviceObj)
Scope (_SB.PCI0) // Useful if you use different size SO-DIMM than 16GB, marks PCI-E devices as part of NUMA node 0
{
Name (_PXM, 0x00)
}
Scope (_SB.I2CD.SPKR) // Sound fix - to get proper values for your system, check quirks in latest kernel https://github.com/torvalds/linux/blob/a940d9a43e623d1ba1e5c499aa843516656c0ae4/sound/pci/hda/cs35l41_hda_property.c