声音不能正常切换
Tofloor
poster avatar
mejoy69
deepin
2020-12-01 03:15
Author

最近几天,我的deepin突然遇到一个问题,用hdmi接了电视后,声音突然就只能到电视机了上。在声音设置里面根本无法进行切换。点了扬声器后,完全没有声音。

如果要把声音回到电脑,必须先打开电视,等电视有声音后,再拔掉hdmi线,声音才会回来。

我还尝试过拔掉hdmi线,关机。再重启,电脑是没有声音的,只能打开电视,把hdmi线插上,然后等一会儿,点音量调节,等电视机有声音后,再拔掉hdmi线,扬声器就有声音了。

我重启进入win10,则扬声器是正常发声的。硬件上是没有问题的。就是deepin系统的音量的设置的切换问题。

我的机器是联想e480。而且之前没有问题。有什么办法将这部分重置或者重装。

Reply Favorite View the author
All Replies
piggyking
deepin
2020-12-01 18:07
#1

就是新版本声音选择根本没用,选了扬声器它自动给你切回HDMI。

不知道深度程序员哪根筋又没搭好。

Reply View the author
mejoy69
deepin
2020-12-02 03:19
#2
piggyking

就是新版本声音选择根本没用,选了扬声器它自动给你切回HDMI。

不知道深度程序员哪根筋又没搭好。

对的。连上hdmi后,都是自动跳到hdmi。如果不连就完全没有声音。

Reply View the author
Ziggy
deepin
2020-12-02 03:23
#3

试试降级内核回5.4.50

Reply View the author
mejoy69
deepin
2020-12-02 03:27
#4
Ziggy

试试降级内核回5.4.50

用uname看,现在版本号是5.4.70-amd64-desktop,怎么降级?

Reply View the author
mejoy69
deepin
2020-12-02 03:34
#5
mejoy69

用uname看,现在版本号是5.4.70-amd64-desktop,怎么降级?

$ sudo apt install linux-image-5.4.50-deepin-amd64
请输入密码
[sudo] hxin 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
linux-image-5.4.50-deepin-amd64 已经是最新版 (1.0.1-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

看上去这个内核又是在里面的。我搞不懂,能不能简介一下,或者给一个说明的网址?

Reply View the author
mejoy69
deepin
2020-12-02 03:50
#6
Ziggy

试试降级内核回5.4.50

$ uname -r
5.4.50-amd64-desktop

是这样吗?

这样退回去了还是不得行。一样的现象。应该还是声音驱动设置那块问题。不晓得是那个标志没有写回去,不能修改了。

Reply View the author
mejoy69
deepin
2020-12-02 03:54
#7

下面看到的情况,就是设置没有改

$ pacmd list-sinks
1 sink(s) available.
* index: 0
name:
driver:
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9030
volume: front-left: 39976 / 61% / -12.88 dB, front-right: 39976 / 61% / -12.88 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
立体声
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 371.52 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 0"
alsa.id = "HDMI 0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf2520000 irq 143"
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 = "9d71"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "hdmi:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.descrīption = "Digital Stereo (HDMI)"
device.descrīption = "内置音频 Digital Stereo (HDMI)"
alsa.mixer_name = "Conexant CX20753/4"
alsa.components = "HDA:14f15111,17aa5068,00100101 HDA:8086280b,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
active port:

Reply View the author
Ziggy
deepin
2020-12-02 04:17
#8
mejoy69

$ uname -r
5.4.50-amd64-desktop

是这样吗?

这样退回去了还是不得行。一样的现象。应该还是声音驱动设置那块问题。不晓得是那个标志没有写回去,不能修改了。

那就是系统问题了,等修复

Reply View the author
mejoy69
deepin
2020-12-02 05:13
#9

我通过pacmd list-sinks查看配置文件,发现下面几个问题。

1)一旦插入hdmi后,配置自动声音 输出到hdmi上;而且只有一个sink,所以没法进行切换。我估计是被覆盖了。

2)拔出hdmi线,会自动激活修改配置文件,声音能回到扬声器,但是还是只有一个sink。

3)我把几种情况的配置文件保持到文本比较只有部分进行了修改,alsa.card的信息都没变过。

4)即使通过拔线让声音回到了扬声器,但是账号注销或者机器重启,都会回到插入hdmi的那种配置,即便没有插入hdmi线。

最后,我记得之前是正常的,不晓得是哪次更新造成这个现象。之前,在uos也出现过类似的,就是uos用蓝牙连上蓝牙音响后,音响会出现“蓝牙已连接”的提示音,但切换输出源后,音响没有输出。

Reply View the author