mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: log when restoring mode after VT switch fails
Can make it easier to track down issues.
This commit is contained in:
		
							parent
							
								
									98a83ce14c
								
							
						
					
					
						commit
						0c962c98cc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -120,7 +120,9 @@ static void handle_session_active(struct wl_listener *listener, void *data) {
 | 
				
			||||||
				.mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
 | 
									.mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
 | 
				
			||||||
				.mode = mode,
 | 
									.mode = mode,
 | 
				
			||||||
			};
 | 
								};
 | 
				
			||||||
			drm_connector_commit_state(conn, &state);
 | 
								if (!drm_connector_commit_state(conn, &state)) {
 | 
				
			||||||
 | 
									wlr_drm_conn_log(conn, WLR_ERROR, "Failed to restore state after VT switch");
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		wlr_log(WLR_INFO, "DRM fd paused");
 | 
							wlr_log(WLR_INFO, "DRM fd paused");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue