I got similar symptom, but with NVIDIA driver and Lenovo Thunderbolt 4 dock. Looks like for it happens after connecting dock back, but screen goes black already when disconnecting from the dock.
System info:
Linux mopo 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
I got similar symptom, but with NVIDIA driver and Lenovo Thunderbolt 4 dock. Looks like for it happens after connecting dock back, but screen goes black already when disconnecting from the dock.
System info:
Linux mopo 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Backtrace:
marras 01 14:03:15 mopo kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000 20YRS21300, BIOS N37ET46W (1.27 ) 07/12/2023 acpi_async_ write+0x31/ 0x60 [ucsi_acpi] a37d10 EFLAGS: 00010282 0(0000) GS:ffffa0a1ef6c 0000(0000) knlGS:000000000 0000000 oops+0x79/ 0x190 addr_fault+ 0x30c/0x640 fault+0x81/ 0x1b0 page_fault+ 0x27/0x30 async_write+ 0x31/0x60 [ucsi_acpi] command+ 0xd9/0xf0 [typec_ucsi] command+ 0x4b/0xf0 [typec_ucsi] altmodes+ 0xd7/0x210 [typec_ucsi] altmodes+ 0x1c/0xb0 [typec_ucsi] 0x13/0x50 worker+ 0x3c/0x100 [typec_ucsi] one_work+ 0x21c/0x440 thread+ 0x50/0x3f0 thread+ 0x10/0x10 0x10/0x10 fork+0x29/ 0x50 netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype br_netfilter bridge stp llc vboxnetadp(O) vboxnetflt(O) vboxdrv(O) xt_comment nft_compat nf_tables nfnetlink cmac algif_hash overlay algif_skcipher af_alg bnep binfmt_misc dm_crypt nvidia_uvm(PO) snd_ctl_led snd_soc_skl_hda_dsp snd_soc_ intel_hda_ dsp_common snd_soc_hdac_hdmi snd_sof_probes nvidia_drm(PO) intel_tcc_cooling nvidia_modeset(PO) snd_hda_ codec_realtek x86_pkg_ temp_thermal snd_hda_ codec_generic intel_powerclamp coretemp snd_soc_dmic snd_sof_ pci_intel_ tgl kvm_intel snd_sof_ intel_hda_ common soundwire_intel kvm soundwire_ generic_ allocation nvidia(PO) soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp irqbypass snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_ acpi_intel_ match snd_soc_acpi soundwire_bus snd_soc_core snd_compress snd_hda_codec_hdmi ac97_bus thermal_ device_ pci_legacy libarc4 btmtk intel_rapl_msr videobuf2_v4l2 mei_hdcp mei_pxp snd_seq_midi_event processor_ thermal_ device cmdlinepart videodev bluetooth snd_seq snd_rawmidi iwlwifi processor_ thermal_ rfim spi_nor videobuf2_common rapl joydev snd_seq_device thinkpad_acpi think_lmi snd_pcm ecdh_generic processor_ thermal_ mbox nls_iso8859_1 intel_cstate serio_raw input_leds mc firmware_ attributes_ class wmi_bmof snd_timer mtd ee1004 nvram ecc cfg80211 processor_ thermal_ rapl snd mei_me intel_rapl_common mei soundcore intel_soc_dts_iosf ledtrig_audio int3403_thermal int3400_thermal platform_profile intel_hid int340x_ thermal_ zone mac_hid acpi_thermal_rel acpi_tad sparse_keymap acpi_pad sch_fq_codel msr parport_pc ppdev lp parport
marras 01 14:03:15 mopo kernel: #PF: supervisor read access in kernel mode
marras 01 14:03:15 mopo kernel: #PF: error_code(0x0000) - not-present page
marras 01 14:03:15 mopo kernel: PGD 0 P4D 0
marras 01 14:03:15 mopo kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
marras 01 14:03:15 mopo kernel: CPU: 11 PID: 1589 Comm: kworker/u32:11 Tainted: P O 6.2.0-33-generic #33~22.04.1-Ubuntu
marras 01 14:03:15 mopo kernel: Hardware name: LENOVO 20YRS21300/
marras 01 14:03:15 mopo kernel: Workqueue: USBC000:00-con1 ucsi_poll_worker [typec_ucsi]
marras 01 14:03:15 mopo kernel: RIP: 0010:ucsi_
marras 01 14:03:15 mopo kernel: Code: 89 e5 41 56 49 89 ce 41 55 49 89 d5 41 54 53 89 f3 e8 73 8b 2a 00 4c 89 f2 4c 89 ee 89 df 48 03 78 10 49 89 c4 e8 7f 3c cc d8 <49> 8b 45 00 4c 89 e7 be 01 00 00 00 49 89 44 24 50 e8 b9 fc ff ff
marras 01 14:03:15 mopo kernel: RSP: 0018:ffffb685c2
marras 01 14:03:15 mopo kernel: RAX: ffffb685c00f5002 RBX: 0000000000000002 RCX: 0000000000000000
marras 01 14:03:15 mopo kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb685c00f5002
marras 01 14:03:15 mopo kernel: RBP: ffffb685c2a37d30 R08: 0000000000000000 R09: 0000000000000000
marras 01 14:03:15 mopo kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffffa096c33074a8
marras 01 14:03:15 mopo kernel: R13: 0000000000000000 R14: 0000000000000000 R15: 000000000000000c
marras 01 14:03:15 mopo kernel: FS: 000000000000000
marras 01 14:03:15 mopo kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
marras 01 14:03:15 mopo kernel: CR2: 0000000000000000 CR3: 0000000a80410005 CR4: 0000000000770ee0
marras 01 14:03:15 mopo kernel: PKRU: 55555554
marras 01 14:03:15 mopo kernel: Call Trace:
marras 01 14:03:15 mopo kernel: <TASK>
marras 01 14:03:15 mopo kernel: ? show_regs+0x72/0x90
marras 01 14:03:15 mopo kernel: ? __die+0x25/0x80
marras 01 14:03:15 mopo kernel: ? page_fault_
marras 01 14:03:15 mopo kernel: ? do_user_
marras 01 14:03:15 mopo kernel: ? exc_page_
marras 01 14:03:15 mopo kernel: ? asm_exc_
marras 01 14:03:15 mopo kernel: ? ucsi_acpi_
marras 01 14:03:15 mopo kernel: ucsi_exec_
marras 01 14:03:15 mopo kernel: ucsi_send_
marras 01 14:03:15 mopo kernel: ucsi_register_
marras 01 14:03:15 mopo kernel: ucsi_check_
marras 01 14:03:15 mopo kernel: ? mutex_lock+
marras 01 14:03:15 mopo kernel: ucsi_poll_
marras 01 14:03:15 mopo kernel: process_
marras 01 14:03:15 mopo kernel: worker_
marras 01 14:03:15 mopo kernel: ? __pfx_worker_
marras 01 14:03:15 mopo kernel: kthread+0xeb/0x120
marras 01 14:03:15 mopo kernel: ? __pfx_kthread+
marras 01 14:03:15 mopo kernel: ret_from_
marras 01 14:03:15 mopo kernel: </TASK>
marras 01 14:03:15 mopo kernel: Modules linked in: ccm rfcomm xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_
marras 01 14:03:15 mopo kernel: snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi iwlmvm snd_usb_audio snd_hda_codec btusb btrtl uvcvideo snd_hda_core snd_usbmidi_lib btbcm mac80211 videobuf2_vmalloc snd_hwdep btintel videobuf2_memops snd_seq_midi processor_
marras 01 14:03:15 mopo kernel: efi_pstore ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c hid_logitech_hidpp hid_logitech_dj hid_jabra hid_generic usbhid hid i915 drm_buddy i2c_algo_bit ttm drm_display_helper cec rc_core crct10dif_pclmul drm_kms_helper crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 syscopyarea nvme aesni_intel sysfillrect ucsi_acpi crypto_simd sysimgblt rtsx_pci_sdmmc spi_intel_pci i2c_i801 xhci_pci nvme_core cryptd typec_ucsi psmouse drm thunderbolt igc spi_intel rtsx_pci i2c_smbus xhci_pci_renesas nvme_common typec video wmi pinctrl_tigerlake
marras 01 14:03:15 mopo kernel: CR2: 0000000000000000
marras 01 14:03:15 mopo kernel: ---[ end trace 0000000000000000 ]---