Skip to content

Instantly share code, notes, and snippets.

View dm-zharov's full-sized avatar

Dmitriy Zharov dm-zharov

View GitHub Profile
@dm-zharov
dm-zharov / z13-audio-fix-summary.md
Created March 19, 2026 23:27 — forked from sankao/z13-audio-fix-summary.md
ROG Flow Z13 2025 Audio fix

ROG Flow Z13 2025 Audio fix

ROG Flow Z13 2025 (ai max 395) Audio Fix

Disclaimer: I don't know much about kernel development, this fix was figured out with AI assistance.
My problem was that the speakers work but are way quieter than Windows. Kernel logs show:

cs35l41-hda: Falling back to default firmware.

The fix is simple: copy-paste the ROG Ally entry with a different device ID. It solves the audio problem subjectively (we're far from amazing sound, but at least twice as loud).

@dm-zharov
dm-zharov / UUID+NameBased.swift
Last active March 31, 2024 10:01
UUID Version 5: Name-based (SHA-1)
import Foundation
import CryptoKit
extension UUID.Namespace {
/// Name string is a fully-qualified domain name.
public static let dns = UUID.Namespace(id: UUID(uuidString: "6ba7b810-9dad-11d1-80b4-00c04fd430c8")!)
/// Name string is a URL.
public static let url = UUID.Namespace(id: UUID(uuidString: "6ba7b811-9dad-11d1-80b4-00c04fd430c8")!)
/// Name string is an ISO OID.
public static let oid = UUID.Namespace(id: UUID(uuidString: "6ba7b812-9dad-11d1-80b4-00c04fd430c8")!)