19.2 Cinnamon independant headphones/speakers? [SOLVED]

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
shockedquartz
Level 1
Level 1
Posts: 25
Joined: Tue Dec 17, 2019 3:31 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by shockedquartz »

MrEen wrote:
Sun Dec 22, 2019 6:43 pm
Yeah, notice the Master in the last command. I'm trying to get the speakers to work while the headphones are muted in this case, and it takes some experimenting. By the way, the speakers are most likely the Line column in alsamixer. When we get there, the command will be amixer set Line toggle

My thinking is there'll be three commands to run to switch from speaker to headphones or vice versa:

Code: Select all

amixer set Headphone toggle
amixer set Line toggle
amixer set Master toggle
We might need to include Front in the mix as well, not sure yet.
Hopefully this works
This is what I see

Code: Select all

│                                                                                                                                                                                                                                            │
│            ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐         ┌──┐                                   ┌──┐         ┌──┐            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │  │         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            │▒▒│         │▒▒│         │▒▒│         │▒▒│         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │         │  │                                   │  │         │  │            │
│            ├──┤         ├──┤         └──┘         ├──┤         ├──┤         └──┘         ├──┤         ├──┤         ├──┤         ├──┤         ├──┤         └──┘         ├──┤       Disabled     Disabled       ├──┤         └──┘            │
│            │OO│         │OO│                      │OO│         │MM│                      │MM│         │MM│         │MM│         │MM│         │MM│                      │MM│                                   │MM│                         │
│            └──┘         └──┘                      └──┘         └──┘                      └──┘         └──┘         └──┘         └──┘         └──┘                      └──┘                                   └──┘                         │
│            100         78<>78      100<>100     100<>100       0<>0         0<>0         0<>0          0            0           0<>0         0<>0         0<>0         0<>0                                   0<>0         0<>0            │
│           Master     Headphone       PCM         Front      Front Mic   Front Mic Bo   Surround      Center        LFE          Side         Line      Line Boost      Beep     Auto-Mute Mo Loopback Mix   Rear Mic  <Rear Mic Boo>       
amixer set Line toogle muted the Line column but did nothing. Speaker sound remained
amixer set Headphone toggle muted Master, Headphone, and Front. Again only unmuted Headphone
amixer set Master toggle, like Headphone, muted all 3. Again, only unmuted Master
shockedquartz
Level 1
Level 1
Posts: 25
Joined: Tue Dec 17, 2019 3:31 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by shockedquartz »

I don't know if this helps but this is what i see when music is playing with

Code: Select all

pacmd list-sinks

Code: Select all

2 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1>
OMITTED
	active port: <hdmi-output-1>
  * index: 1
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: 
	priority: 9039
	volume: front-left: 34394 /  52% / -16.80 dB,   front-right: 34394 /  52% / -16.80 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 69.16 ms
	max request: 14 KiB
	max rewind: 64 KiB
	monitor source: 1
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 4
	configured latency: 75.00 ms; range is 0.50 .. 341.33 ms
	card: 1 <alsa_card.pci-0000_00_1f.3>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1150 Analog"
		alsa.id = "ALC1150 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 0xdf340000 irq 134"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a170"
		device.product.name = "Sunrise Point-H HD Audio"
		device.form_factor = "internal"
		device.string = "front:0"
		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"
		alsa.mixer_name = "Realtek ALC1150"
		alsa.components = "HDA:10ec0900,1462f998,00100001"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
			properties:
				device.icon_name =
I checked my Mobo manual. 'Line-out' is also labelled 'Front Speaker Out'
Back panel 6
Mic in | Line-Out/Front Speaker Out | Line Ine
Side Speaker Out | Center/Sub out | Rear Speaker Out
Last edited by shockedquartz on Sun Dec 22, 2019 10:03 pm, edited 1 time in total.
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

I know there's a better way to accomplish this, but it means editing a bunch of files in /usr/share/pulseaudio/alsa-mixer/paths/ that could take forever to figure out the right combination of edits so I'd rather continue on the present path.

Use alsamixer to set everything working again, then try this combination to see if mutes the headphones and keeps the speakers working:

Code: Select all

amixer set Headphone toggle
amixer set Front toggle
amixer set Master toggle
At first the speakers will stop if sound is presently playing until you get everything entered, but I'm hoping for success in the end.

Also, I should ask, how are these speakers connected?
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

Ahhhhhhhh. You're using HDMI for sound, except when listening on headphones, correct? Nevermind, I get it now.
shockedquartz
Level 1
Level 1
Posts: 25
Joined: Tue Dec 17, 2019 3:31 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by shockedquartz »

MrEen wrote:
Sun Dec 22, 2019 10:03 pm
I know there's a better way to accomplish this, but it means editing a bunch of files in /usr/share/pulseaudio/alsa-mixer/paths/ that could take forever to figure out the right combination of edits so I'd rather continue on the present path.

Use alsamixer to set everything working again, then try this combination to see if mutes the headphones and keeps the speakers working:

Code: Select all

amixer set Headphone toggle
amixer set Front toggle
amixer set Master toggle
At first the speakers will stop if sound is presently playing until you get everything entered, but I'm hoping for success in the end.

Also, I should ask, how are these speakers connected?
I can't believe what a mess this has turned out to be. I wonder if this is a Cinnamon thing

I edited my above post to describe the PC back sound panel. Speakers are on Line-Out/Front Speak Out (green)
Headphones are connected to the front Mic/Headphone RCAs.

That command combo left the heaphones muted and no sound. Master and Front do NOT show muted by no sound from speakers.

EDIT: The Speakers in these monitors are awful. I wish I could use the HDMI sound.
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

shockedquartz wrote:
Sun Dec 22, 2019 10:09 pm
EDIT: The Speakers in these monitors are awful. I wish I could use the HDMI sound.
If the speakers are part of the monitor, then it is using HDMI, unless there's an audio cable going to your Line/Front jack.
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

Now I'm starting to confuse myself!
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

shockedquartz wrote:
Sun Dec 22, 2019 10:09 pm

That command combo left the heaphones muted and no sound. Master and Front do NOT show muted by no sound from speakers.
I've seen this reported before on other forums. I think I'll need to give this some more thought before we try anything else. Although, see if unmuting the Line column in alsamixer gets the speakers working again.
shockedquartz
Level 1
Level 1
Posts: 25
Joined: Tue Dec 17, 2019 3:31 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by shockedquartz »

Got it.
Youtube... da tubez
https://www.youtube.com/watch?v=wsOLyxJRPZI

Install pavucontrol (GTK+) from sw manager. Works like a charm.

Hopefully this will get some attention in a later versions
TYVM for your help.
Have a nice Holiday if you're in that part of the world.
:)
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

shockedquartz wrote:
Sun Dec 22, 2019 10:09 pm
I can't believe what a mess this has turned out to be. I wonder if this is a Cinnamon thing
No, this is a pulseaudio/alsa/yoursoundcard/yourbios thing. In some setups, this is an easy thing to do, while in others it's almost impossible. I believe yours is right in the middle. It's going to be a bit of work to find the right combo, but then a simple little script can be written to change back and forth, which can be added to a keyboard shortcut.
User avatar
MrEen
Level 22
Level 22
Posts: 15316
Joined: Mon Jun 12, 2017 8:39 pm

Re: 19.2 Cinnamon independant headphones/speakers?

Post by MrEen »

shockedquartz wrote:
Sun Dec 22, 2019 10:30 pm
Got it.
Youtube... da tubez
https://www.youtube.com/watch?v=wsOLyxJRPZI

Install pavucontrol (GTK+) from sw manager. Works like a charm.

Hopefully this will get some attention in a later versions
TYVM for your help.
Have a nice Holiday if you're in that part of the world.
:)
ROFL! Why didn't I think of that??? Actually, I didn't expect it to change the outputs properly after disabling Auto-Mute Mode, but, so be it.

Nice work finding your own solution!

Happy Holidays! :D
Post Reply

Return to “Sound, Multimedia, & Codecs”