Re: Issues with USB-C external monitors

2020-12-03 Thread Ali Abdallah
Sorry for the noise, you can the patches at the following link: https://github.com/Alix82/FreeBSD-xorg-drm-hotplug On 03.12.2020 08:05, Ali Abdallah wrote: > On 02.12.2020 11:28, Ali Abdallah wrote: > > Actually Xorg on FreeBSD with UDEV is compiled with > > --disable-config-udev-kms, thus the se

Re: Issues with USB-C external monitors

2020-12-03 Thread Ali Abdallah
On 02.12.2020 11:28, Ali Abdallah wrote: > Actually Xorg on FreeBSD with UDEV is compiled with > --disable-config-udev-kms, thus the server never calls: > > udev_monitor_filter_add_match_subsystem_devtype > > for GPU devices, and thus libudev-devd doesn't forward kms events to the > server. Actua

Re: Issues with USB-C external monitors

2020-12-03 Thread Poul-Henning Kamp
Ali Abdallah writes: > Sorry for the noise, you can the patches at the following link: > > https://github.com/Alix82/FreeBSD-xorg-drm-hotplug Thanks a lot Ali! With these patches my T480+TB3 dock works, with the following footnotes: I have disabled "TB3 Bios assist" in the BIOS and use

Re: Issues with USB-C external monitors

2020-12-02 Thread Ali Abdallah
On 01.12.2020 17:10, myfreeweb wrote: > devd (really drm in the kernel) provides hotplug events (system DRM, type > HOTPLUG). > libudev-devd translates these to UD_ACTION_HOTPLUG. > This works well with wlroots compositors at least. > How xorg does this I have no idea, as I don't use xorg. > If yo

Re: Issues with USB-C external monitors

2020-12-02 Thread Ali Abdallah
On 01.12.2020 20:33, Poul-Henning Kamp wrote: > > > When I last tried this on my T480/T3-Dock/xorg, the screen comes back, but > xrandr shows it with ever increasing names "DP-3", "DP-4" etc. > > For now I've given up and use the T480's HDMI output instead. I've noticed that as well, th

Re: Issues with USB-C external monitors

2020-12-02 Thread Ali Abdallah
On 01.12.2020 11:08, Scott Long wrote: > I have a work-in-progress to support Thunderbolt, but that’s not always the > same as just DisplayPort-over-USBC. If your connector has the Thunderbolt > logo, then it’s Thunderbolt, if it has the DP logo then it’s not. Even then, > the Thunderbolt comp

Re: Issues with USB-C external monitors

2020-12-01 Thread Ali Abdallah
On 01.12.2020 17:10, myfreeweb wrote: > >> __snippet__ > >> res = drmModeGetResources(fd); > >> for (int i = 0; i < res->count_connectors; ++i) { > >> conn = drmModeGetConnector(fd, res->connectors[i]); > > Note: you can run graphics/drm_info instead of writing custom code. Thanks for the tip.

Re: Issues with USB-C external monitors

2020-12-01 Thread Poul-Henning Kamp
When I last tried this on my T480/T3-Dock/xorg, the screen comes back, but xrandr shows it with ever increasing names "DP-3", "DP-4" etc. For now I've given up and use the T480's HDMI output instead. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP

Re: Issues with USB-C external monitors

2020-12-01 Thread Scott Long
> On Dec 1, 2020, at 10:32 AM, Ali Abdallah wrote: > > On 01.12.2020 17:10, myfreeweb wrote: __snippet__ res = drmModeGetResources(fd); for (int i = 0; i < res->count_connectors; ++i) { conn = drmModeGetConnector(fd, res->connectors[i]); >> >> Note: you can run graphics/d

Issues with USB-C external monitors

2020-12-01 Thread Ali Abdallah
Hello, I have a T495 with a USB-C docking station with two external monitors, running current to get the vega 10 amdgpu to work. When the power is lost for on the USB-C dock, then the X server looses all external monitors. They appear as disconnected after running xrandr and I cannot figure out a

Re: Issues with USB-C external monitors

2020-12-01 Thread myfreeweb
On December 1, 2020 2:00:55 PM UTC, Hans Petter Selasky wrote: >On 12/1/20 2:14 PM, Ali Abdallah wrote: >> Hello, >> >> I have a T495 with a USB-C docking station with two external monitors, >> running current to get the vega 10 amdgpu to work. >> >> When the power is lost for on the USB-C d

Re: Issues with USB-C external monitors

2020-12-01 Thread Hans Petter Selasky
On 12/1/20 2:14 PM, Ali Abdallah wrote: Hello, I have a T495 with a USB-C docking station with two external monitors, running current to get the vega 10 amdgpu to work. When the power is lost for on the USB-C dock, then the X server looses all external monitors. They appear as disconnected afte