mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Revert "backend/drm: stop force-probing connectors"
This reverts commit 713c1661b7
.
It turns out we do need to force-probe on startup and on hotplug [1].
This is unfortunate, but that's just how the uAPI works. Fixing this
would require patching the kernel.
[1]: https://lists.freedesktop.org/archives/dri-devel/2020-November/289506.html
Closes: https://github.com/swaywm/wlroots/issues/2499
This commit is contained in:
parent
de9ff46629
commit
8bc5a92a98
1 changed files with 2 additions and 2 deletions
|
@ -1282,8 +1282,8 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
|
||||||
struct wlr_drm_connector *new_outputs[res->count_connectors + 1];
|
struct wlr_drm_connector *new_outputs[res->count_connectors + 1];
|
||||||
|
|
||||||
for (int i = 0; i < res->count_connectors; ++i) {
|
for (int i = 0; i < res->count_connectors; ++i) {
|
||||||
drmModeConnector *drm_conn =
|
drmModeConnector *drm_conn = drmModeGetConnector(drm->fd,
|
||||||
drmModeGetConnectorCurrent(drm->fd, res->connectors[i]);
|
res->connectors[i]);
|
||||||
if (!drm_conn) {
|
if (!drm_conn) {
|
||||||
wlr_log_errno(WLR_ERROR, "Failed to get DRM connector");
|
wlr_log_errno(WLR_ERROR, "Failed to get DRM connector");
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue