
Ubuntu日本語フォーラム

ログインしていません。
ubuntu初心者です。
題名のとおりですが、FMV-BIBLO MR16AH (Intel Pentium 4 Mobile CPU 1.60GHz, メモリ1GB)に 10.04 クリーンインストールしました。
動画は見れるのですが、音がでません。
いろいろ調べましたが、知識不足なためか何をどうしたらいいのか全くわかりません。
何からやっていいのかさっぱり分かりません。どなたかお教えください。よろしくお願いします。
オフライン
以下の出力を教えて下さい。
$ pacmd list-cards;
オフライン
私の場合は TOSHIBA AX/940LSでUbuntu 9.10ですが、インストール後、再起動すると音が出なくなりました。
URL:file:///T:/blog-entry-16.html
に従って、/etc/pulse/default.paの内容を書き換えると、音が出るようになりました。参考になりますでしょうか?
オフライン
申し訳ありません。訂正です。
URL:file:///T:/blog-entry-16.html
↓
http://ichiyonnana.blog24.fc2.com/blog-entry-16.html
として下さい。
オフライン
長い間返事なしですみません。Mocchiさん、amoreさんありがとうございます。
理由は分かりませんが、だいぶ時間が経過して久しぶりに電源を入れるとなぜか音が出ました!理由が分からないのでなんともモヤモヤです。なんか安定していないというような気がしますが。。
それから、これはずっと治っていませんが、ディスプレイを折りたたんでスリープになった後にスリープから戻ることができません。ノイズの入った砂嵐のような状態になりそのままなにも反応なしです。ついでのような感じでこの場に書き込むことではないかもしれませんが。。
オフライン
Mocchi による投稿:
以下の出力を教えて下さい。
$ pacmd list-cards;
Mocchiさん、一時音が出るようになったと報告しましたが、またすぐに音が出なくなりました。
Mocchiさんの指示どおり上記入力した結果を書きます。
よろしくお願いします。
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1f.5>
driver: <module-alsa-card.c>
owner module: 4
properties:
alsa.card = "0"
alsa.card_name = "Intel 82801CA-ICH3"
alsa.long_card_name = "Intel 82801CA-ICH3 with STAC9766,67 at irq 11"
alsa.driver_name = "snd_intel8x0"
device.bus_path = "pci-0000:00:1f.5"
sysfs.path = "/devices/pci0000:00/0000:00:1f.5/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "2485"
device.product.name = "82801CA/CAM AC'97 Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Internal Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:analog-stereo: Analog Stereo Output (priority 6000)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060)
output:analog-stereo+input:iec958-stereo: Analog Stereo Output + Digital Stereo (IEC958) Input (priority 6055)
output:iec958-stereo: Digital Stereo Duplex (IEC958) (priority 5500)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5560)
input:analog-stereo: Analog Stereo Input (priority 60)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55)
off: オフ (priority 0)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1f.5.analog-stereo/#0: Internal Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1f.5.analog-stereo.monitor/#0: Monitor of Internal Audio Analog Stereo
alsa_input.pci-0000_00_1f.5.analog-stereo/#1: Internal Audio Analog Stereo
オフライン
了解です。以下の2つの出力も教えて下さい。
$ lspci -vnns 00:1f.5;
$ amixer -c 0
オフライン
Mocchiさんありがとうございます。以下のようになりました。よろしくおねがいします。
コード:
$ lspci -vnns 00:1f.5;
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801CA/CAM AC'97 Audio Controller [8086:2485] (rev 02)
Subsystem: Fujitsu Limited. Device [10cf:1177]
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1000 [size=256]
I/O ports at 1880 [size=64]
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
コード:
$ amixer -c 0
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [-46.50dB] [off]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control '3D Control - Center',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 15
Mono: 0 [0%]
Simple mixer control '3D Control - Depth',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 15
Mono: 0 [0%]
Simple mixer control '3D Control - Switch',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [on]
Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'PCM Out Path & Mute',0
Capabilities: enum
Items: 'pre 3D' 'post 3D'
Item0: 'pre 3D'
Simple mixer control 'Line',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 25 [81%] [3.00dB] [on] Capture [off]
Front Right: Playback 25 [81%] [3.00dB] [on] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [-34.50dB] [off]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mic Boost (+20dB)',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Mic Select',0
Capabilities: enum
Items: 'Mic1' 'Mic2'
Item0: 'Mic1'
Simple mixer control 'Video',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [-34.50dB] [off]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 0 [0%] [-45.00dB] [off]
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [on]
Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [on]
Simple mixer control 'Mono Output Select',0
Capabilities: enum
Items: 'Mix' 'Mic'
Item0: 'Mix'
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 9 [60%] [13.50dB] [on]
Front Right: Capture 9 [60%] [13.50dB] [on]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-exclusive penum
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
Capabilities: cswitch cswitch-exclusive penum
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'External Amplifier',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
オフライン
どうもありがとうございます。
まずはamixerの出力を参照して、ALSAのサウンドデバイス設定を変更してみたいと思います。
poru による投稿:
Simple mixer control 'External Amplifier',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
External Amplifierがonになっていると、音声が出なくなる例が、このフォーラムに報告されています。そのため、まずこれをoffにして試してみたいと思います。
offにする方法ですが、端末でコマンド「$ alsamixer」を実行します。
ゲージがたくさん表示されます。カーソルを押して一番右に移動すると、項目「External Amplifier」が表示されるかと思いますので、カーソルの上下でoffに切り替えます。
alsamixerを終了するには、エスケープキーを押します。本当に切り替わったどうかは、今度は「$ amixer」を再び実行すると確信が得られるかと思います。
この状態で音声を出してみてください。
オフライン
Mocchiさん
早いお返事ありがとうございます。
「$ alsamixer」実行してみました。
一番右の「External Amplifier」の項目が「00」となっていて、上下カーソルを押してみましたが、「00」から何も変わりませんでした。行き詰まってしまいました。
オフライン
poruさん
すみません。操作方法が間違いでした。カーソル「<」あるいは「>」のようです。
オフライン
Mocchiさん
手取り足取りすみません。変更出来ました。
「amixer」入力して確認しましたら、
Simple mixer control 'External Amplifier',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
となりました。
音はまだ出ないです。
オフライン
うーん、先にaplayのPCMデバイスリストを確認したほうがよかったかも。以下の出力も教えて下さい。
$ aplay -L;
加えて、音声出力のテストをどのようにやっているのかも教えて下さい。
オフライン
Mocchiさん
すみません。なんのこっちゃ全然分かってませんので教えてもらった通りにしかできなくて。。
$ aplay -L; は以下のようになりました。
pulse
Playback/recording through the PulseAudio sound server
front:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
Front speakers
surround40:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
4.0 Surround output to Front and Rear speakers
surround41:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=I82801CAICH3,DEV=0
Intel 82801CA-ICH3, Intel 82801CA-ICH3
IEC958 (S/PDIF) Digital Audio Output
オーディオの設定とかも何がなんだか分かってません。出力テストは分からないのでとりあえずサンプルで入ってる音楽や、ビデオを流してみたりしてます。内蔵スピーカーで音を出そうと何もつなげずにやってみてます。
何度も何度もすみません。ありがとうございます。
オフライン
poru による投稿:
何度も何度もすみません。ありがとうございます。
好きでやっていることなので、お気になさらないで下さいまし。サウンド周りのトラブルは音が深くてなかなか難しいかと思いますので。
これまでの出力を見るに、おそらくすべてが正しく設定できていると思われます。となると最後の砦、カーネルモジュール(いわゆるサウンドドライバ)のモードがあやしいかも。
というわけで、ALSAのカーネルモジュールに関するドキュメントを参照してみました。すべてのUbuntuにインストールされている、ファイル「/usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz」です。
poruさんにはちんぷんかんぷんかもしれませんが、他の方の参考になるかと思いますので、引用します。
Module snd-intel8x0
-------------------
Module for AC'97 motherboards from Intel and compatibles.
* Intel i810/810E, i815, i820, i830, i84x, MX440
ICH5, ICH6, ICH7, 6300ESB, ESB2
* SiS 7012 (SiS 735)
* NVidia NForce, NForce2, NForce3, MCP04, CK804
CK8, CK8S, MCP501
* AMD AMD768, AMD8111
* ALi m5455
ac97_clock - AC'97 codec clock base (0 = auto-detect)
ac97_quirk - AC'97 workaround for strange hardware
See "AC97 Quirk Option" section below.
buggy_irq - Enable workaround for buggy interrupts on some
motherboards (default yes on nForce chips,
otherwise off)
buggy_semaphore - Enable workaround for hardwares with buggy
semaphores (e.g. on some ASUS laptops)
(default off)
spdif_aclink - Use S/PDIF over AC-link instead of direct connection
from the controller chip
(0 = off, 1 = on, -1 = default)
This module supports one chip and autoprobe.
Note: the latest driver supports auto-detection of chip clock.
if you still encounter too fast playback, specify the clock
explicitly via the module option "ac97_clock=41194".
Joystick/MIDI ports are not supported by this driver. If your
motherboard has these devices, use the ns558 or snd-mpu401
modules, respectively.
The power-management is supported.Intel社のAnalog Codec 97仕様であるAC'07に準拠したサウンドコントローラは、ベンダーによってマザーボードへの実装に差があることが知られています。それを解決するのが、オプション「ac97_quirk」です。このオプションに関して言及している箇所を参照します。
AC97 Quirk Option
=================
The ac97_quirk option is used to enable/override the workaround for
specific devices on drivers for on-board AC'97 controllers like
snd-intel8x0. Some hardware have swapped output pins between Master
and Headphone, or Surround (thanks to confusion of AC'97
specifications from version to version :-)
The driver provides the auto-detection of known problematic devices,
but some might be unknown or wrongly detected. In such a case, pass
the proper value with this option.
The following strings are accepted:
- default Don't override the default setting
- none Disable the quirk
- hp_only Bind Master and Headphone controls as a single control
- swap_hp Swap headphone and master controls
- swap_surround Swap master and surround controls
- ad_sharing For AD1985, turn on OMS bit and use headphone
- alc_jack For ALC65x, turn on the jack sense mode
- inv_eapd Inverted EAPD implementation
- mute_led Bind EAPD bit for turning on/off mute LED
For backward compatibility, the corresponding integer value -1, 0,
... are accepted, too.
For example, if "Master" volume control has no effect on your device
but only "Headphone" does, pass ac97_quirk=hp_only module option.このドキュメントを見るに、ac97_quirkを必要とするトラブルは、サウンドコントローラからヘッドフォンへの接続の他に、サウンドコントローラからサラウンド出力への接続も関係しているようです。
poruさんがお使いのFMV-BIBLO MR16AH@fmworld.netのサウンド設定をamixerやalsamixer、aplay越しに見ると、2.0/4.0/4.1/5.0/5.1チャンネルでの出力ができそうな感じです。2.0はいわゆるステレオ出力で、それ以外はいわゆるサラウンド出力となります。
ac97_quirkで指定できるモード変更は本来、ALSA側でサウンドコントローラチップを自動認識して対応します。poruさんの場合は恐らくたまに正確に対応できて、頻繁に正確に対応できない、そういうことなのかなぁと予想しました。
というわけで、サラウンド出力に着目して、「ac97_quirk=swap_surround」を試してみるの有力そうです。以下を試してみて下さい。
1. 端末で「$ gksudo gedit /etc/modprobe.d/alsa-ac97-quirk.conf;」を実行します(注7)
2. パスワードを入力すると,テキストエディタが開きます
3. テキストエディタに「options snd-intel8x0 ac97_quirk=swap_surround」を記述します
4. 保存してテキストエディタを終了します
5. システムを再起動します
これを試してみて、なおも音声が出ないようであれば、alsamixerでいろいろ設定をいじってみるとよいかと思います。それでもなお音が出ないようであれば、また相談して下さい。
オフライン
Mocchiさん
出ましたー!めちゃめちゃうれしいです。
1. 端末で「$ gksudo gedit /etc/modprobe.d/alsa-ac97-quirk.conf;」を実行します(注7)
2. パスワードを入力すると,テキストエディタが開きます
3. テキストエディタに「options snd-intel8x0 ac97_quirk=swap_surround」を記述します
4. 保存してテキストエディタを終了します
5. システムを再起動します
というのをやって音が出るか試してみましたがでませんでしたので、以前に教えて頂いた「$ alsamixer」を実行してみました。一番右側にある「External Amplifier」が「00」になっていたを「>」カーソルでoffにしてもっかい試してみたら出ました!
ありがとうございます。しばらく様子みてみます。
もしもまた出ないことがあったら以前に教えて頂いた順番で
$ pacmd list-cards;
↓
$ lspci -vnns 00:1f.5;
↓
$ amixer -c 0
↓
$ alsamixer で一番右の「External Amplifier」の項目を「off」にする
↓
$ aplay -L;
↓
1. 端末で「$ gksudo gedit /etc/modprobe.d/alsa-ac97-quirk.conf;」を実行します(注7)
2. パスワードを入力すると,テキストエディタが開きます
3. テキストエディタに「options snd-intel8x0 ac97_quirk=swap_surround」を記述します
4. 保存してテキストエディタを終了します
5. システムを再起動します
と順番につぶしていくという感じでしょうか。相変わらず意味は分かってませんが。。
全然わからないので何から勉強していけばいいのかも分かりませんが、掲示板で初めて質問してみたら丁寧に教えてもらって助かりました。本当にありがとうございます。
オフライン
(あ、「注7」つけっ放しだった。コピペしたのがバレバレ・・・。)
poruさん、音が出たようでおめでとうございます;)
ひょっとしたらシステム側でたまたま自動認識できているという可能性も残されておりますので、しばらく様子を見てみるのがよいでしょう。
poru による投稿:
もしもまた出ないことがあったら以前に教えて頂いた順番で
$ pacmd list-cards;
↓
$ lspci -vnns 00:1f.5;
↓
$ amixer -c 0
↓
$ alsamixer で一番右の「External Amplifier」の項目を「off」にする
↓
$ aplay -L;
↓
1. 端末で「$ gksudo gedit /etc/modprobe.d/alsa-ac97-quirk.conf;」を実行します(注7)
2. パスワードを入力すると,テキストエディタが開きます
3. テキストエディタに「options snd-intel8x0 ac97_quirk=swap_surround」を記述します
4. 保存してテキストエディタを終了します
5. システムを再起動します
と順番につぶしていくという感じでしょうか。相変わらず意味は分かってませんが。。
その理解で大丈夫です。サウンド処理の大まかな流れを把握するには、Ubuntuのサウンドシステムについてが参考になるかなと思います。
今回の場合は、
(・aplayで、ALSAライブラリのPCMデバイス設定を見ました。)
・pacmdで、PulseAudioのサウンドデバイス認識と、PCIバス番号を見ました。
・amixer/alsamixerで、ALSAカーネルモジュールの持つサウンドデバイスそのものの設定を見ました。
・lspciで、PCIバス番号から、サウンドデバイスに対応しているカーネルモジュール(サウンドドライバ)を見ました。
amixer/alsamixerとlspciの実行順番が逆ですけど、アプリケーションからサウンドデバイスに遡って出力を追ってみた感じとなります。
オフライン