Skip to content

Expose udev device to compositors #1876

@YaLTeR

Description

@YaLTeR

The current DrmNode::ty() is wrong on FreeBSD: niri-wm/niri#3013 (comment)

However, according to @mahkoh, minor number isn't a good way to tell apart the node types even on Linux (it overflows after 128), rather we need the udev sysname, like is done here in wlroots: https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/a962d58727bf5a95ef0da50dce21031728c92f2c/backend/session/session.c#L182

But Smithay doesn't currently expose the udev device to compositors. It is accessible here (event):

match event.event_type() {

Maybe a way to go from dev_t back to the udev device, but I'm not sure what that way is (all these DRM concepts are somewhat confusing).

Metadata

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