Announcement

Collapse
No announcement yet.

Laptop with AMD APU and nVidia discrete GPU hybrid graphics

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

  • Laptop with AMD APU and nVidia discrete GPU hybrid graphics

    Hello.

    I have a laptop with AMD Ryzen 2500U (Vega 8) and nVidia GeForce 1050M running on Arch Linux.

    I wish to know if It could run the new nVidia PRIME thing and how.
    Can it run with amdgpu driver, with amdgpu pro driver, or it's only for modesetting?

    I already installed the nvidia-435 package and the patched Xserver from https://gitlab.freedesktop.org/aplattner/arch-xorg-server

    I've created an xorg.conf file with this :

    Code:
    Section "ServerLayout"
        Identifier "layout"
        Screen 0 "amd"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
    EndSection
    
    Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "1:0:0"
    EndSection
    
    Section "Device"
        Identifier "amd"
        Driver "amdgpu"
        Option "TearFree" "true"
        Option "DRI" "3"
        BusID "4:0:0"
    EndSection
    
    Section "Screen"
        Identifier "amd"
        Device "amd"
    EndSection
    
    Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
    EndSection


    But still the DRI_PRIME=1 glxinfo | grep shows me It's using the AMD Raven iGPU.

    If I try to offload with xrandr,, it shows me an error :


    Code:
    xrandr --setprovideroffloadsink 1 0
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  140 (RANDR)
      Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
      Value in failed request:  0x1b8
      Serial number of failed request:  16
      Current serial number in output stream:  17



    After that, if I try again to DRI_PRIME, it shows me an error too :

    Code:
    DRI_PRIME=1 glxinfo | grep "OpenGL renderer string"
    libGL error: failed to create dri screen
    libGL error: failed to load driver: nouveau
    OpenGL renderer string: AMD RAVEN (DRM 3.32.0, 5.2.13-arch1-1-ARCH, LLVM 8.0.1)

    What I am missing?
Working...
X