Skip to content

[BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs #2936

Closed

Description

@marmistrz

Platform

Operating system and version: Arch Linu
OBS Studio version: OBS Studio - 25.0.8-1 (linux)

Expected Behavior

If there are several GPUs available at a host machine (e.g. dual GPU laptops, Intel+AMD/Intel+Nvidia), the same physical GPU should be used for encoding with ffmpeg-vaapi. Currently the same /dev/dri/renderDXXX device is used for encoding instead.

The mapping of physical devices to /dev/dri/renderDXXX is not persistent across reboots, so some other information about the devices should be used to identify it instead.

Activity

  1. changed the title [-][BUG] <bug description>[/-] [+][BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs[/+] on May 15, 2020
  2. Fenrirthviti commented on May 15, 2020

    @Fenrirthviti
    Member

    Do you have a suggestion on what else should be used? Is there a way to consistently identify graphics devices across reboots?

  3. kkartaltepe commented on May 15, 2020

    @kkartaltepe
    Collaborator

    Doesnt look like there is any persistent mapping to DRI devices. Maybe the best thing available currently is to identify devices by PCI slot.

  4. marmistrz commented on May 16, 2020

    @marmistrz
    Author

    You can use /dev/dri/by-path/ for instance /dev/dri/by-path/pci-0000:00:02.0-render.

  5. added
    platform/linux
    on May 17, 2020
  6. RarogCmex commented on Jun 18, 2020

    @RarogCmex

    I can confirm it with Intel hd 530/amd radeon rx 560.

  7. added
    Good first issue
    on Aug 26, 2020
  8. carlocastoldi commented on Sep 25, 2021

    @carlocastoldi
    Contributor

    Any intention to work on this? Shouldn't be too difficult to point to /dev/dri/by-path/ rather then /dev/dri/, is it?
    combine it with lspci | grep ' VGA ' and we even get the actual name for each of the available cards!

  9. kkartaltepe commented on Sep 25, 2021

    @kkartaltepe
    Collaborator

    I dont believe anyone is actively working on it, it is a good issue for anyone wanting to start with contributing though.

  10. added this to the OBS Studio 27.2 milestone on Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueplatform/linux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions