[opensuse-factory] NVidia GTX 1050 with bumblebee
Hi, I bought new HW Dell XPS 15 9560 with dual graphics: 1. Intel(R) HD Graphics 630 (Kaby Lake GT2) 2. GeForce GTX 1050/PCIe/SSE2 I've installed Tumbleweed with bumblebee and proprietary nvidia driver 381.22. Everything seems work, but I don't understand some results. I start with simple glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 422 frames in 5.0 seconds = 84.255 FPS 300 frames in 5.0 seconds = 59.994 FPS 300 frames in 5.0 seconds = 59.999 FPS 300 frames in 5.0 seconds = 59.997 FPS 300 frames in 5.0 seconds = 59.996 FPS optirun glxgears 11569 frames in 5.0 seconds = 2313.779 FPS 9155 frames in 5.0 seconds = 1830.960 FPS 9769 frames in 5.0 seconds = 1953.718 FPS 9915 frames in 5.0 seconds = 1983.000 FPS 9133 frames in 5.0 seconds = 1826.520 FPS It looks reasonable. Intel runs with vsync. Then: glxgears -fullscreen Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 303 frames in 5.0 seconds = 60.412 FPS 300 frames in 5.0 seconds = 59.995 FPS 300 frames in 5.0 seconds = 59.993 FPS optirun glxgears -fullscreen 236 frames in 5.0 seconds = 47.195 FPS 247 frames in 5.0 seconds = 49.213 FPS 243 frames in 5.0 seconds = 48.494 FPS This is what I don't understand. In fullscreen mode nvidia has really bad results. It's same or even worse with glxspheres. Another example is Unigine heaven benchmark. Same setup on same hardware I get e.g. 110 FPS on Windows 10 home and about 20 FPS on Linux with optirun heaven. It looks like Intel graphics works well but nvidia doesn't. Can somebody explain me what can be wrong? thank you, m. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Michal, Michal Hlaváč wrote:
Hi,
I bought new HW Dell XPS 15 9560 with dual graphics: 1. Intel(R) HD Graphics 630 (Kaby Lake GT2) 2. GeForce GTX 1050/PCIe/SSE2
This is what I don't understand. In fullscreen mode nvidia has really bad results. It's same or even worse with glxspheres.
Another example is Unigine heaven benchmark. Same setup on same hardware I get e.g. 110 FPS on Windows 10 home and about 20 FPS on Linux with optirun heaven.
one thing - have you tried using primusrun, too? Especially for the unigine benchmarks I had noticed quite a penalty (some 30% slower) for optirun... And testing the commands as you specified I notice a hell lot of artifacts in the fullscreen run with optirun that are not there with primusrun. My system is HD530/940MX (Lenovo T460p) using the 375.66 driver on TW... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, середа, 31 травня 2017 р. 13:36:47 EEST Peter Suetterlin написано:
Hi Michal,
Michal Hlaváč wrote:
Hi,
I bought new HW Dell XPS 15 9560 with dual graphics: 1. Intel(R) HD Graphics 630 (Kaby Lake GT2) 2. GeForce GTX 1050/PCIe/SSE2
This is what I don't understand. In fullscreen mode nvidia has really bad results. It's same or even worse with glxspheres.
Another example is Unigine heaven benchmark. Same setup on same hardware I get e.g. 110 FPS on Windows 10 home and about 20 FPS on Linux with optirun heaven.
one thing - have you tried using primusrun, too? Especially for the unigine benchmarks I had noticed quite a penalty (some 30% slower) for optirun...
And testing the commands as you specified I notice a hell lot of artifacts in the fullscreen run with optirun that are not there with primusrun.
My system is HD530/940MX (Lenovo T460p) using the 375.66 driver on TW...
In my case primusrun itself doesn't work (doesn't switch card on nor use it when it's enabled manually). Don't know why, never investigated. But "optirun -b primus ..." works with most high framerate on complex and large scenes. If you'll change in /etc/bumblebee/bumblebee.conf Bridge=auto to Bridge=primus in [optirun] section, you'll have no need to add -b primus every time. -- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
Thanks for answers, I tried optirun -b primus glxspheres and result is
same. It's slow.
When I look into /var/log/Xorg.8.log there are some things like:
[155171.437] (II) xfree86: Adding drm device (/dev/dri/card1)
[155171.437] (II) xfree86: Adding drm device (/dev/dri/card0)
[155171.437] (EE) /dev/dri/card0: failed to set DRM interface version
1.4: Permission denied
[155171.439] (--) PCI:*(0:1:0:0) 10de:1c8d:1028:07be rev 161, Mem @
0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @
0x0000e000/128, BIOS @ 0x????????/524288
[155171.439] (II) LoadModule: "glx"
[155171.439] (II) Loading /usr/lib64/nvidia/xorg/modules/extensions/libglx.so
[155171.441] (II) Module glx: vendor="NVIDIA Corporation"
[155171.441] compiled for 4.0.2, module version = 1.0.0
[155171.441] Module class: X.Org Server Extension
...
155172.006] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1050 (GP107-A) at
PCI:1:0:0 (GPU-0)
[155172.006] (--) NVIDIA(0): Memory: 4194304 kBytes
[155172.006] (--) NVIDIA(0): VideoBIOS: 86.07.3e.00.1c
[155172.006] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[155172.006] (II) NVIDIA(0): Validated MetaModes:
[155172.006] (II) NVIDIA(0): "NULL"
[155172.006] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[155172.006] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[155172.006] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[155172.006] (--) Depth 24 pixmap format is 32 bpp
[155172.006] (II) NVIDIA: Using 49152.00 MB of virtual memory for
indirect memory
[155172.006] (II) NVIDIA: access.
[155172.012] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event
daemon; the daemon
[155172.012] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[155172.012] (II) NVIDIA(0): configuration option may not be set
correctly. When the
[155172.012] (II) NVIDIA(0): ACPI event daemon is available, the
NVIDIA X driver will
[155172.012] (II) NVIDIA(0): try to use it to receive ACPI event
notifications. For
[155172.012] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[155172.012] (II) NVIDIA(0): "AcpidSocketPath" X configuration
options in Appendix B: X
[155172.012] (II) NVIDIA(0): Config Options in the README.
[155172.038] (II) NVIDIA(0): Setting mode "NULL"
[155172.041] (==) NVIDIA(0): Disabling shared memory pixmaps
Full log is here: http://paste.opensuse.org/view/raw/14081418
Also nvidia-settings is showing that resolution is 640x480. I have 3840x2160
m.
On Wed, May 31, 2017 at 7:34 PM, Mykola Krachkovsky
But "optirun -b primus ..." works with most high framerate on complex and large scenes. If you'll change in /etc/bumblebee/bumblebee.conf Bridge=auto to Bridge=primus in [optirun] section, you'll have no need to add -b primus every time.
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On mercredi, 31 mai 2017 22.07:33 h CEST Michal Hlaváč wrote:
Thanks for answers, I tried optirun -b primus glxspheres and result is same. It's slow. When I look into /var/log/Xorg.8.log there are some things like:
[155171.437] (II) xfree86: Adding drm device (/dev/dri/card1) [155171.437] (II) xfree86: Adding drm device (/dev/dri/card0) [155171.437] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Are you part of group video ? If not try this first. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi,
output of groups:
users bumblebee vboxusers docker wheel disk video
On Thu, Jun 1, 2017 at 7:54 AM, Bruno Friedmann
On mercredi, 31 mai 2017 22.07:33 h CEST Michal Hlaváč wrote:
Thanks for answers, I tried optirun -b primus glxspheres and result is same. It's slow. When I look into /var/log/Xorg.8.log there are some things like:
[155171.437] (II) xfree86: Adding drm device (/dev/dri/card1) [155171.437] (II) xfree86: Adding drm device (/dev/dri/card0) [155171.437] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Are you part of group video ? If not try this first.
--
Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, That error isn't an error actually: https://github.com/Bumblebee-Project/Bumblebee/issues/652 I have the very same (EE) in my log, but everything works fine for me: $ optirun glxspheres Polygons in scene: 62464 (61 spheres * 1024 polys/spheres) Visual ID of window: 0xd2 Context is Direct OpenGL Renderer: GeForce GTX 970M/PCIe/SSE2 63.983902 frames/sec - 71.406035 Mpixels/sec 60.016526 frames/sec - 66.978443 Mpixels/sec $ vblank_mode=0 optirun 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: 0xd2 Context is Direct OpenGL Renderer: GeForce GTX 970M/PCIe/SSE2 ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: default value of option vblank_mode overridden by environment. 379.159830 frames/sec - 423.142370 Mpixels/sec 385.712024 frames/sec - 430.454619 Mpixels/sec BTW, what OpenGL Renderer shows for your case? And add "glxinfo" and "optirun glxinfo" outputs to susepaste, just to be sure it's fine. четвер, 1 червня 2017 р. 09:24:41 EEST Michal Hlaváč написано:
Hi,
output of groups:
users bumblebee vboxusers docker wheel disk video
On Thu, Jun 1, 2017 at 7:54 AM, Bruno Friedmann
wrote: On mercredi, 31 mai 2017 22.07:33 h CEST Michal Hlaváč wrote:
Thanks for answers, I tried optirun -b primus glxspheres and result is same. It's slow. When I look into /var/log/Xorg.8.log there are some things like:
[155171.437] (II) xfree86: Adding drm device (/dev/dri/card1) [155171.437] (II) xfree86: Adding drm device (/dev/dri/card0) [155171.437] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Are you part of group video ? If not try this first.
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
glxinfo - http://paste.opensuse.org/view/simple/92915670
optirun glxinfo - http://paste.opensuse.org/view/simple/73159504
On Thu, Jun 1, 2017 at 12:50 PM, Mykola Krachkovsky
Hi,
That error isn't an error actually: https://github.com/Bumblebee-Project/Bumblebee/issues/652 I have the very same (EE) in my log, but everything works fine for me: $ optirun glxspheres Polygons in scene: 62464 (61 spheres * 1024 polys/spheres) Visual ID of window: 0xd2 Context is Direct OpenGL Renderer: GeForce GTX 970M/PCIe/SSE2 63.983902 frames/sec - 71.406035 Mpixels/sec 60.016526 frames/sec - 66.978443 Mpixels/sec $ vblank_mode=0 optirun 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: 0xd2 Context is Direct OpenGL Renderer: GeForce GTX 970M/PCIe/SSE2 ATTENTION: default value of option vblank_mode overridden by environment. ATTENTION: default value of option vblank_mode overridden by environment. 379.159830 frames/sec - 423.142370 Mpixels/sec 385.712024 frames/sec - 430.454619 Mpixels/sec
BTW, what OpenGL Renderer shows for your case? And add "glxinfo" and "optirun glxinfo" outputs to susepaste, just to be sure it's fine. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, It looks fine. Strange. Run nvidia settings: optirun nvidia-settings -c :8 And check current power mode, frequency, temperature while running something like vblank_mode=0 optirun -b primus glxshperes Also, haven't you tried more recent driver version? I'm using short-lived version, you may try to use my repository: http://download.opensuse.org/repositories/home:/NickLion:/nv4:/1/ openSUSE_Tumbleweed/ четвер, 1 червня 2017 р. 13:59:08 EEST Michal Hlaváč написано:
glxinfo - http://paste.opensuse.org/view/simple/92915670 optirun glxinfo - http://paste.opensuse.org/view/simple/73159504
-- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
Thanks Mykola,
I've tried all this things. IMO problem is, that nvidia card cannot
recognize display. I've read that this is problem on some laptops.
Maybe it's bug in driver.
nvidia-settings says that:
X Screens: Sreen 0
Display: none
Maybe problem is with Permission denied in xorg.8.log because I read
somewhere that computed frames by nvidia card are shown to display by
intel card.
There are lot of issues about those Permission denied.
On Fri, Jun 2, 2017 at 1:54 PM, Mykola Krachkovsky
Hi,
It looks fine. Strange. Run nvidia settings: optirun nvidia-settings -c :8 And check current power mode, frequency, temperature while running something like vblank_mode=0 optirun -b primus glxshperes
Also, haven't you tried more recent driver version? I'm using short-lived version, you may try to use my repository: http://download.opensuse.org/repositories/home:/NickLion:/nv4:/1/ openSUSE_Tumbleweed/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Michal Hlaváč wrote:
Thanks Mykola,
I've tried all this things. IMO problem is, that nvidia card cannot recognize display. I've read that this is problem on some laptops. Maybe it's bug in driver.
No, you are not connected to any display - this is normal. It's only a virtual X, the card renders the frames, but the output is sent to another X (if I understand things correct). Be it as it is, I do get exactly the same messages in Xorg.log, and also my nvidia-settings tells me screen is at 640x480. My laptops' screen is 2560x1440. So that is not the issue... One stupid question: Is your battery inserted? When I got my laptop new I continued my habit to remove the battery when on AC (improves lifetime a lot...), but then my Lenovo would only run at lowest CPU speed (800MHz).... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, пʼятниця, 2 червня 2017 р. 18:44:58 EEST Peter Suetterlin написано:
Michal Hlaváč wrote:
Thanks Mykola,
I've tried all this things. IMO problem is, that nvidia card cannot recognize display. I've read that this is problem on some laptops. Maybe it's bug in driver.
No, you are not connected to any display - this is normal. It's only a virtual X, the card renders the frames, but the output is sent to another X (if I understand things correct).
Be it as it is, I do get exactly the same messages in Xorg.log, and also my nvidia-settings tells me screen is at 640x480. My laptops' screen is 2560x1440. So that is not the issue...
One stupid question: Is your battery inserted? When I got my laptop new I continued my habit to remove the battery when on AC (improves lifetime a lot...), but then my Lenovo would only run at lowest CPU speed (800MHz)....
Yes, Peter is right, that's not a sign of issue. TBH, I've run out of ideas. The only I could suggest to install parallel openSUSE Leap 42.2 and install drivers from official nvidia repository without Bumblebee at all and check performance there. If it is low, then it's definitely nvidia problem. If it's ok, then Bumblebee (or something other) has an issue. -- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
On 06/02/2017 01:32 PM, Mykola Krachkovsky wrote:
Hi,
пʼятниця, 2 червня 2017 р. 18:44:58 EEST Peter Suetterlin написано:
Michal Hlaváč wrote:
Thanks Mykola,
I've tried all this things. IMO problem is, that nvidia card cannot recognize display. I've read that this is problem on some laptops. Maybe it's bug in driver.
No, you are not connected to any display - this is normal. It's only a virtual X, the card renders the frames, but the output is sent to another X (if I understand things correct).
Be it as it is, I do get exactly the same messages in Xorg.log, and also my nvidia-settings tells me screen is at 640x480. My laptops' screen is 2560x1440. So that is not the issue...
One stupid question: Is your battery inserted? When I got my laptop new I continued my habit to remove the battery when on AC (improves lifetime a lot...), but then my Lenovo would only run at lowest CPU speed (800MHz)....
Yes, Peter is right, that's not a sign of issue. TBH, I've run out of ideas. The only I could suggest to install parallel openSUSE Leap 42.2 and install drivers from official nvidia repository without Bumblebee at all and check performance there. If it is low, then it's definitely nvidia problem. If it's ok, then Bumblebee (or something other) has an issue.
Rather than using Bumblebee, try suse-prime. *suse-prime* Provides GPU (nvidia/intel) selection for NVIDIA optimus laptops A collection of shell scripts that makes it possible to use the NVIDIA GPU on a Optimus Laptop. The switching is similar to the feature provided by the nvidia-prime package in Ubuntu. However, no such package has been made for other distributions. This is exactly the functionality this package provide. https://software.opensuse.org/package/suse-prime This allows you to use the driver downloaded from the Nvidia site. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Jun 2, 2017, at 7:54 AM, Mykola Krachkovsky
wrote: Hi,
It looks fine. Strange. Run nvidia settings: optirun nvidia-settings -c :8 And check current power mode, frequency, temperature while running something like vblank_mode=0 optirun -b primus glxshperes
Also, haven't you tried more recent driver version? I'm using short-lived version, you may try to use my repository: http://download.opensuse.org/repositories/home:/NickLion:/nv4:/1/ openSUSE_Tumbleweed/
четвер, 1 червня 2017 р. 13:59:08 EEST Michal Hlaváč написано:
glxinfo - http://paste.opensuse.org/view/simple/92915670 optirun glxinfo - http://paste.opensuse.org/view/simple/73159504
-- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
According Nvidia the 381.22 supports the NVidia GTX 1050 card. I’ve spoken with other users and they use the NVIDIA run driver with prime Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Roman, thanks, I tried install suse-prime with Tumbleweed, but without success. It needs dependency which I cannot satisfy x11-video-nvidiaG04. thanks, m. On pondelok, 12. júna 2017 18:44:27 CEST Roman Bysh wrote:
On Jun 2, 2017, at 7:54 AM, Mykola Krachkovsky
wrote: Hi,
It looks fine. Strange. Run nvidia settings: optirun nvidia-settings -c :8 And check current power mode, frequency, temperature while running something like vblank_mode=0 optirun -b primus glxshperes
Also, haven't you tried more recent driver version? I'm using short-lived version, you may try to use my repository: http://download.opensuse.org/repositories/home:/NickLion:/nv4:/1/ openSUSE_Tumbleweed/
четвер, 1 червня 2017 р. 13:59:08 EEST Michal Hlaváč написано:
glxinfo - http://paste.opensuse.org/view/simple/92915670 optirun glxinfo - http://paste.opensuse.org/view/simple/73159504
According Nvidia the 381.22 supports the NVidia GTX 1050 card. I’ve spoken with other users and they use the NVIDIA run driver with
prime
Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/06/17 03:42 PM, Michal Hlavac wrote:
Hi Roman,
thanks, I tried install suse-prime with Tumbleweed, but without success. It needs dependency which I cannot satisfy x11-video-nvidiaG04.
thanks, m.
On pondelok, 12. júna 2017 18:44:27 CEST Roman Bysh wrote:
On Jun 2, 2017, at 7:54 AM, Mykola Krachkovsky
wrote: Hi,
It looks fine. Strange. Run nvidia settings: optirun nvidia-settings -c :8 And check current power mode, frequency, temperature while running something like vblank_mode=0 optirun -b primus glxshperes
Also, haven't you tried more recent driver version? I'm using short-lived version, you may try to use my repository: http://download.opensuse.org/repositories/home:/NickLion:/nv4:/1/ openSUSE_Tumbleweed/
четвер, 1 червня 2017 р. 13:59:08 EEST Michal Hlaváč написано:
glxinfo - http://paste.opensuse.org/view/simple/92915670 optirun glxinfo - http://paste.opensuse.org/view/simple/73159504
According Nvidia the 381.22 supports the NVidia GTX 1050 card. I’ve spoken with other users and they use the NVIDIA run driver with
prime
Roman
https://github.com/bosim/SUSEPrime#opensuse-nvidia-prime-like-packageOpenSUSE nvidia-prime like package https://github.com/bosim/SUSEPrime#assumptionsAssumptions * You are running OpenSUSE LEAP 42.2 * You don't have bumblebee installed * You installed nvidia drivers using http://opensuse-community.org/nvidia.ymp https://github.com/bosim/SUSEPrime#installationusageInstallation/usage 1. Add the following lines if [ -f /etc/X11/xinit/xinitrc.d/prime-offload.sh ]; then . /etc/X11/xinit/xinitrc.d/prime-offload.sh fi To /etc/X11/xdm/Xsetup after the line ". /etc/sysconfig/displaymanager" 2. Run "prime-select nvidia" log out and login again, hopefully you are using nvidia GPU. To switch back to intel GPU run "prime-select intel" Remember to run as root. https://github.com/bosim/SUSEPrime#opensuse-nvidia-prime-like-package As a test add the Nvidia repository from openSUSE 42.2 and install x11-video-nvidiaG04 using Yast Software Management. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (6)
-
Bruno Friedmann
-
Michal Hlavac
-
Michal Hlaváč
-
Mykola Krachkovsky
-
Peter Suetterlin
-
Roman Bysh