Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

  1. #1
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    My readings show:


    “The open-source nouveau driver (xf86-video-nouveau) can dynamically switch with the Intel driver (xf86-video-intel) using a technology called PRIME.”


    “If you don't choose to the use the proprietary NVIDIA driver, however, the open-source Nouveau driver does actually provide most of the Optimus functionality out of the box through a technology called PRIME. You may have to still execute a line or two of commands in a terminal, but it is arguably the easiest and most out of the box solution. See this Arch Linux wiki entry on PRIME for more information. The downside is obvious though - Nouveau will suffer dramatically in terms of performance compared to the proprietary NVIDIA driver and has no power-saving features either.”




    Situation:


    To install openSUSE Leap, Tumbleweed or run a liveDVD/CD on my Asus laptop, I have to use “nouveau.modeset=0” as a kernel parameter which is then written to the kernel boot code. So, by default, I am booting to the Intel driver and I my Nvidia card is turned off.


    I do have xf86-video-nouveau, xf86-video-intel and Mesa-dri-nouveau - Mesa DRI plug-in for 3D acceleration via Nouveau installed.

    (This package contains nouveau_dri.so, which is necessary for Nouveau's 3D acceleration to work. It is packaged separately since it is still experimental.)


    Questions:



    How do I go about activating Nouveau Prime in Leap 42.2 and Tumbleweed?

    Do I need both xf86-video-nouveau and Mesa-dri-nouveau?



    Is it as simple as issuing:
    $ xrandr --setprovideroffloadsink nouveau Intel

    Thoughts?
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  2. #2
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,071

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Hi, before going any further please check that the current nouveau driver supports your Nvidia GPU.
    I am sure that the current nouveau in Leap 42.2 DOESN'T SUPPORT Maxwell chips like the GTX960M you should have on your laptop.
    Not sure about current TW though, but the last time I checked it didn't support those chips yet.
    Main: Leap 42.2 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.2 (& others) on Core2Duo + GM965

  3. #3
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by OrsoBruno View Post
    Hi, before going any further please check that the current nouveau driver supports your Nvidia GPU.
    I am sure that the current nouveau in Leap 42.2 DOESN'T SUPPORT Maxwell chips like the GTX960M you should have on your laptop.
    Not sure about current TW though, but the last time I checked it didn't support those chips yet.
    Roger that! I never thought to check; many thanks!
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  4. #4
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    These are worth a read:

    https://nouveau.freedesktop.org/wiki/CodeNames/


    This page contains a list of some NVIDIA chip code names and their corresponding official GeForce number. If you're running a recent version nouveau, you can find your chipset by doing dmesg | grep -i chipset. This will always be correct, whereas the lists below are approximate.
    Be aware that this list may be outdated and incomplete. Nouveau aims to support all NVIDIA cards, but no effort is made to document which cards (and BIOSes) actually work, as this is deemed infeasible. Just try it and submit bug reports if it doesn't work.
    NV110 family (Maxwell)

    NV124 (GM204) GeForce GTX (970, 980)
    NV126 (GM206) GeForce GTX (950, 960)


    http://www.phoronix.com/scan.php?pag...tem&px=MTg1MjU


    - Initial GM204 GPU support. The GM204 is the new Maxwell GPU found with the GeForce GTX 970 / GeForce GTX 980. However, this initial GeForce GTX 900 series support is limited to just mode-setting. Nouveau developers are still waiting on NVIDIA to provide the necessary signed firmware images for being able to properly initialize the hardware for GPU acceleration.




    http://www.phoronix.com/scan.php?pag...tem&px=MTg4NTg


    While the Linux 3.19 support for the GTX 970/980 support just comes down to mode-setting, I decided to try it anyways to verify it worked for both of my graphics cards given I've ran into plenty of Nouveau mode-setting troubles with other hardware in the past. Fortunately, everything worked out fine for the eVGA GeForce GTX 970 and the GeForce GTX 980 reference samples I was testing with -- using HDMI and dual-link DVI displays. The Ubuntu 14.10 box that was running Linux 3.19 Git had no troubles with getting mode-setting done right for these new graphics processors while falling back to using the LLVMpipe Gallium3D driver.

    This support in Linux 3.19 though is just limited to kernel mode-setting with no hardware acceleration being in place for this release.
    From a hardware perspective, these new NVIDIA products are terrific and yield great performance, big improvements in power efficiency, etc.

    The next rainy day that I am not working I'll give it a confidence try -- without frying my memory/registers.

    Now to find out the best way to do do it!
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  5. #5
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,071

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by snakedriver View Post
    However, this initial GeForce GTX 900 series support is limited to just mode-setting. Nouveau developers are still waiting on NVIDIA to provide the necessary signed firmware images for being able to properly initialize the hardware for GPU acceleration.

    Now to find out the best way to do do it!
    That's exactly the point: no acceleration yet. So, while you should be able to render something on the Nvidia+nouveau, the last time I checked with a kernel 4.8 nouveau rendered openGL benchmarks 2 to 4 times slower than integrated graphics with artifacts and occasional glitches.
    If you still want to see for yourself, with a recent kernel and Mesa (DRI3) you should be able to do that by just prepending "DRI_PRIME=1" to a command, like in:
    Code:
    DRI_PRIME=1 glxgears
    Please be aware that NO bumblebee NOR suse-prime (nor Nvidia drivers, of course) must be installed for the above to work.
    AFAIK, Nvidia have already released the blobs needed to drive Maxwell chips with nouveau, so this situation is going to change sooner or later.
    Main: Leap 42.2 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.2 (& others) on Core2Duo + GM965

  6. #6
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by OrsoBruno View Post
    That's exactly the point: no acceleration yet. So, while you should be able to render something on the Nvidia+nouveau, the last time I checked with a kernel 4.8 nouveau rendered openGL benchmarks 2 to 4 times slower than integrated graphics with artifacts and occasional glitches.
    If you still want to see for yourself, with a recent kernel and Mesa (DRI3) you should be able to do that by just prepending "DRI_PRIME=1" to a command, like in:
    Code:
    DRI_PRIME=1 glxgears
    Please be aware that NO bumblebee NOR suse-prime (nor Nvidia drivers, of course) must be installed for the above to work.
    AFAIK, Nvidia have already released the blobs needed to drive Maxwell chips with nouveau, so this situation is going to change sooner or later.
    I tried "DRI_PRIME=1 glxgears" With a Tumbleweed release 20170119, and it threw 3 error initializing; I was able to reboot and continue. Also, I had no external monitors connected.

    I did a clean install with 20170121 and a zypper dup to sync; I got all new Mesa RPMs including a new mesa-nouveru.

    Here is my NVIDIA GM107M [GeForce GTX 960M] on Nouveau with no errors:
    Code:
    DRI_PRIME=1 glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    439 frames in 5.0 seconds = 87.718 FPS
    301 frames in 5.0 seconds = 60.007 FPS
    301 frames in 5.0 seconds = 60.003 FPS
    XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"  -- think that is when I closed the window.
    Here is my Intel HD Graphics 530 card results:
    Code:
    glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    351 frames in 5.0 seconds = 69.996 FPS
    301 frames in 5.0 seconds = 60.002 FPS
    301 frames in 5.0 seconds = 60.003 FPS
    301 frames in 5.0 seconds = 60.001 FPS
    301 frames in 5.0 seconds = 60.004 FPS
    XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
    So, obviously as of now, there is no reason to run an app with nouveau with the current system-- as OrsoBruno tried to tell me earlier.

    I did read that with an earlier release that one could copy over the firmware and some code from the popietary driver and get accell; but, that is beyond my skill set & probably illegal.

    Have fun & press on!
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  7. #7
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,071

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by snakedriver View Post
    I tried "DRI_PRIME=1 glxgears"
    Here is my NVIDIA GM107M [GeForce GTX 960M] on Nouveau with no errors:

    Here is my Intel HD Graphics 530 card results:

    So, obviously as of now, there is no reason to run an app with nouveau with the current system-- as OrsoBruno tried to tell me earlier.
    Hi, you are seeing the video refresh rate of your screen... try:
    Code:
    DRI_PRIME=1 vblank_mode=0 glxgears
    to see what the maximum speed is, or even better with glxspheres... but the conclusion remains the same.
    Main: Leap 42.2 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.2 (& others) on Core2Duo + GM965

  8. #8
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by OrsoBruno View Post
    Hi, you are seeing the video refresh rate of your screen... try:
    Code:
    DRI_PRIME=1 vblank_mode=0 glxgears
    to see what the maximum speed is, or even better with glxspheres... but the conclusion remains the same.
    Wow:

    Code:
     DRI_PRIME=1 vblank_mode=0 glxgears
    ATTENTION: default value of option vblank_mode overridden by environment.
    ATTENTION: default value of option vblank_mode overridden by environment.
    41419 frames in 5.0 seconds = 8283.692 FPS
    44064 frames in 5.0 seconds = 8812.776 FPS
    43649 frames in 5.0 seconds = 8729.594 FPS
    43130 frames in 5.0 seconds = 8625.914 FPS
    40030 frames in 5.0 seconds = 8005.829 FPS
    37926 frames in 5.0 seconds = 7585.124 FPS
    42755 frames in 5.0 seconds = 8550.884 FPS
    42049 frames in 5.0 seconds = 8409.728 FPS
    XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
          after 354608 requests (38 known processed) with 0 events remaining. -- from when I closed the window!
    Code:
    DRI_PRIME=1 vblank_mode=0 glxspheres
    Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
    ATTENTION: default value of option vblank_mode overridden by environment.
    ATTENTION: default value of option vblank_mode overridden by environment.
    Visual ID of window: 0xb4
    Context is Direct
    OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) 
    349.886591 frames/sec - 390.473436 Mpixels/sec
    268.320621 frames/sec - 299.445813 Mpixels/sec
    272.383528 frames/sec - 303.980017 Mpixels/sec
    272.488501 frames/sec - 304.097167 Mpixels/sec
    264.387546 frames/sec - 295.056501 Mpixels/sec
    265.266375 frames/sec - 296.037275 Mpixels/sec
    268.582268 frames/sec - 299.737811 Mpixels/sec
    256.790737 frames/sec - 286.578463 Mpixels/sec
    250.692425 frames/sec - 279.772746 Mpixels/sec
    252.405260 frames/sec - 281.684270 Mpixels/sec
    253.714879 frames/sec - 283.145805 Mpixels/sec
    252.554118 frames/sec - 281.850396 Mpixels/sec
    250.905304 frames/sec - 280.010319 Mpixels/sec
    Compared to a late proprietary driver using suse-prime-alt on an earlier install{
    Code:
    : 62464 (61 spheres * 1024 polys/spheres)
    Visual ID of window: 0xa1
    Context is Direct
    OpenGL Renderer: GeForce GTX 960M/PCIe/SSE2
    1980.588234 frames/sec - 2210.336469 Mpixels/sec
    2018.783649 frames/sec - 2252.962552 Mpixels/sec
    2022.322083 frames/sec - 2256.911445 Mpixels/sec
    2023.751754 frames/sec - 2258.506957 Mpixels/sec
    1988.688490 frames/sec - 2219.376355 Mpixels/sec
    1865.613027 frames/sec - 2082.024138 Mpixels/sec
    1869.932240 frames/sec - 2086.844380 Mpixels/sec
    jim@localhost:~>
    And compared to the sole Intel HD Graphics 530 & driver:
    Code:
    glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    332 frames in 5.0 seconds = 66.255 FPS
    301 frames in 5.0 seconds = 60.006 FPS
    301 frames in 5.0 seconds = 60.003 FPS
    301 frames in 5.0 seconds = 60.003 FPS
    301 frames in 5.0 seconds = 60.004 FPS
    301 frames in 5.0 seconds = 60.004 FPS
    Well pleased-- looking great too! This is from a clean Tumbleweed install and "zypper dup" -- I did add virtualgl & a few utulities; basically a clean install.
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  9. #9
    Join Date
    Mar 2008
    Location
    NE Arkansas
    Posts
    1,146

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    for reference:
    Code:
    inxi -G
    Graphics:  Card-1: Intel HD Graphics 530
               Card-2: NVIDIA GM107M [GeForce GTX 960M]
               Display Server: X.Org 1.19.1 drivers: modesetting (unloaded: fbdev,vesa,intel)
               Resolution: 1920x1080@60.00hz
               GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) GLX Version: 3.0 Mesa 13.0.3
    Desktop Asus X-99 Viper. Uefi & secure Boot, Win10, 13.2 & Leap 42.2; Laptop: ASUS GL752VW Optimus, uefi+Secure Boot, Win10, Leap 42.2 & T-weed; and Home built Desktop: MSI NF980_G65, Quad Phenom X4_965 @ 3.4GHz; 13.2, Win7, Leap 42.2 and T-weed

  10. #10

    Default Re: How do I install (nvidia/suse) Prime using the Nouveau driver on my Asus Optimus laptop?

    Quote Originally Posted by OrsoBruno View Post
    That's exactly the point: no acceleration yet.
    No, there is acceleration* ... performance is just not good on the devices** because they're stuck at default boot clocks.

    * NVC0 supports Maxwell. Pascal has no signed firmwares, so no support.
    ** Maxwell 750 series have (manual/static) clock support, and hence are performant. The later 900 series do not, and hence they (to use some highly technical terminology) "blow goats"

Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •