LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2015, 12:35 PM   #1
Hyonane
Member
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 32

Rep: Reputation: 2
New nvidia-settings broken


The new nvidia prop driver have a new thing and nvidia-settings now uses gkt3 by default, or something like that. But its not working on Slack. I have the bumblebee setup, and it gives me this message now:

bash-4.3# nvidia-settings

ERROR: libnvidia-gtk3.so.346.35: 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.35: 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.


Not sure if its the way the installation is made in the bumblebee script or something else. I'll try to poke around the bumblebee-nvidia slackbuild later.
 
Old 01-27-2015, 12:39 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
FYI, version bumping the nvidia-driver and nvidia-kernel scripts from SBo with 346.35 seems to work fine here (no bumblebee).
 
1 members found this post helpful.
Old 01-27-2015, 02:34 PM   #3
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
--use-gtk2 option

read release note: Added the nvidia-settings option --use-gtk2 to force the use of the GTK+ 2 UI library.
 
1 members found this post helpful.
Old 01-27-2015, 02:42 PM   #4
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
slackbuild nvidi-driver: 340.65 has broken my amd and nvidia mixed system, 340.76 was released today and fixed this problem.

Edit: there are still problem with 340.76, all screen number is messed up, can't have 2 different screen 0 from different video chip vendors. back to 340.58 works.

Last edited by number22; 01-27-2015 at 04:07 PM.
 
1 members found this post helpful.
Old 01-28-2015, 02:52 AM   #5
Hyonane
Member
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 32

Original Poster
Rep: Reputation: 2
As i said ( or tried to) in the initial post, the nvidia-settings cant find the gtk3 nor the gtk2 libs, as it says in the error.

bash-4.3# nvidia-settings --use-gtk2

ERROR: libnvidia-gtk2.so.346.35: 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.
 
Old 01-28-2015, 03:14 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Did you run "ldconfig" after installing?
 
Old 01-28-2015, 03:19 AM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by Hyonane View Post
ERROR: libnvidia-gtk2.so.346.35: 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.
I don't have this problem with 346.35 on 14.1 multilib.
There's no output at all when I run nvidia-settings from terminal.
It still exits with segmentation fault whenever I close the window, but I think it's a completely different issue.

Have you tried nvidia.run --uninstall before upgrading the driver?
Maybe some leftover from old driver did this, I have seen it happen before.
 
Old 01-28-2015, 04:01 AM   #8
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
I believe the script you use to install the NVIDIA driver just doesn't include the libnvidia-gtk2.so.346.35 and libnvidia-gtk3.so.346.35 files.

EDIT: If it's similar to the nvidia-driver SlackBuild you'll probably need to add something like (untested BTW, I just use the binary installer, which has stopped removing libEGL.la ... for now):
Code:
install -m 755 libnvidia-gtk2.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-gtk3.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/

Last edited by turtleli; 01-28-2015 at 04:13 AM.
 
Old 01-28-2015, 07:43 AM   #9
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
I am also running this nvidia driver with the bumblebee setup... without issues. The package creates a menu item under settings that should run it properly. To do it from the command line you need to run

Code:
optirun nvidia-settings -c :8
Not sure what is causing the issues tho you describe above. Have you removed stock slackware packages from your system? What version of slackware are you running?
 
Old 01-28-2015, 03:13 PM   #10
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by turtleli View Post
I believe the script you use to install the NVIDIA driver just doesn't include the libnvidia-gtk2.so.346.35 and libnvidia-gtk3.so.346.35 files.

EDIT: If it's similar to the nvidia-driver SlackBuild you'll probably need to add something like (untested BTW, I just use the binary installer, which has stopped removing libEGL.la ... for now):
Code:
install -m 755 libnvidia-gtk2.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-gtk3.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
I can confirm this suggestion works, have been using that with the beta driver through a modified slackbuild with those exact lines for a while now.
 
Old 01-29-2015, 04:00 AM   #11
Hyonane
Member
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 32

Original Poster
Rep: Reputation: 2
No, i havent removed anything from the default full install. Just checked and the 340.76 packages (nvidia-bumblebee and nvidia-kernel) opens the nvidia-settings normally.

When i added the :

install -m 755 libnvidia-gtk2.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
install -m 755 libnvidia-gtk3.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/

to the slackbuild, the compilation failed.

I'll do a fresh install later and ill update about this.
 
Old 01-30-2015, 11:05 AM   #12
Hyonane
Member
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 32

Original Poster
Rep: Reputation: 2
Well, i kept digging around in this. Looks like now i only get those errors if im starting from the terminal, in my need fresh slackware install ( when i created this post, it was not). When i start the nvidia-settings shortcut on the KDE or XFCE menus, it goes on normally.

After making sure those 2 libraries was being compiled, from the terminal, the nvidia-settings opens with:

optirun nvidia-settings -I /usr/lib64/nvidia-bumblebee/libnvidia-gtk2.so.346.35 -c :8

The gtk3.so library works too.
 
Old 01-30-2015, 03:45 PM   #13
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Still broken for me. :-(
 
Old 01-30-2015, 04:05 PM   #14
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Somehow my libs ended up in /usr/local/lib/
Code:
ry@/usr:$ find -name "libnvidia-*"
./lib/nvidia-bumblebee/libnvidia-glcore.so.346.35
./lib/nvidia-bumblebee/libnvidia-tls.so.346.35
./lib/nvidia-bumblebee/libnvidia-ml.so.1
./lib/nvidia-bumblebee/tls/libnvidia-tls.so.346.35
./lib/nvidia-bumblebee/libnvidia-ml.so.346.35
./lib/nvidia-bumblebee/libnvidia-ml.so
./lib/nvidia-bumblebee/libnvidia-compiler.so.346.35
./local/lib/libnvidia-gtk2.so.346.35
./local/lib/libnvidia-gtk3.so.346.35
./lib64/nvidia-bumblebee/libnvidia-glcore.so.346.35
./lib64/nvidia-bumblebee/libnvidia-cfg.so
./lib64/nvidia-bumblebee/libnvidia-cfg.so.346.35
./lib64/nvidia-bumblebee/libnvidia-cfg.so.1
./lib64/nvidia-bumblebee/libnvidia-tls.so.346.35
./lib64/nvidia-bumblebee/libnvidia-ml.so.1
./lib64/nvidia-bumblebee/tls/libnvidia-tls.so.346.35
./lib64/nvidia-bumblebee/libnvidia-wfb.so.346.35
./lib64/nvidia-bumblebee/libnvidia-ml.so.346.35
./lib64/nvidia-bumblebee/libnvidia-ml.so
./lib64/nvidia-bumblebee/libnvidia-compiler.so.346.35
ry@/usr:$
This works:

Code:
optirun nvidia-settings -I /usr/local/lib/libnvidia-gtk3.so.346.35
 
Old 01-31-2015, 12:06 AM   #15
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Is the nvidia-bumblebee SlackBuild script the one at https://github.com/WhiteWolf1776/Bum...idia-bumblebee?

A few observations:
1. I think it leaks files. Starting with v346.35, the nvidia-settings package now creates the libnvidia-gtk{2,3}.so.${VERSION} libraries, so LIBDIR=/package/library/location needs to be added to the respective make install line. Otherwise it installs to the default location of /usr/local/lib while the package is being made.
2. The nvidia-settings and nvidia-xconfig packages don't actually need to be downloaded or used. Except for NV-CONTROL-API.txt and FRAMELOCK.txt(which aren't important), all the files that are installed from those packages are actually present in the NVIDIA binary installer. So the SlackBuild could be simplified slightly.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia proprietary driver, nvidia-settings and how to configure panning bluebox Linux - Hardware 1 03-11-2011 03:21 PM
nvidia driver broken BackwardsDown Linux - Hardware 2 09-22-2006 03:02 PM
Broken X - nvidia drivers hraposo Ubuntu 3 09-20-2006 03:09 PM
nvidia-settings vs nvidia-glx POWERade Linux - Games 2 07-17-2006 11:40 PM
Broken X after changed monitor settings? badbunny Linux - Newbie 2 10-27-2005 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration