问题
重新启动alsa后,我能从笔记本电脑扬声器听到声音,但在重新启动后丢失声音,从dell-s14
更改为dell-vostro-3500
无效,pulseaudio -D
给出Daemon startup failed
。
cat /proc/asound/card0/codec* | grep Codec`
Codec: IDT 92HD87B1/3
下面是匹配HD-Audio-Models.txt
中编解码器的部分
STAC92HD83*
===========
ref Reference board
mic-ref Reference board with power management for ports
dell-s14 Dell laptop
dell-vostro-3500 Dell Vostro 3500 laptop
hp-dv7-4000 HP dv-7 4000
auto BIOS setup (default)
pulseaudio -vvv
给出:
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Running on host: Linux x86_64 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 41cf9ca67be1059b2fa9e2fd533d698b.
I: [pulseaudio] main.c: Session ID is c2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/me/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
答案1
根据我通过搜索internet找到的内容,你必须编辑alsa基础声音配置文件,并添加dell-s14
或dell-vostro-3500
,因为只有两个选项可供选择,所以选择dell-s14
。
打开终端,并键入:
sudo touch /etc/modprobe.d/alsa-base.conf.bak
sudo cp /etc/modprobe.d/alsa-base.conf /etc/modprobe.d/alsa-base.conf.bak # backup alsa-base.conf
sudo nano /etc/modprobe.d/alsa-base.conf
向下滚动到alsa-base.conf的底部,并将此新行添加到底部:
options snd-hda-intel model=dell-s14
按键盘组合键Ctrl+O,然后按Enter键保存对alsa-base.conf所做的更改,按键盘组合键Ctrl+X退出nano。
接下来运行以下命令:
sudo alsa force-reload
答案2
我将用户添加到'audio'组,在重新登录后,修复。
usermod -a -G audio $USER
使用帐户列出:
aplay -l
aplay: device_list:268: no soundcards found
它没有看到声卡,但当使用root (sudo
)列出时:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1 Subdevice #0: subdevice #0
看到它们了。
答案3
sudo modprobe snd-hda-intel
答案4
以下命令帮助我:
pulseaudio --kill
sudo alsa force-reload
pulseaudio --start
sudo alsa force-reload
答案5
这些都不适合我
我从http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/pc/audio/0001-LinuxPkg_5.18rc8.tar.bz2下载驱动程序,并安装它。
一切正常。
相关文章