From 52c24c85c8769f552455b4ac73e434eb6e5437ad Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 7 Feb 2024 13:33:57 +0100 Subject: [PATCH] add host yodaGaming --- NixOS.md | 69 ++++++++++++++++++++++++++++++ hosts/yodaGaming/configuration.nix | 3 +- 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/NixOS.md b/NixOS.md index 7750bb4..a4a9d13 100644 --- a/NixOS.md +++ b/NixOS.md @@ -26,6 +26,7 @@ This document contains general notes about NixOS that are independent of my NixO * [Evaluate expressions](#evaluate-expressions) * [Escape strings](#escape-strings) * [Run AppImages](#run-appimages) + * [Audio troubleshooting - Realtek ALC898 Audio Codec on ASRock Z77 Extreme 4](#audio-troubleshooting---realtek-alc898-audio-codec-on-asrock-z77-extreme-4) * [Graphic drivers](#graphic-drivers) * [Additional resources](#additional-resources) * [Nix Pills](#nix-pills) @@ -669,6 +670,74 @@ nix-shell -p appimage-run appimage-run ~/Downloads/ubports-installer_0.10.0_linux_x86_64.AppImage ``` +## Audio troubleshooting - Realtek ALC898 Audio Codec on ASRock Z77 Extreme 4 + +TODO: I couldn't get the onboard audio to work. + +- https://discourse.nixos.org/t/fixing-audio-on-asus-strix-scar-17-g733qs/12687 +- https://bbs.archlinux.org/viewtopic.php?id=147242 +- https://en.opensuse.org/SDB:Audio_troubleshooting#Script_to_run_to_obtain_detailed_information +- https://nixos.wiki/wiki/ALSA#Other_hardware_specific_problems +- https://bbs.archlinux.org/viewtopic.php?pid=1452128#p1452128 + +`aplay -L` +```console +null + Discard all samples (playback) or generate zero samples (capture) +pipewire + PipeWire Sound Server +default + Default ALSA Output (currently PipeWire Media Server) +hdmi:CARD=HDMI,DEV=0 + HDA ATI HDMI, HDMI 0 * + HDMI Audio Output +hdmi:CARD=HDMI,DEV=1 + HDA ATI HDMI, HDMI 1 + HDMI Audio Output +hdmi:CARD=HDMI,DEV=2 + HDA ATI HDMI, HDMI 2 + HDMI Audio Output +hdmi:CARD=HDMI,DEV=3 + HDA ATI HDMI, HDMI 3 + HDMI Audio Output +hdmi:CARD=HDMI,DEV=4 + HDA ATI HDMI, HDMI 4 + HDMI Audio Output +hdmi:CARD=HDMI,DEV=5 + HDA ATI HDMI, HDMI 5 + HDMI Audio Output +``` + +`cat /proc/asound/cards` +```console + 0 [HDMI ]: HDA-Intel - HDA ATI HDMI + HDA ATI HDMI at 0xf7b60000 irq 40 +``` + +`lspci -vnn | grep -A1 -i audio` +```console +00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04) + Subsystem: ASRock Incorporation Z77 Extreme4 motherboard [1849:1898] +-- +01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] [1002:aaa0] + Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] [1002:aaa0] + Flags: bus master, fast devsel, latency 0, IRQ 40 +``` + +`sudo lspci -vnn` +```console +00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04) + Subsystem: ASRock Incorporation Z77 Extreme4 motherboard [1849:1898] + Flags: fast devsel, IRQ 22 + Memory at f7c10000 (64-bit, non-prefetchable) [size=16K] + Capabilities: [50] Power Management version 2 + Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+ + Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 + Capabilities: [100] Virtual Channel + Capabilities: [130] Root Complex Link + Kernel modules: snd_hda_intel +``` + ## Graphic drivers Usually most of this should work out of the box on NixOS. diff --git a/hosts/yodaGaming/configuration.nix b/hosts/yodaGaming/configuration.nix index 20181b0..e4e500f 100644 --- a/hosts/yodaGaming/configuration.nix +++ b/hosts/yodaGaming/configuration.nix @@ -9,7 +9,7 @@ ../../modules/base-bios.nix ../../modules/power-management.nix ../../modules/ntfs.nix - ../../modules/ssh-fde-unlock.nix + #../../modules/ssh-fde-unlock.nix ../../modules/zsh.nix ../../modules/nitrokey-gpg-smartcard.nix ../../modules/ssh-client.nix @@ -56,7 +56,6 @@ boot.blacklistedKernelModules = [ "i915" ]; boot.kernelParams = [ "i915.modeset=0" "radeon.si_support=0" "amdgpu.si_support=1" ]; - # List all available kernel versions: # `nix repl` -> `:l ` -> `pkgs.linuxPackages` and press `TAB` # Default.