nvidia-settings don't open :/

Hi all,

I have an MSI CX61 laptop with nvidia 820m (optimus)
I installed nvidia drivers, and it suppose to works.

optirun glxspheres out is:

giu@ko-giu:~> optirun glxspheres 
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce 820M/PCIe/SSE2
146.309435 frames/sec - 128.085132 Mpixels/sec

and less /var/log/Xorg.8.log | grep nvidia

giu@ko-giu:~> less /var/log/Xorg.8.log | grep nvidia
  1348.294] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
  1348.294] (++) ModulePath set to "/usr/lib64/nvidia/xorg/,/usr/lib64/xorg/modules"
  1348.295] (II) Loading /usr/lib64/nvidia/xorg/modules/extensions/libglx.so
  1348.302] (II) LoadModule: "nvidia"
  1348.302] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
  1348.302] (II) Module nvidia: vendor="NVIDIA Corporation"
  1348.303] (II) Loading /usr/lib64/nvidia/xorg/modules/libwfb.so
  1348.980] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20150116)
  1348.999] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia

nvidia-smi out:

giu@ko-giu:~> optirun nvidia-smi 
Thu Jun 18 12:55:22 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 346.72     Driver Version: 346.72         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 820M        Off  | 0000:01:00.0     N/A |                  N/A |
| N/A   45C    P0    N/A /  N/A |      8MiB /  2047MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0              C   Not Supported                                         |
+-----------------------------------------------------------------------------+

But when I try to open nvidia-settings, I get:

giu@ko-giu:~> nvidia-settings 

ERROR: libnvidia-gtk3.so.346.72: cannot open shared object file: No such file or directory
       libnvidia-gtk3.so: cannot open shared object file: No such file or directory
       libnvidia-gtk2.so.346.72: cannot open shared object file: No such file or directory
       libnvidia-gtk2.so: cannot open shared object file: No such file or directory


ERROR: A problem occured when loading the GUI library. Please check your installation and library
       path. You may need to specify this library when calling nvidia-settings. Please run
       `nvidia-settings --help` for usage information.

Some idea?

And the openSUSE version is???

Sorry, I always forgot it to mention.

OenSuSe 13.2

giu@ko-giu:~> uname -a
Linux ko-giu.komenco.es 3.16.7-21-desktop #1 SMP PREEMPT Tue Apr 14 07:11:37 UTC 2015 (93c1539) x86_64 x86_64 x86_64 GNU/Linux

Don’t have a Optimus system so can’t test but think you need to prefix the command with optirun

Yes, otherwise the nvidia libraries are not found.
And nvidia-settings only works when the nvidia driver is in use anyway, which with Bumblebee is only the case if you use optirun.

The question is just whether it makes sense at all to run nvidia-settings with Bumblebee. You definitely should not let it create an xorg.conf, as that will break your system (trying to load the nvidia driver on boot instead of intel)…

[QUOTE=wolfi323;2715735]Yes, otherwise the nvidia libraries are not found.
And nvidia-settings only works when the nvidia driver is in use anyway, which with Bumblebee is only the case if you use optirun.

I tried, but didn’t work either.

giu@ko-giu:~> optirun nvidia-settings 

ERROR: libnvidia-gtk3.so.346.72: cannot open shared object file: No such file or directory
       libnvidia-gtk3.so: cannot open shared object file: No such file or directory
       libnvidia-gtk2.so.346.72: cannot open shared object file: No such file or directory
       libnvidia-gtk2.so: cannot open shared object file: No such file or directory


ERROR: A problem occured when loading the GUI library. Please check your installation and library
       path. You may need to specify this library when calling nvidia-settings. Please run
       `nvidia-settings --help` for usage information.

The question is just whether it makes sense at all to run nvidia-settings with Bumblebee. You definitely should not let it create an xorg.conf, as that will break your system (trying to load the nvidia driver on boot instead of intel)…

I want to run nvidia-settings because AFAIK, I need to configure my second monitor. I see on this second monitor, but I can’t change background for example.

And do those libraries exist in /usr/lib64/nvidia/? (you did install nvidia-bumblebee, right? are you using the nvidia-settings included, or did you try to install it manually?)

I want to run nvidia-settings because AFAIK, I need to configure my second monitor.

Use your desktop’s settings.

I see on this second monitor, but I can’t change background for example.

You can’t change the background with nvidia-settings anyway. You need to set this in your desktop environment.

No.
giu@ko-giu:~> ls /usr/lib64/nvidia/
libGL.so.1 libGL.so.346.72 libOpenCL.so libOpenCL.so.1.0.0 xorg

Use your desktop’s settings.

You can’t change the background with nvidia-settings anyway. You need to set this in your desktop environment.

[/quote]

What a fail. I readed is there where I should change. Maybe to extend background, don’t know

So this is with nvidia-bumblebee installed?
If the necessary libraries are missing in the package, you should probably file a bug report.

I cannot tell whether this is the case or not as I don’t have an Optimus system either.

What a fail. I readed is there where I should change. Maybe to extend background, don’t know

Well, I still don’t quite understand what you actually want to change, and why.

And maybe what you read applies only for non-Optimus systems anyway.
AIUI, it makes no sense to change the resolution or things like that for nvidia on Optimus systems, as the nvidia chip is only used to render things, not to display them. Your desktop runs on the intel chip, and your display is also (only) connected to the intel chip.

To set up multiple monitors I’d guess you would have to use xorg.conf settings. Have no clue if this works ok with the Intel+NVIDIA hybrid.

If KDE desktop you may be able to do it from Configure-desktop - Display and Monitor. But it may also require xorg.conf modes. For the most part nvidia-setting just modes xorg.conf file.