LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-10-2020, 11:15 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
HDMI audio on Current


I can't get sound to go down the hdmi cable.
I seem to have this issue back in Slackware Current. I've had it before, I had a mega-thread in 2015 on sound, but I can't find it in a thread search. 'Aplay -l' shows me
Code:
bash-5.0$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-5.0$
Now with something playing, I used to be able to open pavucontrol, select the 'Output Devices' tab, and find the HDMI in Ports, click on hdmi and sound came through the HDMI device. But now, I never see the HDMI device in pavucontrol, although aplay -l does see the card. I only get offered (joke) Speakers or headphones

How do I fix that?. BTW, lspci follows
Quote:
bash-5.0$ sudo lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
bash-5.0$
 
Old 02-10-2020, 12:09 PM   #2
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Have you looked in alsamixer and disabled "Auto-Mute"?

That is what I had to do before selecting the output device in pavucontrol.
 
Old 02-10-2020, 12:45 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Auto-mute in alsamixer? Yep. Thanks

Also tried it on a slackware huge kernel - just in case
 
Old 02-10-2020, 07:54 PM   #4
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@business_kid

Please paste the outputs for the following commands:
Code:
/bin/dmesg | grep HDMI
cat /proc/asound/cards
cat /proc/asound/pcm
# pulseaudio must be running for these:
/usr/bin/pacmd list-cards
/usr/bin/pacmd list-sinks
Given your HDMI is:
Code:
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
- you could try forcing pulseaudio to use the HDMI output as default, by modifying your /etc/pulse/default.pa
Code:
load-module module-alsa-sink device=hw:0,3
- then bounce pulseaudio:
Code:
/usr/bin/pulseaudio -k
/usr/bin/pulseaudio -D
There's also a way to simultaneously play the sound on both analogue & HDMI outputs:
https://wiki.archlinux.org/index.php..._analog_output

You didn't detail how you got into your current issue - new (updates) pulseaudio/kernel ? If it's the kernel, maybe you need to add some options to the snd-hda-intel driver, however, that's to be considered only after you provide the outputs I asked in the beginning of the post.
Background/Docs:
https://docs.slackware.com/howtos:ha..._snd-hda-intel
https://ubuntuforums.org/showthread.php?t=1043568
 
Old 02-11-2020, 02:12 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
can I be rude? and point out....auto mute is a jack sense where headphones are inserted to an analog sound device
....if detected....sound is muted to analog speakers.

umm I do not wish to interfere with abga.

but if his solutions do not work....a simple .asoundrc should work but leaping ahead....some sound devices need SPDIF toggled on or off
or off on etc to enable hdmi.


#####
Code:
 cat .asoundrc
pcm.!default {
        type hw
        card 0
        device 3
}

ctl.!default {
        type hw           
        card 0
        device 3
}

Last edited by aus9; 02-11-2020 at 02:13 AM.
 
Old 02-11-2020, 02:44 AM   #6
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@aus9

Nothing to interfere with, I was just trying to gather more info about OPs setup/situation - helping define the problem. Any (additional) hints are welcome here. Skaendo already addressed the Auto-Mute potential cause in post #2.
 
Old 02-11-2020, 06:24 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Great - 2 sound gurus here. Thanks for replies, guys.

@aus9: I think I'll leave the .asoundrc idea until I get pulse sorted (See below). Pulse piddles all over alsa configs anyhow.

@agba: Hit a problem with pulseaudio starting in system mode, so the pacmd commands gave me the middle finger. I eventually restarted with simply 'pulseaudio &' to get around it. Now your outputs:
Code:
root@RoseViolet:~# /bin/dmesg | grep HDMI
[    0.312368] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    7.104220] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11

root@RoseViolet:~# cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xc0210000 irq 30

root@RoseViolet:~# cat /proc/asound/pcm
00-00: ALC269VC Analog : ALC269VC Analog : playback 1 : capture 1
00-03: HDMI 0 : HDMI 0 : playback 1
root@RoseViolet:~# 

root@RoseViolet:~# /usr/bin/pacmd list-cards
No PulseAudio daemon running, or not running as session daemon.
root@RoseViolet:~# pulseaudio &
[1] 5277
root@RoseViolet:~# /usr/bin/pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xc0210000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: unknown)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "BenQ GL2450H"
root@RoseViolet:~# 


root@RoseViolet:~# /usr/bin/pacmd list-sinks
No PulseAudio daemon running, or not running as session daemon.
[1]+  Done                    pulseaudio
root@RoseViolet:~# killall pulseaudio
pulseaudio: no process found
root@RoseViolet:~# pulseaudio
^Croot@RoseViolet:~# pulseaudio &
[1] 5306
root@RoseViolet:~# pgrep pulseaudio
5306
root@RoseViolet:~# /usr/bin/pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 58409 /  89% / -3.00 dB,   front-right: 58409 /  89% / -3.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: 0
	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: 0 <alsa_card.pci-0000_00_1b.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xc0210000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC269VC"
		alsa.components = "HDA:10ec0269,144dc0d8,00100202 HDA:80862806,144dc0d8,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
root@RoseViolet:~# 
root@RoseViolet:~# pgrep pulseaudio
root@RoseViolet:~#
As you no doubt noticed, there's a real issue keeping pulseaudio running. It normally respawns in Slackware. I started it again with 'pulseaudio --disallow-exit &' and that gets me going. I am getting sound through HDMI. But I really don't like changing recently updated rc files without fully understanding what I'm doing. I take it the '&' bit tells it to daemonize itself. Over to you!

BTW, I got 6 options in pavucontrol on a configuration tab not visible unless I maximise pavucontrol. But I can get hdmi sound, which is nice. I'll await your reply before marking this solved, but the answer appears to be changing the pulseaudio startup command from this
Quote:
/usr/bin/pulseaudio --system --disallow-module-loading 1> /dev/null 2> /dev/null
to this
Quote:
/usr/bin/pulseaudio --disallow-exit & 1>
EDIT: That startup config is unchanged for the last year. This worked with the original config. What's up now?

Last edited by business_kid; 02-11-2020 at 06:28 AM.
 
Old 02-11-2020, 06:21 PM   #8
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by business_kid View Post
Great - 2 sound gurus here. Thanks for replies, guys.
Who are they ? If you ask me, I'm just a pulseaudio "survivor", treating pulseaudio with respect (remember? I told you that in an older thread) who learned a lot from some of the posts of the actual guru @enorbet

Quote:
Originally Posted by business_kid View Post
@agba: Hit a problem with pulseaudio starting in system mode, so the pacmd commands gave me the middle finger. I eventually restarted with simply 'pulseaudio &' to get around it.
....
As you no doubt noticed, there's a real issue keeping pulseaudio running. It normally respawns in Slackware. I started it again with 'pulseaudio --disallow-exit &' and that gets me going. I am getting sound through HDMI. But I really don't like changing recently updated rc files without fully understanding what I'm doing. I take it the '&' bit tells it to daemonize itself. Over to you!
Well, I mentioned that pulseaudio must be running in order to be able to execute the pacmd commands.
Basically, you have two ways to run pulseaudio:
- the default/standard one, adopted by Slackware, in which pulseaudio is only executed upon request (Autospawning), thus, no need to modify your rc. init files
https://www.freedesktop.org/wiki/Sof.../User/Running/
- system wide, not really recommended, unless you have a special request/scenario for it
https://www.freedesktop.org/wiki/Sof...er/SystemWide/

Now, launching pulseaudio manually is to be done by issuing:
Code:
/usr/bin/pulseaudio -D
- it will launch and if it hits the default 20 secs - exit-idle-time (defined in /etc/pulse/daemon.conf), it will exit. Meaning, once you launch it manually, you need to hurry with the pacmd commands, or, uncomment the exit-idle-time and increase the idle to your desired time (better hurry, no need to keep pulseaudio running).
To kill it, just run:
Code:
/usr/bin/pulseaudio -k
The outputs of the commands I asked you to run show that the HDMI is activated and available. Not sure why it didn't work in the first place. If you believe that you have messed up the pulseaudio configuration - it happened to me on older versions - then, you could backup and delete the directory .config/pulse from the user's home and restart pulseaudio in order to re-create & populate it:
Code:
/usr/bin/pulseaudio -k
/usr/bin/pulseaudio -D
Obviously, the procedure should be done without X/pavucontrol running.

Quote:
Originally Posted by business_kid View Post
BTW, I got 6 options in pavucontrol on a configuration tab not visible unless I maximise pavucontrol. But I can get hdmi sound, which is nice. I'll await your reply before marking this solved, but the answer appears to be changing the pulseaudio startup command from this
to this

EDIT: That startup config is unchanged for the last year. This worked with the original config. What's up now?
Sorry, only running Slackware -current on ARM (Raspberry Pi) and not using X at all. Additional, the Slackware ARM -current wasn't updated for almost a month now, drmozes seems to wait until he hits his targeted income/donations and able to prioritize it again over the podcasts.
Therefore I cannot replicate your scenario -> packages versions ...
Try removing & reinstalling pavucontrol, don't know if it helps. Maybe you have some DE issues there, some oversized buttons/fonts/etc. that are breaking the pavucontrol window.

On the startup config, already addressed it, leave it alone.
 
1 members found this post helpful.
Old 02-11-2020, 06:56 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
umm I am not a PA guy....but if you continue to run PA in system mode you will have interference because in post 4 you were asked to
kill PA
restart PA in daemon mode AFAIK.

IMHO you are better off in the long run...staying with PA but copying user configs to your home dir
.config/pulse

edit the config to not autospawn PA
kill PA
make changes to whatever then just restart PA.

autospawn only effects PA if it is killed. I am not asking you to disable it on boot with your (probable) systemd setup.

hidden agenda....giggles....kill PA...never try to delete it as its a monster.....well I am joking but it pretty bad...
and use alsa .asoundrc file to play thru hdmi.

It does have 2 uses.....it is really easy to use to swap sound devices on the fly
and it easy to .....modesty forbids to reveal I think it might have a second use.
 
Old 02-12-2020, 05:27 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
I had all this working just dandy under alsa, sorted it for pulse, and had it working 6-9 months ago. I got into this issue because it slipped out of config sometime, and I updated it recently. I also overwrote configs fairly recently, which I hadn't done for years. I changed kernels to a home brewed one, and generally sort of brought the house down on myself a little. I thought all was sorted out, but then this showed up.

~/.config/pulse has all very recent files (Feb 10 or 11), so I'm not tempted to fiddle with that. Adding modules into the long file that is /etc/pulse/default.pa is something I looked at but didn't do. It does have
### Automatically suspend sinks/sources that become idle for too long
<stuff> and HDMI certainly fell into that category.

/etc/xdg/autostart/pulseaudio.desktop is a file in multiple languages. Once it exists, I left it alone.

I really don't understand the benefits of having pulse die off and then restart as required in --system mode. Sure, it saves a few K of ram while compromising response time. PA is a total POS imho, and has plainly failed to start up as required, like when sound was playing and pavucontrol was running. I install PA not because I want or like it, but because programs require it.

Somebody was asking me for my kernel version: 5.4.18, with the option of 5.4.14 or slackware-huge (purely while I sort this out).

At this stage, I'm sure there is a techno-ethical way to get pulse self starting; I don't have it, so I've forbidden exits, and the sky hasn't fallen in. Rule #1 in maintenance beckons: "If it works, don't fix it!"
 
Old 02-12-2020, 06:37 AM   #11
zuriel
Member
 
Registered: Aug 2012
Distribution: Slackware
Posts: 60

Rep: Reputation: 50
Code:
profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: unknown)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
I think this is your problem. You want the sound card on the HDMI profiles. You can change that on the configuration tab in pavucontrol. I think this line should do it from the command line:

Code:
pactl set-card-profile 0 output:hdmi-stereo+input:analog-stereo
 
1 members found this post helpful.
Old 02-12-2020, 01:18 PM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
My optimum preference would be
  • Speaker/headphone sound with no HDMI plugged in
  • HDMI sound with HDMI plugged in, and no speaker sound.
  • Input - not really fussy where it comes from. This is a low-fi machine

If that command line thing does it all and I can return to Slackware's default config, no need to post but thank you and I'll try it shortly.

Last edited by business_kid; 02-12-2020 at 01:20 PM.
 
Old 02-12-2020, 04:02 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I'll admit I haven't read the whole thread (I am not a pulseaudio guru... I know nothing about sinks or pacmd -- I'm one of the lucky ones where it has just worked), so if this has already been discounted, please ignore. Do you happen to have any modules blacklisted? I remember a recent thread had some people disabling some module to prevent some spamming error on systems using the Nvidia driver. I think it had to do with the USB on the video card that is used for VR. If that module is also used for hdmi, it could've knocked it out and prevent pulse from using it.
 
Old 02-12-2020, 07:04 PM   #14
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@aus9
Quote:
umm I am not a PA guy....but if you continue to run PA in system mode you will have interference because in post 4 you were asked to
kill PA
restart PA in daemon mode AFAIK.
I didn't know how the OP was running pulseaudio and expected the standard, autospawning mode. Instructing to kill pulseaudio in such a case (autospawning) is pretty redundant, but you never know what other app could use it (pavucontrol & co) and I just wanted to be sure it's killed and started again clean for the following instructions I presented.

@zuriel
Configuring the default profile on shell (say, putting it in /etc/rc.d/rc.local) requires pulseaudio to be running for the pactl command:
Code:
/usr/bin/pulseaudio -k
/usr/bin/pulseaudio -D
/usr/bin/pactl set-card-profile 0 output:hdmi-stereo+input:analog-stereo
A more consistent approach would be to add it in /etc/pulse/default.pa
Code:
set-card-profile 0 output:hdmi-stereo+input:analog-stereo
You could also use:
Code:
set-default-sink <name_of_sink>
set-default-source <name_of_source>
#...etc
@business_kid
Quote:
My optimum preference would be

Speaker/headphone sound with no HDMI plugged in
HDMI sound with HDMI plugged in, and no speaker sound.
That should be the default pulseaudio behavior, AFAIK. You could try loading the following modules in /etc/pulse/default.pa
Code:
load-module module-switch-on-port-available
load-module module-switch-on-connect
But it looks like the module-switch-on-connect module is buggy in pulseaudio 13.0:
https://gitlab.freedesktop.org/pulse...dio/issues/749

There are some other "hacks" for automation, using acpid (acpi events) or udev (udev rules):
https://unix.stackexchange.com/quest...ones-connected
https://askubuntu.com/questions/8540...-automatically

On configuring the default ouput, as suggested by @zuriel, by using the shell (and completed by me in this post), you have the alternative to use pavucontrol. Follow what @wirelessmc is describing here:
https://www.linuxquestions.org/quest...3/#post6045996
 
1 members found this post helpful.
Old 02-13-2020, 04:47 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,409

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Quote:
Originally Posted by agba
I didn't know how the OP was running pulseaudio and expected the standard, autospawning mode.
I know little about PA and what little I do know convinces me it's unnecessary alpha software, unfortunately used by programmers. I was running off the SysVinit script in Slackware
'/usr/bin/pulseaudio --system --disallow-module-loading 1 > /dev/null 2 > /dev/null'

I set up /etc/default.pa as per instructions, thank you agba; reset the original start line and it hung on rc.pulseaudio - silently, of course. So I rebooted on a live USB key, and killed PA & ran the line without the piping to /dev/null on the usb key and got myself a lecture:

Quote:
bash-5.0$ sudo pulseaudio --system
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set. # In fairness, the slackware rc script sets it.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode. # Shared Memory?
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.
W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please make sure that you actually do want to do that.
W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Soft...ithSystemWide/ for an explanation why system mode is usually a bad idea.
I read that link and decided system mode was a bad idea. System mode is only for headless embedded stuff, not Desktops. So I'm marking this solved, sticking with what I've now got.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
current -- suddenly hdmi audio is hd:0, instead of the pci audio card genss Slackware 5 04-25-2016 08:07 AM
LXer: $50 Roku stick goes HDMI y HDMI with Chromecast LXer Syndicated Linux News 0 03-06-2014 01:00 PM
Is it possible to play Blu Ray through a video card HDMI output to HDMI TV? SharpyWarpy Linux - Hardware 5 10-28-2012 01:01 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration