You are not logged in.

#1 2020-08-22 17:15:15

kehongying
Member
Registered: 2020-06-01
Posts: 12

[SOLVED] Chromium can't play the audio successfully.

After I upgrade my package a few days ago, my chromium can't play the music suddenly. But my speaker is working well since there is sound when I increase or decrease my volume.
Then I try to play with another browser (chrome). It can play well.

Here are some output with journal -xe | grep chromium

Aug 23 01:08:09 KeHongYing org_kde_powerdevil[1185]: powerdevil: Scheduling inhibition from ":1.24" "/usr/lib/chromium/chromium" with cookie 9 and reason "Video Wake Lock"
Aug 23 01:08:09 KeHongYing org_kde_powerdevil[1185]: powerdevil: Scheduling inhibition from ":1.84" "/usr/lib/chromium/chromium" with cookie 10 and reason "Video Wake Lock"
Aug 23 01:08:10 KeHongYing org_kde_powerdevil[1185]: powerdevil: Scheduling inhibition from ":1.85" "/usr/lib/chromium/chromium" with cookie 11 and reason "Playing audio"
Aug 23 01:08:14 KeHongYing org_kde_powerdevil[1185]: powerdevil: Enforcing inhibition from ":1.24" "/usr/lib/chromium/chromium" with cookie 9 and reason "Video Wake Lock"
Aug 23 01:08:14 KeHongYing org_kde_powerdevil[1185]: powerdevil: Enforcing inhibition from ":1.84" "/usr/lib/chromium/chromium" with cookie 10 and reason "Video Wake Lock"
Aug 23 01:08:15 KeHongYing org_kde_powerdevil[1185]: powerdevil: Enforcing inhibition from ":1.85" "/usr/lib/chromium/chromium" with cookie 11 and reason "Playing audio"

I'm wondering whether my powerdevil broken.
In https://bbs.archlinux.org/viewtopic.php?id=258269, it mentions that the pipewire3.8 might not work well. But it still can't work despite I downgrade the package.

Does anyone have the same problem?

Last edited by kehongying (2020-08-29 16:14:10)

Offline

#2 2020-08-22 19:43:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,064

Re: [SOLVED] Chromium can't play the audio successfully.

These messages are normal and unproblematic and I cannot confirm any issue here.

What do you get for

sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs

during this.

Offline

#3 2020-08-23 07:28:12

kehongying
Member
Registered: 2020-06-01
Posts: 12

Re: [SOLVED] Chromium can't play the audio successfully.

V1del wrote:

These messages are normal and unproblematic and I cannot confirm any issue here.

What do you get for

sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs

during this.

The following are the outputs.

[kehongying@KeHongYing ~]$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  kehongying   1192 F.... pulseaudio
/dev/snd/controlC1:  kehongying   1192 F.... pulseaudio
/dev/snd/pcmC0D0p:   kehongying   1192 F...m pulseaudio
[kehongying@KeHongYing ~]$ pacmd list-sinks
1 sink(s) available.
  * index: 0
        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: (none)
        priority: 9039
        volume: front-left: 19658 /  30% / -31.38 dB,   front-right: 19658 /  30% / -31.38 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 21.74 ms
        max request: 4 KiB
        max rewind: 4 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 2
        configured latency: 23.22 ms; range is 0.50 .. 2000.00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC236 Analog"
                alsa.id = "ALC236 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 0xa4518000 irq 144"
                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 = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                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 ALC236"
                alsa.components = "HDA:10ec0236,17aa3921,00100002 HDA:8086280b,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-headphones>
[kehongying@KeHongYing ~]$ pacmd list-sink-inputs
1 sink input(s) available.
    index: 10
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
        volume: front-left: 65698 / 100% / 0.06 dB,   front-right: 65698 / 100% / 0.06 dB
                balance 0.00
        muted: yes
        current latency: 49.34 ms
        requested latency: 23.22 ms
        sample spec: float32le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        resample method: copy
        module: 9
        client: 12 <Chromium>
        properties:
                application.icon_name = "chromium-browser"
                media.name = "Playback"
                application.name = "Chromium"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "33"
                application.process.id = "2900"
                application.process.user = "kehongying"
                application.process.host = "KeHongYing"
                application.process.binary = "chromium"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "dd2542f519874b1f80ab0915c97bc4df"
                application.process.session_id = "2"
                module-stream-restore.id = "sink-input-by-application-name:Chromium"

Last edited by kehongying (2020-08-23 07:30:06)

Offline

#4 2020-08-23 16:35:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,064

Re: [SOLVED] Chromium can't play the audio successfully.

Your chromium is muted... double check your volume mixer. Use pavucontrol in doubt.

Offline

#5 2020-08-26 15:22:17

kehongying
Member
Registered: 2020-06-01
Posts: 12

Re: [SOLVED] Chromium can't play the audio successfully.

Thanks, the problem has been solved. But I don't know what I do...

Maybe I touch something unintentionally. It works well after I adjust the volume in system settings.

Offline

#6 2020-08-26 16:22:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,064

Re: [SOLVED] Chromium can't play the audio successfully.

That's likely given the evidence so far, please mark as [SOLVED] by editing the title in the first post.

Offline

Board footer

Powered by FluxBB