Announcement

Collapse
No announcement yet.

Updated and Optimized Ubuntu Free Graphics Drivers

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • oibaf
    started a topic Updated and Optimized Ubuntu Free Graphics Drivers

    Updated and Optimized Ubuntu Free Graphics Drivers

    Note: Phoronix disabled editing forum posts some time ago, so check the main PPA page for updated informations!


    0 - Introduction

    Some year ago I wrote a guide on Installing latest Open Source ATI drivers under Ubuntu to provide the new - at the time - Radeon R500 support with free drivers.

    Now Ubuntu 11.04 (natty) just get released shipping latest official mesa release 7.10.2. However current mesa snapshots have a huge amount of new features which make feel old this official release. Ubuntu 10.10 (maverick) ships an older pre-release snapshot of mesa 7.9.

    So I am now providing a PPA with updated mesa and X drivers as an easy way for users to try all the new features developed in the past months and early detect eventual bugs to report to developers. This is somewhat inspired by the xorg-edgers PPA but it only provides graphics drivers to lower the risk of breakage. Also I want to provide some packaging improvements and possibly new features (e.g. integrate testing branches like glsl-130 or pipe-video) when they'll be sufficient stable.

    Supported Ubuntu versions: 10.10 (maverick) and 11.04 (natty).

    1 - Improvements

    Mesa improvements:

    Note that being snapshots they may also have new bugs.

    Mesa packaging improvements:
    • support for S3TC texture compression* (Recommends included libtxc-dxtn)
    • support for floating-point textures*
    • llvm support (for faster gallium drivers)
    • gallium llvmpipe as the default software renderer rather than classic swrast
    • i915 and nouveau gallium drivers in the experimental package
    • --enable-debug flag (to better debug mesa and games bugs)
    • better package compression with 50% binary size reduction (for faster download)
    • custom OpenGL version string to make sure you are running drivers from this PPA


    *these are patented features that can be used after agreeing the related IP: ARB_texture_float and EXT_texture_compression_s3tc. They are provided here for testing purpose only, anyway.

    For more details check the changelog.

    Updated drivers and libdrm from git:


    Only free drivers will be provided. No binary fglrx and nvidia drivers.

    2 - Installing
    Just type this in a terminal:

    Code:
    sudo add-apt-repository ppa:oibaf/graphics-drivers
    sudo apt-get update
    sudo apt-get dist-upgrade
    Alternatively, add:
    Code:
    ppa:oibaf/graphics-drivers
    to your system's Software Sources and update the package from here.

    If all goes well, and if glxinfo is installed, typing in a shell:
    Code:
    glxinfo | grep OpenGL
    will print the driver type and version with the PPA custom string.

    3 - Using alternative drivers
    Examples on how to run your OpenGL program (in this case glxgears -info) with non default drivers.

    To force the use of gallium llvmpipe software render:
    Code:
    LIBGL_ALWAYS_SOFTWARE=1 glxgears -info
    To force the use of old non-gallium software render:
    Code:
    LIBGL_ALWAYS_SOFTWARE=1 LIBGL_DRIVERS_PATH=/usr/lib/dri-alternates glxgears -info
    To force the use of old non-gallium r300/r600 radeon drivers:
    Code:
    LIBGL_DRIVERS_PATH=/usr/lib/dri-alternates glxgears -info
    Experimental drivers:
    If you want to use the gallium nouveau or i915 driver install also the experimental package:
    Code:
    sudo apt-get install libgl1-mesa-dri-experimental
    The gallium nouveau driver will then be used by default rather than using llvmpipe.

    To force the use of gallium i915 driver (classic driver will still be the default):
    Code:
    LIBGL_DRIVERS_PATH=/usr/lib/dri-alternates glxgears -info
    4 - Debugging and reporting problems

    If you have some problem with the drivers try running the application from the command line and see if there are any graphics related warnings (note that mesa is built with --enable-debug which can provide useful debug informations). Also type dmesg to see if there are other related informations here. If you get crashes install the relevant -dbg pacakges (libgl1-mesa-dri-dbg or libgl1-mesa-dri-experimental-dbg for 3D drivers and xserver-xorg-video-intel-dbg , xserver-xorg-video-nouveau-dbg or xserver-xorg-video-radeon-dbg for X drivers) and reproduce the crash with gdb. Example:
    Code:
    $ gdb glxgears
    [...make your application crash and then get a backtrace with:]
    (gdb) bt
    If X.org crashes look at /var/log/Xorg.0.log (or /var/log/Xorg.0.log.old when a new X session is started after the crash).

    With the gathered informations try querying freedesktop bugzilla for similar bugs (also try with google). If no bugs were already reported, you may want to report a new one:


    5 - Revert to original drivers
    To revert to standard Ubuntu drivers (strongly suggested before an Ubuntu release upgrade) type the following in a prompt shell:
    Code:
    sudo apt-get install ppa-purge
    sudo ppa-purge ppa:oibaf/graphics-drivers
    6 - Requests and suggestions
    Feel free to request new features or propose any suggestions here!
    Last edited by oibaf; 05-26-2017, 11:20 AM.

  • oibaf
    replied
    Originally posted by RussianNeuroMancer View Post
    It's M3-7Y30 (Kaby Lake) which is much above Broadwell.

    Seen this too. Do you sure Iris is 100% available in packages in PPA?
    Yes, see the build logs:
    Gallium drivers: nouveau virgl svga iris r600 r300 radeonsi swrast
    also Phoronix itself is using my PPA for testing iris, see the bionic-oibaf-ppa signature of my packages in config table:
    https://www.phoronix.com/scan.php?pa...eptember&num=2

    Leave a comment:


  • RussianNeuroMancer
    replied
    Originally posted by oibaf View Post
    Seen this too. Do you sure Iris is 100% available in packages in PPA?

    Originally posted by oibaf View Post
    If it still doesn't work you are likely using a too old GPU not supported by iris.
    It's M3-7Y30 (Kaby Lake) which is much above Broadwell.

    Leave a comment:


  • oibaf
    replied
    Originally posted by RussianNeuroMancer View Post

    Did exactly this yesterday, got llvmpipe in glxinfo output.
    See this one: https://gitlab.freedesktop.org/kwg/mesa/-/milestones/1

    If it still doesn't work you are likely using a too old GPU not supported by iris.

    Leave a comment:


  • RussianNeuroMancer
    replied
    Originally posted by oibaf View Post
    It is enabled, you have to select it like described here: https://gitlab.freedesktop.org/mesa/...e_requests/283
    Did exactly this yesterday, got llvmpipe in glxinfo output.

    Leave a comment:


  • oibaf
    replied
    Originally posted by RussianNeuroMancer View Post
    I noticed that Iris currently is not enabled in this PPA. Is it intentional due to some issues with this driver or it's building?
    It is enabled, you have to select it like described here: https://gitlab.freedesktop.org/mesa/...e_requests/283

    Leave a comment:


  • RussianNeuroMancer
    replied
    I noticed that Iris currently is not enabled in this PPA. Is it intentional due to some issues with this driver or it's building?

    Leave a comment:


  • blackshard
    replied
    Is there any chance to get armhf architecture supported? Older ARM chips like Allwinner H3 or Rockchip 3288 may benefit since lately lima and panfrost kernel drivers have been mainlined

    Leave a comment:


  • oibaf
    replied
    Not enough info to debug (what do you mean with "not quite working"? distro version? installed packages? full commands output? other PPA installed? ...).

    Anyway about the removal apt and ppa-purge may not always properly work. You may want to should use the force options to restore your system.

    Leave a comment:


  • cnxsoft
    replied
    Are the drivers supposed to work on AMD Ryzen 7 2700U as well? It's not quite working for me.

    I can't uninstall it completely apparently. After removing it with the ppa-purge instructions, I still have references to it.

    Example
    The following packages have unmet dependencies:
    libgl1-mesa-glx : Depends: libgl1 but it is not going to be installed
    Depends: libglx-mesa0 but it is not going to be installed
    sudo apt install libglx-mesa0
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libglx-mesa0 : Depends: libglapi-mesa (= 19.0.2-1ubuntu1.1~18.04.2) but 19.2~git1908060730.5544b2~oibaf~b is to be installed
    E: Unable to correct problems, you have held broken packages

    Leave a comment:

Working...
X