[SOLVED] Optimus on Mageia 3

[SOLVED] Optimus on Mageia 3

Postby Number3124 » Jan 21st, '14, 05:37

Hi all,

I've an Optimus laptop with an nVidia GeForce GT 535M and the 2nd gen integrated GPU on my Intel Core i7-2630QM CPU. I'd pretty much just been happy to use the integrated chip that the installation defaulted to. However, since I installed Steam, I'd like to be able to take advantage of the nVidia chip to play some of the Linux enabled games such as the original Half-Life and Amnesia: The Dark Decent.

I did some digging and found out the Bumblebee is the only real option to get support for it, but that it is also no longer in the Mageia depos due to the project temporarily disbanding (the project homepage says that they're back in action). I tried adding the depo that the wiki suggests:

Code: Select all
# urpmi.addmedia --wget --distrib http://packages.mageialinux.ru/mageia3/RPMS/x86_64


But URPMI returns:

Code: Select all
unable to access the distribution medium (no media.cfg file found)
unable to add medium


Is there still a depo out there from which I can get Bumblebee?

If so, I'm going to try to use nVidia's drivers to get the most out of my chip. I've heard that there are a few issues with using the proprietary drivers with Bumblebee. Is there any truth to this?
Last edited by Number3124 on Jan 24th, '14, 00:57, edited 1 time in total.
Number3124
 
Posts: 26
Joined: Aug 19th, '13, 03:31

Re: Optimus on Mageia 3

Postby wintpe » Jan 21st, '14, 11:32

not sure why you are getting the no media.cfg problem,
but that does happen again and again and ive not found the cause for it.

however the depot does exist as if you stick that address in a web browser it comes up.

so switch to a directory with some space and do

wget -r http://packages.mageialinux.ru/mageia3/RPMS/x86_64 or just download the ones you need.

then cd into that directory and simply install the rpm's you need

I dont see anything marked optimus in there however i dont know what packages it uses.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Optimus on Mageia 3

Postby Number3124 » Jan 22nd, '14, 02:15

Thanks. I managed to get it installed however upon running, "optirun steam," it tells me that, "OpenGL GLX context is not using direct rendering which may cause performance problems." It still launches Steam, but I'd like to know if this can be fixed. Could it be because I'm using nVidia's proprietary drivers?
Number3124
 
Posts: 26
Joined: Aug 19th, '13, 03:31

Re: Optimus on Mageia 3

Postby wintpe » Jan 22nd, '14, 12:31

im not realy going to be of much more help here, accept to say that
with these types of laptop you dont usually switch from intel to nvidia
instead you run your 2D in intel, and when you need 3D it is overlayed in a window, much like the old 3dFX was
that nvidia bought when it went out of business.

the reason for adopting this idea on laptops was to reduce power consumption.

i take it you have followed something like

https://fedoraproject.org/wiki/Bumblebee

especially the bit that refers to

Bumblebee with the NVIDIA proprietary drivers

The previous commands install bumbleblee with the nouveau drivers. If you want to install bumblebee with the NVIDIA proprietary drivers you must also follow these instructions:

Install the bumblebee-nonfree repository:

OK so thats fedora, but mageia and fedora are so similar, that its pretty easy to translate "yum -y --nogpgcheck install" to urpmi bumblebee-nonfree-release

hope that points you in the right direction

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Optimus on Mageia 3

Postby doktor5000 » Jan 22nd, '14, 21:48

There's also a wiki page for it: https://wiki.mageia.org/en/Bumblebee
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Optimus on Mageia 3

Postby Number3124 » Jan 22nd, '14, 22:04

Thanks Peter. I used the instructions from the Mageia wiki found here*. If I'm reading the wiki page directly it looks like the ones in the Mageia RU depos use the nVidia driver by default, and I had previously configured the card to use proprietary drivers. If it helps, here's the print out of running Steam with debug mode:

Code: Select all
[redacted@localhost ~]$ optirun --debug steam
[ 2845.910329] [DEBUG]optirun version 3.1 starting...
[ 2845.910388] [DEBUG]Active configuration:
[ 2845.910399] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 2845.910409] [DEBUG] X display: :8
[ 2845.910419] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib64/nvidia-current
[ 2845.910429] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 2845.910438] [DEBUG] Accel/display bridge: auto
[ 2845.910447] [DEBUG] VGL Compression: proxy
[ 2845.910483] [DEBUG]Using auto-detected bridge virtualgl
[ 2848.608392] [INFO]Response: Yes. X is active.

[ 2848.608411] [INFO]Running application using virtualgl.
[ 2848.608715] [DEBUG]Process vglrun started, PID 11293.
Couldn't find dpkg, please update steamdeps for your distribution.
Running Steam on mageia 3 64-bit
STEAM_RUNTIME is enabled automatically
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Xlib:  extension "NV-GLX" missing on display ":0.0".
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
unlinked 0 orphaned pipes
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Xlib:  extension "NV-GLX" missing on display ":0.0".
[0122/145723:ERROR:object_proxy.cc(239)] Failed to call method: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
[0122/145723:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.

For more information visit https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457.
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)

** (steam:11405): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files

** (steam:11405): WARNING **: _nm_remote_settings_ensure_inited: (NMRemoteSettings) error initializing: The name org.freedesktop.NetworkManager was not provided by any .service files

Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Generating new string page texture 2: 48x256, total string texture memory is 49.15 KB
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Generating new string page texture 3: 256x256, total string texture memory is 311.30 KB
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Focused window is now 1, 0
Adding license for package 0
Adding license for package 482
Adding license for package 984
Adding license for package 1081
Adding license for package 1681
Adding license for package 2242
Adding license for package 2692
Adding license for package 4429
Adding license for package 4733
Adding license for package 6134
Adding license for package 6346
Adding license for package 6517
Adding license for package 7150
Adding license for package 7877
Adding license for package 8186
Adding license for package 11563
Adding license for package 12072
Adding license for package 13199
Adding license for package 14840
Adding license for package 15953
Adding license for package 17079
Adding license for package 17982
Adding license for package 19132
Adding license for package 26595
Adding license for package 31292
Adding license for package 32912
Adding license for package 36077
Adding license for package 36144
roaming config store loaded successfully - 2325 bytes.
migrating temporary roaming config store
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Xlib:  extension "NV-GLX" missing on display ":0.0".
ExecCommandLine: "/home/conorcorrigan/.local/share/Steam/ubuntu12_32/steam"
System startup time: 5.77 seconds
Xlib:  extension "NV-GLX" missing on display ":0.0".
OnFocusWindowChanged to unknown window type: k_EWindowTypeSteamDesktop, 0
Generating new string page texture 72: 1024x256, total string texture memory is 1.36 MB
Generating new string page texture 73: 128x256, total string texture memory is 131.07 KB
Generating new string page texture 74: 128x256, total string texture memory is 1.49 MB
Generating new string page texture 75: 64x256, total string texture memory is 1.56 MB
Generating new string page texture 76: 32x256, total string texture memory is 1.59 MB
Generating new string page texture 80: 128x256, total string texture memory is 1.72 MB
Generating new string page texture 81: 384x256, total string texture memory is 2.11 MB
Generating new string page texture 83: 8x256, total string texture memory is 2.12 MB
Running Steam on mageia 3 64-bit
STEAM_RUNTIME has been set by the user to: /home/conorcorrigan/.local/share/Steam/ubuntu12_32/steam-runtime
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ExecCommandLine: "/home/conorcorrigan/.steam/root/ubuntu12_32/steam steam://open/driverhelperready"
ExecSteamURL: "steam://open/driverhelperready"
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Installing breakpad exception handler for appid(steam)/version(1389129507_client)
Generating new string page texture 194: 128x256, total string texture memory is 2.25 MB
Generating new string page texture 210: 256x256, total string texture memory is 393.22 KB
[0122/145738:ERROR:cef_context.cc(514)] No data resource available for id 4501
Focused window is now 0, 0
OnFocusWindowChanged to unknown window type: k_EWindowTypeNonSteamDesktop, 0
Focused window is now 1, 0
OnFocusWindowChanged to unknown window type: k_EWindowTypeSteamDesktop, 0
unlinked 2 orphaned pipes
CAsyncIOManager: 0 threads terminating.  0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 11766 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 2 multi object alertable sleeps
[2014-01-22 14:57:22] Startup - updater built Jan  7 2014 12:06:43
[2014-01-22 14:57:22] Verifying installation...
[2014-01-22 14:57:22] Verification complete
Shutting down. . .
[2014-01-22 14:58:47] Shutdown
[ 2934.966395] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 2934.966460] [DEBUG]Socket closed.
[ 2934.966500] [DEBUG]Killing all remaining processes.
[redacted@localhost ~]$


Perhaps this tells you more than it does me. I may be able to use it daily and perform tasks of lower intensiveness, but I'm not expert. Just a self taught guy who is sick of Windows and Mac.

*ninja'ed by Doktor.
Number3124
 
Posts: 26
Joined: Aug 19th, '13, 03:31

Re: Optimus on Mageia 3

Postby doktor5000 » Jan 22nd, '14, 22:21

Number3124 wrote:Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.

For more information visit https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457.


Well, apart from that message, what effect do you see actually?
Also, did you take a look at the linked page?

And you probably should first run some basic tests like optirun glxinfo or so to be sure it's not a problem with steam.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Optimus on Mageia 3

Postby Number3124 » Jan 24th, '14, 00:37

Open GL direct rendering is enabled for both 32bit and 64bit. I think the problem might be with Steam rather than the drivers. I'm thinking that it might not be a real problem. I'll install some games at some point or another so if it continues to be a problem I'll ask again. In the mean time I'm going to mark this as solved. Thanks for the help guys.
Number3124
 
Posts: 26
Joined: Aug 19th, '13, 03:31


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest