1.はじめに
UbuntuLinux 22.04をインストールしたPCを、テレビのHDMI入力に繋いで使おうとしたところ、音が出ません。
サウンドの設定を開いても「ダミー出力」だけで他の出力が選べません。
この場合の処置を示しました。
2.環境
$ uname -a Linux hostname 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" ・・・
3.処置方法
grub設定ファイルに設定を追記します。
#バックアップ $ sudo cp -p /etc/default/grub /etc/default/grub.org #編集 $ sudo nano /etc/default/grub
修正前
・・・ GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" ・・・
修正後
GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="snd_intel_dspcfg.dsp_driver=1" GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT="snd_intel_dspcfg.dsp_driver=1"
GRUB_CMDLINE_LINUX=""
に書き換えます。
grubの設定を反映します。
$ sudo update-grub Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.15.0-56-generic Found initrd image: /boot/initrd.img-5.15.0-56-generic Found linux image: /boot/vmlinuz-5.15.0-43-generic Found initrd image: /boot/initrd.img-5.15.0-43-generic Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. Adding boot menu entry for UEFI Firmware Settings ... done
再起動すると、サウンドの設定項目の「ダミー出力」が消えて、HDMIに接続している機器名が表示されます。