Chromium linux нет звука

Arch Linux

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)

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

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

Something will be blocking access to your audio devices, use

to find out which application that is.

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

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.

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

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.

Something will be blocking access to your audio devices, use

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)

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

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

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

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

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
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)

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

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

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

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

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: driver: 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 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: index: 1 name: driver: 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 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:

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

Источник

Читайте также:  Linux создание графических оболочек

Нет звука с Chromium в Ubuntu 19.10

Pulseaudio работает в режиме демона, и я могу воспроизводить звук через aplay, vlc и т. Д., Поэтому я знаю, что звук работает.

Вывод dmesg при запущенном Chrome указывает на то, что apparmor блокирует доступ к звуковому устройству:

[Mon Feb 24 16:54:34 2020] audit: type=1400 audit(1582581275.262:2277): apparmor="DENIED" operation="mkdir" profile="snap.chromium.chromium" name="/run/user/1000/" pid=16304 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 [Mon Feb 24 16:54:42 2020] audit: type=1400 audit(1582581283.250:2278): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [Mon Feb 24 16:54:42 2020] audit: type=1400 audit(1582581283.618:2279): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [Mon Feb 24 16:54:42 2020] audit: type=1400 audit(1582581283.618:2280): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [Mon Feb 24 16:54:42 2020] audit: type=1400 audit(1582581283.750:2281): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [Mon Feb 24 16:54:42 2020] audit: type=1400 audit(1582581283.750:2282): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [Mon Feb 24 16:58:48 2020] audit: type=1400 audit(1582581529.770:2284): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/dev/snd/controlC0" pid=16275 comm="chrome" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 

Я остановил apparmor через systemctl stop apparmor.

19 processes are in enforce mode. /snap/chromium/1036/usr/lib/chromium-browser/chrome (1227) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (1622) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (1633) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (1686) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (1690) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (3354) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (12295) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (12414) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (16471) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (17290) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (20617) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (22088) snap.chromium.chromium /snap/chromium/1036/usr/lib/chromium-browser/chrome (23416) snap.chromium.chromium 

Я пропустил нерелевантные процессы. Хромовая оснастка находится в принудительном режиме.

Я не верю, что проблема в pulseaudio, а в конфигурации хромированной кнопки. Очевидно, это блокирует доступ к звуковому устройству, как указано в журналах выше.

Читайте также:  Astra linux тонкий клиент

Источник

Оцените статью
Adblock
detector