Skip to content

Multiseat support with DRM lease #48

Open
@garlett

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions