You are not logged in.
$ pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
$ pacmd list-cards
0 card(s) available.
$ aplay -l
aplay: device_list:279: no soundcards found...
$ lspci | grep Audio
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
01:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)I am not using a desktop environment. I have installed sof-firmware and rebooted. This is a fresh arch install and my first attempt at getting audio to work. Not really sure where to go from here, any help is appreciated. Thanks.
Last edited by veist (2024-08-07 22:28:53)
Offline
Does lscpi list any audio device?
Offline
Is this okay?
$ lspci | grep Audio
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
01:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)I have since tried the following:
$ sudo fuser /dev/snd/*
#no output
$ sudo dmesg | grep snd
[ 2.036418] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 2.036572] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[ 2.036612] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 2.036615] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 2.041806] snd_hda_intel 0000:00:1f.3: no codecs found!
[ 10.728395] usbcore: registered new interface driver snd-usb-audioI am guessing the problem is the missing codecs, but I am not sure how to fix.
During installation, I downloaded linux-firmware, nvidia and nvidia-utils.
Last edited by veist (2024-08-03 22:41:46)
Offline
Did you install sof-firmware?
Last edited by topcat01 (2024-08-04 00:00:31)
Offline
I apologize in advance if I'm being stupid here but I am very confused now. I had been running all of these commands in wezterm after starting awesomewm. I have rebooted many times now, but this time decided to run aplay -l and pacmd list-cards in the CLI immediately after rebooting and logging in (I have no display manager). Both commands listed the cards this time. I started awesomewm and aplay -l no longer detects any sound cards, but now pacmd list-cards is detecting them. I am still without sound.
This command now produces output (in awesomewm and in default CLI):
$ sudo fuser /dev/snd/*
/dev/snd/controlC1: 1501
/dev/snd/controlC2: 1501The output of pacmd list-cards is very long but lists both of the audio cards. I have no idea why aplay -l doesn't detect anything while in wezterm/awesomewm.
Offline
Post
sudo dmesg | grep sofchances are you're lacking sof-firmware.
Offline
I have have had sof-firmware from the start. Do I need to do anything with it besides installing with pacman?
[user@arch ~]$ sudo dmesg | grep sof
[ 0.056838] software IO TLB: area num 32.
[ 0.326406] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.326407] software IO TLB: mapped [mem 0x0000000063e46000-0x0000000067e46000] (64MB)
[ 0.452607] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011:'
[ 0.452625] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011:'I removed the cert ID's from the output, I'm not entirely sure why they are there as I partitioned my ssd's and installed arch only. Thanks for the help.
Offline
Did you create any custom asound.conf or so in an attempt to fix this? Remove whatever you did in that regard and post
aplay -lL
sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinksare you on the LTS kernel for some reason?
Offline
I have not made any or edited any files as far as I know.
When in the default CLI after logging in to arch:
$ sudo fuser /dev/snd/*
/dev/snd/controlC1: 3047
/dev/snd/controlC2: 3047$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=PCH
Front output / input
surround21:CARD=PCH
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
HDA NVidia, C49RG9x
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 1
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 2
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 3
HDMI Audio Output
default:CARD=Audio
USB Audio, USB Audio
Default Audio Device
sysdefault:CARD=Audio
USB Audio, USB Audio
Default Audio Device
front:CARD=Audio,DEV=0
USB Audio, USB Audio
Front output / input
surround21:CARD=Audio,DEV=0
USB Audio, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Audio,DEV=0
USB Audio, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
USB Audio, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
USB Audio, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
USB Audio, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
USB Audio, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
USB Audio, USB Audio
IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=Audio,DEV=1
USB Audio, USB Audio #1
IEC958 (S/PDIF) Digital Audio Output
**** List of PLAYBACK Hardware Devices ****
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [C49RG9x]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
Subdevices: 1/1
Subdevice #0: subdevice #0$ pacmd list-cards
2 card(s) available.
index: 0
name: <alsa_card.pci-0000_01_00.1>
driver: <module-alsa-card.c>
owner module: 21
properties:
alsa.card = "1"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0x85080000 irq 17"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:01:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "1aef"
device.product.name = "GA102 High Definition Audio Controller"
device.string = "1"
device.description = "GA102 High Definition Audio Controller"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
off: Off (priority 0, available: unknown)
active profile: <output:hdmi-stereo>
sinks:
alsa_output.pci-0000_01_00.1.hdmi-stereo/#1: GA102 High Definition Audio Controller Digital Stereo (HDMI)
sources:
alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#1: Monitor of GA102 High Definition Audio Controller Digital Stereo (HDMI)
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "C49RG9x
"
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
index: 1
name: <alsa_card.usb-Generic_USB_Audio-00>
driver: <module-alsa-card.c>
owner module: 22
properties:
alsa.card = "2"
alsa.card_name = "USB Audio"
alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card2"
udev.id = "usb-Generic_USB_Audio-00"
device.bus = "usb"
device.vendor.id = "0b05"
device.vendor.name = "ASUSTek Computer, Inc."
device.product.id = "1996"
device.product.name = "USB Audio"
device.serial = "Generic_USB_Audio"
device.string = "2"
device.description = "USB Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
profiles:
HiFi 7+1: HiFi 7.1 channels (priority 34168, available: unknown)
HiFi 5+1: HiFi 5.1 channels (priority 34168, available: unknown)
HiFi: HiFi 2.0 channels (priority 42168, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <HiFi>
sinks:
alsa_output.usb-Generic_USB_Audio-00.HiFi__SPDIF__sink/#2: USB Audio S/PDIF Output
alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink/#3: USB Audio Front Headphones
alsa_output.usb-Generic_USB_Audio-00.HiFi__Speaker__sink/#4: USB Audio Speakers
sources:
alsa_output.usb-Generic_USB_Audio-00.HiFi__SPDIF__sink.monitor/#2: Monitor of USB Audio S/PDIF Output
alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink.monitor/#3: Monitor of USB Audio Front Headphones
alsa_output.usb-Generic_USB_Audio-00.HiFi__Speaker__sink.monitor/#4: Monitor of USB Audio Speakers
alsa_input.usb-Generic_USB_Audio-00.HiFi__Mic2__source/#5: USB Audio Microphone
alsa_input.usb-Generic_USB_Audio-00.HiFi__Mic1__source/#6: USB Audio Front Microphone
alsa_input.usb-Generic_USB_Audio-00.HiFi__Line1__source/#7: USB Audio Line Input
ports:
[Out] SPDIF: S/PDIF Output (priority 100, latency offset 0 usec, available: unknown)
properties:
[Out] Headphones: Front Headphones (priority 300, latency offset 0 usec, available: no)
properties:
[Out] Speaker: Speakers (priority 200, latency offset 0 usec, available: no)
properties:
[In] Mic2: Microphone (priority 400, latency offset 0 usec, available: yes)
properties:
[In] Mic1: Front Microphone (priority 300, latency offset 0 usec, available: yes)
properties:
[In] Line1: Line Input (priority 100, latency offset 0 usec, available: no)
properties:$pacmd list-sinks
4 sink(s) available.
index: 1
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9030
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
card: 0 <alsa_card.pci-0000_01_00.1>
module: 21
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "C49RG9x"
alsa.id = "HDMI 0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "1"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0x85080000 irq 17"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:01:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "1aef"
device.product.name = "GA102 High Definition Audio Controller"
device.string = "hdmi:1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.description = "Digital Stereo (HDMI)"
device.description = "GA102 High Definition Audio Controller Digital Stereo (HDMI)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "C49RG9x
"
active port: <hdmi-output-0>
* index: 2
name: <alsa_output.usb-Generic_USB_Audio-00.HiFi__SPDIF__sink>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9041
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.usb-Generic_USB_Audio-00>
module: 22
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio #2"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "2"
alsa.card = "2"
alsa.card_name = "USB Audio"
alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card2"
udev.id = "usb-Generic_USB_Audio-00"
device.bus = "usb"
device.vendor.id = "0b05"
device.vendor.name = "ASUSTek Computer, Inc."
device.product.id = "1996"
device.product.name = "USB Audio"
device.serial = "Generic_USB_Audio"
device.string = "_ucm0003.hw:Audio,2"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "HiFi: SPDIF: sink"
device.profile.description = "S/PDIF Output"
alsa.mixer_device = "_ucm0003.hw:Audio"
device.description = "USB Audio S/PDIF Output"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
[Out] SPDIF: S/PDIF Output (priority 100, latency offset 0 usec, available: unknown)
properties:
active port: <[Out] SPDIF>
index: 3
name: <alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9043
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 3
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.usb-Generic_USB_Audio-00>
module: 22
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio #1"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "1"
alsa.card = "2"
alsa.card_name = "USB Audio"
alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card2"
udev.id = "usb-Generic_USB_Audio-00"
device.bus = "usb"
device.vendor.id = "0b05"
device.vendor.name = "ASUSTek Computer, Inc."
device.product.id = "1996"
device.product.name = "USB Audio"
device.serial = "Generic_USB_Audio"
device.string = "_ucm0003.hw:Audio,1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "HiFi: Headphones: sink"
device.profile.description = "Front Headphones"
alsa.mixer_device = "_ucm0003.hw:Audio"
device.description = "USB Audio Front Headphones"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
[Out] Headphones: Front Headphones (priority 300, latency offset 0 usec, available: no)
properties:
active port: <[Out] Headphones>
index: 4
name: <alsa_output.usb-Generic_USB_Audio-00.HiFi__Speaker__sink>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9042
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 4
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.usb-Generic_USB_Audio-00>
module: 22
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "USB Audio"
alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card2"
udev.id = "usb-Generic_USB_Audio-00"
device.bus = "usb"
device.vendor.id = "0b05"
device.vendor.name = "ASUSTek Computer, Inc."
device.product.id = "1996"
device.product.name = "USB Audio"
device.serial = "Generic_USB_Audio"
device.string = "_ucm0003.hw:Audio"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "HiFi: Speaker: sink"
device.profile.description = "Speakers"
alsa.mixer_device = "_ucm0003.hw:Audio"
device.description = "USB Audio Speakers"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
[Out] Speaker: Speakers (priority 200, latency offset 0 usec, available: no)
properties:
active port: <[Out] Speaker>But once I run xinit and awesomewm the output changes for aplay -lL:
$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
aplay: device_list:279: no soundcards found...The other three commands appear to have the same output. At the time of the first post in this topic, sudo fuser /dev/snd/* produced no output once in awesomewm, and pacmd list-cards found no cards. At one point I tried modprobe for snd_hda_intel, but removed it with modprobe -r after it didn't help.
I believe I decided against installing the LTS kernel as a way to simplify the installation.
$ uname -a
Linux arch 6.10.2-arch1-2 #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17 +0000 x86_64 GNU/LinuxLast edited by veist (2024-08-06 00:02:46)
Offline
You should not run xinit directly, but use startx and if you do, you need to make sure your .xinitrc is setup properly: https://wiki.archlinux.org/title/Xinit#xinitrc -- note the blue note boxes about what a proper xinitrc should retain from the template/default file, in doubt post your .xinitrc
Offline
I think startx wasn't working for me in the past so I used xinit. I ran startx without any changes to .xinitrc and now aplay -lL lists the sound cards in awesomewm! Unfortunately, I still have no sound. I have installed pulseaudio-jack (headset is 3.5mm).
I think my .xinitrc is fine, but just in case:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#run
exec awesome According to my notes, I removed whatever was after the final if-statement and added "exec awesome" at the end.
For troubleshooting, I have now tried:
$ pamixer --get-volume-human
100%$ pacmd list-sink-inputs
1 sink input(s) available.
index: 2
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 1 <alsa_output.usb-Generic_USB_Audio-00.HiFi__SPDIF__sink>
volume: front-left: 25656 / 39% / -24.44 dB, front-right: 25656 / 39% / -24.44 dB
balance 0.00
muted: no
current latency: 125.00 ms
requested latency: 75.00 ms
sample spec: float32le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 11
client: 3 <Firefox>
properties:
media.name = "Where Did Arch Linux Come From? - YouTube"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
application.process.id = "972"
application.process.user = "user"
application.process.host = "arch"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "c95c83e3cb964e588152310ca4286487"
application.process.session_id = "1"
application.icon_name = "firefox"
module-stream-restore.id = "sink-input-by-application-name:Firefox"Not sure where to go from here but I will be looking into it. Thank you for all the help. Please let me know if anything looks obviously wrong.
Offline
.xinitrc looks correct as is now. pulse-jack is a package for the integration with the JACK daemon and has no relation to your physical jack, but will also not be harmful. Chances are the SPDIF sink is the wrong one to pick, try moving the firefox stream to the Headphones/Speaker sink.
Offline
I am having trouble setting the default sink, which is currently index 1 according to pacmd list-sinks (it has the asterisk). I've tried pacmd set-default-sink 2 but it does not change the default sink. From what I've read, commenting out load-module module-stream-restore restore_device from default.pa might help with this, but I'm not sure what side effects that may have and I'd rather it be set through the files if possible.
I edited /etc/pulse/default.pa to include set-default-sink output alsa_output.usb-Generic_USB_Audio-00.HiFi__Headphones__sink, but this doesn't seem to work (even after using pulseaudio -k). I am not really sure where to go from here. According to the wiki, pulseaudio will first look to ~/.config/pulse. There are .tbd files there, but I never created that directory so they are there by default and are unedited. I am the only user for this system so I don't mind editing the system-wide configurations in /etc/pulse.
Offline
The default sink will normally only apply to new streams/new applications double check with list-sink-inputs where your application is playing to and use e.g.
pacmd move-sink-input 2 alsa_output.usb-Generic_USB_Audio-00.HiFi__Speaker__sinkthe 2 here is based on the sink-inputs output from before, that will relevantly change when new applications try to play audio.
Consider installing pavucontrol or so, it helps visualizing the interactions.
Offline
I had trouble with the move-sink-input command but ended up installing pavucontrol and was able to get it to work. Thanks for your help!
Offline