Отсутствует звук при выходе из ждущего режима (Dell Inspiron 3573-5451)

Автор vkrivykh, 11 июля 2019, 05:38:40

« назад - далее »

0 Пользователи и 3 гостей просматривают эту тему.

vkrivykh

Доброго времени суток!

При выходе системы из ждущего режима пропадает звук. Причем такая ситуация происходит при физическом закрытии крышки ноутбука (в менеджере питания указана опция При закрытии крышки ноутбука "Ждущий режим"). Если переводить систему в ждущий режим не закрывая крышки, то по возвращении из него звук присутствует.

uname -a
Linux I15 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

lspci -k

00:00.0 Host bridge: Intel Corporation Device 31f0 (rev 03)
Subsystem: Dell Device 083e
00:00.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Dynamic Platform and Thermal Framework Processor Participant (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Dynamic Platform and Thermal Framework Processor Participant
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device
00:00.3 System peripheral: Intel Corporation Device 3190 (rev 03)
Subsystem: Dell Device 083e
00:02.0 VGA compatible controller: Intel Corporation Device 3185 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: i915
Kernel modules: i915
00:0e.0 Audio device: Intel Corporation Device 3198 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl
00:0f.0 Communication controller: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Trusted Execution Engine Interface
Kernel driver in use: mei_me
Kernel modules: mei_me
00:12.0 SATA controller: Intel Corporation Device 31e3 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: ahci
Kernel modules: ahci
00:14.0 PCI bridge: Intel Corporation Device 31d6 (rev f3)
Kernel driver in use: pcieport
00:14.1 PCI bridge: Intel Corporation Device 31d7 (rev f3)
Kernel driver in use: pcieport
00:15.0 USB controller: Intel Corporation Device 31a8 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:16.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO I2C Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO I2C Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO I2C Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO I2C Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.2 Signal processing controller: Intel Corporation Device 31b0 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.3 Signal processing controller: Intel Corporation Device 31b2 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:17.0 Signal processing controller: Intel Corporation Device 31b4 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:17.1 Signal processing controller: Intel Corporation Device 31b6 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:17.2 Signal processing controller: Intel Corporation Device 31b8 (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:17.3 Signal processing controller: Intel Corporation Device 31ba (rev 03)
Subsystem: Dell Device 083e
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:18.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO UART Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:18.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO UART Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:18.3 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO UART Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO UART Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:19.0 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO SPI Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO SPI Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:19.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO SPI Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO SPI Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:19.2 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Serial IO SPI Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Serial IO SPI Host Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:1c.0 SD Host controller: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
00:1f.0 ISA bridge: Intel Corporation Device 31e8 (rev 03)
Subsystem: Dell Device 083e
00:1f.1 SMBus: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 03)
Subsystem: Dell Celeron/Pentium Silver Processor Gaussian Mixture Model
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
01:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
Subsystem: Dell QCA9377 802.11ac Wireless Network Adapter
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci


aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3204 Analog [ALC3204 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


dmesg --level=err,warn, после выхода из ждущего режима, когда отсутствует звук

[    0.000000] secureboot: Secure boot could not be determined (mode 0)
[    3.214534] wmi_bus wmi_bus-PNP0C14:00: WQBC data block query control method not found
[    3.378919] [drm] GuC: No firmware known for this platform!
[    3.378921] [drm] HuC: No firmware known for this platform!
[    3.432098] i2c_hid i2c-DELL083E:00: i2c-DELL083E:00 supply vdd not found, using dummy regulator
[    3.432112] i2c_hid i2c-DELL083E:00: i2c-DELL083E:00 supply vddl not found, using dummy regulator
[   11.629381] dell-smbios A80593CE-A997-11DA-B012-B622A1EF5492: WMI SMBIOS userspace interface not supported(0), try upgrading to a newer BIOS
[   12.385610] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:01:00.0.bin (-2)
[   12.385670] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   12.385742] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/cal-pci-0000:01:00.0.bin (-2)
[   12.388741] uvcvideo 1-5:1.0: Entity type for entity Extension 4 was not initialized!
[   12.388743] uvcvideo 1-5:1.0: Entity type for entity Extension 7 was not initialized!
[   12.388745] uvcvideo 1-5:1.0: Entity type for entity Processing 2 was not initialized!
[   12.388746] uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not initialized!
[   13.212997] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[   13.215865] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[   21.105988] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[   21.108929] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[   21.885082] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[   21.887962] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[  465.627363]  cache: parent cpu1 should not be sleeping
[  468.784124] snd_hda_intel 0000:00:0e.0: azx_get_response timeout, switching to polling mode: last cmd=0x20bf8100
[  469.792088] snd_hda_intel 0000:00:0e.0: No response from codec, disabling MSI: last cmd=0x20bf8100
[  470.804059] snd_hda_intel 0000:00:0e.0: azx_get_response timeout, switching to single_cmd mode: last cmd=0x20bf8100
[  470.804256] azx_single_wait_for_response: 3 callbacks suppressed
[  471.088425] snd_hda_codec_hdmi hdaudioC0D2: Unable to sync register 0x2f0d00. -5
[  471.344366] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x1f0e00. -5
[  471.662105] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x1f0e00. -5
[  471.689058] pcieport 0000:00:14.0: ASPM: current common clock configuration is broken, reconfiguring
[  471.733894] done.
[  472.001439] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:01:00.0.bin (-2)
[  472.001454] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/cal-pci-0000:01:00.0.bin (-2)
[  472.677349] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[  472.680021] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[  473.710726] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[  473.713498] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[  474.562064] ath10k_pci 0000:01:00.0: Unknown eventid: 118809
[  474.564905] ath10k_pci 0000:01:00.0: Unknown eventid: 90118
[  483.830278] azx_single_send_cmd: 474 callbacks suppressed
[  484.376751] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x1f0e00. -5
[  484.685442] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x1f0e00. -5
[  492.087266] azx_single_send_cmd: 252 callbacks suppressed


И вроде бы проблема полностью решается добавлением в /etc/modprobe.d/alsa-base.conf

options snd-hda-intel probe_mask=1


Но, после этого у меня пропадает возможность вывести звук по HDMI, т.к. в конфигурации устройств Pulse Audio, вывод на HDMI просто пропадает.

И еще, при выходе из ждущего режима (без добавления выше описанной опции), можно заметить, что Устройство вывода в Pulse Audio переключается на "Аналоговые наушники (plugged in)". При переключении на "Динамики", звук все равно отсутствует.

Буду благодарен а любую помощь.

ecc83

Выполняй по очереди:

sudo nano /etc/systemd/system/audio-resume.service

Вставляешь такой код:


[Unit]
Description=Restart audio at resume
After=suspend.target hibernate.target hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/audio-resume

[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target


Сохраняешь и выходишь.

Далее:

sudo nano /usr/local/bin/audio-resume

Вставляешь такой текст:


#!/bin/sh

sleep 5 && modprobe -r -f snd_hda_intel && sleep 2 && modprobe -i snd_hda_intel


Сохраняешь и выходишь.

Далее:

sudo chmod +x /usr/local/bin/audio-resume


sudo systemctl enable audio-resume.service
sudo systemctl start auio-resume.service


Проверяй.

vkrivykh

Спасибо за ответ.

При запуске службы:

июл 11 08:50:15 I15 sudo[1152]: pam_unix(sudo:session): session opened for user root by (uid=0)
июл 11 08:50:15 I15 systemd[1]: Starting Restart audio at resume...
-- Subject: Начинается запуск юнита audio-resume.service
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Начат процесс запуска юнита audio-resume.service.
июл 11 08:50:20 I15 audio-resume[1155]: modprobe: FATAL: Module snd_hda_intel is in use.
июл 11 08:50:20 I15 systemd[1]: audio-resume.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit audio-resume.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
июл 11 08:50:20 I15 systemd[1]: audio-resume.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit audio-resume.service has entered the 'failed' state with result 'exit-code'.
июл 11 08:50:20 I15 systemd[1]: Failed to start Restart audio at resume.
-- Subject: Ошибка юнита audio-resume.service
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Произошел сбой юнита audio-resume.service.
--
-- Результат: failed.

ecc83


vkrivykh

cat /etc/systemd/system/audio-resume.service

[Unit]
Description=Restart audio at resume
After=suspend.target hibernate.target hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/audio-resume

[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target


cat /usr/local/bin/audio-resume

#!/bin/sh

sleep 5 && modprobe -r -f snd_hda_intel && sleep 2 && modprobe -i snd_hda_intel

ecc83

Открой:

sudo nano /usr/local/bin/audio-resume

Измени название модуля. Вместо нижнего подчёркивания должны быть тире:

snd-hda-intel

После сохранения перегрузи ноут и посмотри:

sudo systemctl status audio-resume.service


vkrivykh

Заменил на

sleep 5 && modprobe -r -f snd-hda-intel && sleep 2 && modprobe -i snd-hda-intel


После перезапуска
sudo systemctl status audio-resume.service:

audio-resume.service - Restart audio at resume
   Loaded: loaded (/etc/systemd/system/audio-resume.service; enabled; vendor pre
   Active: inactive (dead)


При попытке запустить ошибка прежняя:

audio-resume[1667]: modprobe: FATAL: Module snd_hda_intel is in use.

ecc83

Не поддаётся модуль перезагрузке. Нужно подумать...

Пока отключи сервис:

sudo systemctl disable audio-resume.service

ecc83

После выхода из ждущего режима введи:

alsamixer

и посмотри как установлены ползунки громкости. Возможно они на нуле.

Если там порядок, тогда попробуй команду:

pulseaudio -k

vkrivykh

alsamixer показал один ползунок и он не на нуле
pulseaudio -k ничего в ответ не дал.

vkrivykh

Меня смущает, что звук пропадает вследствие закрытия крышки, а ни самого процесса перевода в ждущий режим.

ChubaDuba


ChubaDuba

По идее, если перезапустить демон PulseAudio
звук должен восстановиться:

# pulseaudio -k
# pulseaudio --start

ecc83

Цитата: vkrivykh от 11 июля 2019, 08:21:23pulseaudio -k ничего в ответ не дал.

В ответ ничего не должно быть. Мы ждём появления звука, его и нужно проверять после команды.

Ещё попробуй команду:

sudo alsactl init

vkrivykh