diff --git a/anvil/src/udev.rs b/anvil/src/udev.rs index 5120dee..cc744a2 100644 --- a/anvil/src/udev.rs +++ b/anvil/src/udev.rs @@ -389,7 +389,7 @@ impl UdevHandler for UdevHandlerImpl ) .ok() .and_then( - |fd| match FallbackDevice::new(SessionFd(fd), self.logger.clone()) { + |fd| match FallbackDevice::new(SessionFd(fd), true, self.logger.clone()) { Ok(drm) => Some(drm), Err(err) => { error!(self.logger, "Skipping drm device, because of error: {}", err); diff --git a/examples/raw_atomic_drm.rs b/examples/raw_atomic_drm.rs index 9877376..d3ec01c 100644 --- a/examples/raw_atomic_drm.rs +++ b/examples/raw_atomic_drm.rs @@ -56,7 +56,7 @@ fn main() { let mut options = OpenOptions::new(); options.read(true); options.write(true); - let mut device = AtomicDrmDevice::new(options.open("/dev/dri/card0").unwrap(), log.clone()).unwrap(); + let mut device = AtomicDrmDevice::new(options.open("/dev/dri/card0").unwrap(), true, log.clone()).unwrap(); // Get a set of all modesetting resource handles (excluding planes): let res_handles = Device::resource_handles(&device).unwrap(); diff --git a/examples/raw_legacy_drm.rs b/examples/raw_legacy_drm.rs index 6afa248..7c3c546 100644 --- a/examples/raw_legacy_drm.rs +++ b/examples/raw_legacy_drm.rs @@ -40,7 +40,7 @@ fn main() { let mut options = OpenOptions::new(); options.read(true); options.write(true); - let mut device = LegacyDrmDevice::new(options.open("/dev/dri/card0").unwrap(), log.clone()).unwrap(); + let mut device = LegacyDrmDevice::new(options.open("/dev/dri/card0").unwrap(), true, log.clone()).unwrap(); // Get a set of all modesetting resource handles (excluding planes): let res_handles = Device::resource_handles(&device).unwrap();