You are not logged in.
I just installed Arch with I3wm and then I installed pulseaudio to make discord work. I'm not sure, but I think this problem appeared only after installing pulseaudio. After booting up the system I need to unplug and replug the lineout-jack for speakers to start working. This same problem doesn't appear when I boot the computer while having my speaker plugged into headphones-jack instead.
Last edited by shadowbird2468 (2021-08-24 23:25:49)
Offline
I'm still quite unfamiliar with alsa and pulseaudio, but after some studying I believe this info might be relevant info
[shadowbird@arch-i3 ~]$ pactl list sinks
Sink #1
State: SUSPENDED
Name: alsa_output.pci-0000_00_14.2.analog-stereo
Description: Built-in Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 8
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 60694 / 93% / -2.00 dB
Monitor Source: alsa_output.pci-0000_00_14.2.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC889 Analog"
alsa.id = "ALC889 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xfdff4000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-output-lineout: Line Out (type: Line, priority: 9000, available)
analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability unknown)
Active Port: analog-output-lineout
Formats:
pcm
Sink #2
State: SUSPENDED
Name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2
Description: GM206 High Definition Audio Controller Digital Stereo (HDMI 3)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
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
Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 2"
alsa.id = "HDMI 2"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "8"
alsa.card = "1"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xfcffc000 irq 19"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:01:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "0fba"
device.product.name = "GM206 High Definition Audio Controller"
device.string = "hdmi:1,2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra2"
device.profile.description = "Digital Stereo (HDMI 3)"
device.description = "GM206 High Definition Audio Controller Digital Stereo (HDMI 3)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, available)
Active Port: hdmi-output-2
Formats:
pcm
So, if I have understood right, Sink #1 is my integrated sound-card and Sink #2 is my HDMI Monitor?
I red this wiki page and though if this is what I need to do https://wiki.archlinux.org/title/PulseA … og_outputs
$ pactl set-sink-port 'number of the card' 'port'
now I wonder if this is the right way to do it in my case? I'm not sure if 'number of the card' is same as "Sink #1" number, or if I need to check it other way?
$ pactl set-sink-port 1 "analog-output-lineout"
Offline
That is the correct way to do it, indeed.
Online
great, the command works! now I just need to make it work on boot. I know how to add that command in I3wm executrices on boot with .config/i3/config, but maybe there is a better way to do it?
Last edited by shadowbird2468 (2021-08-24 21:17:04)
Offline
Add a
.nofail
set-sink-port alsa_output.pci-0000_00_14.2.analog-stereo analog-output-lineout
to the end of your /etc/pulse/default.pa or into a new file in /etc/pulse/default.pa.d
Online
Okey, thanks, lets see!
I copied configuration files to home directory since it was recommended in the wiki
[shadowbird@arch-i3 ~]$ ls .config/pulse/
6acdf5aa97da49f9b8d2596d75cc49de-card-database.tdb 6acdf5aa97da49f9b8d2596d75cc49de-default-source 6acdf5aa97da49f9b8d2596d75cc49de-runtime equalizer-presets.tdb
6acdf5aa97da49f9b8d2596d75cc49de-default-sink 6acdf5aa97da49f9b8d2596d75cc49de-device-volumes.tdb 6acdf5aa97da49f9b8d2596d75cc49de-stream-volumes.tdb equalizer-state.tdb
[shadowbird@arch-i3 ~]$ cp -r /etc/pulse/ ~/.config/
[shadowbird@arch-i3 ~]$ ls .config/pulse/
6acdf5aa97da49f9b8d2596d75cc49de-card-database.tdb 6acdf5aa97da49f9b8d2596d75cc49de-default-source 6acdf5aa97da49f9b8d2596d75cc49de-runtime client.conf default.pa equalizer-state.tdb
6acdf5aa97da49f9b8d2596d75cc49de-default-sink 6acdf5aa97da49f9b8d2596d75cc49de-device-volumes.tdb 6acdf5aa97da49f9b8d2596d75cc49de-stream-volumes.tdb daemon.conf equalizer-presets.tdb system.pa
[shadowbird@arch-i3 ~]$ sudo nano .config/pulse/default.pa
[shadowbird@arch-i3 ~]$
Then I added the lines
[shadowbird@arch-i3 ~]$ tail .config/pulse/default.pa
#set-default-source input
### Allow including a default.pa.d directory, which if present, can be used
### for additional configuration snippets.
.nofail
.include /etc/pulse/default.pa.d
### My added lines
.nofail
set-sink-port alsa_output.pci-0000_00_14.2.analog-stereo analog-output-lineout
[shadowbird@arch-i3 ~]$
I was wondering if I should remove the '.nofail' typed second time, since it's there already, unless it needs to be right there just before the line 'set-sink-port alsa_output.pci-0000_00_14.2.analog-stereo analog-output-lineout'?
Booting now, lets see!
Last edited by shadowbird2468 (2021-08-24 23:29:18)
Offline
It works, thank you very much!
Offline
You can remove the second one, it's just "important" to have it once before (a list of) non essential commands, so if the name of the card changes for whatever reason pulseaudio doesn't outright refuse to start.
Online