[SOLVED] No Sound when Log out and Log in - Mint 20

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
trope
Level 4
Level 4
Posts: 304
Joined: Tue Feb 19, 2013 1:10 pm

[SOLVED] No Sound when Log out and Log in - Mint 20

Post by trope »

I have external speakers that are plugged into my laptop's headphone jack. In Mint 20, when I log out and then log back in, there is no sound. I have to physically unplug and re-plug in the headphone jack. But in Mint 19 (which I have also), it does not have this issue. The sound continues to work if I log in and log out. Any way for me to troubleshoot or fix this in Mint 20?
Last edited by trope on Sat Aug 22, 2020 9:44 pm, edited 1 time in total.
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound when Log out and Log in - Mint 20

Post by MrEen »

Hi trope,

Run this before and after: pacmd list-sinks

I'm hoping there'll be a difference between the two outputs that would explain what is happening.

And a hint for your own reference. If there is more than 1 index number, pay attention to where the asterisk is.
trope
Level 4
Level 4
Posts: 304
Joined: Tue Feb 19, 2013 1:10 pm

Re: No Sound when Log out and Log in - Mint 20

Post by trope »

I ran that command 3 times:
  1. when initially logged into Mint20 after start-up - no sound
  2. after unplugging and plugging in speakers into the headphone jack - sound working
  3. logging out and logging back into Mint20 - no sound
The differences I found:

between the 2 with no sound:

Code: Select all

diff 
15c15
< 	current latency: 79.07 ms
---
> 	current latency: 89.57 ms
Between one of the ones with sound and without:

Code: Select all

10c10
< 	volume: front-left: 40632 /  62% / -12.46 dB,   front-right: 40632 /  62% / -12.46 dB
---
> 	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
15c15
< 	current latency: 79.07 ms
---
> 	current latency: 76.29 ms
69c69
< 	active port: <analog-output-speaker>
---
> 	active port: <analog-output-headphones>
I confirmed that if I go into Sound Preferences, "Connector" was on Speakers, not Headphones, and when I changed it to Headphones, it worked. Is there way to program Mint 20 to recognize that it should be on "Headphones" for my speakers to work?
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound when Log out and Log in - Mint 20

Post by MrEen »

trope wrote:
Wed Aug 19, 2020 1:44 pm
Is there way to program Mint 20 to recognize that it should be on "Headphones" for my speakers to work?
Yes there is. To give you the proper command, I'll need to see the output of pacmd list-sinks. Working sound or not doesn't matter, I just need to see what's in the name: field.
trope
Level 4
Level 4
Posts: 304
Joined: Tue Feb 19, 2013 1:10 pm

Re: No Sound when Log out and Log in - Mint 20

Post by trope »

MrEen wrote:
Wed Aug 19, 2020 1:47 pm
trope wrote:
Wed Aug 19, 2020 1:44 pm
Is there way to program Mint 20 to recognize that it should be on "Headphones" for my speakers to work?
Yes there is. To give you the proper command, I'll need to see the output of pacmd list-sinks. Working sound or not doesn't matter, I just need to see what's in the name: field.
with sound working:

Code: Select all

$ pacmd list-sinks

Code: Select all

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: RUNNING
	suspend cause: (none)
	priority: 9039
	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: 76.29 ms
	max request: 15 KiB
	max rewind: 15 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 90.00 ms; range is 0.50 .. 371.52 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC3235 Analog"
		alsa.id = "ALC3235 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7238000 irq 53"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9ca0"
		device.product.name = "Wildcat Point-LP High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		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 (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		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: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>

User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound when Log out and Log in - Mint 20

Post by MrEen »

Okay, in the terminal enter xed admin:///etcpulse/default.pa and when the file opens add this line to the bottom:

Code: Select all

set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-headphones
Save and close the file, ignore any warnings in the terminal, then reboot and it should behave from now on.
trope
Level 4
Level 4
Posts: 304
Joined: Tue Feb 19, 2013 1:10 pm

Re: No Sound when Log out and Log in - Mint 20

Post by trope »

MrEen wrote:
Thu Aug 20, 2020 9:30 pm
Okay, in the terminal enter xed admin:///etcpulse/default.pa and when the file opens add this line to the bottom:

Code: Select all

set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-headphones
Save and close the file, ignore any warnings in the terminal, then reboot and it should behave from now on.
Worked! But should be

Code: Select all

xed admin:///etc/pulse/default.pa
, took me a little while to figure it out since I didn't recognize the triple slash and then tried to figure out why I didn't have an etcpulse directory.
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: [SOLVED] No Sound when Log out and Log in - Mint 20

Post by MrEen »

That great! And thanks for figuring out my error. :D
Post Reply

Return to “Newbie Questions”