耳机没有音频,但音频可与集成扬声器一起使用

Ped*_*dro 3 10.04 sound headphones

我的扬声器工作正常,但是当我插入耳机时,它们不工作。我正在运行 Ubuntu 10.04。

我的声卡是 Realtek ALC259 我的笔记本型号是 HP G62t a10em

另一个线程中,有人解决了类似的问题(耳机工作,扬声器不工作),如下所示:

sudo vi /etc/modprobe.d/alsa-base.conf(或其他一些编辑器而不是 Vi) 在文件末尾附加以下内容:

别名 snd-card-0 snd-hda-intel 选项 snd-hda-intel 模型=自动

重启

但这对我不起作用。

在对 alsa 进行更改之前,这是输出:

alsamixer 给了我这个: alsamixer 输出 声卡是 HDA ATI SB

我所做的事情:遵循此 HowTo但现在似乎没有硬件存在(之前,列出了 2 个项目): 声音首选项 - 硬件选项卡为空

现在,alsamixer 给了我这个:

alsamixer:重定位错误:alsamixer:符号 snd_mixer_get_hctl,版本 ALSA_0.9 未在带有链接时间参考的文件 libasound.so.2 中定义

我猜在 alsa-driver 安装中有错误,所以我开始重新安装它。

cd alsa-driver* //这很好用//
sudo ./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r) //这很好用//
sudo make //这不起作用。见下面的输出错误//
须藤制作安装

sudo make 的最后几行:

hpetimer.c:在函数“snd_hpet_open”中:
hpetimer.c:41: 警告:函数“hpet_register”的隐式声明
hpetimer.c:44: 警告:函数“hpet_control”的隐式声明
hpetimer.c:44: 错误:“无符号”之前的预期表达式
hpetimer.c:在函数“snd_hpet_close”中:
hpetimer.c:51:警告:函数“hpet_unregister”的隐式声明
hpetimer.c:52: 错误:未定义类型“struct hpet_task”的无效使用
hpetimer.c:在函数“hpetimer_init”中:
hpetimer.c:88: 错误: 'EINVAL' 未声明(首次在此函数中使用)
hpetimer.c:99: 错误:未定义类型“struct hpet_task”的无效使用
hpetimer.c:100: 错误:未定义类型“struct hpet_task”的无效使用
hpetimer.c:在顶层:
hpetimer.c:121:警告:结构初始值设定项中的元素过多
hpetimer.c:121: 警告:(接近“__param_frequency”的初始化)
hpetimer.c:121:警告:结构初始值设定项中的元素过多
hpetimer.c:121: 警告:(接近“__param_frequency”的初始化)
hpetimer.c:121:警告:结构初始值设定项中的元素过多
hpetimer.c:121: 警告:(接近“__param_frequency”的初始化)
hpetimer.c:121:警告:结构初始值设定项中的元素过多
hpetimer.c:121: 警告:(接近“__param_frequency”的初始化)
hpetimer.c:121: 错误:初始化程序末尾的额外花括号组
hpetimer.c:121: 错误:(接近“__param_frequency”的初始化)
hpetimer.c:121:警告:结构初始值设定项中的元素过多
hpetimer.c:121: 警告:(接近“__param_frequency”的初始化)
make[1]: *** [hpetimer.o] 错误 1
make[1]: 离开目录`/usr/src/alsa/alsa-driver-1.0.9/acore'
make: *** [编译] 错误 1

然后 sudo make install 给了我:

rm -f /lib/modules/0.0.0/misc/snd*.*o /lib/modules/0.0.0/misc/persist.o /lib/modules/0.0.0/misc/isapnp.o
make[1]: 进入目录`/usr/src/alsa/alsa-driver-1.0.9/acore'
mkdir -p /lib/modules/0.0.0/misc
cp snd-hpet.o snd-page-alloc.o snd-pcm.o snd-timer.o snd.o /lib/modules/0.0.0/misc
cp:无法统计`snd-hpet.o':没有那个文件或目录
cp:无法统计`snd-page-alloc.o':没有那个文件或目录
cp: 无法统计 `snd-pcm.o': 没有那个文件或目录
cp:无法统计`snd-timer.o':没有那个文件或目录
cp: 无法统计 `snd.o': 没有那个文件或目录
make[1]: *** [_modinst__] 错误 1
make[1]: 离开目录`/usr/src/alsa/alsa-driver-1.0.9/acore'
制作:*** [安装模块] 错误 1
[解决方案]

在搞砸了这一切之后,有人提到为什么不尝试在 Synaptic 中使用这些软件包——所以我做到了。 
我已经重新安装了以下软件包和重启程序:
-alsa-hda-realtek-ignore-sku-dkms
-alsa-modules-2.6.32-25-generic
-alsa-source
-alsa-utils
-linux-backports-modules-alsa-lucid-generic
-linux-backports-modules-alsa-lucid-generic-pae
-linux-sound-base
-(我想我把它们都列出来了)

重新启动后,音频在扬声器和耳机中都有效。
我不知道让我的音频工作的包是哪个,但它肯定是其中之一。

[/解决方案]

Pit*_*tto 5

我的解决方案可能看起来最愚蠢,但对我来说效果很好:将您的笔记本电脑暂停关闭盖子,再次打开它并修复它。