Skip to content

Provide a script to check installation sanity #375

@amonakov

Description

@amonakov

Would be nice to provide a shell script or something to automatically check that various libraries (2x libglx.so, 3x libGL.so.1) are in correct places.

  1. Verify that direct rendering is available on primary X, and is hardware-accelerated
  2. Verify that direct rendering is available on secondary X, and is hardware-accelerated
  3. Verify that running via primusrun actually invokes primus
  4. All of the above for 32-bit libs/apps on x86-64
  5. Quickly check relative performance of iGPU/dGPU/primus?
  6. Probably would be nice to do something about compositing as well.
  7. Try to report to the user what's missing (e.g. wrong libGL, missing 32-bit primus, etc) and how to fix it.

Please throw in your ideas.

Thinking about whether this can be useful, I see two scenarios:

  1. Systems clobbered with manual installation of nVidia driver, or switched to nVidia GLX on primary X.
  2. Clear diagnostics for missing 32-bit libs. Well, 32-bit primus, once installed, will complain about the other two, but when neither 32-bit primus nor 32-bit nVidia is installed, the application runs on Mesa without any warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions