Advertisement
luizcarlin

Ubuntu 24.04 - Dual HDMI ports - No Sound in none of them

May 9th, 2024 (edited)
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.47 KB | Help | 0 0
  1. ==============================================================================================================================================
  2. lcarlin@LDA0269:~$ cat /etc/default/grub
  3. # If you change this file, run 'update-grub' afterwards to update
  4. # /boot/grub/grub.cfg.
  5. # For full documentation of the options in this file, see:
  6. #   info -f grub -n 'Simple configuration'
  7.  
  8. GRUB_DEFAULT=0
  9. GRUB_TIMEOUT_STYLE=hidden
  10. GRUB_TIMEOUT=10
  11. GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
  12. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  13. GRUB_CMDLINE_LINUX=""
  14.  
  15. # If your computer has multiple operating systems installed, then you
  16. # probably want to run os-prober. However, if your computer is a host
  17. # for guest OSes installed via LVM or raw disk devices, running
  18. # os-prober can cause damage to those guest OSes as it mounts
  19. # filesystems to look for things.
  20. #GRUB_DISABLE_OS_PROBER=false
  21.  
  22. # Uncomment to enable BadRAM filtering, modify to suit your needs
  23. # This works with Linux (no patch required) and with any kernel that obtains
  24. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  25. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
  26.  
  27. # Uncomment to disable graphical terminal
  28. #GRUB_TERMINAL=console
  29.  
  30. # The resolution used on graphical terminal
  31. # note that you can use only modes which your graphic card supports via VBE
  32. # you can see them in real GRUB with the command `vbeinfo'
  33. #GRUB_GFXMODE=640x480
  34.  
  35. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  36. #GRUB_DISABLE_LINUX_UUID=true
  37.  
  38. # Uncomment to disable generation of recovery mode menu entries
  39. #GRUB_DISABLE_RECOVERY="true"
  40.  
  41. # Uncomment to get a beep at grub start
  42. #GRUB_INIT_TUNE="480 440 1"
  43.  
  44. ==============================================================================================================================================
  45. lcarlin@LDA0269:~$ sudo modprobe -r snd_hda_intel
  46. modprobe: FATAL: Module snd_hda_intel is in use.
  47. lcarlin@LDA0269:~$
  48.  
  49. ==============================================================================================================================================
  50. lcarlin@LDA0269:~$ cat /etc/pulse/default.pa
  51. #!/usr/bin/pulseaudio -nF
  52. #
  53. # This file is part of PulseAudio.
  54. #
  55. # PulseAudio is free software; you can redistribute it and/or modify it
  56. # under the terms of the GNU Lesser General Public License as published by
  57. # the Free Software Foundation; either version 2 of the License, or
  58. # (at your option) any later version.
  59. #
  60. # PulseAudio is distributed in the hope that it will be useful, but
  61. # WITHOUT ANY WARRANTY; without even the implied warranty of
  62. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  63. # General Public License for more details.
  64. #
  65. # You should have received a copy of the GNU Lesser General Public License
  66. # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  67.  
  68. # This startup script is used only if PulseAudio is started per-user
  69. # (i.e. not in system mode)
  70.  
  71. .fail
  72.  
  73. ### Automatically restore the volume of streams and devices
  74. load-module module-device-restore
  75. load-module module-stream-restore
  76. load-module module-card-restore
  77.  
  78. ### Automatically augment property information from .desktop files
  79. ### stored in /usr/share/application
  80. load-module module-augment-properties
  81.  
  82. ### Should be after module-*-restore but before module-*-detect
  83. load-module module-switch-on-port-available
  84.  
  85. ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
  86. .ifexists module-switch-on-connect.so
  87. load-module module-switch-on-connect
  88. .endif
  89.  
  90. ### Load audio drivers statically
  91. ### (it's probably better to not load these drivers manually, but instead
  92. ### use module-udev-detect -- see below -- for doing this automatically)
  93. #load-module module-alsa-sink
  94. #load-module module-alsa-source device=hw:1,0
  95. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  96. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  97. #load-module module-null-sink
  98. #load-module module-pipe-sink
  99.  
  100. ### Automatically load driver modules depending on the hardware available
  101. .ifexists module-udev-detect.so
  102. load-module module-udev-detect
  103. .else
  104. ### Use the static hardware detection module (for systems that lack udev support)
  105. load-module module-detect
  106. .endif
  107.  
  108. ### Automatically connect sink and source if JACK server is present
  109. .ifexists module-jackdbus-detect.so
  110. .nofail
  111. load-module module-jackdbus-detect channels=2
  112. .fail
  113. .endif
  114.  
  115. ### Automatically load driver modules for Bluetooth hardware
  116. .ifexists module-bluetooth-policy.so
  117. load-module module-bluetooth-policy
  118. .endif
  119.  
  120. .ifexists module-bluetooth-discover.so
  121. load-module module-bluetooth-discover
  122. .endif
  123.  
  124. ### Load several protocols
  125. .ifexists module-esound-protocol-unix.so
  126. load-module module-esound-protocol-unix
  127. .endif
  128. load-module module-native-protocol-unix
  129.  
  130. ### Network access (may be configured with paprefs, so leave this commented
  131. ### here if you plan to use paprefs)
  132. #load-module module-esound-protocol-tcp
  133. #load-module module-native-protocol-tcp
  134. #load-module module-zeroconf-publish
  135.  
  136. ### Load the RTP receiver module (also configured via paprefs, see above)
  137. #load-module module-rtp-recv
  138.  
  139. ### Load the RTP sender module (also configured via paprefs, see above)
  140. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  141. #load-module module-rtp-send source=rtp.monitor
  142.  
  143. ### Load additional modules from GSettings. This can be configured with the paprefs tool.
  144. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  145. ### loaded modules.
  146. .ifexists module-gsettings.so
  147. .nofail
  148. load-module module-gsettings
  149. .fail
  150. .endif
  151.  
  152. ### Automatically restore the default sink/source when changed by the user
  153. ### during runtime
  154. ### NOTE: This should be loaded as early as possible so that subsequent modules
  155. ### that look up the default sink/source get the right value
  156. load-module module-default-device-restore
  157.  
  158. ### Make sure we always have a sink around, even if it is a null sink.
  159. load-module module-always-sink
  160.  
  161. ### Honour intended role device property
  162. load-module module-intended-roles
  163.  
  164. ### Automatically suspend sinks/sources that become idle for too long
  165. load-module module-suspend-on-idle
  166.  
  167. ### If autoexit on idle is enabled we want to make sure we only quit
  168. ### when no local session needs us anymore.
  169. .ifexists module-console-kit.so
  170. load-module module-console-kit
  171. .endif
  172. .ifexists module-systemd-login.so
  173. load-module module-systemd-login
  174. .endif
  175.  
  176. ### Enable positioned event sounds
  177. load-module module-position-event-sounds
  178.  
  179. ### Cork music/video streams when a phone stream is active
  180. load-module module-role-cork
  181.  
  182. ### Block audio recording for snap confined packages unless they have
  183. ### the "pulseaudio" or "audio-record" interfaces plugged.
  184. .ifexists module-snap-policy.so
  185. load-module module-snap-policy
  186. .endif
  187.  
  188. ### Modules to allow autoloading of filters (such as echo cancellation)
  189. ### on demand. module-filter-heuristics tries to determine what filters
  190. ### make sense, and module-filter-apply does the heavy-lifting of
  191. ### loading modules and rerouting streams.
  192. load-module module-filter-heuristics
  193. load-module module-filter-apply
  194.  
  195. ### Make some devices default
  196. #set-default-sink output
  197. #set-default-source input
  198.  
  199. ### Allow including a default.pa.d directory, which if present, can be used
  200. ### for additional configuration snippets.
  201. ### Note that those snippet files must have a .pa file extension, not .conf
  202. .nofail
  203. .include /etc/pulse/default.pa.d
  204.  
  205. ==============================================================================================================================================
  206. lcarlin@LDA0269:~$ cat /etc/pulse/client.conf
  207. # This file is part of PulseAudio.
  208. #
  209. # PulseAudio is free software; you can redistribute it and/or modify
  210. # it under the terms of the GNU Lesser General Public License as published by
  211. # the Free Software Foundation; either version 2 of the License, or
  212. # (at your option) any later version.
  213. #
  214. # PulseAudio is distributed in the hope that it will be useful, but
  215. # WITHOUT ANY WARRANTY; without even the implied warranty of
  216. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  217. # General Public License for more details.
  218. #
  219. # You should have received a copy of the GNU Lesser General Public License
  220. # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  221.  
  222. ## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
  223. ## more information. Default values are commented out.  Use either ; or # for
  224. ## commenting.
  225.  
  226. default-sink = alsa_output.pci-0000_00_1f.3.hdmi-stereo
  227. ; default-source =
  228. ; default-server =
  229. ; default-dbus-server =
  230.  
  231. ; autospawn = yes
  232. ; daemon-binary = /usr/bin/pulseaudio
  233. ; extra-arguments = --log-target=syslog
  234.  
  235. ; cookie-file =
  236.  
  237. ; enable-shm = yes
  238. ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
  239.  
  240. ; auto-connect-localhost = no
  241. ; auto-connect-display = no
  242.  
  243. ==============================================================================================================================================
  244. lcarlin@LDA0269:~$ lspci -nnk | grep -n -A 4 -i audio
  245. 43:00:1f.3 Audio device [0403]: Intel Corporation Alder Lake-N PCH High Definition Audio Controller [8086:54c8]
  246. 44- DeviceName: Onboard - Sound
  247. 45- Subsystem: Intel Corporation Device [8086:7270]
  248. 46- Kernel driver in use: snd_hda_intel
  249. 47- Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
  250.  
  251. ==============================================================================================================================================
  252. lcarlin@LDA0269:~$ sudo alsa-info
  253. ALSA Information Script v 0.5.3
  254. --------------------------------
  255.  
  256. This script visits the following commands/files to collect diagnostic
  257. information about your ALSA installation and sound related hardware.
  258.  
  259.   dmesg
  260.   lspci
  261.   aplay
  262.   amixer
  263.   alsactl
  264.   rpm, dpkg
  265.   /proc/asound/
  266.   /sys/class/sound/
  267.   ~/.asoundrc (etc.)
  268.  
  269. See '/usr/sbin/alsa-info --help' for command line options.
  270.  
  271. pgrep: pattern that searches for process name longer than 15 characters will result in zero matches
  272. Try `pgrep -f' option to match against the complete command line.
  273. Automatically upload ALSA information to www.alsa-project.org? [y/N] : Y
  274.  
  275. Your ALSA information is in /tmp/alsa-info.txt.j9NjL4lQ9L
  276.  
  277. ==============================================================================================================================================
  278. lcarlin@LDA0269:~$ sudo fuser -v /dev/snd/*
  279. [sudo] senha para lcarlin:
  280.                     USUÁRIO     PID ACESSO COMANDO
  281. /dev/snd/controlC0:  lcarlin    2601 F.... wireplumber
  282. /dev/snd/controlC1:  lcarlin    2601 F.... wireplumber
  283. /dev/snd/seq:        lcarlin    2590 F.... pipewire
  284.  
  285. ==============================================================================================================================================
  286.  
  287. pactl list cards
  288. Placa #46
  289.     Nome: alsa_card.usb-CSCTEK_USB_Audio_and_HID_A34004801402-00
  290.     Driver: alsa
  291.     Módulo proprietário: n/d
  292.     Propriedades:
  293.         api.acp.auto-port = "false"
  294.         api.acp.auto-profile = "false"
  295.         api.alsa.card = "1"
  296.         api.alsa.card.longname = "CSCTEK USB Audio and HID at usb-0000:00:14.0-6, full speed"
  297.         api.alsa.card.name = "USB Audio and HID"
  298.         api.alsa.path = "hw:1"
  299.         api.alsa.use-acp = "true"
  300.         api.dbus.ReserveDevice1 = "Audio1"
  301.         device.api = "alsa"
  302.         device.bus = "usb"
  303.         device.bus-id = "usb-CSCTEK_USB_Audio_and_HID_A34004801402-00"
  304.         device.bus_path = "pci-0000:00:14.0-usb-0:6:1.0"
  305.         device.description = "USB Audio and HID"
  306.         device.enum.api = "udev"
  307.         device.icon_name = "audio-card-analog-usb"
  308.         device.name = "alsa_card.usb-CSCTEK_USB_Audio_and_HID_A34004801402-00"
  309.         device.nick = "USB Audio and HID"
  310.         device.plugged.usec = "4604277"
  311.         device.product.id = "0x1573"
  312.         device.product.name = "USB Audio and HID"
  313.         device.serial = "CSCTEK_USB_Audio_and_HID_A34004801402"
  314.         device.subsystem = "sound"
  315.         sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/sound/card1"
  316.         device.vendor.id = "0x0573"
  317.         device.vendor.name = "Zoran Co. Personal Media Division (Nogatech)"
  318.         media.class = "Audio/Device"
  319.         factory.id = "14"
  320.         client.id = "33"
  321.         object.id = "46"
  322.         object.serial = "46"
  323.         object.path = "alsa:pcm:1"
  324.         alsa.card = "1"
  325.         alsa.card_name = "USB Audio and HID"
  326.         alsa.long_card_name = "CSCTEK USB Audio and HID at usb-0000:00:14.0-6, full speed"
  327.         alsa.driver_name = "snd_usb_audio"
  328.         alsa.mixer_name = "USB Mixer"
  329.         alsa.components = "USB0573:1573"
  330.         alsa.id = "HID"
  331.         device.string = "1"
  332.     Perfis:
  333.         off: Off (destino: 0, fontes: 0, prioridade: 0, disponível: sim)
  334.         output:analog-stereo+input:mono-fallback: Analog Stereo Output + Mono Input (destino: 1, fontes: 1, prioridade: 6501, disponível: sim)
  335.         output:analog-stereo: Analog Stereo Output (destino: 1, fontes: 0, prioridade: 6500, disponível: sim)
  336.         output:iec958-stereo+input:mono-fallback: Digital Stereo (IEC958) Output + Mono Input (destino: 1, fontes: 1, prioridade: 5501, disponível: sim)
  337.         output:iec958-stereo: Digital Stereo (IEC958) Output (destino: 1, fontes: 0, prioridade: 5500, disponível: sim)
  338.         output:iec958-ac3-surround-51+input:mono-fallback: Digital Surround 5.1 (IEC958/AC3) Output + Mono Input (destino: 1, fontes: 1, prioridade: 301, disponível: sim)
  339.         output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (destino: 1, fontes: 0, prioridade: 300, disponível: sim)
  340.         pro-audio: Pro Audio (destino: 1, fontes: 1, prioridade: 1, disponível: sim)
  341.         input:mono-fallback: Mono Input (destino: 0, fontes: 1, prioridade: 1, disponível: sim)
  342.     Perfil ativo: output:iec958-stereo+input:mono-fallback
  343.     Portas:
  344.         analog-input-mic: Microphone (tipo: Mic, prioridade: 8700, mudança da latência: 0 usec, disponibilidade desconhecida)
  345.             Propriedades:
  346.                 port.type = "mic"
  347.                 device.icon_name = "audio-input-microphone"
  348.                 card.profile.port = "0"
  349.             Parte de perfil/perfis: input:mono-fallback, output:analog-stereo+input:mono-fallback, output:iec958-stereo+input:mono-fallback, output:iec958-ac3-surround-51+input:mono-fallback
  350.         analog-output: Analog Output (tipo: Analógico, prioridade: 9900, mudança da latência: 0 usec, disponibilidade desconhecida)
  351.             Propriedades:
  352.                 port.type = "analog"
  353.                 card.profile.port = "1"
  354.             Parte de perfil/perfis: output:analog-stereo, output:analog-stereo+input:mono-fallback
  355.         iec958-stereo-output: Digital Output (S/PDIF) (tipo: SPDIF, prioridade: 0, mudança da latência: 0 usec, disponibilidade desconhecida)
  356.             Propriedades:
  357.                 port.type = "spdif"
  358.                 card.profile.port = "2"
  359.             Parte de perfil/perfis: output:iec958-stereo, output:iec958-stereo+input:mono-fallback
  360.  
  361. Placa #47
  362.     Nome: alsa_card.pci-0000_00_1f.3
  363.     Driver: alsa
  364.     Módulo proprietário: n/d
  365.     Propriedades:
  366.         api.acp.auto-port = "false"
  367.         api.acp.auto-profile = "false"
  368.         api.alsa.card = "0"
  369.         api.alsa.card.longname = "HDA Intel PCH at 0x6001110000 irq 134"
  370.         api.alsa.card.name = "HDA Intel PCH"
  371.         api.alsa.path = "hw:0"
  372.         api.alsa.use-acp = "true"
  373.         api.dbus.ReserveDevice1 = "Audio0"
  374.         device.api = "alsa"
  375.         device.bus = "pci"
  376.         device.bus_path = "pci-0000:00:1f.3"
  377.         device.description = "Built-in Audio"
  378.         device.enum.api = "udev"
  379.         device.form_factor = "internal"
  380.         device.icon_name = "audio-card-analog-pci"
  381.         device.name = "alsa_card.pci-0000_00_1f.3"
  382.         device.nick = "HDA Intel PCH"
  383.         device.plugged.usec = "4786625"
  384.         device.product.id = "0x54c8"
  385.         device.subsystem = "sound"
  386.         sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
  387.         device.vendor.id = "0x8086"
  388.         device.vendor.name = "Intel Corporation"
  389.         media.class = "Audio/Device"
  390.         factory.id = "14"
  391.         client.id = "33"
  392.         object.id = "47"
  393.         object.serial = "47"
  394.         object.path = "alsa:pcm:0"
  395.         alsa.card = "0"
  396.         alsa.card_name = "HDA Intel PCH"
  397.         alsa.long_card_name = "HDA Intel PCH at 0x6001110000 irq 134"
  398.         alsa.driver_name = "snd_hda_intel"
  399.         alsa.mixer_name = "Intel Alderlake-P HDMI"
  400.         alsa.components = "HDA:8086281c,80860101,00100000"
  401.         alsa.id = "PCH"
  402.         device.string = "0"
  403.     Perfis:
  404.         off: Off (destino: 0, fontes: 0, prioridade: 0, disponível: sim)
  405.         output:hdmi-stereo: Digital Stereo (HDMI) Output (destino: 1, fontes: 0, prioridade: 5900, disponível: sim)
  406.         output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (destino: 1, fontes: 0, prioridade: 5700, disponível: não)
  407.         output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (destino: 1, fontes: 0, prioridade: 5700, disponível: não)
  408.         output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (destino: 1, fontes: 0, prioridade: 5700, disponível: não)
  409.         output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (destino: 1, fontes: 0, prioridade: 800, disponível: sim)
  410.         output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  411.         output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  412.         output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  413.         output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  414.         output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  415.         output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (destino: 1, fontes: 0, prioridade: 600, disponível: não)
  416.         pro-audio: Pro Audio (destino: 4, fontes: 0, prioridade: 1, disponível: sim)
  417.     Perfil ativo: output:hdmi-stereo
  418.     Portas:
  419.         hdmi-output-0: HDMI / DisplayPort (tipo: HDMI, prioridade: 5900, mudança da latência: 0 usec, grupo de disponibilidade: Legacy 1, disponível)
  420.             Propriedades:
  421.                 port.type = "hdmi"
  422.                 port.availability-group = "Legacy 1"
  423.                 device.icon_name = "video-display"
  424.                 card.profile.port = "0"
  425.                 device.product.name = "AOC LCD"
  426.             Parte de perfil/perfis: output:hdmi-stereo, output:hdmi-surround
  427.         hdmi-output-1: HDMI / DisplayPort 2 (tipo: HDMI, prioridade: 5800, mudança da latência: 0 usec, grupo de disponibilidade: Legacy 2, não disponível)
  428.             Propriedades:
  429.                 port.type = "hdmi"
  430.                 port.availability-group = "Legacy 2"
  431.                 device.icon_name = "video-display"
  432.                 card.profile.port = "1"
  433.             Parte de perfil/perfis: output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
  434.         hdmi-output-2: HDMI / DisplayPort 3 (tipo: HDMI, prioridade: 5700, mudança da latência: 0 usec, grupo de disponibilidade: Legacy 3, não disponível)
  435.             Propriedades:
  436.                 port.type = "hdmi"
  437.                 port.availability-group = "Legacy 3"
  438.                 device.icon_name = "video-display"
  439.                 card.profile.port = "2"
  440.             Parte de perfil/perfis: output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
  441.         hdmi-output-3: HDMI / DisplayPort 4 (tipo: HDMI, prioridade: 5600, mudança da latência: 0 usec, grupo de disponibilidade: Legacy 4, não disponível)
  442.             Propriedades:
  443.                 port.type = "hdmi"
  444.                 port.availability-group = "Legacy 4"
  445.                 device.icon_name = "video-display"
  446.                 card.profile.port = "3"
  447.             Parte de perfil/perfis: output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
  448.  
  449. ==============================================================================================================================================
  450.  
  451.  
  452. sudo pactl set-default-sink alsa_output.pci-0000_00_1f.3.hdmi-stereo
  453.  
  454. sudo pactl set-default-sink 138
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement