Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(yet) Another Xgl/i810 Problem - vt8, GDM, etc. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Wed Apr 26, 2006 6:13 am    Post subject: (yet) Another Xgl/i810 Problem - vt8, GDM, etc. [SOLVED] Reply with quote

i know there are a horde of other Xgl install threads, but the problem i have at the moment seems relatively unique. here's the situation.

hardware: thinkpad x40
graphics: Intel Corporation 82852/855GM Integrated Graphics Device
driver: not in kernel, xf86-video-i810 - version 1.6
DRI: not in kernel, x11-drm - version 20051223
(no idea it's relevant or not, but DRI which used to work no longer does)
kernel: 2.6.16

note: the above combination does, at least in theory, support Xgl as users such as this one (https://wiki.nurd.se/global:howto:x40:xgl) have gotten it up and running.

software prerequisites:
unlike a lot of other folks, i actually had very few problems getting everything installed as per the instructions in the wiki (http://gentoo-wiki.com/HOWTO_XGL).

anyhow, after a couple of false starts with gdm.conf - i borrowed from the command line from the guy above who'd gotten it working - and finally gdm at least tried to boot Xgl. tried being the operative term.

GDM currently loads itself fine, and then tries to load Xgl on login - and fails. the error given is a typical blue screen X server failure message. the specific output for the error is "Unrecognized option vt8". this apparently has been run into before (http://www.gablarski.com/kororaa-xgl/#current). following the failure to load Xgl, GDM goes ahead and loads a regular X/Gnome session for me.

here are the relevant sections of my gdm.conf:

Code:
# The X server to use if we can't figure out what else to run.
#StandardXServer=/usr/bin/X
StandardXServer=/usr/bin/Xgl
...
# How long gdm should wait before it assumes a started Xserver is defunct and
# kills it.  10 seconds should be long enough for X, Xgl may need 20 or 25.
GdmXserverTimeout=25
...
[servers]
# These are the standard servers.  You can add as many you want here
# and they will always be started.  Each line must start with a unique
# number and that will be the display number of that server.  Usually just
# the 0 server is used.
#0=Standard
1=Xgl
...
# Definition of the standard X server.
[server-Standard]
name=Standard server
command=/usr/bin/X -audit 0
flexible=true

# Definition of the xgl X server.
[server-Xgl]
name=Xgl
#command=/usr/bin/Xgl -accel xv -accel glx:pbuffer -accel xv:pbuffer -ac -kb -audit 0 -br -dpms -dpi 72
command=/usr/bin/Xgl :0 -accel xv -accel glx:pbuffer -accel xv:pbuffer -ac -kb -audit 0 -br -dpms -dpi 72
flexible=true
#chooser=false
#handled=true
#priority=0


any help at all debugging this would be greatly appreciated. unfortunately i can't even run it from scratch using the CoffeeBuzz startup script. it opens and then crashes, saying:

Code:
###### STARTXGL SCRIPT ######
Starting X Server with XGL
   Using Display 1
   Using WM: gnome
   Using Card: nvidia/other
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/sogjr:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
   Starting Compiz
   Starting Window Manager

** (gnome-settings-daemon:10287): WARNING **: The system configuration changed - but we remain silent

X Error of failed request:  GLXUnsupportedPrivateRequest
  Major opcode of failed request:  142 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Serial number of failed request:  499
  Current serial number in output stream:  499
X connection to :1.0 broken (explicit kill or server shutdown).
The application 'gnome-window-decorator' lost its connection to the display :1.0;
most likely the X server was shut down or you killed/destroyed
the application.
gnome-settings-daemon: Fatal IO error 104 (Connection reset by peer) on X server :1.0.
[1146030697,000,xklavier.c:XklStartListen/]     The backend does not require manual layout management - but it is provided by the applicationThe application 'gnome-panel' lost its connection to the display :1.0;
most likely the X server was shut down or you killed/destroyed
the application.
   DONE!

The application 'nautilus' lost its connection to the display :1.0;
most likely the X server was shut down or you killed/destroyed
the application.
xrdb: Connection refused
xrdb: Can't open display ':1'

_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/


Last edited by sog on Sun Jun 04, 2006 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Wed May 31, 2006 4:08 pm    Post subject: Reply with quote

seeing as this post is a month old, i thought it wouldn't hurt to drop in a quick update in case anyone else is having similar problems.

i stumbled across the i810 summary below the other day (http://en.opensuse.org/Xgl_Troubleshooting), and am wondering if perhaps my command line is what's getting me into trouble.

Code:
Intel / open source driver "i810"

    * Driver has neither pBuffer nor FBO support. When using a composite manager all windows are rendered in software and only compositing is hardware accelerated. Astonishingly, this works well enough for most use cases. FBO support is supposed to be added to the driver in the near future.
    * XVideo YV12 surfaces are hardware accelerated (when no composite manager is used or for fullscreen unredirected windows), but due to a bug in the driver the video will miss one of the color channels, leading to false greenish/purple colors. This has to be investigated.


if the i810 driver does not support pBuffer or FBO, maybe i shouldn't be passing those in, with the 'glx:pbuffer'
and 'xv:pbuffer' parameters?

it does seem, however, as if the other user linked to is passing that in. not sure what the answer is here, but any feedback - as always - is appreciated.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Wed May 31, 2006 8:21 pm    Post subject: Reply with quote

more documentation, and two more tries.

first, i checked out the latest coffee-buzz repository, then recompiled xgl, compiz, etc with the latest and greatest builds. slight problem with vanilla-compiz b/c the ebuild kicked out a digets error, but i just did a ebuild path/to/compiz/ebuild digest, and i was off and running.

so with everything i build, i swapped back in my old gdm.conf that pointed to Xgl and rebooted. X would not start, kicking the following error in my Xorg.0.log file:

Code:
(EE) Error loading keymap /usr/share/X11/xkb/compiled/server-0.xkm


from there, i commented out the xkb section in my xorg.conf, and tried again.

again, x would not start, this time kicking out the following error:

Code:
(EE) AIGLX error: dlopen of /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: undefined symbol: _glapi_tls_Context)


no joy. i have no idea why i'm getting AIGLX errors, but such is my case at this point. i may in fact try the AIGLX route rather than Xgl b/c i just can't seem to get it working.

anyhow, just thought i'd document my struggles here in case anyone else has similar issues.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 2:27 am    Post subject: Reply with quote

That's the error you get when you build mesa with tls (USE=nptl) but not xorg-server / xgl.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 2:34 am    Post subject: Reply with quote

ah, ok. so here's what i get with an emerge -av mesa:

These are the packages that would be merged, in order:

Code:
Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-6.5.1_alpha20060524 USE="motif nptl -3dnow -debug -mmx -sse" VIDEO_CARDS="i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis -tdfx -trident -via"


do i simply have to rebuild mesa w/ a -nptl flag? i don't see an Xgl or xorg-server flag in there.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 2:41 am    Post subject: Reply with quote

I'm sorry, I wasn't clear enough.

Both mesa and xorg-server have USE=nptl. The setting needs to be consistent.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 2:48 am    Post subject: Reply with quote

hmm...weird. here's an emerge -av xorg-server:

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-base/xorg-server-1.1.0  USE="dri ipv6 nptl sdl xorg -3dfx -debug -dmx -kdrive -minimal -xprint" INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -magictouch -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="i810 -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -glint -i128 -i740 -imstt -mach64 -mga -neomagic -nsc -nv -nvidia -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vesa -vga -via -vmware -voodoo" 0 kB

Total size of downloads: 0 kB


maybe i should recompile them both w/o ntpl?
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 2:53 am    Post subject: Reply with quote

If you're trying to run xgl, you'll find it probably also needs an nptl flag. If one doesn't exist for the ebuild you're using, turn it off also for mesa and xorg-server and you'll prolly be alright.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 2:55 am    Post subject: Reply with quote

i might try that. they've all been compiled with it, and are generating the errors above.

can't hurt trying without it, i suppose.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 5:14 am    Post subject: Reply with quote

no joy. recompiled with nptl, as it didn't work.

also tried running Xgl in a nested window with a couple of different command lines:

Code:
sog@sogjr /usr/local $ Xgl :1 -ac -accel xv -accel glx:pbuffer -kb
libGL warning: 3D driver claims to not support visual 0x4b
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/sogjr:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found

sog@sogjr /usr/local $ Xgl :1 -ac -accel xv -accel -kb
libGL warning: 3D driver claims to not support visual 0x4b
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/sogjr:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found


no idea what that means.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 5:21 am    Post subject: Reply with quote

No screens found means you don't have a valid, working X configuration. Try looking at /var/log/Xorg.0.log for more info.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 5:31 am    Post subject: Reply with quote

could things get any weirder? not only does X load fine, Xorg.0.log reveals no (EE) errors.

it does, however, have a couple of (WW) warnings. they are:

Code:
(WW) I810(0): Bad V_BIOS checksum (multiple)
(WW) I810(0): Extended BIOS function 0x5f05 failed.


i'm at sea here.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 5:36 am    Post subject: Reply with quote

Yeah, you can probably just ignore those. So what I'm getting is that regular Xorg works fine but Xgl is broken. Can you try building it without ipv6?
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 5:56 am    Post subject: Reply with quote

done. and it got rid of the weird network errors; still have the screen problem.

Code:
sog@sogjr /var/log $ Xgl :1 -ac -accel xv -accel glx:pbuffer -kb
libGL warning: 3D driver claims to not support visual 0x4b
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found
sog@sogjr /var/log $ Xgl :1 -ac -accel xv -accel glx:pbuffer -kb
libGL warning: 3D driver claims to not support visual 0x4b
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found
sog@sogjr /var/log $ Xgl :1 -ac -accel xv -accel -kb
libGL warning: 3D driver claims to not support visual 0x4b
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found
sog@sogjr /var/log $ Xgl :0 -ac -accel xv -accel -kb

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Thu Jun 01, 2006 6:15 am    Post subject: Reply with quote

sog wrote:
done. and it got rid of the weird network errors; still have the screen problem.

Code:
sog@sogjr /var/log $ Xgl :1 -ac -accel xv -accel glx:pbuffer -kb
libGL warning: 3D driver claims to not support visual 0x4b
Mesa: CPU vendor: GenuineIntel
Mesa: CPU name:         Intel(R) Pentium(R) M processor 1.40GHz

Fatal server error:
no screens found

Suspect you're running it with bad options. Take another look through the xgl wiki on gentoo-wiki.com perhaps and make sure you've got the right -accel options for your driver. Also not sure you want -kb.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Thu Jun 01, 2006 6:33 am    Post subject: Reply with quote

that's probably true. tried several combinations, as well as no options, same deal. i can't find anything that documents the actual option function, so that i can test accordingly. all i have is the one string that supposedly works on Thinkpad x40's.

anyhow, i'm heading to bed - thanks for all of your help - it's greatly appreciated.

sometime tomorrow i'm also going to try and hunt down the problem with the i915_dri.so lib, as i found this in one of the gdm logs when trying to boot up Xgl:

Code:
(EE) AIGLX error: dlopen of /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: undefined symbol: _glapi_tls_Context)
(EE) AIGLX: reverting to software rendering
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc101)+us" };
    xkb_geometry             { include "pc(pc101)" };

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x87) [0x80b89f7]

Fatal server error:
Caught signal 11.  Server aborting

_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
Cthulhu666
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 195

PostPosted: Fri Jun 02, 2006 8:14 am    Post subject: Reply with quote

Try checking that /usr/lib/dri/i915_dri.so actually exists.

I know it sounds obvious, but when I emerged the AIGLX enabled modular Xorg, I had to symlink it from /usr/lib/xorg/modules/dri/.
_________________
A certified Gentoo lover!
Got 4 Gentoo boxes (2 desktops, 1 laptop and a server/MythTV HTPC).

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Fri Jun 02, 2006 8:27 am    Post subject: Reply with quote

thx for the reply, chtulu, but i'm just not that lucky ;)

Code:
sog@sogjr ~ $ ls /usr/lib/dri/
i810_dri.so  i915_dri.so

_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
Cthulhu666
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 195

PostPosted: Sat Jun 03, 2006 6:16 pm    Post subject: Reply with quote

sog wrote:
thx for the reply, chtulu, but i'm just not that lucky ;)

My bad, looking at the error message again, I can see that it can actually find the file, but it appears there's an undefined symbol. Try re-emerging xf86-video-i810 or mesa or maybe both. If that doesn't help re-emerging xorg-server may have an effect, then again maybe not.
_________________
A certified Gentoo lover!
Got 4 Gentoo boxes (2 desktops, 1 laptop and a server/MythTV HTPC).

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Sun Jun 04, 2006 11:11 am    Post subject: Reply with quote

no joy on the recompile plan - getting the same errors. also, after checking out the latest xgl-coffee overlay, it seems as if cairo and glitz have been deleted from trunk - not sure what's going on there.

as an alternative, i'm going to try rebuilding the kernel with the I810 rather than the i915 - see the selection below.

Code:
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)          │ │
  │ │ < >   3dfx Banshee/Voodoo3+                                                  │ │
  │ │ < >   ATI Rage 128                                                           │ │
  │ │ < >   ATI Radeon                                                             │ │
  │ │ <*>   Intel I810                                                             │ │
  │ │ < >   Intel 830M, 845G, 852GM, 855GM, 865G                                   │ │


i doubt it will work, but it can't hurt. additionally, i'm going to comment out the composite extension in my xorg.conf file, as according to OpenSuSE (http://en.opensuse.org/Xgl_Troubleshooting), it's not necessary:

Code:
Xgl does not need the Composite extension enabled in xorg.conf - in fact this is counter-productive, as e.g. the NVIDIA driver disables OpenGL by default when Composite is enabled. The Composite extension is provided by Xgl itself, without the need to configure anything.

_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Sun Jun 04, 2006 11:39 am    Post subject: Reply with quote

additionally, i'm going to try dropping in xorg 7.1, which in theory has improved support for AIGLX. we'll see if that makes a difference.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Sun Jun 04, 2006 1:06 pm    Post subject: Reply with quote

i don't know which change fixed it - the kernel swap to I810 or the commenting out of Composite - but i'm now able to boot into Xgl.

the only catch is that something is wrong with Compiz, and i have no buttons on my windows, can't move the windows, ALT-TAB doesn't work, etc.

but that's a matter for another thread. can't wait to get it fully fleshed out. thanks to donnie and chtulu for all of their kind assistance in here.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
Cthulhu666
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 195

PostPosted: Sun Jun 04, 2006 6:16 pm    Post subject: Reply with quote

No problem, only glad to help out a fellow Gentooist :D

I wish I had to time (and guts :lol: ) to start playing with Xgl og compiz, but I'm currently in the process of re-emerging world with GCC 4.1.1 after a annoying issue with Xorg (7.1).
_________________
A certified Gentoo lover!
Got 4 Gentoo boxes (2 desktops, 1 laptop and a server/MythTV HTPC).

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum