You are not logged in.

#1 2017-07-02 17:04:51

kosbar
Member
Registered: 2017-07-02
Posts: 12

[SOLVED] No sound in any browser (Chromium Opera Firefox).

I have two users at my PC (one of them root) and suddenly main user lost sound at browsers, mplayer plays video with sound, but not any of three my browsers plays sound!
If I login by root -- it's all fine.
Where I should to dig it?

Last edited by kosbar (2017-07-03 18:41:51)

Offline

#2 2017-07-02 17:24:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

Something will be blocking access to your audio devices, use

sudo fuser -v /dev/snd/*

to find out which application that is.

Offline

#3 2017-07-02 17:26:19

skeevy420
Member
Registered: 2017-03-13
Posts: 35

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

Well, you could start by posting what audio system you use (Jack, Pulse, Alsa, Oss, etc) and then you might be able to be helped because we'll at least know what logs to suggest and what verbose output might be helpful.

Offline

#4 2017-07-02 17:36:46

kosbar
Member
Registered: 2017-07-02
Posts: 12

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

skeevy420 wrote:

Well, you could start by posting what audio system you use (Jack, Pulse, Alsa, Oss, etc) and then you might be able to be helped because we'll at least know what logs to suggest and what verbose output might be helpful.

Alsa

V1del wrote:

Something will be blocking access to your audio devices, use

sudo fuser -v /dev/snd/*

to find out which application that is.

And I get this:
                                USER        PID ACCESS COMMAND
/dev/snd/controlC0:  root       1906 F.... pulseaudio
                                 kosbar   2113 F.... pulseaudio
/dev/snd/controlC1:  root       1906 F.... pulseaudio
                                 kosbar   2113 F.... pulseaudio
/dev/snd/controlC2:  root       1906 F.... pulseaudio
                                 kosbar   2113 F.... pulseaudio

Last edited by kosbar (2017-07-02 17:42:14)

Offline

#5 2017-07-02 17:48:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

What are you doing that you start a root owned pulseaudio? log out of root/and maybe

kill 1906

first, into your normal user account and open a browser try to play something and repost the output of that command. Pulseaudio shouldn't be running as your root user. have you added it into some autostart file somewhere?

And please post command outputs in [ code ] tags. You might also want to post

uname -a

Offline

#6 2017-07-02 18:05:07

kosbar
Member
Registered: 2017-07-02
Posts: 12

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

Okay, without root login "fuser -v /dev/snd/*" looks like:

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  kosbar      437 F.... pulseaudio
/dev/snd/controlC1:  kosbar      437 F.... pulseaudio
/dev/snd/controlC2:  kosbar      437 F.... pulseaudio

and with Chromium with videoplay (without sound) in it:

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  kosbar      437 F.... pulseaudio
/dev/snd/controlC1:  kosbar      437 F.... pulseaudio
/dev/snd/controlC2:  kosbar      437 F.... pulseaudio
/dev/snd/pcmC2D7p:   kosbar      437 F...m pulseaudio

uname -a:

Linux kosbar.ru 4.11.6-1-ARCH #1 SMP PREEMPT Sat Jun 17 08:19:42 CEST 2017 x86_64 GNU/Linux

Last edited by kosbar (2017-07-02 18:05:32)

Offline

#7 2017-07-02 18:07:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

these do look correct (although you should explicitly run the fuser command as root), have you made sure that your card isn't simply muted? What's the output of

pacmd list-sinks
pacmd list-sink-inputs

Offline

#8 2017-07-02 18:22:43

kosbar
Member
Registered: 2017-07-02
Posts: 12

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

V1del wrote:

these do look correct (although you should explicitly run the fuser command as root), have you made sure that your card isn't simply muted? What's the output of

pacmd list-sinks
pacmd list-sink-inputs

It's not muted cause I can play video files with audio!
So here is
"pacmd list-sinks" output:

2 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9050
	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: 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 .. 1999.82 ms
	card: 0 <alsa_card.pci-0000_01_00.1>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 1"
		alsa.id = "HDMI 1"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "7"
		alsa.card = "2"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xfe080000 irq 19"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card2"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0e0a"
		device.product.name = "GK104 HDMI Audio Controller"
		device.string = "hdmi:2,1"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo-extra1"
		device.profile.description = "Digital Stereo (HDMI 2)"
		device.description = "GK104 HDMI Audio Controller Digital Stereo (HDMI 2)"
		alsa.mixer_name = "Nvidia GPU 40 HDMI/DP"
		alsa.components = "HDA:10de0040,15691189,00100100"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "2243W
       "
	active port: <hdmi-output-1>
    index: 1
	name: <alsa_output.pci-0000_00_14.2.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: 9959
	volume: front-left: 2732 /   4% / -82.80 dB,   front-right: 21701 /  33% / -28.80 dB
	        balance 0.87
	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: 1
	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 .. 1999.82 ms
	card: 1 <alsa_card.pci-0000_00_14.2>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfe200000 irq 16"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:14.2"
		sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "780d"
		device.product.name = "FCH Azalia Controller (F2A85-M Series)"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		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 ALC887-VD"
		alsa.components = "HDA:10ec0887,10438444,00100302"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
			properties:
				
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-lineout>

and "pacmd list-sink-inputs":

0 sink input(s) available.

Last edited by kosbar (2017-07-02 18:23:11)

Offline

#9 2017-07-02 18:43:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

The while playing something back part was still  relevant. If you are intending to play back on your analog card as opposed to your HDMI card, your volume is incredibly low on your analog card you might want to check and fix that in pavucontrol.

As for being able to play back video files, depending on the player you are using you might be bypassing pulseaudio and hence won't have it's volumes applied.

Offline

#10 2017-07-03 05:24:37

kosbar
Member
Registered: 2017-07-02
Posts: 12

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

V1del wrote:

The while playing something back part was still  relevant. If you are intending to play back on your analog card as opposed to your HDMI card, your volume is incredibly low on your analog card you might want to check and fix that in pavucontrol.

As for being able to play back video files, depending on the player you are using you might be bypassing pulseaudio and hence won't have it's volumes applied.

Thank you for pavucontrol! Just install it and push "Set as fallback" for my audio-card!
Only one question how I can do it at console, which command?
And how it's happened.

Last edited by kosbar (2017-07-03 08:27:15)

Offline

#11 2017-07-03 10:04:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,844

Re: [SOLVED] No sound in any browser (Chromium Opera Firefox).

These switch-arounds of the default/fallback sink can occasionally happen on kernel/ALSA update, because they changed some of the identifiers that pulse uses slightly, can be fixed in pavucontrol or with (directly from your example)

pacmd set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo #Notice the sink name from the pacmd list-sinks output

If this is solved for you, please mark your thread as [SOLVED] or similar by editing the title of your initial post.

Offline

Board footer

Powered by FluxBB