
Ubuntu日本語フォーラム

ログインしていません。
ubuntu11.04を使っている者です。カーネルはLinux2.6.38-8です。
これは10.10でも発生していたことなのですが、スピーカーから音を出していてイヤホンジャックにイヤホンをつないだ際、自動的に音声が切り替わりません。10.04では切り替わっていたと思います。11.04(or 10.10)でも、システム→設定→サウンドの設定→出力 のコネクターをいじくると音声がちゃんと切り替わるのですが、少し面倒臭いです。
もしかすると11.04で切り替わらないのは自分の環境だけかもしれないので、正常に切り替わるという方は教えていただきたいです。それとも11.04ではそのような機能をサポートしていないということであれば、そのことを教えていただきたいです。しかし、10.04では正常に切り替わっていた記憶があり、何か方法があるものと思っているので、そのような方法があれば教えていただきたいです。
よろしくお願いいたします。
オフライン
私はThinkpad X61 (7675-A63) を使用しているのですが、イヤホンをジャックに挿すとメインスピーカーが消音します。
このフォーラムでも何件かそのような事例の報告があります。原因はベンダーのサウンドチップの実装の癖によるものがほとんどでした。以下の出力を教えていただければ、もうちょっと詳細にお伝えできるかと思います。ひょっとしたら解決につながるかもしれません。
$ pacmd list-devices;
オフライン
Mocchi様、ありがとうございます。
おっしゃる通りにpacmdを起動したところ、list-devicesというコマンドは無いようなので、list-cardsとlist-sourcesを実行した出力を載せます。
>>> list-cards
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 4
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel"
alsa.long_card_name = "HDA Intel at 0xf4800000 irq 47"
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 = "293e"
device.product.name = "82801I (ICH9 Family) HD 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-surround-40: Analog Surround 4.0 Output (priority 700)
output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 760)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460)
input:analog-stereo: Analog Stereo Input (priority 60)
off: オフ (priority 0)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Internal Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Internal Audio Analog Stereo
alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Internal Audio Analog Stereo>>> list-sources
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1950
volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
monitor_of: 0
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 4
properties:
device.description = "Monitor of Internal Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel"
alsa.long_card_name = "HDA Intel at 0xf4800000 irq 47"
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 = "293e"
device.product.name = "82801I (ICH9 Family) HD Audio Controller"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.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: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
base volume: 33%
-29.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
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 = "ALC269 Analog"
alsa.id = "ALC269 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 0xf4800000 irq 47"
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 = "293e"
device.product.name = "82801I (ICH9 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 = "Analog Stereo"
device.description = "Internal Audio Analog Stereo"
alsa.mixer_name = "Intel Cantiga HDMI"
alsa.components = "HDA:10ec0269,103388c9,00100004 HDA:80862802,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input: Analog Input (priority 10000)
analog-input-microphone: Analog Microphone (priority 8900)
active port: <analog-input>オフライン
kitayuta による投稿:
おっしゃる通りにpacmdを起動したところ、list-devicesというコマンドは無いようなので、list-cardsとlist-sourcesを実行した出力を載せます。
すみません。コマンドを勘違いしてました。「$ pacmd list-cards;」の出力を見ようと考えていました。
それでは次に、以下の2つのコマンドの実行結果も教えて下さい。
$ lspci -vnns 00:1b.0;
$ cat /proc/asound/card0/codec* | grep -i codec
上のコマンドでサウンドデバイスとカーネルモジュールの対応関係を、下のコマンドでサウンドデバイスが利用しているサウンドチップを調べたいと思います。
オフライン