Open
Description
I am considering to patch aquamarine, to use drm lease from automotive linux drm lease manager.
I have a stub patch for wlroots commented on this issue. But I need help to adapt it on aquamarine.
Does hyprland pass the the current seat name to libseat? (yes: env?argument? no: where to patch?)
In my case, the udev enumeration will return no devices, because logind/elogind/seatd does not alocate it.
Do you think that on the beggining of scanGPUs, something like this works?
struct dlm_lease *lease = dlm_get_lease(getenv("DRM_LEASE"));
fd = dlm_lease_fd(lease);
fstat(fd, &s);
device = udev_device_new_from_devnum( backend->session->udevHandle, 'c', s.st_rdev );
vecDevices.push_back( CSessionDevice::openIfKMS(backend->session, udev_device_get_devnode(device)) );
return vecDevices;
thx
Metadata
Assignees
Labels
No labels
Activity