[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:36099] Re: alsa 音がでない
- From: nakazintuyosi@xxxxxxxxxxxxxxxxxx
- Subject: [debian-users:36099] Re: alsa 音がでない
- Date: Wed, 29 Jan 2003 05:06:36 +0900
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-spam-level: ********
- X-spam-status: No, hits=8.5 required=10.0 tests=IN_REP_TO,ISO2022JP_CHARSET,NO_REAL_NAME,ISO2022JP_BODY, CASHCASHCASH,EIGHTBIT_BODY,DOUBLE_CAPSWORD,US_DOLLARS_2, WEIRD_PORT,URI_IS_POUND version=2.31
- References: <20030127060449.1d6d4075.nakazintuyosi@xxxxxxxxxxxxxxxxxx> <20030127053046.89F065380C@xxxxxxxxxxxxxxxxxxxxxx> <20030128080511.2fe84b4c.nakazintuyosi@xxxxxxxxxxxxxxxxxx> <20030128025923.0C2095380C@xxxxxxxxxxxxxxxxxxxxxx> <87isw9g58v.wl@xxxxxxxxxxxxxxxx>
- Message-id: <20030129050632.2a436899.nakazintuyosi@xxxxxxxxxxxxxxxxxx>
- X-mail-count: 36099
- X-mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-debian-linux-gnu)
竹島@岡豊病院です。
たいへん貴重な情報を頂戴しありがとうございました。
> 最近でた以下のページも参考になるかと思います:
> http://www.linuxorbit.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=541&page=1
以下ずっとエラーなく終了しましたが、音がまだでません。
どこかが悪いとおもいますが、どこなのでしょう。
また、本当に音が出るのかどうかの確認はどこでとるのでしょう。
modprobeなんかで確認できるのでしょうか?
:~# uname -r
2.4.20-686
と2.4.20-686を確認
--------------------
apt-get install alsa-source
cd /usr/src
tar xvzf alsa-driver.tar.gz
cd /usr/src/modules/alsa-driver
./configure
make
make install
ここですでに
kernel-source-2.4.20.tar.bz2をapt-getし
tuyosi@debian:~$ ls -l /usr/src/
drwxr-xr-x 15 root root 4096 1月 26 17:57 kernel-source-2.4.20
lrwxrwxrwx 1 root src 20 1月 25 16:40 linux -> kernel-source-2.4.20
とリンクをはってあるので、
cd /usr/src/linux (or whatever directory where your kernel source is)
make-kpkg modules_image
dpkg -i /usr/src/alsa-modules-*
すると
It looks like you have configuration file of the ALSA 0.9.
というメッセージがでる。
apt-get install alsa-modules-2.4.20-686
はないし、
apt-get install alsa-modules
すると
Reading Package Lists... Done
Building Dependency Tree... Done
Package alsa-modules has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
of sources.list
However the following packages replace it:
alsa-base
E: Package alsa-modules has no installation candidate
がでるので、
debian:/usr/src/linux# apt-get install alsa-base
をした。
apt-get install kernel-headers-2.4.20-686
apt-get install alsa-source
cd /usr/src
tar xvzf alsa-driver.tar.gz
cd /usr/src/modules/alsa-driver/
debian:/usr/src/modules/alsa-driver# dpkg -l kernel-image-2.4.20-686
すると
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===========================-===========================-======================================================================
ii kernel-image-2.4.20-686 2.4.20-3woody.1 Linux kernel image 2.4.20 on PPro/Celeron/PII/PIII/PIV.
でした。
また、
debian:/usr/src/modules/alsa-driver# uname -r
2.4.20-686
なので、
./debian/rules KSRC=/usr/src/kernel-headers-2.4.20-686 KVERS=2.4.20-686 KDREV=2.4.20-3woody.1 binary-modules
をしました。
すると
dpkg-deb: building package `alsa-modules-2.4.20-686' in `../alsa-modules-2.4.20-686_0.9+0beta12+3+p0+2.4.20+3woody.1_i386.deb'.
で終る。
(つぎで、今までは一般ユーザーでいける部分はそうしないといけなかったと後悔)
su -
password:
dpkg -i /usr/src/modules/alsa-modules-*
すると
It looks like you have configuration file of the ALSA 0.9.
ALSA driver isn't running.
Starting ALSA sound driver (version 0.9.0beta12): als4000.
alsactl not found, mixer settings will not be restored.
という形でおわる。
debian:/usr/src/modules/alsa-driver# ls -l /lib/modules/2.4.20-686/alsa/ |more
すると
total 2244
-rw-r--r-- 1 root root 36653 Jan 29 04:25 snd-ac97-codec.o
-rw-r--r-- 1 root root 19874 Jan 29 04:25 snd-ad1816a-lib.o
以下略なので大丈夫と考える。
apt-get install alsa-utils
cp /usr/share/doc/alsa-base/examples/modules-0.9.conf /etc/alsa/modutils/0.9
ln -s /etc/alsa/modutils/0.9 /etc/modutils/alsa
/etc/alsa/alsa-base.confを
# Define true if you want the OSS compatibility layer
# to be automatically loaded as well
startosslayer=true
# Define true if you want to unload alsa modules before
# your system suspneds. This is currently useful if your
# machine is hanged up after resume.
force_stop_modules_before_suspend=false
# Uncomment if you always want to stop alsa modules forcibly in
# /etc/init.d/alsa stop or restart by killing all of running
# applications which use sound devices.
ALSA_KILL_MODE="force"
とする。
/etc/modutils/alsaを以下とします。
ーーーーーーーーーーーーーーーーーー
# Example Configuration of ALSA 0.9 for Debian GNU/Linux
alias char-major-116 snd
alias char-major-14 soundcore
options snd snd_major=116 snd_cards_limit=4 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
#alias snd-card-0 snd-dummy
#alias snd-card-1 snd-serial
#alias snd-card-2 snd-share
#alias snd-card-3 snd-virmidi
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
# You must need to add your own card setteings below.
# or use alsaconf to setup in menu form.
alias snd-card-0 snd-als4000
ーーーーーーーーーーーーーーーーーー
update-modules
/etc/init.d/alsa start
すると
debian:/etc/modutils# /etc/init.d/alsa start
ALSA driver (version 0.9.0beta12) is already running.
となりほっとしました。
つづいて
debian:/etc/modutils# gamix
Gtk-WARNING **: cannot open display:
とでますので
debian:/etc/modutils# exit
logout
tuyosi@debian:~$ gamix
とすると音量調整のGUIがでました。