LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zytlinux

系统无法加载vboxdrv,每次必须手动加载才行

[复制链接]
 楼主| 发表于 2012-2-10 23:56:14 | 显示全部楼层
deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb http://http.us.debian.org/debian squeeze main contrib non-free
#deb http://non-us.debian.org/debian-non-US squeeze/non-US main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free
deb http://ftp.us.debian.org/debian squeeze main contrib non-free

deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

deb http://ftp.cn.debian.org/debian wheezy main


能 不能把这句命令写到哪里让它开机后自动运行就得了
/etc/init.d/vboxdrv start
~
回复 支持 反对

使用道具 举报

发表于 2012-2-11 12:24:32 | 显示全部楼层
果然!源列表只要 squeeze 一行就得了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-11 19:31:18 | 显示全部楼层
只留一行也是一样啊,谢谢ch_fb等哥们的耐心解答。
回复 支持 反对

使用道具 举报

发表于 2012-2-11 20:31:27 | 显示全部楼层
说明你的系统已经搞乱了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-12 09:32:16 | 显示全部楼层
嗯,重新安装系统了(windows的毛病啊),都好了,谢谢!这边有个问题还是想问下,系统用DVD1安装完成后(桌面、笔记本、标准系统)没有声音,查看驱动已经安装,在网上搜索下解决方法,只要运行sudo alsactl init就可以了,不知这句命令是什么意思
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-12 09:33:28 | 显示全部楼层
一步一步地完善我的本本在debian6 squeeze testing wheezy的整体功能,今天又轮到声卡了,其实是驱动都已经安装上了,并且都是最新版,就是
不知道为什么会没声音响。只可以一步一步到查找及解决了。

其实,在列出声卡的时候,看到有两个:

首先查看声卡型号:

leung@debian:~$ lspci -nn | grep Audio

00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
01:00.1 Audio device [0403]: ATI Technologies Inc RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]

leung@debian:~$ cat /proc/asound/cards

0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf2600000 irq 49
1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf2110000 irq 50
29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control
                      ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000

查看声卡模块:

leung@debian:~$ lsmod | grep snd

snd_hda_codec_hdmi     26548  1
snd_hda_codec_realtek   272344  1
snd_hda_intel          26182  4
snd_hda_codec          72920  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                63744  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq                45093  0
snd_timer              22917  2 snd_pcm,snd_seq
snd_seq_device         13176  1 snd_seq
snd                    52798  17 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,thinkpad_acpi,snd_timer,snd_seq_device
soundcore              13065  1 snd
snd_page_alloc         13003  2 snd_hda_intel,snd_pcm

leung@debian:~$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


从上面的数据可以看出,其实我的系统已经安装了相应的驱动了,一切已就备。

初始化驱动到默认状态

leung@debian:~$ sudo alsactl init

Found hardware: "HDA-Intel" "Realtek ALC269" "HDA:10ec0269,17aa212a,00100004" "0x17aa" "0x20f2"
Hardware is initialized using a generic method


到了这一步,实际上已经可以播放声音了。

停止alsa

leung@debian:~$ sudo /etc/init.d/alsa-utils stop

Shutting down ALSA...done.

leung@debian:~$ sudo alsa force-reload
Terminating processes: 7453.
Unloading ALSA sound driver modules: snd-seq snd-seq-device snd-hda-intel snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc.
Loading ALSA sound driver modules: snd-seq snd-seq-device snd-hda-intel snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc.

启动alsa

leung@debian:~$ sudo /etc/init.d/alsa-utils start

Setting up ALSA...warning: 'alsactl restore' failed with error message 'Found hardware: "HDA-Intel" "Realtek ALC269" "HDA:10ec0269,17aa212a,00100004" "0x17aa" "0x20f2"
Hardware is initialized using a generic method

再查看alsa状态:

leung@debian:~$ sudo cat /dev/sndstat

Sound Driver:3.8.1a-980706 (ALSA v1.0.24 emulation code)
Kernel: Linux debian 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA Intel at 0xf2600000 irq 49
HDA ATI HDMI at 0xf2110000 irq 50
ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000

Audio devices: NOT ENABLED IN CONFIG

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers: NOT ENABLED IN CONFIG

似乎没有加载几个东西:

leung@debian:~$ sudo modprobe snd-pcm-oss
leung@debian:~$ cat /dev/sndstat

Sound Driver:3.8.1a-980706 (ALSA v1.0.24 emulation code)
Kernel: Linux debian 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA Intel at 0xf2600000 irq 49
HDA ATI HDMI at 0xf2110000 irq 50
ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000

Audio devices:
0: ALC269 Analog (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC269
1: ATI R6xx HDMI
29: ThinkPad EC 6JHT69WW-1.290000

再查看:

leung@debian:~$ lsmod | grep snd

snd_pcm_oss            41081  0
snd_mixer_oss          17916  1 snd_pcm_oss
snd_hda_codec_hdmi     26548  1
snd_hda_codec_realtek   272344  1
snd_hda_intel          26182  4
snd_hda_codec          72920  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                63744  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq                45093  0
snd_timer              22917  2 snd_pcm,snd_seq
snd_seq_device         13176  1 snd_seq
snd                    52798  19 snd_pcm_oss,snd_mixer_oss,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,thinkpad_acpi,snd_pcm,snd_seq,snd_timer,snd_seq_device
snd_page_alloc         13003  2 snd_hda_intel,snd_pcm
soundcore              13065  1 snd
回复 支持 反对

使用道具 举报

发表于 2012-3-7 01:01:31 | 显示全部楼层
Post by zytlinux;2159926
deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb http://http.us.debian.org/debian squeeze main contrib non-free
#deb http://non-us.debian.org/debian-non-US squeeze/non-US main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free
deb http://ftp.us.debian.org/debian squeeze main contrib non-free

deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

deb http://ftp.cn.debian.org/debian wheezy main


能 不能把这句命令写到哪里让它开机后自动运行就得了
/etc/init.d/vboxdrv start
~


我的大哥阿,你别把这些全塞sources.list啊,非乱套不可,如果你现在版本是squeeze,只把带squeeze的一行加入就可以了。另外楼主的问题应该是直接su之后以root的身份安装的,如果用sudo应该没问题了就。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表