You are not logged in.

#1 2015-11-30 09:19:37

ichigo663
Member
Registered: 2015-11-12
Posts: 5

Firefox no sound when executing as a different user

Hello,

I created a second user account on my machine just to browse the web, everything is working fine except when I try to watch a video ( no sound ).

This is what firefox says when I open up a video:

2015-11-30 10:12:13: basic_code_modules.cc:70: ERROR: Module /usr/lib/firefox/liblgpllibs.so could not be stored
2015-11-30 10:12:13: basic_code_modules.cc:70: ERROR: Module /usr/lib/libsystemd.so.0 could not be stored
2015-11-30 10:12:13: basic_code_modules.cc:70: ERROR: Module /usr/lib/firefox/components/libdbusservice.so could not be stored
2015-11-30 10:12:13: basic_code_modules.cc:70: ERROR: Module /usr/lib/firefox/components/libmozgnome.so could not be stored
2015-11-30 10:12:13: basic_code_modules.cc:70: ERROR: Module /usr/lib/firefox/browser/components/libbrowsercomps.so could not be stored
[fresh] [warning] failed to parse configuration file /home/web_user/.config/freshwrapper.conf, trying /etc/freshwrapper.conf
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
NOT SANDBOXED
Vector smash protection is enabled.
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
ATTENTION: default value of option force_s3tc_enable overridden by environment.

Any ideas on how to solve this? It seems that the user I created does not have permission to use the audio card, but how can I give it to him?

Offline

#2 2015-11-30 10:17:00

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Firefox no sound when executing as a different user

Are you using alsa directly or pulseaudio?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2015-11-30 10:17:38

ichigo663
Member
Registered: 2015-11-12
Posts: 5

Re: Firefox no sound when executing as a different user

I'm using pulseaudio.

Offline

#4 2015-11-30 10:41:40

The Loko
Member
From: Spain
Registered: 2014-07-23
Posts: 103

Re: Firefox no sound when executing as a different user

I would check Firefox volume on pavucontrol.

Offline

#5 2015-11-30 10:44:22

mhoogland
Member
From: Amsterdam
Registered: 2015-08-09
Posts: 11

Re: Firefox no sound when executing as a different user

-Try running "pavucontrol" in a Terminal as the second user and check if the volumes are up.
-Add your second user to the groups video and audio using sudo gpasswd -a "user" "group"

Offline

#6 2015-11-30 11:03:49

ichigo663
Member
Registered: 2015-11-12
Posts: 5

Re: Firefox no sound when executing as a different user

I've already tried the group thing, but it doesn't work.

From pavucontrol there's nothing I can do, strangely even if firefox is playing a video it doesn't appear as a playback stream.

Offline

#7 2015-11-30 11:09:03

mhoogland
Member
From: Amsterdam
Registered: 2015-08-09
Posts: 11

Re: Firefox no sound when executing as a different user

https://bbs.archlinux.org/viewtopic.php?id=152824 > Did you re-login / reboot after adding your second user to the group video /audio?
If there is nothing important in your user directory, try removing firefox's config files and start firefox again.

Offline

#8 2015-11-30 11:33:02

ichigo663
Member
Registered: 2015-11-12
Posts: 5

Re: Firefox no sound when executing as a different user

Yes I did re-login, but did not help.

Offline

#9 2015-11-30 11:39:31

mhoogland
Member
From: Amsterdam
Registered: 2015-08-09
Posts: 11

Re: Firefox no sound when executing as a different user

Do other applications running on your second account have access to sound?

Offline

#10 2015-11-30 14:40:17

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Firefox no sound when executing as a different user

What is the output of

loginctl show-session $XDG_SESSION_ID

Offline

#11 2015-11-30 14:51:32

MoSal
Member
Registered: 2015-09-23
Posts: 32

Re: Firefox no sound when executing as a different user

Offline

#12 2015-11-30 16:39:22

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Firefox no sound when executing as a different user

You will have more luck if you use the module-native-protocol-tcp of pulseaudio and then on the environment of your firefox user point it to use the port where module-native-protocol-tcp is listening.

Most probably you will want to script things so you launch firefox from your user account so it is easier to find out on which port module-native-protocol-tcp is listening. This will require you to fiddle with the sudoers config file so you can su to your ff user and launch firefox and only firefox without asking for password.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB