<div dir="ltr">On Thu, 18 Feb 2021 at 11:06, Craig Ringer <<a href="mailto:ringerc@ringerc.id.au">ringerc@ringerc.id.au</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all</div><div><br></div><div>I'm trying to get HDMI hotplug working on my Lenovo T15g laptop with Optimus graphics. HDMI works when plugged in at boot, but does not work when hotplugged after boot, or when hot-unplugged then re-plugged. The external display is not detected, its status remains 'disconnected' in sysfs, and the display stays in what looks like DPMS-off state.<br></div>[snip]<br></div><div dir="ltr"><div>I'll attach a detailed lspci, bigger excerpts from demesg, etc in a followup to make sure I don't upset any mail filter.<br></div></div></blockquote><div><br></div><div>Detailed PCI info and trimmed dmesg uploaded to a GDrive since I don't really want to send all that to the whole list. Files here:</div><div><br></div><div><a href="https://drive.google.com/drive/folders/1oE3ow7d8N6npDNbL8vqHYjbAvvJCUcPN?usp=sharing">https://drive.google.com/drive/folders/1oE3ow7d8N6npDNbL8vqHYjbAvvJCUcPN?usp=sharing</a></div><div><br></div><div>Contains:<br></div><div><br></div><div>$ sudo lspci -vvvvnnnnPPq | sed '/Device Serial Number/d' > pci.list</div><div><br></div><div>$ sudo dmesg | egrep -v 'e1000e|nvme|BTRFS|audit:|SELinux:|systemd\[1\]|thunderbolt|cfg80211|WiFi|Bluetooth|battery|iwlwifi|uvcvideo|usbcore|zram|iTCO_wdt|snd_hda_intel|squashfs|EXT4-fs|iSCSI|wlp0s20f3|IPv6|\<bridge\>|\<tun\>|virbr0|rfkill|nf_conntrack|psmouse' | sed 's/SerialNumber.*$/SerialNumber REDACTED/' > dmesg.out<br></div><div><br></div><div>$ sudo dmidecode | sed '/Serial Number:/d;/Asset Tag/d' > dmi.dump<br></div><div><br></div><div>$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch<br>0:DIS: :DynOff:0000:01:00.0<br>1:IGD:+:Pwr:0000:00:02.0<br>2:DIS-Audio: :DynOff:0000:01:00.1</div><div><br></div><div class="gmail_quote">I can provide raw or decompiled ACPI DSDT and SSDTs on request, as well as kernel logs with higher log levels, a nouveau module debug string, info from /sys/kernel/debug, 'perf' runs, etc.</div><div class="gmail_quote"><br></div><div class="gmail_quote">There's also some nouveau info in /sys/kernel/debug/dri/1 .</div><div class="gmail_quote"><br></div><div class="gmail_quote">Also, I note that</div><div class="gmail_quote"><br></div><div class="gmail_quote">    echo 'on' > /sys/kernel/debug/dri/1/HDMI-A-1/force</div><div class="gmail_quote"><br></div><div class="gmail_quote">does not appear to have any effect when the display is plugged in and turned on, but not being detected by nouveau. Also true for other ports DP-1, DP-2, DP-3, eDP-2.<br></div><div class="gmail_quote"><div><br></div></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Craig Ringer</div></div></div></div></div>