LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 10-25-2014, 11:27 AM   #1
Slacktivist
LQ Newbie
 
Registered: Oct 2014
Distribution: Slackware
Posts: 11

Rep: Reputation: 6
Xinerama and Steam - Could not find required OpenGL entry point 'glGetError'! *SOLVED


Many steam games do not work with dual monitor Xinerama so you must run a separate Xsession in a separate TTY session. In addition, a separate Xserver layout with only one monitor in /etc/X11/xorg.conf.d must be called upon.

BACKGROUND:
-I am running Slackware 14.1 64 bit with an Nvidia GT 430 with a dual monitor Xinerama setup.
- When I tried to run certain games in Steam I would get the following error:
Quote:
PROBLEM: You appear to have OpenGL 0.0.0, but we need at least 2.0.0!
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.
THIS ERROR IS A RESULT OF RUNNING DUAL MONITORS WITH XINERAMA
-You can prove that to yourself by disabling xinerama and putting giving yourself a single monitor setup.

-Of course I had 32 bit multilib libraries correctly installed by doing the following-- Thanks AlienBob
Code:
lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror 14.1'
su -
upgradepkg --reinstall --install-new *.t?z
upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z
-I also tried upgrading my Nvidia drivers from 319 --> 340.24
-First I installed the nvidia-kernal 340.24 with sbopkg.
Code:
sbopkg -i nvidia-kernel
-I grabbed and installed the rest of the Nvidia 340.24 drivers with the following:
Code:
mkdir /root/src
cd /root/src
wget http://slackbuilds.org/slackbuilds/14.1/system/nvidia-driver.tar.gz
tar zvxf nvidia-driver.tar.gz
cd nvidia-driver
wget ftp://download.nvidia.com/XFree86/Linux-x86_64/340.24/NVIDIA-Linux-x86_64-340.24.run && wget ftp://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-340.24.tar.bz2 && wget ftp://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-340.24.tar.bz2 && wget ftp://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-340.24.tar.bz2 && wget ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-340.24.tar.bz2 && wget ftp://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-340.24.tar.bz2
COMPAT32="yes" ./nvidia-driver.SlackBuild
nvidia-switch --remove
installpkg /tmp/nvidia-driver-340.24-x86_64-1_SBo.tgz
Installing 32 bit multilib libraries and upgrading the nvidia drivers did not solve this problem. However the 32 bit multilib libraries are certainly needed.

******* THE SOLUTION *******
- We will launch a separate Xsession with fluxbox (or openbox,blackbox..) in a different tty session and we will call upon a Xserver monitor layout with one monitor (no xinerama)

-Create the new server layout file "91-serverlayout-steam.conf" in /etc/X11/xorg.conf.d :
Code:
nano /etc/X11/xorg.conf.d/91-serverlayout-steam.conf
-place the following in this file, save and exit.
Code:
    # Server Layout for Steam
  Section "ServerLayout"
	  Identifier "Steam"
	  Screen  0       "Screen0"       Absolute        0       0
  EndSection
-Now, with your user login and NOT as root make the following script to launch the game and don't forget to make this script executable.
Code:
nano ~/bin/game.sh
-paste the following:
Code:
if [ $# -ge 1 ]; then
        game="$(which $1)"
        fluxbox="$(which fluxbox)"
        tmpgame="/tmp/tmpgame.sh"
        DISPLAY=:1.0
        echo -e "${fluxbox} &\n${game}" > ${tmpgame}
        echo "starting ${game}"
        xinit ${tmpgame} -- :1 -layout Steam || exit 1
else
        echo "not a valid argument"
fi
**if you use openbox/blackbox then replace the fluxbox part with that.

-make that game.sh script executable with the following:
Code:
chmod +x game.sh
-Now you will go to your tty1 session with CTRL-ALT-F1 and use CTRL-ALT-F7 to get back to this screen.

-Hit CTRL-ALT-F1
-login as your user and not as root
-execute steam with your game.sh script
Code:
game.sh steam
-Steam will launch in your new single monitor fluxbox Xsession and your game will work.
-You can now switch back and forth between your game and your 2 monitor Xsession with CTRL-ALT-F7 and CTRL-ALT-F8

Last edited by Slacktivist; 10-27-2014 at 06:46 PM.
 
Old 11-17-2014, 02:24 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Great information. I've got a question: does your Xinerama still work now that you've upgraded the nvidia driver? According to this https://wiki.archlinux.org/index.php/multihead and my own experience, Xinerama only works with nouveau.
 
Old 11-21-2014, 04:59 PM   #3
Slacktivist
LQ Newbie
 
Registered: Oct 2014
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by mostlyharmless View Post
Great information. I've got a question: does your Xinerama still work now that you've upgraded the nvidia driver? According to this https://wiki.archlinux.org/index.php/multihead and my own experience, Xinerama only works with nouveau.
Xinerama works fine with the Nvidia 340.24 drivers. Twinview is what gives me a problem. If you use Twinview on gaming you must have identical monitors with identical refresh rates. I have one monitor with a 59.85 Hz refresh rate and another with 60.1 refresh rate. This causes vertical tearing and makes games unplayable with TwinView. That is why I use Xinerama. Of course some Steam games do not work with Xinerama (the purpose of the initial post).

Last edited by Slacktivist; 11-24-2014 at 11:38 AM.
 
Old 11-24-2014, 01:43 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Interesting, I use the 343.13 driver, and it definitely breaks Xinerama on my hardware. Even without Xinerama and with two screens, I couldn't run Steam on either screen without your solution, which works, although I have to go to Ctrl-Alt-F2, as F1 is occupied. The difference is probably that I have two video cards and two monitors, one card being an Nvidia card and the other an AMD card.
 
  


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
Could not find required OpenGL entry point. Pinonoir Linux - Games 2 06-10-2014 06:54 AM
Could not find required OpenGL entry point. Pinonoir Slackware 1 06-09-2014 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 03:57 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
Open Source Consulting | Domain Registration