PRIME and PRIME Synchronization
I want to share some observations when PRIME sync is on. System: Ubuntu Gnome 17.04, 4.10.0-20 kernel CPU - i7-4700HQ CPU, GPU - GTX 760M 381.09 driver 1. When moving windows around the gnome-shell process starts taking up a lot of cpu time. 2. glxgears reports steady 60fps but once i start to move some windows around it goes up to ~150fps. 3. Random freezes as reported by other users. Im not sure how all these problems are connected and what is the main problem(driver, kernel, X?) Anyway glad to see the progress on linux systems and thanks to everyone who are working on this project.
I want to share some observations when PRIME sync is on.
System: Ubuntu Gnome 17.04, 4.10.0-20 kernel
CPU - i7-4700HQ CPU, GPU - GTX 760M 381.09 driver

1. When moving windows around the gnome-shell process starts taking up a lot of cpu time.
2. glxgears reports steady 60fps but once i start to move some windows around it goes up to ~150fps.
3. Random freezes as reported by other users.

Im not sure how all these problems are connected and what is the main problem(driver, kernel, X?)


Anyway glad to see the progress on linux systems and thanks to everyone who are working on this project.

Posted 04/29/2017 12:40 PM   
I finally solved I installed Debian and I use it without problems There is absolutely no freezing Kernel: 4.9.0-2-amd64 Xorg: 1.19.2 Nvidia Driver: 375.26 Step 1: I followed the instructions from the xrandr guide from the latest driver (375.26) link: http://us.download.nvidia.com/XFree86/Linux-x86_64/375.26/README/randr14.html [code]/etc/X11/xorg.conf[/code] [code] Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSection Section "Device" Identifier "intel" Driver "modesetting" BusID "PCI:0:2:0" Option "AccelMethod" "none" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection[/code] Some versions of the “modesetting” driver try to load a sub-module called “glamor”, which conflicts with the NVIDIA GLX implementation. Please ensure that the libglamoregl.so X module is not installed.As my xorg server package includes the glamor driver, I added the option "AccelMethod" "none" for the Intel driver. Step 2:Added the xrandr lines to GDM config For the GDM display manager create two new .desktop files: [code]/usr/share/gdm/greeter/autostart/optimus.desktop /etc/xdg/autostart/optimus.desktop[/code] [code][Desktop Entry] Type=Application Name=Optimus Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto" NoDisplay=true X-GNOME-Autostart-Phase=DisplayServer[/code] Step 3:Added on the menu grub the option : nvidia-drm.modeset=1 Code: [code]/etc/default/grub[/code] [code]GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modeset=1 acpi_osi="[/code] [code]sudo update-grub2[/code] .after..reboot
I finally solved
I installed Debian and I use it without problems
There is absolutely no freezing


Kernel: 4.9.0-2-amd64
Xorg: 1.19.2
Nvidia Driver: 375.26


Step 1: I followed the instructions from the xrandr guide from the latest driver (375.26)

link: http://us.download.nvidia.com/XFree86/Linux-x86_64/375.26/README/randr14.html

/etc/X11/xorg.conf


Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "AccelMethod" "none"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection


Some versions of the “modesetting” driver try to load a sub-module called “glamor”, which conflicts with the NVIDIA GLX implementation. Please ensure that the libglamoregl.so X module is not installed.As my xorg server package includes the glamor driver, I added the option "AccelMethod" "none" for the Intel driver.


Step 2:Added the xrandr lines to GDM config

For the GDM display manager create two new .desktop files:

/usr/share/gdm/greeter/autostart/optimus.desktop
/etc/xdg/autostart/optimus.desktop


[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer





Step 3:Added on the menu grub the option : nvidia-drm.modeset=1

Code:
/etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modeset=1 acpi_osi="




sudo update-grub2



.after..reboot

Posted 04/29/2017 06:41 PM   
[quote="Siltnamis"]I want to share some observations when PRIME sync is on. System: Ubuntu Gnome 17.04, 4.10.0-20 kernel CPU - i7-4700HQ CPU, GPU - GTX 760M 381.09 driver 1. When moving windows around the gnome-shell process starts taking up a lot of cpu time. 2. glxgears reports steady 60fps but once i start to move some windows around it goes up to ~150fps. 3. Random freezes as reported by other users. Im not sure how all these problems are connected and what is the main problem(driver, kernel, X?) Anyway glad to see the progress on linux systems and thanks to everyone who are working on this project.[/quote] Thanks for reporting. Issue #2 is expected, a side effect of an implementation detail. Issue #1 and #3 should be fixed in a future release. Sorry for the wait, it has to go along with the rest of the release process. You might be able to cut down on #3 by downgrading to a pre-4.10 kernel, but the underlying issue requires a driver update to fix. Thanks,
Siltnamis said:I want to share some observations when PRIME sync is on.
System: Ubuntu Gnome 17.04, 4.10.0-20 kernel
CPU - i7-4700HQ CPU, GPU - GTX 760M 381.09 driver

1. When moving windows around the gnome-shell process starts taking up a lot of cpu time.
2. glxgears reports steady 60fps but once i start to move some windows around it goes up to ~150fps.
3. Random freezes as reported by other users.

Im not sure how all these problems are connected and what is the main problem(driver, kernel, X?)


Anyway glad to see the progress on linux systems and thanks to everyone who are working on this project.

Thanks for reporting.

Issue #2 is expected, a side effect of an implementation detail.

Issue #1 and #3 should be fixed in a future release. Sorry for the wait, it has to go along with the rest of the release process. You might be able to cut down on #3 by downgrading to a pre-4.10 kernel, but the underlying issue requires a driver update to fix.

Thanks,

Alex Goins
NVIDIA Linux Graphics

Posted 05/01/2017 05:43 PM   
I'm using Xubuntu 17.04. I don't have any issues except freezes. Nvidia driver version 378.13. BTW, how can I switch modeset off? I turned it on by reinstalling driver. Do I need to reinstall driver to turn it off?
I'm using Xubuntu 17.04. I don't have any issues except freezes. Nvidia driver version 378.13.
BTW, how can I switch modeset off? I turned it on by reinstalling driver. Do I need to reinstall driver to turn it off?

Posted 05/02/2017 05:50 PM   
[quote="agoins"][quote="Siltnamis"]I want to share some observations when PRIME sync is on. Issue #1 and #3 should be fixed in a future release. Sorry for the wait, it has to go along with the rest of the release process. You might be able to cut down on #3 by downgrading to a pre-4.10 kernel, but the underlying issue requires a driver update to fix. Thanks,[/quote] Alex, should we look for your fixes in the beta driver release stream?
agoins said:
Siltnamis said:I want to share some observations when PRIME sync is on.

Issue #1 and #3 should be fixed in a future release. Sorry for the wait, it has to go along with the rest of the release process. You might be able to cut down on #3 by downgrading to a pre-4.10 kernel, but the underlying issue requires a driver update to fix.

Thanks,

Alex, should we look for your fixes in the beta driver release stream?

Posted 05/03/2017 12:19 AM   
When I use Glyph under Crossover it's freeze immediately
When I use Glyph under Crossover it's freeze immediately

Posted 05/04/2017 05:51 AM   
375.66 [quote][.]Fixed a bug that could cause some applications to crash when running with PRIME Sync.[/.] [.]Fixed a bug that prevented PRIME Sync from working on notebooks with GeForce GTX 4xx and 5xx series GPUs.[/.] [.]Fixed a bug that caused OpenGL apps to have excessive CPU usage when running with PRIME Sync but without native displays enabled.[/.] [.]Fixed a bug that could cause PRIME Sync to deadlock in the kernel, particularly common on Linux 4.10.[/.] [.]Fixed a bug that caused PRIME Sync to run slowly on systems with Pascal GPUs.[/.] [/quote] [url]http://www.nvidia.com/Download/driverResults.aspx/118290/en-us[/url] Thanks,
375.66

  • Fixed a bug that could cause some applications to crash when running with PRIME Sync.
  • Fixed a bug that prevented PRIME Sync from working on notebooks with GeForce GTX 4xx and 5xx series GPUs.
  • Fixed a bug that caused OpenGL apps to have excessive CPU usage when running with PRIME Sync but without native displays enabled.
  • Fixed a bug that could cause PRIME Sync to deadlock in the kernel, particularly common on Linux 4.10.
  • Fixed a bug that caused PRIME Sync to run slowly on systems with Pascal GPUs.

  • http://www.nvidia.com/Download/driverResults.aspx/118290/en-us

    Thanks,

    Alex Goins
    NVIDIA Linux Graphics

    Posted 05/04/2017 07:34 PM   
    All my issues are gone Alex, thanks you very much for your fixes :D
    All my issues are gone Alex, thanks you very much for your fixes :D

    Posted 05/04/2017 09:47 PM   
    [quote="agoins"]375.66 [quote][.]Fixed a bug that could cause some applications to crash when running with PRIME Sync.[/.] [.]Fixed a bug that prevented PRIME Sync from working on notebooks with GeForce GTX 4xx and 5xx series GPUs.[/.] [.]Fixed a bug that caused OpenGL apps to have excessive CPU usage when running with PRIME Sync but without native displays enabled.[/.] [.]Fixed a bug that could cause PRIME Sync to deadlock in the kernel, particularly common on Linux 4.10.[/.] [.]Fixed a bug that caused PRIME Sync to run slowly on systems with Pascal GPUs.[/.] [/quote] [url]http://www.nvidia.com/Download/driverResults.aspx/118290/en-us[/url] Thanks,[/quote] how can i install it?
    agoins said:375.66

  • Fixed a bug that could cause some applications to crash when running with PRIME Sync.
  • Fixed a bug that prevented PRIME Sync from working on notebooks with GeForce GTX 4xx and 5xx series GPUs.
  • Fixed a bug that caused OpenGL apps to have excessive CPU usage when running with PRIME Sync but without native displays enabled.
  • Fixed a bug that could cause PRIME Sync to deadlock in the kernel, particularly common on Linux 4.10.
  • Fixed a bug that caused PRIME Sync to run slowly on systems with Pascal GPUs.

  • http://www.nvidia.com/Download/driverResults.aspx/118290/en-us

    Thanks,


    how can i install it?

    Posted 05/06/2017 12:07 PM   
    [quote="yalniz"] how can i install it?[/quote] For arch users: https://aur.archlinux.org/packages/nvidia-llb-dkms/, https://aur.archlinux.org/packages/nvidia-utils-llb/, https://aur.archlinux.org/packages/lib32-nvidia-utils-llb/
    yalniz said:
    how can i install it?


    For arch users: https://aur.archlinux.org/packages/nvidia-llb-dkms/, https://aur.archlinux.org/packages/nvidia-utils-llb/, https://aur.archlinux.org/packages/lib32-nvidia-utils-llb/

    Posted 05/08/2017 05:34 AM   
    [quote="yalniz"]how can i install it?[/quote]For Ubuntu users: It's not available through the "Graphics Drivers" PPA yet, but you can download and install it from here: https://launchpad.net/~mamarley/+archive/ubuntu/staging/+packages It's the personal repo from one of the "Graphics Drivers" PPA admins. Although it's "staging" I installed it from there and it works.
    yalniz said:how can i install it?
    For Ubuntu users:

    It's not available through the "Graphics Drivers" PPA yet, but you can download and install it from here:


    https://launchpad.net/~mamarley/+archive/ubuntu/staging/+packages


    It's the personal repo from one of the "Graphics Drivers" PPA admins. Although it's "staging" I installed it from there and it works.

    Posted 05/08/2017 05:52 AM   
    [quote="agoins"][url]http://www.nvidia.com/Download/driverResults.aspx/118290/en-us[/url][/quote] Thank you Alex, this driver works well so far!
    agoins said:http://www.nvidia.com/Download/driverResults.aspx/118290/en-us

    Thank you Alex, this driver works well so far!

    Posted 05/08/2017 05:56 AM   
    Hello Guys, I Installed the new driver 375.66 and when the Prime Sync is ON and the system is Idle for couple of minutes, I hear the sound of login in ubuntu and everything is restarted and I should relogin. I should note that everything terminated and lost! I turned off the Prime Sync and there is no problem since now (about 10 hours and being idle all night). Anybody else has this problem? I will attached bug report.
    Hello Guys,

    I Installed the new driver 375.66 and when the Prime Sync is ON and the system is Idle for couple of minutes, I hear the sound of login in ubuntu and everything is restarted and I should relogin. I should note that everything terminated and lost!
    I turned off the Prime Sync and there is no problem since now (about 10 hours and being idle all night).

    Anybody else has this problem?
    I will attached bug report.

    Posted 05/09/2017 07:51 AM   
    New driver works great, no crashes and no tearing! (Ubuntu Gnome 17.04, 4.10 kernel) Not sure if related, but i cannot set "Graphics Clock Offset" (enabled with coolbits) anymore. Frequencies dont change when i input values.
    New driver works great, no crashes and no tearing! (Ubuntu Gnome 17.04, 4.10 kernel)


    Not sure if related, but i cannot set "Graphics Clock Offset" (enabled with coolbits) anymore. Frequencies dont change when i input values.

    Posted 05/09/2017 04:30 PM   
    For those that prefer more cutting edge short lived branch drivers, 381.22 that just dropped has the recent fixes too: [url]http://www.nvidia.com/Download/driverResults.aspx/118524/en-us[/url]. [quote="HRH"]I Installed the new driver 375.66 and when the Prime Sync is ON and the system is Idle for couple of minutes, I hear the sound of login in ubuntu and everything is restarted and I should relogin. I should note that everything terminated and lost![/quote] That's not good. Would definitely like to take a look at the log, although it looks like devtalk thinks it's a virus. Could you please send it to me at agoins <at> nvidia <dot> com? Thanks,
    For those that prefer more cutting edge short lived branch drivers, 381.22 that just dropped has the recent fixes too: http://www.nvidia.com/Download/driverResults.aspx/118524/en-us.

    HRH said:I Installed the new driver 375.66 and when the Prime Sync is ON and the system is Idle for couple of minutes, I hear the sound of login in ubuntu and everything is restarted and I should relogin. I should note that everything terminated and lost!

    That's not good. Would definitely like to take a look at the log, although it looks like devtalk thinks it's a virus. Could you please send it to me at agoins <at> nvidia <dot> com?

    Thanks,

    Alex Goins
    NVIDIA Linux Graphics

    Posted 05/09/2017 07:40 PM   
    Scroll To Top

    Add Reply