laubster
Posts: 4
Joined: Wed Aug 23, 2017 7:33 pm

can't stop sound in another user's session

Thu Aug 24, 2017 7:25 pm

Hi - new Solus3(gnome) desktop user here, and I'm loving what I'm seeing, but I've hit a quirk with sound. Scenario: wife & kid have non-administrative accounts; account passwords are not shared. Normal sound device is some analog speakers, "Line Out - Built-in Audio". Kid watches youtube videos with autoplay=on (thus continuously uses soundcard). Neighbor rings doorbell, kid answers door without stopping video, and runs off to play. Screensaver lock kicks in, video still playing. Wife logs in using "Log in as another user", but kid's video is still still blaring away; wife doesn't have an obvious way to stop it, and she can't hear her own sound files. (Until kid returns and stops/pauses youtube, wife's settings shows the only sound device is "Dummy Output").

I see how it makes sense to keep playing even after session locks (consider playing a long CD via mpv while working across the room), but shouldn't a user with control over the console get control over the soundcard? What are my immediate options for this situation? Telling my wife & kid to remember to stop all soundcard-using apps before walking away isn't going to be reliable, and telling them to reboot is a habit I'd rather not get them into.

$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/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:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (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.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4)
00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (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 H77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 Multimedia video controller: Conexant Systems, Inc. CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb (rev 04)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak]
04:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)

User avatar
Justin
Development Team
Posts: 3616
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: can't stop sound in another user's session

Fri Aug 25, 2017 1:16 am

I'm not sure you can. Just need to teach the other users to pause media if they're walking away from the PC.

User avatar
Justin
Development Team
Posts: 3616
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: can't stop sound in another user's session

Fri Aug 25, 2017 1:16 am

The only other option is to kill the program playing it if you can guess it. ie if they're playing videos in firefox, find the PID of firefox for that user and kill it. But you also kill their browsing session so...

laubster
Posts: 4
Joined: Wed Aug 23, 2017 7:33 pm

Re: can't stop sound in another user's session

Sat Aug 26, 2017 11:09 pm

Thanks, Justin. If it ever becomes a big enough problem with us, I'll try to figure out how Ubuntu 16.04 does it. (It plays while the screen locked, but as soon as you click on another user from the lock screen to get to lightdm, it suspends all sound.)

User avatar
Justin
Development Team
Posts: 3616
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: can't stop sound in another user's session

Sun Aug 27, 2017 2:57 am

laubster wrote:
Sat Aug 26, 2017 11:09 pm
Thanks, Justin. If it ever becomes a big enough problem with us, I'll try to figure out how Ubuntu 16.04 does it. (It plays while the screen locked, but as soon as you click on another user from the lock screen to get to lightdm, it suspends all sound.)
Ah interesting. We might see if we can find out what does that.

laubster
Posts: 4
Joined: Wed Aug 23, 2017 7:33 pm

Re: can't stop sound in another user's session

Sun Jan 14, 2018 7:30 pm

(Closing the loop for posterity...) I suspect I now know the problem: I had assigned the users in the "audio" group. I can't test it right now, but I'm pretty confident that by removing them from that group, the problem would go away.

Why on earth would I make that group assignment? I need to regularly maintain a few different machines, so I keep a small set of scripts that performs standard setup - creating users, installing my user preferences, installing the packages I regularly use (audio-related, keepass, +), etc. At one time, I used an OS where the users had to be in the audio group for things to work; it got into my script, and had been there since. I read somewhere on some forum not too long ago that in most cases users should not be assigned to the audio group.

sunnyflunk
Development Team
Posts: 2963
Joined: Sun Mar 13, 2016 11:35 pm

Re: can't stop sound in another user's session

Mon Jan 22, 2018 1:00 am

laubster wrote:
Sun Jan 14, 2018 7:30 pm
I read somewhere on some forum not too long ago that in most cases users should not be assigned to the audio group.
audio is a default group, so users should be part of it (likely aren't when manually creating it from the terminal).

Return to “Hardware”