Skip to content

Offer a way to provide preferred GPU in case of multi-GPU setups #483

@awerlang

Description

@awerlang

Sample inxi output:

$ inxi -G
Graphics:
  Device-1: Intel HD Graphics 630 driver: i915 v: kernel
  Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 525.85.05
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 resolution: 1: 2560x1440~60Hz 2: 2560x1440~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.4 renderer: Mesa Intel HD Graphics 630 (KBL
    GT2)

In this setup, NVIDIA is available but only Intel is used by Xorg. Some options:

  • --gpu=xorg: share device used by xorg
  • --gpu=intel: share intel device
  • --gpu=dri: share DRI devices

Reproduction:

Execute x11docker with --gpu flag.

Observed behavior:

NVIDIA devices are probed, attempted to be installed.

Expected behavior:

Ignore NVIDIA even though NVIDIA proprietary drivers are installed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions