在 12.10 中暂停后恢复时没有声音

jas*_*nes 8 sound suspend alsa 12.10

该问题已在 12.10 内开始。在它完美运行之前。现在,即使重新启动 alsa 也不起作用,我必须重新启动。

请详细询问。我正在运行 Ubuntu 12.10,带有 gnome 3.6 的 unity DE,没有第三方驱动程序。

谢谢

这里有sudo lshw输出:http : //pastebin.com/vh3SGcZa


我试过删除和读取音频内核模块 - 但是

不能sudo modprobe -r snd_hda_intel。它给FATAL: Module snd_hda_intel is in use

这里有/etc/modprobe.d/alsa-base.conf内容:http : //pastebin.com/yvArB2ex

我的笔记本型号是 HP 6730s


/var/log/syslog我发现以下内容:

kernel: [   33.847111] pci_pm_runtime_suspend(): azx_runtime_suspend+0x0/0x40 [snd_hda_intel] returns -11
Run Code Online (Sandbox Code Playgroud)

cat /sys/module/snd_hda_intel/parameters/power_save给予0 cat /sys/bus/pci/devices/0000\:00\:1b.0/power/control给予on

pacmd list-sinks

Welcome to PulseAudio! Use "help" for usage information.
>>> 1 sink(s) available.
  * index: 0
    name: <alsa_output.pci-0000_00_1b.0.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: 0: 100% 1: 100%
            0: 0,00 dB 1: 0,00 dB
            balance 0,00
    base volume: 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 ch 2 48000 Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 1,00 .. 341,33 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 4
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "AD198x Analog"
        alsa.id = "AD198x Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "HDA Intel"
        alsa.long_card_name = "HDA Intel at 0xd8900000 irq 49"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.name = "82801I (ICH9 Family) HD Audio Controller"
        device.form_factor = "internal"
        device.string = "front:0"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Stereo analogico"
        device.description = "Audio interno Stereo analogico"
        alsa.mixer_name = "Analog Devices AD1984A"
        alsa.components = "HDA:11d4194a,103c3614,00100400 HDA:11c11040,103c1378,00100200"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-output: Uscita analogica (priority 9900, available: unknown)
            properties:

    active port: <analog-output>
Run Code Online (Sandbox Code Playgroud)

Hck*_*ckr 1

您是否尝试过以下操作?

sudo gedit /etc/pm/sleep.d/50alsa
Run Code Online (Sandbox Code Playgroud)

将以下行添加到文件中。

case "$1" in
        hibernate|suspend)
                # Stopping is not required
                ;;
        thaw|resume)
                /sbin/alsa force-reload
                ;;
        *) exit $NA
                ;;
esac
Run Code Online (Sandbox Code Playgroud)

Ctrl+S保存该文件,然后使用以下命令使该文件可执行。

sudo chmod +x /etc/pm/sleep.d/50alsa
Run Code Online (Sandbox Code Playgroud)


小智 0

日志中的错误似乎表明暂停声卡时出现问题。您是否检查过Linux是否设置为暂停声卡,或者是否禁用了省电功能?阅读有关该主题的几页内容,我认为以下信息可能会有所帮助。

检查 HDA-Intel 驱动程序中的省电情况:

cat /sys/module/snd_hda_intel/parameters/power_save
Run Code Online (Sandbox Code Playgroud)

https://lesswatts.org/tips/misc.php

使用 PCI 接口检查省电选项:

cat /sys/bus/pci/devices/*/power/control  # '*' should match the sound card's PCI Address, as listed in 'lshw'
Run Code Online (Sandbox Code Playgroud)

检查声卡当前状态,根据Pulse Audio:

pacmd list-sinks     # Look for 'suspend', 'suspend-cause' and 'alsa.card_name'
Run Code Online (Sandbox Code Playgroud)

http://en.wikibooks.org/wiki/Configuring_Sound_on_Linux/Pulse_Audio/Testing