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

Notices


Reply
  Search this Thread
Old 03-31-2005, 06:38 PM   #1
Turin Turambar
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Rep: Reputation: 0
OpenGL not working in the root terminal


Before a few days I could start, for example glxgears in the root terminal, now I cannot!
It says glxgears: Error: couldn't open display '(null)'

If I start that program in the regular shell, it works normally. How come that root term does not work now?!

SuSE is 9.2 PRO

Last edited by Turin Turambar; 03-31-2005 at 06:44 PM.
 
Old 03-31-2005, 06:54 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I don't know about SuSE, but in Slackware glxgears is not in the $PATH for root.
Code:
root@james:/home/mingdao/build# glxgears
bash: glxgears: command not found
root@james:/home/mingdao/build# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
root@james:/home/mingdao/build# exit
exit
mingdao@james:~/build$ glxgears
X connection to :0.0 broken (explicit kill or server shutdown).
mingdao@james:~/build$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
mingdao@james:~/build$ which glxgears
/usr/X11R6/bin/glxgears
mingdao@james:~/build$
 
Old 03-31-2005, 07:00 PM   #3
Turin Turambar
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I can start glxgears in the root terminal, but it won't display. That's the problem.
And not just glxgears - any program that requires OpenGL won't start in root terminal.

Last edited by Turin Turambar; 03-31-2005 at 07:20 PM.
 
Old 03-31-2005, 07:07 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
nevermind ...
 
Old 04-01-2005, 10:34 AM   #5
evil_empire
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 176

Rep: Reputation: 31
WHat do you mean by root terminal?
You have to run glxgears in a console/shell while X is running. It doesn't work in command line mode.
 
Old 04-01-2005, 01:11 PM   #6
Turin Turambar
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Well, it's the Terminal Super User mode. I can run OpenGL programs in every terminal, except in that one. However, I remember that I *could* start it from there to.

I guess I messed up some settings....
 
Old 04-01-2005, 01:45 PM   #7
evil_empire
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 176

Rep: Reputation: 31
Quote:
It says glxgears: Error: couldn't open display '(null)'
Well, aboves suggests, X is not running for that session. So you can't run glxgears. You have to have X running.
 
Old 04-01-2005, 07:42 PM   #8
Turin Turambar
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Errr... isn't the X started the moment I enter the GUI environment?!
Please, how to install it in the root term.?
 
Old 04-02-2005, 06:45 AM   #9
evil_empire
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 176

Rep: Reputation: 31
Well,
You login to the GUI, you open a konsole thru the menu, eg "konsole", glxgears will work, you open a terminal eg "xterm", it will work.
What doesn't work is,
You login to the GUI, you see a nice desktop. You press CTRL+ALT+F1/F2/F3/F4/F5/F6 and swith to a virtual console and login and run glxgears, it will not work!!!

If you open a shell, a konsole, a terminal, a super terminal or whatever, as long as you open it from the GUI, glxgears will run.
But you cannot run it in a seperate virtual console.

So what exactly did u do?
 
Old 04-02-2005, 01:30 PM   #10
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Rep: Reputation: 15
Ok, here is the deal. OpenGL got , more or less, nothing to do with X.

Try running and configuring sax2 again. If this doesn't work, then reinstall drivers (maybe you updated your kernel lately, hence setuo or compile of video drivers are required again), and then run sax2, according to your drivers readme.
 
Old 04-02-2005, 03:13 PM   #11
evil_empire
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 176

Rep: Reputation: 31
Quote:
Ok, here is the deal. OpenGL got , more or less, nothing to do with X.

Anyway, it is about glxgears not running. See the x there?
 
Old 04-02-2005, 03:50 PM   #12
Turin Turambar
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Ok, here's what happens.

I enter the GUI and normally run the system (like Windows XP). If I want to start OpenGL programs from the root console (Super User Mode), they will not work.

For example, glxgears will show "error, could not open...", supertux will show "Warning: I could not set up fullscreen video for 640x480 mode. The Simple DirectMedia error that occured was: Fatal signal: Segmentation Fault (SDL Parachute Deployed), and the list goes on.

But if I start the same stuff from normal konsole (not root), everything works. That's strange. I didn't change anything in kernel recently and tried SaX several times, but it didn't work.

Last edited by Turin Turambar; 04-02-2005 at 03:54 PM.
 
Old 04-03-2005, 02:01 PM   #13
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Rep: Reputation: 15
Why are you running graphic apps in root mode???

Well, now I got what u mean. I am also unable to access OpenGL through ATI drivers, but only through Mesa. Ok try this:

Quote:
now run fglrxconfig (remember you are configureing this in root... mine did not apply to the regular user, so i had to run fglxconfig again. what i did was log in as the user.. pull up a shell, ran su, then ran init 3. logged in again as the usr at the CLI, su, and ran fglrxconfig.) i really hope that made sense... lol.
Hope you got the idea, but use sax

Personally, I didn't try it and don't need to.
 
  


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
opengl is not working properly PinRojas Debian 7 07-05-2005 12:19 PM
Getting openGL apps working. gauntalus Linux - Software 7 01-14-2005 05:54 PM
OpenGL and the Root window in X The_Nerd Programming 1 04-15-2004 11:21 PM
OpenGL problem, works for root, not users Dusan Linux - Hardware 4 06-22-2003 06:20 AM
OPenGL not working adcripps Linux - General 3 07-31-2002 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:36 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