mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1713 from Emantor/fix/legacy_null_modeset
drm: legacy: issue a NULL modeset on disable
This commit is contained in:
		
						commit
						abddd7b4db
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -29,6 +29,12 @@ static bool legacy_conn_enable(struct wlr_drm_backend *drm,
 | 
				
			||||||
		struct wlr_drm_connector *conn, bool enable) {
 | 
							struct wlr_drm_connector *conn, bool enable) {
 | 
				
			||||||
	int ret = drmModeConnectorSetProperty(drm->fd, conn->id, conn->props.dpms,
 | 
						int ret = drmModeConnectorSetProperty(drm->fd, conn->id, conn->props.dpms,
 | 
				
			||||||
		enable ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
 | 
							enable ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!enable) {
 | 
				
			||||||
 | 
							drmModeSetCrtc(drm->fd, conn->crtc->id, 0, 0, 0, NULL, 0,
 | 
				
			||||||
 | 
										   NULL);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return ret >= 0;
 | 
						return ret >= 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue