How to change audio device in Garuda Hyprland?

Hello guys,

after quite some time I came back to Linux and Garuda and installed this fancy hyprland version. As far I’m good with most of the stuff, but there is one major problem that I couldn’t solve yet:
How can I change the Audio Device in Hyprland?!

I have watched through everything, that sounded logical but i couldnt find anything regarding audio device in garuda assistant, maintenance and so on. Garuda Settings only gives me options for: Hardware Configuration, Kernel, Language Packs, User Accounts, Time and Date, Keyboard Settings and something language specific again.
This feels kinda strange for me, as I was used, to find here everything else related to hardware and settings in other (distros). Is here something missing?
I could not find any other “Settings” related App or Menu in the launcher. The widget in the waybar only lets me mute and change volume, but not choose any device. I tried to find any solution in the internet, but did not find anything regarding this.
I would like to use the Digital Output on my monitor connected to my soundsystem.

garuda-inxi:

System:
  Kernel: 6.11.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1 clocksource: tsc
    avail: acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=b66893ed-0e0e-4c6e-8668-e6000973d6b3 rw rootflags=subvol=@ quiet
    resume=UUID=bb0e78f8-aab3-4bbc-9ff3-5830aef149f8 loglevel=3 ibt=off
  Desktop: Hyprland v: 0.44.1 with: waybar tools: avail: swayidle,swaylock vt: 1 dm: SDDM
    Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: Razer product: Blade 18 - RZ09-0484 v: 9.04 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: Razer model: KI890 v: 4 serial: <superuser required> part-nu: RZ09-0484UGH4
    uuid: <superuser required> UEFI: Razer v: 2.05 date: 09/19/2023
Battery:
  ID-1: BAT0 charge: 65.0 Wh (74.5%) condition: 87.3/91.7 Wh (95.2%) volts: 16.0 min: 15.4
    model: Razer Blade type: Unknown serial: <filter> status: not charging cycles: 39
CPU:
  Info: model: 13th Gen Intel Core i9-13950HX bits: 64 type: MST AMCP arch: Raptor Lake
    gen: core 13 level: v3 note: check built: 2022+ process: Intel 7 (10nm) family: 6
    model-id: 0xB7 (183) stepping: 1 microcode: 0x129
  Topology: cpus: 1x dies: 1 clusters: 12 cores: 24 threads: 32 mt: 8 tpc: 2 st: 16 smt: enabled
    cache: L1: 2.1 MiB desc: d-16x32 KiB, 8x48 KiB; i-8x32 KiB, 16x64 KiB L2: 32 MiB
    desc: 8x2 MiB, 4x4 MiB L3: 36 MiB desc: 1x36 MiB
  Speed (MHz): avg: 800 min/max: 800/5300:5500:4000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800
    11: 800 12: 800 13: 800 14: 800 15: 800 16: 800 17: 800 18: 800 19: 800 20: 800 21: 800 22: 800
    23: 800 24: 800 25: 800 26: 800 27: 800 28: 800 29: 800 30: 800 31: 800 32: 800
    bogomips: 154828
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Raptor Lake-S UHD Graphics vendor: Razer USA driver: i915 v: kernel alternate: xe
    arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports: active: eDP-2 empty: DP-4,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:a788 class-ID: 0300
  Device-2: NVIDIA GN21-X11 [GeForce RTX 4090 Laptop GPU] vendor: Razer USA driver: nvidia
    v: 560.35.03 alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current (as of 2024-09)
    arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: none off: DP-1,DP-2
    empty: DP-3,HDMI-A-1,eDP-1 bus-ID: 01:00.0 chip-ID: 10de:2757 class-ID: 0300
  Device-3: Razer USA Gaming Webcam [Kiyo] driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.4.2.1.2:24 chip-ID: 1532:0e03 class-ID: 0102
  Device-4: Luxvisions Innotech Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:5 chip-ID: 30c9:009e class-ID: fe01
    serial: <filter>
  Device-5: Razer USA Ripsaw HD - Game Capture Card driver: snd-usb-audio,uvcvideo type: USB
    rev: 3.0 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 4-1.4.2.1.1.2:12 chip-ID: 1532:0d01
    class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.3 compositor: Hyprland
    v: 0.44.1 driver: X: loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,intel,nv,vesa
    dri: iris gpu: i915,nvidia,nvidia-nvswitch d-rect: 9440x1600 display-ID: 1
  Monitor-1: DP-1 pos: center model: PG34WCDM built: 2023 res: 3440x1440 hz: 60 dpi: 110
    gamma: 1.2 scale: 1 size: 795x333mm (31.3x13.11") diag: 862mm (33.9") modes: max: 3440x1440
    min: 640x480
  Monitor-2: DP-2 pos: right model: PG34WCDM serial: <filter> built: 2024 res: 3440x1440 hz: 60
    dpi: 110 gamma: 1.2 scale: 1 size: 795x333mm (31.3x13.11") diag: 862mm (33.9") modes:
    max: 3440x1440 min: 640x480
  Monitor-3: eDP-2 pos: primary,left model: AU Optronics 0x46a7 built: 2022 res: 2560x1600
    hz: 240 dpi: 168 gamma: 1.2 scale: 1 size: 387x242mm (15.24x9.53") diag: 456mm (18") ratio: 16:10
   
 modes: 2560x1600
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: iris device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: iris x11:
    drv: iris inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.2.4-arch1.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Graphics (RPL-S) device-ID: 8086:a788 memory: 15.13 GiB
    unified: yes
  API: Vulkan v: 1.3.295 layers: 9 device: 0 type: integrated-gpu name: Intel Graphics (RPL-S)
    driver: mesa intel v: 24.2.4-arch1.1 device-ID: 8086:a788 surfaces: xcb,xlib,wayland device: 1
    type: discrete-gpu name: NVIDIA GeForce RTX 4090 Laptop GPU driver: nvidia v: 560.35.03
    device-ID: 10de:2757 surfaces: xcb,xlib,wayland device: 2 type: cpu name: llvmpipe (LLVM
    18.1.8 256 bits) driver: mesa llvmpipe v: 24.2.4-arch1.1 (LLVM 18.1.8) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Razer USA
    driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel, snd_soc_avs, snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:7a50 class-ID: 0401
  Device-2: NVIDIA vendor: Razer USA driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bb class-ID: 0403
  Device-3: Razer USA Nari Ultimate driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:2 chip-ID: 1532:051a class-ID: 0300
  Device-4: Razer USA Ripsaw HD-Game Capture Card driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.4.2.1.1.1:25 chip-ID: 1532:0d02
    class-ID: 0300
  Device-5: Razer USA Gaming Webcam [Kiyo] driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.4.2.1.2:24 chip-ID: 1532:0e03 class-ID: 0102
  Device-6: Razer USA Seiren Elite driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6.4.3.1.1:23 chip-ID: 1532:0516 class-ID: 0102
    serial: <filter>
  Device-7: Razer USA Ripsaw HD - Game Capture Card driver: snd-usb-audio,uvcvideo type: USB
    rev: 3.0 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 4-1.4.2.1.1.2:12 chip-ID: 1532:0d01
    class-ID: 0102 serial: <filter>
  API: ALSA v: k6.11.3-zen1-1-zen status: kernel-api with: aoss type: oss-emulator tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:7a70 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Razer USA driver: r8169 v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 6e:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: enp110s0 state: down mac: <filter>
  Device-3: Microsoft Xbox Wireless Adapter for Windows driver: N/A type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.1.1:11 chip-ID: 045e:02fe class-ID: 0000
    serial: <filter>
  Device-4: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB rev: 3.0
    speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 4-1.4.5:8 chip-ID: 0bda:8153 class-ID: 0000
    serial: <filter>
  IF: enp56s0u1u4u5 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1
    mode: 1.1 bus-ID: 1-14:10 chip-ID: 8087:0033 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.3 lmp-v: 12 status:
    discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 7.28 TiB used: 59.08 GiB (0.8%)
  SMART Message: Required tool smartctl 
not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:4 vendor: Western Digital model: WD BLACK SN850X 4000GB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD
    serial: <filter> fw-rev: 624361WD temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Western Digital model: WD BLACK SN850X 4000GB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD
    serial: <filter> fw-rev: 624331WD temp: 35.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 3.61 TiB size: 3.61 TiB (100.00%) used: 59.08 GiB (1.6%) fs: btrfs
    dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 584 KiB (0.2%) fs: vfat
    dev: /dev/nvme1n1p1 maj-min: 259:1
  ID-3: /home raw-size: 3.61 TiB size: 3.61 TiB (100.00%) used: 59.08 GiB (1.6%) fs: btrfs
    dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 3.61 TiB size: 3.61 TiB (100.00%) used: 59.08 GiB (1.6%) fs: btrfs
    dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 3.61 TiB size: 3.61 TiB (100.00%) used: 59.08 GiB (1.6%) fs: btrfs
    dev: /dev/nvme1n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 30.99 GiB used: 0 KiB (0.0%) priority: 100 comp: zstd
    avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 32 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 34.09 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme1n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 48.5 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.99 GiB used: 6.16 GiB (19.9%)
  Processes: 499 Power: uptime: 14m states: freeze,mem,disk suspend: s2idle avail: deep
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 12.35 GiB
    services: upowerd Init: systemd v: 256 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1755 libs: 537 tools: octopi,pacseek,pamac,paru Compilers:
    clang: 18.1.8 gcc: 14.2.1 Client: shell wrapper v: 5.2.37-release inxi: 3.3.36
Garuda (2.6.26-1):
  System install date:     2024-10-13
  Last full system update: 2024-10-13
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

thank you guys in advance, for your help.

Click on sound volume in waybar or start alsamixer in terminal, F6 for change the audio soundcard.

Hey SGS,

clicking on the sound volume in waybar does not work, nothing happens. But I was able to open alsamixer. Sadly all the S/PDIF Outputs dont show any volume bar. Am I missing drivers? I use ASUS PG34WCDM as monitor with S/PDIF Output.

Check waybar config

    "pulseaudio": {
        "scroll-step": 5,
        "format": "{icon}{volume: >3}%",
        "format-bluetooth": " {icon}{volume: >3}%",
        "format-muted":" muted",
        "format-source": "",
        "format-source-muted": "",
        "format-icons": {
            "headphones": "",
            "handsfree": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", ""]
        },
        "on-click": "footclient -T waybar_alsamixer -e alsamixer -M",
        "on-click-right": "pavucontrol"
    },

Did you read wiki from hypr?

I’ve searched the wiki for Audio and S/PDIF, but none of those gave any results.

However, with the help of your config, I found the problem and was able to fix it.
My leftclick on the bar was bound to pavucontrol, rightclick was muting the device. However pavucontrol was not installed on the system. Also I saw this section is about pulseaudio, which also did not come with the fresh install. Preselected in my settings was pipewire, and i think to remember it was also suggested here in this forum, as pulseaudio seemed to lead to problems.
To solve this problem I removed pipewire, and installed pulseaudio and pavucontrol, then i was able to select my devices and get the sound output.

Thanks a lot :slight_smile:

1 Like

Thanks for reporting @Talahonikus

Would need to look into it :eyes:

Pavucontrol works with pipewire as well, right ? I think yes. I don’t think he needed to uninstall Pipewire for pulse audio.

Well, I am actually going to look at pavucontrol
not pipewire
because when I try to run then it won’t start , and that’s what I am getting in terminal :

 ╭─ankur@ankur in ~ 
 ╰─λ pavucontrol 

(pavucontrol:3950): Gtk-WARNING **: 20:04:19.976: Unknown key gtk-toolbar-style in /home/ankur/.config/gtk-4.0/settings.ini

(pavucontrol:3950): Gtk-WARNING **: 20:04:19.976: Unknown key gtk-toolbar-icon-size in /home/ankur/.config/gtk-4.0/settings.ini

(pavucontrol:3950): Gtk-WARNING **: 20:04:19.976: Unknown key gtk-button-images in /home/ankur/.config/gtk-4.0/settings.ini

(pavucontrol:3950): Gtk-WARNING **: 20:04:19.976: Unknown key gtk-menu-images in /home/ankur/.config/gtk-4.0/settings.ini

(pavucontrol:3950): Gtk-WARNING **: 20:04:19.976: Unknown key gtk-modules in /home/ankur/.config/gtk-4.0/settings.ini
MESA-INTEL: warning: ../mesa-24.2.4/src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../mesa-24.2.4/src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
Gdk-Message: 20:04:21.742: Error 71 (Protocol error) dispatching to Wayland display.

I am not able to have a look at it ATM due to lack of time
but will soon try to fix it when I get some free time :slightly_smiling_face:

BTW ,

1 extra/pavucontrol 1:6.1-1 [192.20 KiB 921.58 KiB] [Installed]
    PulseAudio Volume Control
:: Packages to install (eg: 1 2 3, 1-3):
:: 

So, IDK … :eyes:

Did somewhere change the waybar config?
It works fine here :smiley:

2 Likes

Yes it does indeed work on pipewire, just verified.

perhaps, it is just a problem for me then :slightly_smiling_face:

Last time, change

        "on-click": "pavucontrol",
        "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"

to

Seems you use old .config/waybar/config

Just fix it upstream too, seems I did not edit at time the skel part, sorry.

Install

sudo pacman -Syu alsa-utils