Activity log for bug #2032718

Date Who What changed Old value New value Message
2023-08-23 02:55:46 zorb bug added bug
2023-08-23 03:00:59 zorb description ++++++++++++++++++++++++++Basic information+++++++++++++++++++++++++++++++++++++ ################################################################################ Probelm ========= case1: mainboard ---> hdmi wire ---> monitor using intel graphic card(Intel UHD 770, the monitor has no sound ouput, and the 3.5mm port on machine outputs sound normally. I want to make sound output normally from monitor in this case. case2: nvidia gpu card ---> hdmi wire ---> monitor When conneting the HDMI to the nvidia graphic card, everything normal, sound OK. note: when changing to the windows system, case1 and case2 both output sound normally from monitor. ################################################################################ Machine ========== cup:13700k; monitor:asus vg27ag1a; mortherboard: rog strix z790-e. system: Ubuntu 20.04.6 LTS Linux asus-fossa 5.15.0-79-generic #86~20.04.2-Ubuntu SMP Mon Jul 17 23:27:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ################################################################################ My changes: ============ 1) /etc/modprobe.d/alsa-base.conf add a line: options snd-hda-intel model=generic 2) /etc/default/grub chang GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="quiet i915.force_probe=a780" note: if no change 1), "HDMI/DisplayPort-Built-in Audio" does not show in Setting--Sound-Output-Output Divices , and only show "Digital Output(S/PDIF)-USB Audio", and command "aplay -l" does not shou device 0. if no change 2), command" >>dmesg | grep snd " output: [ 1.712387] ata5.00: Features: NCQ-sndrcv [ 6.863500] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.864355] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.864389] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.864393] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 11.233468] usbcore: registered new interface driver snd-usb-audio [ 68.686322] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 68.693377] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec [ 68.696055] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up ++++++++++++++++++++++++++Tests++++++++++++++++++++++++++++++++++++++++++++++ the following tests all based on the change 1) 2) ,i.e., after changing 1) 2) ############################################################################# dmesg | grep snd ================= [ 1.255751] ata5.00: Features: NCQ-sndrcv [ 6.377928] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.378272] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.378355] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.378360] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 10.741520] usbcore: registered new interface driver snd-usb-audio [ 66.634220] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 66.658044] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line [ 66.658056] snd_hda_codec_generic hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658061] snd_hda_codec_generic hdaudioC0D2: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658064] snd_hda_codec_generic hdaudioC0D2: mono: mono_out=0x0 [ 66.658066] snd_hda_codec_generic hdaudioC0D2: dig-out=0x4/0x0 [ 66.658068] snd_hda_codec_generic hdaudioC0D2: inputs: ################################################################################ inxi -G ============ Graphics: Device-1: Intel driver: N/A ##//////////////////////////////why display this "Intel driver: N/A ", no i915 intel driver in my machine???? Device-2: NVIDIA driver: nvidia v: 535.86.05 Display: x11 server: X.Org 1.20.13 driver: fbdev FAILED: nvidia unloaded: modesetting,nouveau,vesa resolution: 2560x1440~93Hz OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.1.6 - kisak-mesa PPA ################################################################################ dkms status ============ intel-platform-cse-dkms, 2022.28: added intel-platform-pmt-dkms, 2021.21, 5.15.0-79-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-78-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-79-generic, x86_64: installed ################################################################################ sudo lshw -c video | grep 'configuration' ============ configuration: driver=nvidia latency=0 configuration: latency=0 ################################################################################ grep "Codec:" /proc/asound/card*/codec* ============= /proc/asound/card0/codec#2:Codec: Intel Generic /proc/asound/card2/codec#0:Codec: Nvidia Generic HDMI ################################################################################ aplay -l ============ **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 ################################################################################ speaker-test --channels 2 --test wav --device hw:0,3 ============ speaker-test 1.2.2 Playback device is hw:0,3 Stream parameters are 48000Hz, S16_LE, 2 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 64 to 1048576 Period size range from 32 to 524288 Using max buffer size 1048576 Periods = 4 was set period_size = 262144 was set buffer_size = 1048576 0 - Front Left 1 - Front Right Time per period = 10.938189 0 - Front Left 1 - Front Right Time per period = 10.929954 ################################################################################ glxinfo -B ============== name of display: :1 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Mesa (0xffffffff) Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff) ##//////////////////////////////////////why display this "llvmpipe" Version: 23.1.6 Accelerated: no Video memory: 31830MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.5 Max compat profile version: 4.5 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 0 MB, largest block: 0 MB VBO free aux. memory - total: 24979 MB, largest block: 24979 MB Texture free memory - total: 0 MB, largest block: 0 MB Texture free aux. memory - total: 24979 MB, largest block: 24979 MB Renderbuffer free memory - total: 0 MB, largest block: 0 MB Renderbuffer free aux. memory - total: 24979 MB, largest block: 24979 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 0 MB Total available memory: 31830 MB Currently available dedicated video memory: 0 MB OpenGL vendor string: Mesa OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6 - kisak-mesa PPA OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ################################################################################ pacmd list-sinks ============ 2 sink(s) available. index: 1 name: <alsa_output.usb-Generic_USB_Audio-00.iec958-stereo> driver: <module-alsa-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 9048 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 0.00 ms max request: 0 KiB max rewind: 0 KiB monitor source: 1 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 .. 2000.00 ms card: 0 <alsa_card.usb-Generic_USB_Audio-00> module: 23 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "USB Audio" alsa.id = "USB Audio" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "0" alsa.card = "1" alsa.card_name = "USB Audio" alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed" alsa.driver_name = "snd_usb_audio" device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0" sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card1" udev.id = "usb-Generic_USB_Audio-00" device.bus = "usb" device.vendor.id = "0b05" device.vendor.name = "ASUSTek Computer, Inc." device.product.id = "1a52" device.product.name = "USB Audio" device.serial = "Generic_USB_Audio" device.string = "iec958:1" device.buffering.buffer_size = "352800" device.buffering.fragment_size = "176400" device.access_mode = "mmap+timer" device.profile.name = "iec958-stereo" device.profile.description = "Digital Stereo (IEC958)" device.description = "USB Audio Digital Stereo (IEC958)" module-udev-detect.discovered = "1" device.icon_name = "audio-card-usb" ports: iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown) properties: active port: <iec958-stereo-output> * index: 2 name: <alsa_output.pci-0000_00_1f.3.hdmi-stereo> driver: <module-alsa-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 9030 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 0.00 ms max request: 0 KiB max rewind: 0 KiB monitor source: 3 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 .. 2000.00 ms card: 2 <alsa_card.pci-0000_00_1f.3> module: 28 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "Generic Digital" alsa.id = "Generic Digital" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "3" alsa.card = "0" alsa.card_name = "HDA Intel PCH" alsa.long_card_name = "HDA Intel PCH at 0x6805220000 irq 204" alsa.driver_name = "snd_hda_intel" device.bus_path = "pci-0000:00:1f.3" sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "7a50" device.form_factor = "internal" device.string = "hdmi:0" device.buffering.buffer_size = "352800" device.buffering.fragment_size = "176400" device.access_mode = "mmap+timer" device.profile.name = "hdmi-stereo" device.profile.description = "Digital Stereo (HDMI)" device.description = "Built-in Audio Digital Stereo (HDMI)" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" ports: hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown) properties: device.icon_name = "video-display" active port: <hdmi-output-0> ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: alsa-base 1.0.25+dfsg-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-79.86~20.04.2-generic 5.15.111 Uname: Linux 5.15.0-79-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.26 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: huang 2497 F.... pulseaudio /dev/snd/controlC1: huang 2497 F.... pulseaudio /dev/snd/controlC2: huang 2497 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Wed Aug 23 09:23:42 2023 InstallationDate: Installed on 2023-03-30 (145 days ago) InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316) PackageArchitecture: all SourcePackage: alsa-driver Symptom: audio Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed Symptom_Card: Built-in Audio - HDA Intel PCH Symptom_Jack: Digital Out, HDMI Symptom_Type: No sound at all Title: [System Product Name, Intel Generic, Digital Out, HDMI] No sound at all UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 09/07/2022 dmi.bios.release: 4.1 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0401 dmi.board.asset.tag: Default string dmi.board.name: ROG STRIX Z790-E GAMING WIFI dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev 1.xx dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0401:bd09/07/2022:br4.1:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXZ790-EGAMINGWIFI:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: ASUS modified.conffile..etc.modprobe.d.alsa-base.conf: [modified] mtime.conffile..etc.modprobe.d.alsa-base.conf: 2023-08-23T00:11:36.686026 ++++++++++++++++++++++++++Basic information+++++++++++++++++++++++++++++++++++++ ################################################################################ Probelm ========= case1: mainboard ---> hdmi wire ---> monitor using intel graphic card(Intel UHD 770, the monitor has no sound ouput, and the 3.5mm port on machine outputs sound normally. I want to make sound output normally from monitor in this case. case2: nvidia gpu card ---> hdmi wire ---> monitor When conneting the HDMI to the nvidia graphic card, everything normal, sound OK. note: when changing to the windows system, case1 and case2 both output sound normally from monitor. ################################################################################ Machine ========== cup:13700k; monitor:asus vg27ag1a; mortherboard: rog strix z790-e. system: Ubuntu 20.04.6 LTS Linux asus-fossa 5.15.0-79-generic #86~20.04.2-Ubuntu SMP Mon Jul 17 23:27:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ################################################################################ My changes: ============ 1) /etc/modprobe.d/alsa-base.conf add a line: options snd-hda-intel model=generic 2) /etc/default/grub chang GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="quiet i915.force_probe=a780" note: if no change 1), "HDMI/DisplayPort-Built-in Audio" does not show in Setting--Sound-Output-Output Divices , and only show "Digital Output(S/PDIF)-USB Audio", and command "aplay -l" does not show card 0. if no change 2), command" >>dmesg | grep snd " output: [ 1.712387] ata5.00: Features: NCQ-sndrcv [ 6.863500] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.864355] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.864389] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.864393] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 11.233468] usbcore: registered new interface driver snd-usb-audio [ 68.686322] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 68.693377] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec [ 68.696055] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up ++++++++++++++++++++++++++Tests++++++++++++++++++++++++++++++++++++++++++++++ the following tests all based on the change 1) 2) ,i.e., after changing 1) 2) ############################################################################# dmesg | grep snd ================= [ 1.255751] ata5.00: Features: NCQ-sndrcv [ 6.377928] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.378272] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.378355] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.378360] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 10.741520] usbcore: registered new interface driver snd-usb-audio [ 66.634220] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 66.658044] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line [ 66.658056] snd_hda_codec_generic hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658061] snd_hda_codec_generic hdaudioC0D2: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658064] snd_hda_codec_generic hdaudioC0D2: mono: mono_out=0x0 [ 66.658066] snd_hda_codec_generic hdaudioC0D2: dig-out=0x4/0x0 [ 66.658068] snd_hda_codec_generic hdaudioC0D2: inputs: ################################################################################ inxi -G ============ Graphics: Device-1: Intel driver: N/A ##//////////why display this "Intel driver: N/A ", no i915 intel driver in my machine????            Device-2: NVIDIA driver: nvidia v: 535.86.05            Display: x11 server: X.Org 1.20.13 driver: fbdev FAILED: nvidia unloaded: modesetting,nouveau,vesa            resolution: 2560x1440~93Hz            OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.1.6 - kisak-mesa PPA ################################################################################ dkms status ============ intel-platform-cse-dkms, 2022.28: added intel-platform-pmt-dkms, 2021.21, 5.15.0-79-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-78-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-79-generic, x86_64: installed ################################################################################ sudo lshw -c video | grep 'configuration' ============        configuration: driver=nvidia latency=0        configuration: latency=0 ################################################################################ grep "Codec:" /proc/asound/card*/codec* ============= /proc/asound/card0/codec#2:Codec: Intel Generic /proc/asound/card2/codec#0:Codec: Nvidia Generic HDMI ################################################################################ aplay -l ============ **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]   Subdevices: 1/1   Subdevice #0: subdevice #0 ################################################################################ speaker-test --channels 2 --test wav --device hw:0,3 ============ speaker-test 1.2.2 Playback device is hw:0,3 Stream parameters are 48000Hz, S16_LE, 2 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 64 to 1048576 Period size range from 32 to 524288 Using max buffer size 1048576 Periods = 4 was set period_size = 262144 was set buffer_size = 1048576  0 - Front Left  1 - Front Right Time per period = 10.938189  0 - Front Left  1 - Front Right Time per period = 10.929954 ################################################################################ glxinfo -B ============== name of display: :1 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer):     Vendor: Mesa (0xffffffff)     Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff) ##//////////////////////////////////////why display this "llvmpipe"     Version: 23.1.6     Accelerated: no     Video memory: 31830MB     Unified memory: yes     Preferred profile: core (0x1)     Max core profile version: 4.5     Max compat profile version: 4.5     Max GLES1 profile version: 1.1     Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo):     VBO free memory - total: 0 MB, largest block: 0 MB     VBO free aux. memory - total: 24979 MB, largest block: 24979 MB     Texture free memory - total: 0 MB, largest block: 0 MB     Texture free aux. memory - total: 24979 MB, largest block: 24979 MB     Renderbuffer free memory - total: 0 MB, largest block: 0 MB     Renderbuffer free aux. memory - total: 24979 MB, largest block: 24979 MB Memory info (GL_NVX_gpu_memory_info):     Dedicated video memory: 0 MB     Total available memory: 31830 MB     Currently available dedicated video memory: 0 MB OpenGL vendor string: Mesa OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6 - kisak-mesa PPA OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ################################################################################ pacmd list-sinks ============ 2 sink(s) available.     index: 1  name: <alsa_output.usb-Generic_USB_Audio-00.iec958-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9048  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 1  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 .. 2000.00 ms  card: 0 <alsa_card.usb-Generic_USB_Audio-00>  module: 23  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "USB Audio"   alsa.id = "USB Audio"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "0"   alsa.card = "1"   alsa.card_name = "USB Audio"   alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"   alsa.driver_name = "snd_usb_audio"   device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"   sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card1"   udev.id = "usb-Generic_USB_Audio-00"   device.bus = "usb"   device.vendor.id = "0b05"   device.vendor.name = "ASUSTek Computer, Inc."   device.product.id = "1a52"   device.product.name = "USB Audio"   device.serial = "Generic_USB_Audio"   device.string = "iec958:1"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "iec958-stereo"   device.profile.description = "Digital Stereo (IEC958)"   device.description = "USB Audio Digital Stereo (IEC958)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-usb"  ports:   iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)    properties:  active port: <iec958-stereo-output>   * index: 2  name: <alsa_output.pci-0000_00_1f.3.hdmi-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9030  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 3  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 .. 2000.00 ms  card: 2 <alsa_card.pci-0000_00_1f.3>  module: 28  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "Generic Digital"   alsa.id = "Generic Digital"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "3"   alsa.card = "0"   alsa.card_name = "HDA Intel PCH"   alsa.long_card_name = "HDA Intel PCH at 0x6805220000 irq 204"   alsa.driver_name = "snd_hda_intel"   device.bus_path = "pci-0000:00:1f.3"   sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"   device.bus = "pci"   device.vendor.id = "8086"   device.vendor.name = "Intel Corporation"   device.product.id = "7a50"   device.form_factor = "internal"   device.string = "hdmi:0"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "hdmi-stereo"   device.profile.description = "Digital Stereo (HDMI)"   device.description = "Built-in Audio Digital Stereo (HDMI)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-pci"  ports:   hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)    properties:     device.icon_name = "video-display"  active port: <hdmi-output-0> ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: alsa-base 1.0.25+dfsg-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-79.86~20.04.2-generic 5.15.111 Uname: Linux 5.15.0-79-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.26 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: huang 2497 F.... pulseaudio  /dev/snd/controlC1: huang 2497 F.... pulseaudio  /dev/snd/controlC2: huang 2497 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Wed Aug 23 09:23:42 2023 InstallationDate: Installed on 2023-03-30 (145 days ago) InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316) PackageArchitecture: all SourcePackage: alsa-driver Symptom: audio Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed Symptom_Card: Built-in Audio - HDA Intel PCH Symptom_Jack: Digital Out, HDMI Symptom_Type: No sound at all Title: [System Product Name, Intel Generic, Digital Out, HDMI] No sound at all UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 09/07/2022 dmi.bios.release: 4.1 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0401 dmi.board.asset.tag: Default string dmi.board.name: ROG STRIX Z790-E GAMING WIFI dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev 1.xx dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0401:bd09/07/2022:br4.1:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXZ790-EGAMINGWIFI:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: ASUS modified.conffile..etc.modprobe.d.alsa-base.conf: [modified] mtime.conffile..etc.modprobe.d.alsa-base.conf: 2023-08-23T00:11:36.686026
2023-08-23 03:09:53 zorb description ++++++++++++++++++++++++++Basic information+++++++++++++++++++++++++++++++++++++ ################################################################################ Probelm ========= case1: mainboard ---> hdmi wire ---> monitor using intel graphic card(Intel UHD 770, the monitor has no sound ouput, and the 3.5mm port on machine outputs sound normally. I want to make sound output normally from monitor in this case. case2: nvidia gpu card ---> hdmi wire ---> monitor When conneting the HDMI to the nvidia graphic card, everything normal, sound OK. note: when changing to the windows system, case1 and case2 both output sound normally from monitor. ################################################################################ Machine ========== cup:13700k; monitor:asus vg27ag1a; mortherboard: rog strix z790-e. system: Ubuntu 20.04.6 LTS Linux asus-fossa 5.15.0-79-generic #86~20.04.2-Ubuntu SMP Mon Jul 17 23:27:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ################################################################################ My changes: ============ 1) /etc/modprobe.d/alsa-base.conf add a line: options snd-hda-intel model=generic 2) /etc/default/grub chang GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="quiet i915.force_probe=a780" note: if no change 1), "HDMI/DisplayPort-Built-in Audio" does not show in Setting--Sound-Output-Output Divices , and only show "Digital Output(S/PDIF)-USB Audio", and command "aplay -l" does not show card 0. if no change 2), command" >>dmesg | grep snd " output: [ 1.712387] ata5.00: Features: NCQ-sndrcv [ 6.863500] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.864355] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.864389] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.864393] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 11.233468] usbcore: registered new interface driver snd-usb-audio [ 68.686322] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 68.693377] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec [ 68.696055] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up ++++++++++++++++++++++++++Tests++++++++++++++++++++++++++++++++++++++++++++++ the following tests all based on the change 1) 2) ,i.e., after changing 1) 2) ############################################################################# dmesg | grep snd ================= [ 1.255751] ata5.00: Features: NCQ-sndrcv [ 6.377928] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.378272] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.378355] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.378360] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 10.741520] usbcore: registered new interface driver snd-usb-audio [ 66.634220] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 66.658044] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line [ 66.658056] snd_hda_codec_generic hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658061] snd_hda_codec_generic hdaudioC0D2: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658064] snd_hda_codec_generic hdaudioC0D2: mono: mono_out=0x0 [ 66.658066] snd_hda_codec_generic hdaudioC0D2: dig-out=0x4/0x0 [ 66.658068] snd_hda_codec_generic hdaudioC0D2: inputs: ################################################################################ inxi -G ============ Graphics: Device-1: Intel driver: N/A ##//////////why display this "Intel driver: N/A ", no i915 intel driver in my machine????            Device-2: NVIDIA driver: nvidia v: 535.86.05            Display: x11 server: X.Org 1.20.13 driver: fbdev FAILED: nvidia unloaded: modesetting,nouveau,vesa            resolution: 2560x1440~93Hz            OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.1.6 - kisak-mesa PPA ################################################################################ dkms status ============ intel-platform-cse-dkms, 2022.28: added intel-platform-pmt-dkms, 2021.21, 5.15.0-79-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-78-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-79-generic, x86_64: installed ################################################################################ sudo lshw -c video | grep 'configuration' ============        configuration: driver=nvidia latency=0        configuration: latency=0 ################################################################################ grep "Codec:" /proc/asound/card*/codec* ============= /proc/asound/card0/codec#2:Codec: Intel Generic /proc/asound/card2/codec#0:Codec: Nvidia Generic HDMI ################################################################################ aplay -l ============ **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]   Subdevices: 1/1   Subdevice #0: subdevice #0 ################################################################################ speaker-test --channels 2 --test wav --device hw:0,3 ============ speaker-test 1.2.2 Playback device is hw:0,3 Stream parameters are 48000Hz, S16_LE, 2 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 64 to 1048576 Period size range from 32 to 524288 Using max buffer size 1048576 Periods = 4 was set period_size = 262144 was set buffer_size = 1048576  0 - Front Left  1 - Front Right Time per period = 10.938189  0 - Front Left  1 - Front Right Time per period = 10.929954 ################################################################################ glxinfo -B ============== name of display: :1 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer):     Vendor: Mesa (0xffffffff)     Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff) ##//////////////////////////////////////why display this "llvmpipe"     Version: 23.1.6     Accelerated: no     Video memory: 31830MB     Unified memory: yes     Preferred profile: core (0x1)     Max core profile version: 4.5     Max compat profile version: 4.5     Max GLES1 profile version: 1.1     Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo):     VBO free memory - total: 0 MB, largest block: 0 MB     VBO free aux. memory - total: 24979 MB, largest block: 24979 MB     Texture free memory - total: 0 MB, largest block: 0 MB     Texture free aux. memory - total: 24979 MB, largest block: 24979 MB     Renderbuffer free memory - total: 0 MB, largest block: 0 MB     Renderbuffer free aux. memory - total: 24979 MB, largest block: 24979 MB Memory info (GL_NVX_gpu_memory_info):     Dedicated video memory: 0 MB     Total available memory: 31830 MB     Currently available dedicated video memory: 0 MB OpenGL vendor string: Mesa OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6 - kisak-mesa PPA OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ################################################################################ pacmd list-sinks ============ 2 sink(s) available.     index: 1  name: <alsa_output.usb-Generic_USB_Audio-00.iec958-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9048  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 1  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 .. 2000.00 ms  card: 0 <alsa_card.usb-Generic_USB_Audio-00>  module: 23  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "USB Audio"   alsa.id = "USB Audio"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "0"   alsa.card = "1"   alsa.card_name = "USB Audio"   alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"   alsa.driver_name = "snd_usb_audio"   device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"   sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card1"   udev.id = "usb-Generic_USB_Audio-00"   device.bus = "usb"   device.vendor.id = "0b05"   device.vendor.name = "ASUSTek Computer, Inc."   device.product.id = "1a52"   device.product.name = "USB Audio"   device.serial = "Generic_USB_Audio"   device.string = "iec958:1"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "iec958-stereo"   device.profile.description = "Digital Stereo (IEC958)"   device.description = "USB Audio Digital Stereo (IEC958)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-usb"  ports:   iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)    properties:  active port: <iec958-stereo-output>   * index: 2  name: <alsa_output.pci-0000_00_1f.3.hdmi-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9030  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 3  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 .. 2000.00 ms  card: 2 <alsa_card.pci-0000_00_1f.3>  module: 28  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "Generic Digital"   alsa.id = "Generic Digital"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "3"   alsa.card = "0"   alsa.card_name = "HDA Intel PCH"   alsa.long_card_name = "HDA Intel PCH at 0x6805220000 irq 204"   alsa.driver_name = "snd_hda_intel"   device.bus_path = "pci-0000:00:1f.3"   sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"   device.bus = "pci"   device.vendor.id = "8086"   device.vendor.name = "Intel Corporation"   device.product.id = "7a50"   device.form_factor = "internal"   device.string = "hdmi:0"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "hdmi-stereo"   device.profile.description = "Digital Stereo (HDMI)"   device.description = "Built-in Audio Digital Stereo (HDMI)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-pci"  ports:   hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)    properties:     device.icon_name = "video-display"  active port: <hdmi-output-0> ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: alsa-base 1.0.25+dfsg-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-79.86~20.04.2-generic 5.15.111 Uname: Linux 5.15.0-79-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.26 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: huang 2497 F.... pulseaudio  /dev/snd/controlC1: huang 2497 F.... pulseaudio  /dev/snd/controlC2: huang 2497 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Wed Aug 23 09:23:42 2023 InstallationDate: Installed on 2023-03-30 (145 days ago) InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316) PackageArchitecture: all SourcePackage: alsa-driver Symptom: audio Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed Symptom_Card: Built-in Audio - HDA Intel PCH Symptom_Jack: Digital Out, HDMI Symptom_Type: No sound at all Title: [System Product Name, Intel Generic, Digital Out, HDMI] No sound at all UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 09/07/2022 dmi.bios.release: 4.1 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0401 dmi.board.asset.tag: Default string dmi.board.name: ROG STRIX Z790-E GAMING WIFI dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev 1.xx dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0401:bd09/07/2022:br4.1:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXZ790-EGAMINGWIFI:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: ASUS modified.conffile..etc.modprobe.d.alsa-base.conf: [modified] mtime.conffile..etc.modprobe.d.alsa-base.conf: 2023-08-23T00:11:36.686026 ++++++++++++++++++++++++++Basic information+++++++++++++++++++++++++++++++++++++ ################################################################################ Probelm ========= case1: motherboard ---> hdmi wire ---> monitor using intel graphic card(Intel UHD 770 built-in cpu 13700k), the monitor has no sound ouput, and the 3.5mm port on machine outputs sound normally. I want to make sound output normally from monitor in this case. case2: nvidia gpu card ---> hdmi wire ---> monitor When conneting the HDMI to the nvidia graphic card, everything normal, sound OK. note: when changing to the windows system, case1 and case2 both output sound normally from monitor. ################################################################################ Machine ========== Hardware: CPU:13700k; Monitor:asus vg27ag1a; Motherboard: rog strix z790-e. System: Ubuntu 20.04.6 LTS Linux asus-fossa 5.15.0-79-generic #86~20.04.2-Ubuntu SMP Mon Jul 17 23:27:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ################################################################################ My changes: ============ 1) /etc/modprobe.d/alsa-base.conf add a line: options snd-hda-intel model=generic 2) /etc/default/grub chang GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="quiet i915.force_probe=a780" note: if no change 1), "HDMI/DisplayPort-Built-in Audio" does not show in Setting--Sound-Output-Output Divices , and only show "Digital Output(S/PDIF)-USB Audio", and command "aplay -l" does not show card 0. if no change 2), command" >>dmesg | grep snd " output: [ 1.712387] ata5.00: Features: NCQ-sndrcv [ 6.863500] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.864355] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.864389] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.864393] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 11.233468] usbcore: registered new interface driver snd-usb-audio [ 68.686322] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 68.693377] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec [ 68.696055] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up ++++++++++++++++++++++++++Tests++++++++++++++++++++++++++++++++++++++++++++++ the following tests all based on the change 1) 2) ,i.e., after changing 1) 2) ############################################################################# dmesg | grep snd ================= [ 1.255751] ata5.00: Features: NCQ-sndrcv [ 6.377928] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002) [ 6.378272] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 6.378355] snd_hda_intel 0000:01:00.1: Disabling MSI [ 6.378360] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 10.741520] usbcore: registered new interface driver snd-usb-audio [ 66.634220] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component [ 66.658044] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line [ 66.658056] snd_hda_codec_generic hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658061] snd_hda_codec_generic hdaudioC0D2: hp_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 66.658064] snd_hda_codec_generic hdaudioC0D2: mono: mono_out=0x0 [ 66.658066] snd_hda_codec_generic hdaudioC0D2: dig-out=0x4/0x0 [ 66.658068] snd_hda_codec_generic hdaudioC0D2: inputs: ################################################################################ inxi -G ============ Graphics: Device-1: Intel driver: N/A ##//////////why display this "Intel driver: N/A ", no i915 intel driver in my machine????            Device-2: NVIDIA driver: nvidia v: 535.86.05            Display: x11 server: X.Org 1.20.13 driver: fbdev FAILED: nvidia unloaded: modesetting,nouveau,vesa            resolution: 2560x1440~93Hz            OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.1.6 - kisak-mesa PPA ################################################################################ dkms status ============ intel-platform-cse-dkms, 2022.28: added intel-platform-pmt-dkms, 2021.21, 5.15.0-79-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-78-generic, x86_64: installed nvidia, 535.86.05, 5.15.0-79-generic, x86_64: installed ################################################################################ sudo lshw -c video | grep 'configuration' ============        configuration: driver=nvidia latency=0        configuration: latency=0 ################################################################################ grep "Codec:" /proc/asound/card*/codec* ============= /proc/asound/card0/codec#2:Codec: Intel Generic /proc/asound/card2/codec#0:Codec: Nvidia Generic HDMI ################################################################################ aplay -l ============ **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]   Subdevices: 1/1   Subdevice #0: subdevice #0 ################################################################################ speaker-test --channels 2 --test wav --device hw:0,3 ============ speaker-test 1.2.2 Playback device is hw:0,3 Stream parameters are 48000Hz, S16_LE, 2 channels WAV file(s) Rate set to 48000Hz (requested 48000Hz) Buffer size range from 64 to 1048576 Period size range from 32 to 524288 Using max buffer size 1048576 Periods = 4 was set period_size = 262144 was set buffer_size = 1048576  0 - Front Left  1 - Front Right Time per period = 10.938189  0 - Front Left  1 - Front Right Time per period = 10.929954 ################################################################################ glxinfo -B ============== name of display: :1 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer):     Vendor: Mesa (0xffffffff)     Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff) ##//////////////////////////////////////why display this "llvmpipe"     Version: 23.1.6     Accelerated: no     Video memory: 31830MB     Unified memory: yes     Preferred profile: core (0x1)     Max core profile version: 4.5     Max compat profile version: 4.5     Max GLES1 profile version: 1.1     Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo):     VBO free memory - total: 0 MB, largest block: 0 MB     VBO free aux. memory - total: 24979 MB, largest block: 24979 MB     Texture free memory - total: 0 MB, largest block: 0 MB     Texture free aux. memory - total: 24979 MB, largest block: 24979 MB     Renderbuffer free memory - total: 0 MB, largest block: 0 MB     Renderbuffer free aux. memory - total: 24979 MB, largest block: 24979 MB Memory info (GL_NVX_gpu_memory_info):     Dedicated video memory: 0 MB     Total available memory: 31830 MB     Currently available dedicated video memory: 0 MB OpenGL vendor string: Mesa OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.6 - kisak-mesa PPA OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.6 - kisak-mesa PPA OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ################################################################################ pacmd list-sinks ============ 2 sink(s) available.     index: 1  name: <alsa_output.usb-Generic_USB_Audio-00.iec958-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9048  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 1  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 .. 2000.00 ms  card: 0 <alsa_card.usb-Generic_USB_Audio-00>  module: 23  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "USB Audio"   alsa.id = "USB Audio"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "0"   alsa.card = "1"   alsa.card_name = "USB Audio"   alsa.long_card_name = "Generic USB Audio at usb-0000:00:14.0-4, high speed"   alsa.driver_name = "snd_usb_audio"   device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"   sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/sound/card1"   udev.id = "usb-Generic_USB_Audio-00"   device.bus = "usb"   device.vendor.id = "0b05"   device.vendor.name = "ASUSTek Computer, Inc."   device.product.id = "1a52"   device.product.name = "USB Audio"   device.serial = "Generic_USB_Audio"   device.string = "iec958:1"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "iec958-stereo"   device.profile.description = "Digital Stereo (IEC958)"   device.description = "USB Audio Digital Stereo (IEC958)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-usb"  ports:   iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)    properties:  active port: <iec958-stereo-output>   * index: 2  name: <alsa_output.pci-0000_00_1f.3.hdmi-stereo>  driver: <module-alsa-card.c>  flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY  state: SUSPENDED  suspend cause: IDLE  priority: 9030  volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB          balance 0.00  base volume: 65536 / 100% / 0.00 dB  volume steps: 65537  muted: no  current latency: 0.00 ms  max request: 0 KiB  max rewind: 0 KiB  monitor source: 3  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 .. 2000.00 ms  card: 2 <alsa_card.pci-0000_00_1f.3>  module: 28  properties:   alsa.resolution_bits = "16"   device.api = "alsa"   device.class = "sound"   alsa.class = "generic"   alsa.subclass = "generic-mix"   alsa.name = "Generic Digital"   alsa.id = "Generic Digital"   alsa.subdevice = "0"   alsa.subdevice_name = "subdevice #0"   alsa.device = "3"   alsa.card = "0"   alsa.card_name = "HDA Intel PCH"   alsa.long_card_name = "HDA Intel PCH at 0x6805220000 irq 204"   alsa.driver_name = "snd_hda_intel"   device.bus_path = "pci-0000:00:1f.3"   sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"   device.bus = "pci"   device.vendor.id = "8086"   device.vendor.name = "Intel Corporation"   device.product.id = "7a50"   device.form_factor = "internal"   device.string = "hdmi:0"   device.buffering.buffer_size = "352800"   device.buffering.fragment_size = "176400"   device.access_mode = "mmap+timer"   device.profile.name = "hdmi-stereo"   device.profile.description = "Digital Stereo (HDMI)"   device.description = "Built-in Audio Digital Stereo (HDMI)"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-pci"  ports:   hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)    properties:     device.icon_name = "video-display"  active port: <hdmi-output-0> ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: alsa-base 1.0.25+dfsg-0ubuntu5 ProcVersionSignature: Ubuntu 5.15.0-79.86~20.04.2-generic 5.15.111 Uname: Linux 5.15.0-79-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.26 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: huang 2497 F.... pulseaudio  /dev/snd/controlC1: huang 2497 F.... pulseaudio  /dev/snd/controlC2: huang 2497 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Wed Aug 23 09:23:42 2023 InstallationDate: Installed on 2023-03-30 (145 days ago) InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316) PackageArchitecture: all SourcePackage: alsa-driver Symptom: audio Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed Symptom_Card: Built-in Audio - HDA Intel PCH Symptom_Jack: Digital Out, HDMI Symptom_Type: No sound at all Title: [System Product Name, Intel Generic, Digital Out, HDMI] No sound at all UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 09/07/2022 dmi.bios.release: 4.1 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0401 dmi.board.asset.tag: Default string dmi.board.name: ROG STRIX Z790-E GAMING WIFI dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev 1.xx dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0401:bd09/07/2022:br4.1:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXZ790-EGAMINGWIFI:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: ASUS modified.conffile..etc.modprobe.d.alsa-base.conf: [modified] mtime.conffile..etc.modprobe.d.alsa-base.conf: 2023-08-23T00:11:36.686026