
Ubuntu日本語フォーラム

ログインしていません。
Totem動画プレーヤーで音楽ファイルの再生中に音が切れ、音が出なくなりました。
以後はTotemだけでなく、その他もすべて音が鳴らなくなってしまいました。
今まで音に関するトラブルはありませんでした。
またミュート・ボリュームが最低になっていないことは確認しました。
解決法をお教えくださいますよう、宜しくお願いいたします。
メーカー: NEC PC型番: PC-GV2835ZDE
OSはUbunutu 11.10 のみ
示す内容や対処法がわかりませんが、幾つかのコマンド結果を下記に記載いたします。
$>lspci | egrep -i multimedia\|audio
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
$>lspci -v -s `lspci | grep -i audio | sed -e 's/\(\w*\)\s.*/\1/'`
Subsystem: NEC Corporation Device 88f0
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f9ff8000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel
$>cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf9ff8000 irq 44
$>cat /proc/asound/card0/codec* | grep -i codec
Codec: Realtek ALC262
Codec: Nvidia MCP77/78 HDMI
$>aplay -L
default
Playback/recording through the PulseAudio sound server
pulse
Playback/recording through the PulseAudio sound server
front:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
HDA Intel, HDMI 0
HDMI Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
HDA Intel, ALC262 Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=3
HDA Intel, HDMI 0
Hardware device with all software conversions
$>cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.24.
オフライン
出力を見る限りでは問題はなさそうに思えます。そのため、可能性としては
1. マザーボードにくっついてる音声出力とHDMI音声出力を切り替え損ねている
2. PulseAudioがALSAサウンドカードを認識できていない
3. (稀有ですが)ハードウェアミキサーと同調できていない
などが思い当たりました。1.に関してはデスクトップ右上の「サウンドの設定」を確認します。2.に関してはコマンド「pacmd list-sinks;」の出力を、3.に関してはコマンド「$ amixer -c 0;」「$ amixer -c 1;」の出力を教えて下さい。
オフライン
ご回答ありがとうございます。
1、サウンドの設定について
○ 音響:デフォルト
○ ハードウェア:
設定するデバイスの選択=内部オーディオ1出力/1入力 アナログステレオ入出力
プロファイル=アナログステレオ入出力
スピーカーのテスト=たくさんのアイコンがゴチャゴチャです。
具体的には、幾つかのアイコンが重なっており、押せない or 押しても無反応です。
○ 入力:
コネクタ=アナログマイク
サウンド入力デバイスの選択=内部オーディオアナログステレオ
○ 出力:
サウンド出力デバイスの選択=内部オーディオアナログステレオ ステレオ
バランス:中央
コネクタ=アナログ出力
2・3、コマンド結果
$>pacmd list-sinks;
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9959
volume: 0: 24% 1: 24%
0: -37.70 dB 1: -37.70 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
ステレオ
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 4
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC262 Analog"
alsa.id = "ALC262 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel"
alsa.long_card_name = "HDA Intel at 0xf9ff8000 irq 44"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "3a3e"
device.product.name = "82801JI (ICH10 Family) HD Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "アナログステレオ"
device.description = "内部オーディオ アナログステレオ"
alsa.mixer_name = "Nvidia MCP77/78 HDMI"
alsa.components = "HDA:10ec0262,103388f0,00100302 HDA:10de0006,10de0101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output: アナログ出力 (priority 9900, available: unknown)
active port: <analog-output>
$>amixer -c 0;
Simple mixer control 'Master',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 30
Mono:
Front Left: Playback 5 [17%] [-37.50dB] [on]
Front Right: Playback 5 [17%] [-37.50dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 254 [100%] [0.20dB]
Front Right: Playback 254 [100%] [0.20dB]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 10 [32%] [3.00dB] [on]
Front Right: Capture 10 [32%] [3.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 0 [0%] [-12.00dB] [off]
Front Right: Capture 0 [0%] [-12.00dB] [off]
Simple mixer control 'Capture',2
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 0 [0%] [-12.00dB] [off]
Front Right: Capture 0 [0%] [-12.00dB] [off]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Mic' 'Line'
Item0: 'Mic'
amixer -c 1;
Invalid card number.
Usage: amixer <options> [command]
Available options:
-h,--help this help
-c,--card N select the card
-D,--device N select the device, default 'default'
-d,--debug debug mode
-n,--nocheck do not perform range checking
-v,--version print version of this program
-q,--quiet be quiet
-i,--inactive show also inactive controls
-a,--abstract L select abstraction level (none or basic)
-s,--stdin Read and execute commands from stdin sequentially
Available commands:
scontrols show all mixer simple controls
scontents show contents of all mixer simple controls (default command)
sset sID P set contents for one mixer simple control
sget sID get contents for one mixer simple control
controls show all controls for given card
contents show contents of all controls for given card
cset cID P set control contents for one control
cget cID get control contents for one control
音が出なくなった時はキーボード・マウスでの操作は何もしていませんでした。
異音などもなく、急に音だけが消えてしまいました。
関係ないかもしれませんが、音楽再生の前日にアップデートで30分以上の時間がかかっていました。
今になって思えば、少し気にかかります。
以上です。宜しくお願いいたします。
オフライン
rin による投稿:
$>amixer -c 0;
Simple mixer control 'Master',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 30
Mono:
Front Left: Playback 5 [17%] [-37.50dB] [on]
Front Right: Playback 5 [17%] [-37.50dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 254 [100%] [0.20dB]
Front Right: Playback 254 [100%] [0.20dB]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
この出力が気になります。Masterチャネルが5/30(17%)、Lineが0/31(0%)だからです。おそらく「サウンドの設定」からうまくコントロールできてないと推測します。
ALSAのハードウェアミキサー設定ソフトウェアで直接変更してみて下さい。コマンド「$ alsamixer -c 0;」を端末で実行し、左右キーで当該チャネルに移動後、上下キーで値を変更できます。
オフライン
ありがとうございます! 音がでました!
サウンドの設定→ハードウェア→スピーカーのテスト で、アイコンがゴチャゴチャとたくさんあったものが、左前・右前の2つだけ(元通り)になっていました。
また、テストボタンも正常に反応しています。
色々と調べて、/etc/modprobe.d/alsa-base.confに、options snd-hda-intel model=auto を追記してみましたが、効果がなかったようです。
そこで、お教えいただいた「$ alsamixer -c 0;」で上下キーで値を変更しました。
直後は音がでませんでしたが、再起動後したところチェックディスクがありました。
念の為、「sudo badblocks -vs -o bad.txt /dev/デバイス名」で確認しましたが、不良セクタはありませんでした。(Pass completed, 0 bad blocks found.)
その後、音楽ファイルを再生すると音量MAXで鳴りはじめました。
ビックリしましたが、とても嬉しいです。
ご教授いただき感謝しております。ありがとうございました。
オフライン