Ubuntu12.04 耳机插孔无声音输出

Ubuntu12.04 耳机插孔无声音输出

我刚买了一台新的 ASUS u47vc 电脑。我已在它上面安装了 ubuntu 12.04 和 windows 7,没有任何问题。然而,有一个问题必须解决。我无法从音频插孔发出声音。

笔记本电脑的扬声器工作正常。它能用内置扬声器播放音乐和声音文件。但是,当我插入耳机(或外置扬声器)时,内置扬声器会静音(这是应该的),耳机里什么声音也没有。

以下是一些可能有帮助的输出:alsa 信息脚本: http://www.alsa-project.org/db/?f=82de5623cbdeeeae955cba02d7afe1a4b3fca965

希望这个问题能够得到解决!

先感谢您!!!

答案1

我偶尔也会遇到这种情况,跑步

alsactl restore 

总是能修复它(在 XPS 电脑上)

答案2

无法添加评论;因此这里有一个部分是问题的“答案”(我可能会删除它):

在安装过程中,我有时会遇到这个问题,为了解决这个问题,我进入声音设置并选择“输出音量”,然后OFF声音ON就正常了。


编辑:

你有没有尝试过

sudo apt-get install pavucontrol

运行pavucontrol并检查设置。即输出设备耳机并确保未静音。


编辑:

您是否已禁用自动生成?如果没有,pulseuadio 可能仍在运行(但已重新启动)。要检查 PulseAudio 守护程序是否正在运行,请执行以下操作:

pulseaudio --check && echo RUNNIG || echo DOWN

如果它正在运行并且一切正常,您应该检查系统日志文件以查看是否有任何提示故障的信息。作为一种黑客手段,如果只需要重新启动守护进程,则可以将其添加pulseaudio -k到启动以重新启动守护进程。

如果它正在运行而您想禁用它,则必须关闭自动生成。

禁用 PulseAudio

如果是不是运行时您可能会通过调试获得一些有用的信息。

如果您将这些设置临时添加到配置中,这也会很有用。

使用以下命令启动 pulseaudio

pulseaudio --start --log-level=4 --log-target=file:pulse.log
# Level 4 is debug 

然后开始一些调整:

tail -f pulse.log

拔掉插孔。记下最后一条日志条目;应该以类似以下内容结尾:

D  [alsa-sink] sink.c: Volume change to 52057 at 83909698687 was written 17 usec late

插入插孔;查找任何可以解释为什么没有声音的东西。例如,我的输出(工作)是:

D  [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged in
D  [pulseaudio] device-port.c: Setting port analog-output-speaker to status no
D  [pulseaudio] module-switch-on-port-available.c: finding port analog-output-speaker
D  [pulseaudio] device-port.c: Setting port analog-output-headphones to status yes
D  [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D  [pulseaudio] module-switch-on-port-available.c: finding port analog-output-headphones
D  [alsa-sink] alsa-mixer.c: Activating path analog-output-headphones
D  [alsa-sink] alsa-mixer.c: Path analog-output-headphones (Headphones), direction=1, priority=90, probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, max_volume=31, min_dB=-93, max_dB=0
D  [alsa-sink] alsa-mixer.c: Element Master, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=yes
D  [alsa-sink] alsa-mixer.c: Element Headphone, direction=1, switch=1, volume=0, volume_limit=-1, enumeration=0, required=0, required_any=4, required_absent=0, mask=0x0, n_channels=0, override_map=yes
D  [alsa-sink] alsa-mixer.c: Element Speaker, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=no
D  [alsa-sink] alsa-mixer.c: Element PCM, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes
D  [alsa-sink] alsa-mixer.c: Jack Front Headphone, alsa_name='Front Headphone Jack', detection possible
D  [alsa-sink] alsa-mixer.c: Jack Headphone, alsa_name='Headphone Jack', detection unavailable
I  [alsa-sink] alsa-sink.c: Successfully enabled deferred volume.
I  [alsa-sink] alsa-sink.c: Hardware volume ranges from -93.00 dB to 0.00 dB.
I  [alsa-sink] alsa-sink.c: Fixing base volume to 0.00 dB
I  [alsa-sink] alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
I  [alsa-sink] alsa-sink.c: Using hardware mute control.
I  [pulseaudio] sink.c: Changed port of sink 0 "alsa_output.pci-0000_00_1b.0.analog-stereo" to analog-output-headphones
I  [pulseaudio] module-device-restore.c: Restoring volume for sink alsa_output.pci-0000_00_1b.0.analog-stereo.
D  [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D  [alsa-sink] alsa-sink.c: Requested volume: 0: 100% 1: 100%
D  [alsa-sink] alsa-sink.c:            in dB: 0: 0.00 dB 1: 0.00 dB
D  [alsa-sink] alsa-sink.c: Got hardware volume: 0: 100% 1: 100%
D  [alsa-sink] alsa-sink.c:               in dB: 0: 0.00 dB 1: 0.00 dB
D  [alsa-sink] alsa-sink.c: Calculated software volume: 0: 100% 1: 100% (accurate-enough=yes)
D  [alsa-sink] alsa-sink.c:                      in dB: 0: 0.00 dB 1: 0.00 dB
D  [alsa-sink] sink.c: Volume going up to 65536 at 83942385195
I  [pulseaudio] module-devic2 events suppRestoring mute state for sink alsa_output.pci-0000_00_1b.0.analog-stereo.
D  [alsa-sink] sink.c: Next volume change in 17483 usec
D  [alsa-sink] alsa-sink.c: Requested to rewind 65536 bytes.
D  [alsa-sink] alsa-sink.c: Limited to 2824 bytes.
D  [alsa-sink] alsa-sink.c: before: 706
D  [alsa-sink] alsa-sink.c: after: 706
D  [alsa-sink] alsa-sink.c: Rewound 2824 bytes.
D  [alsa-sink] sink.c: Processing rewind...
D  [alsa-sink] sink.c: latency = 1358
D  [alsa-sink] sink.c: Next volume change in 1358 usec
D  [alsa-sink] sink-input.c: Have to rewind 2824 bytes on render memblockq.
D  [alsa-sink] source.c: Processing rewind...
D  [alsa-sink] sink.c: Next volume change in 1249 usec
D  [alsa-sink] sink.c: Next volume change in 1221 usec
D  [alsa-sink] sink.c: Next volume change in 1201 usec
D  [alsa-sink] sink.c: Next volume change in 872 usec
D  [alsa-sink] sink.c: Next volume change in 842 usec
D  [alsa-sink] sink.c: Next volume change in 819 usec
D  [alsa-sink] sink.c: Next volume change in 799 usec
D  [alsa-sink] sink.c: Next volume change in 764 usec
D  [alsa-sink] sink.c: Next volume change in 744 usec
D  [alsa-sink] sink.c: Volume change to 65536 at 83942369199 was written 0 usec late

另一件值得检查/破解的事情是gstreamer-propertiesAlt+ F2 gstreamer-properties Enter)。

如果你不是想要 pulseaudio 您可以尝试 ie jack。

答案3

我在双启动(Ubuntu 16 / Windows 8.1)时遇到了同样的问题

这是我所做的,希望它能有所帮助:

  • 关闭计算机并启动 Windows
  • 稍微改变一下 Windows 中的声音设置(音量原来是 0,我把它调高了)
  • 在 Ubuntu 上重启计算机 -> 我的耳机里可以发出声音了。

答案4

在我的戴尔笔记本电脑上,我可以通过取消内置麦克风的静音(在输入设备下)来解决问题。似乎在硬件上,静音麦克风会自动静音耳机。

有些程序(例如 Audacity)在启动时似乎会将其静音,所以我必须定期取消静音。

相关内容