LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-07-2017, 10:21 AM   #16
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910

Sorry, I don't understand that. But anyway you can force set LD_PRELOAD if you wish and also you can check the config file of optirun.
 
Old 10-08-2017, 01:49 PM   #17
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Sorry, I don't understand that. But anyway you can force set LD_PRELOAD if you wish and also you can check the config file of optirun.
That's what I want to do. Can't seem to find any documentation on it though. Had a look at man too. Am I missing something?
 
Old 10-09-2017, 04:05 AM   #18
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
This is my bumblebee.conf:

Code:
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia

## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib64/nvidia-bumblebee:/usr/lib/nvidia-bumblebee:/usr/lib64:/usr/lib
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib64/nvidia-bumblebee/xorg,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
I can't see where you can override LD_PRELOAD or set the 'libdlfaker.so' library path (except for NVIDIA libraries).
 
Old 10-10-2017, 02:24 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681
"checking the config file" always consists of 2 parts:

1. reading the documentation for where the config files are stored, what their options and defaults are (maybe 'man bumblebee.conf'?)
2. opening the file(s) and checking them
 
Old 10-10-2017, 04:38 AM   #20
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
"checking the config file" always consists of 2 parts:

1. reading the documentation for where the config files are stored, what their options and defaults are (maybe 'man bumblebee.conf'?)
2. opening the file(s) and checking them
Already done ^.

It was man optirun but no info found.

The closest I found was

Code:
-l, --ldpath PATH
              libraries like libGL.so are searched in PATH (useful for the nvidia driver). By default, PATH is queried from the [sic]
That's all it says. I did try this from command line to no avail and there is a similar one in optirun.conf:

Code:
LibraryPath=
So I'll try that the next chance I get.
 
Old 10-21-2017, 03:56 PM   #21
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Colour me stumped.

I seem to be the only one with this problem on the internet

Not the first time...

Not found a way to unset it apart from .bashrc and had to write a bash script for Wireshark so it would unset the var before launching itself when called from the GUI. Don't like the solution but it'll have to do.
 
Old 10-22-2017, 02:01 PM   #22
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,979
Blog Entries: 4

Rep: Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681Reputation: 1681
Quote:
Originally Posted by TimewarpUK View Post
I seem to be the only one with this problem on the internet

Not the first time...
if you experience that a lot, it means that
- either you have some really unique circumstances (which i don't see any indication of)
- or you need to work on your search skills

no disrespect.
 
Old 10-22-2017, 03:00 PM   #23
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
if you experience that a lot, it means that
- either you have some really unique circumstances (which i don't see any indication of)
- or you need to work on your search skills

no disrespect.
Yeh could be either.

When I've had problems I couldn't Google before it had been to something setup strange from the start that I much later discovered.

However, if you do suspect the latter and my Google Fu is weak, feel free to step in and help.
 
Old 10-22-2017, 05:27 PM   #24
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
OK,

I've now managed to solve this by patching vglrun:

Code:
$ diff /usr/bin/vglrun~ /usr/bin/vglrun
235c235
< 	LD_PRELOAD=librrfaker.so
---
> 	LD_PRELOAD=/usr/lib64/VirtualGL/librrfaker.so
237c237
< 	LD_PRELOAD=librrfaker.so:$LD_PRELOAD
---
> 	LD_PRELOAD=/usr/lib64/VirtualGL/librrfaker.so:$LD_PRELOAD
240c240
< 	LD_PRELOAD=libdlfaker.so:$LD_PRELOAD
---
> 	LD_PRELOAD=/usr/lib64/VirtualGL/libdlfaker.so:$LD_PRELOAD
243c243
< 	LD_PRELOAD=libgefaker.so:$LD_PRELOAD
---
> 	LD_PRELOAD=/usr/lib64/VirtualGL/libgefaker.so:$LD_PRELOAD
The page at https://wiki.archlinux.org/index.php/VirtualGL helped but I'm still at a lost why I needed to patch a system file.
 
Old 10-23-2017, 04:31 AM   #25
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910
that is great.
I think someone assumed something (an app) will be executed in /usr/lib64/VirtualGL and therefore librrfaker.so (without path) is sufficient.
Someone else invoked this app from another directory....
 
Old 10-23-2017, 05:03 AM   #26
TimewarpUK
Member
 
Registered: Dec 2014
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
that is great.
I think someone assumed something (an app) will be executed in /usr/lib64/VirtualGL and therefore librrfaker.so (without path) is sufficient.
Someone else invoked this app from another directory....
Note sure why $LD_LIBRARY_PATH or LD cache isn't observed though, which should resolve it without path being specified.
 
Old 10-23-2017, 05:12 AM   #27
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,879

Rep: Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910Reputation: 2910
This is not really trivial, see for example here:
http://man7.org/linux/man-pages/man8/ld.so.8.html
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ERROR: ld.so: object 'libhugetlbfs.so' from LD_PRELOAD cannot be preloaded: ignored rsgsrinivasan Linux - Software 1 11-24-2015 08:16 AM
[SOLVED] How can I solve Proxychains error "LD_PRELOAD cannot be preloaded" ? hack3rcon Debian 4 08-21-2015 01:14 AM
How to avoid LD_PRELOAD ? APLinux Linux - Newbie 12 11-27-2014 04:19 PM
ERROR: ld.so: LD_PRELOAD cannot be preloaded xombboxer Linux - Newbie 2 05-12-2011 12:16 PM
What dERROR: ld.so: object 'libavfs.so' from LD_PRELOAD cannot be preloaded: ignored. arubin Slackware 1 05-01-2006 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration