Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFCE 4 Accelerated Graphics Issues
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GoldenMouse
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2005
Posts: 112

PostPosted: Sun Oct 28, 2007 5:34 pm    Post subject: XFCE 4 Accelerated Graphics Issues Reply with quote

I just switched over to XFCE from Gnome, but now everything that uses accelerated graphics has issues. Specifically, games will either fail to start at all or be extremely choppy while running, then crash X when exiting. OpenGL screensavers end up simply being choppy.

None of this happened while I was running Gnome, and nothing seemed to have changed when I commented out the "Extensions" section of xorg.conf and the line enabling AIGLX. Does anyone know what's going on?
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 585

PostPosted: Sun Oct 28, 2007 6:22 pm    Post subject: Reply with quote

A couple things. First these are just shots in the dark. Second I haven't used gnome in years so don't know what it's capable of graphically now and what settings it may/may not require in xorg.conf. IOW, settings which could drastically affect xfce may have no impact on gnome (I"m just guessing) so your xorg.conf could be messed up. Last, I'm using latest nvidia drivers and xorg7.1 and until a couple months ago was using xfce4.? with no problems using the accel graphics features (and beryl on top of that).

If you're using nvidia and xorg7.2+ IIRC I read that nvidia can enable some accelerated graphics thing(s) without having to explicitly say so in xorg.conf. So to disable whatever, you'd want to explicitly set it/them to off/false in xorg.conf. This could explain why you saw no changes when removing/commenting those things out. Check the readme in /usr/share/docs. I'm not positive about which of these may/may not affect you because I read it awhile back.

When you mentioned low fps, I remember that when I was experimenting at some point when I enabled 'Options "Composite" "Enable"' my fps dropped through the floor; the note I made in my xorg.conf isn't too clear so I'm not sure how I got fps back up. The only options I currently have set in xorg.conf are 'Option "AddARGBGLXVisuals" "True"' in device section and 'Option "Composite" "Enable"' in the extensions section and that's it. Maybe there's a clue here to whatever settings you're trying. If you want I'll look in the log and see what else nvidia is enabling itself.

Last is that for some things (like beep-media-player for me to use "double size") I have to start it using this:

Code:

XLIB_SKIP_ARGB_VISUALS=1 /usr/local/pkg/audio/bmp/current/bin/beep-media-player "$@"


That wrapped when pasting in here but it's all one line.

Once I started using "XLIB*" I stopped having trouble with it. I'm pretty sure there was another app I was having trouble with when using accel graphics stuff but I don't remember what it was. I do remember the "XLIB*" setting seemed to work wonders.

So those are my shots in the dark; hopefully one will help you.
Back to top
View user's profile Send private message
GoldenMouse
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2005
Posts: 112

PostPosted: Mon Oct 29, 2007 8:40 pm    Post subject: Reply with quote

I'm betting it's the NVIDIA problem that you noted. I _am_ using the NVIDIA proprietary (yuck) drivers with a recent build of X. I'm looking through for stuff on that right now.
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 585

PostPosted: Mon Oct 29, 2007 11:19 pm    Post subject: Reply with quote

My post was pretty long so what you could try is set only
Code:

 Option     "AddARGBGLXVisuals" "True"

in device section and
Code:

Option "Composite" "Enable"

in extensions section then start a problematic game using
Code:

#!/bin/sh

XLIB_SKIP_ARGB_VISUALS=1 <path to game bin>

(and chmod +x the script you make)

Restart X and if you get xfce coolness and your games work better than they do now then you could work backward from there with any other settings.
Back to top
View user's profile Send private message
GoldenMouse
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2005
Posts: 112

PostPosted: Tue Oct 30, 2007 6:46 pm    Post subject: Reply with quote

Maybe I should have posted this to begin with. I'm not too savvy when it comes to X and its configuration. The only things that were done to it were to move from nv to nvidia, then to add AIGLX. If need be, I can live without AIGLX for the time being. Of note is that I'm stuck using old nvidia drivers, since they dropped support for the fourth generation. That then forced me to freeze X at 7.2, since the older nvidia drivers don't work with 7.3. I'm wishing that nouveau would hurry up, so I could switch away from this proprietary blob.

Code:
melisandre X11 # cat xorg.conf
Section "ServerLayout"
        Identifier      "X.Org Configured"
        Screen  0       "Screen0" 0 0
        InputDevice     "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
        InputDevice     "USB Mouse" "AlwaysCore"
#No Synaptics touchpad found
#AIGLX
        Option         "AIGLX" "true"
EndSection

Section "ServerFlags"
        Option  "AllowMouseOpenFail" "true"

EndSection

Section "Files"
        FontPath        "/usr/share/fonts/util"
        FontPath        "/usr/share/fonts/encodings"
        FontPath        "/usr/share/fonts/misc"
        FontPath        "/usr/share/fonts/local"
        FontPath        "/usr/share/fonts/terminus"
        FontPath        "/usr/share/fonts/corefonts"
        FontPath        "/usr/local/share/fonts"
        FontPath        "/usr/share/fonts"
        FontPath        "/usr/share/fonts/default"
        FontPath        "/usr/share/fonts/TTF"
        FontPath        "/usr/share/fonts/arphicfonts"
        FontPath        "/usr/share/fonts/jisx0213"
        FontPath        "/usr/share/fonts/shinonome"
        FontPath        "/usr/share/fonts/baekmuk-fonts"
        FontPath        "/usr/share/fonts/kacst-fonts"
        FontPath        "/usr/share/fonts/sgi-fonts"
        FontPath        "/usr/share/fonts/unfonts"
        FontPath        "/usr/share/fonts/default/ghostscript"
        FontPath        "/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-misc:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-100dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-75dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-misc"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-misc"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-misc"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-misc"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
        FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection

Section "Module"
        Load    "ddc"
        Load    "vbe"
        Load    "GLcore"
        Load    "dbe"
        #Load   "dri"
        Load    "extmod"
        Load    "glx"
        Load    "bitmap"
        Load    "speedo"
        Load    "type1"
        Load    "freetype"
        Load    "record"
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver  "kbd"
        Option  "CoreKeyboard"

        Option  "XkbModel" "pc105"
        Option  "XkbOptions" "grp:toggle,grp_led:scroll"
        Option  "XkbVariant" ",winkeys"
EndSection

Section "InputDevice"
        Identifier      "Serial Mouse"
        Driver  "mouse"
        Option  "Protocol" "Microsoft"
        Option  "Device" "/dev/ttyS0"
        Option  "Emulate3Buttons" "true"
        Option  "Emulate3Timeout" "70"
        Option  "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier      "PS/2 Mouse"
        Driver  "mouse"
        Option  "Protocol" "IMPS/2"
        Option  "Device" "/dev/misc/psaux"
        Option  "Emulate3Buttons" "true"
        Option  "Emulate3Timeout" "70"
        Option  "SendCoreEvents"  "true"
        Option  "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver  "mouse"
        Option  "Device" "/dev/input/mice"
        Option  "SendCoreEvents" "true"
        Option  "Protocol" "IMPS/2"
        Option  "ZAxisMapping" "4 5"
        Option  "Buttons" "5"
EndSection

Section "InputDevice"
        Identifier      "Synaptics"
        Driver  "synaptics"
        Option  "Protocol" "event"
        Option  "Device" ""
        Option  "LeftEdge" "1900"
        Option  "RightEdge" "5400"
        Option  "TopEdge" "1900"
        Option  "BottomEdge" "4000"
        Option  "FingerLow" "25"
        Option  "FingerHigh" "30"
        Option  "MaxTapTime" "180"
        Option  "MaxTapMove" "220"
        Option  "VertScrollDelta" "100"
        Option  "MinSpeed" "0.02"
        Option  "MaxSpeed" "0.10"
        Option  "AccelFactor" "0.0010"
        Option  "SHMConfig" "on"
EndSection

# Auto-generated by mkxf86config

Section "Monitor"
        Identifier   "Monitor0"
        HorizSync    28.0 - 96.0
        VertRefresh  50.0 - 75.0
EndSection

Section "Device"
        ### Available Driver options are:-
        # sw_cursor is needed for some ati and radeon cards
        #Option     "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
        Identifier  "nVidia GeForce 4 Ti"
        # The following line is auto-generated by x11-misc/mkxf86config
        Driver      "nvidia"
        #VideoRam    "65536"
        VendorName  "All"
        BoardName   "All"
#       BusID       "PCI:1:0:0"
        #AIGLX
        Option      "XAANoOffscreenPixmaps" "true"
        Option      "DRI"     "true"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device  "nVidia GeForce 4 Ti"
        Monitor "Monitor0"
        DefaultColorDepth 24
        SubSection "Display"
                Depth   1
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   4
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   8
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   15
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   16
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   24
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth   32
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
        #AIGLX
        Group 0
EndSection

Section "Extensions"
        Option         "Composite"   "Enable"
EndSection
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 585

PostPosted: Tue Oct 30, 2007 9:09 pm    Post subject: Reply with quote

Sorry, didn't realize that. The only thing I know about older cards/options is what is in my old xorg.conf and xf86config files but I don't know the state of my hardware/drivers for any of those entries to suggest anything helpful. I did give your conf file the once over and don't see anything glaringly obvious.

What you'll probably want to do is look through the readme in /usr/share/docs/nvidia*. 99.9% can be ignored but somewhere in there you will probably get the setting(s) you need. If you do find some things, it's better to test with too few options than too many FYI so add one by one. I searched my readme for "aiglx" and nothing returns so I don't know if that's a synonym for a setting I referenced, a setting only for older cards or a setting you have to look outside nv docs to run. I'm using nvidia-drivers-100.14.09 and xorg7.1 if it matters.

Sometimes it's useful to go line by line through /var/log/Xorg.N.log for nvidia-related msgs that you can adjust xorg.conf for. I've never had to do that myself but it is a second source to see what's going on when X is started and which may be leading to later problems.

If you hadn't already, you can also check /var/log/messages when one of those bumpy games tries to run and see if anything there helps; check ~/.xsession-errors too and you can also bump up logging verbosity often by changing /etc/syslog.conf (or whichever controls your logging facility). You can also try 'grep -ir <game name> /home/*' and maybe you'll stumble on some output that explains what's the matter with them (or at least something to google).

I've also been assuming the problem isn't with xfce which it may turn out to be so don't discount that. It would be nice if there was a wiki that specifically addressed your problem (which there could be) but short of that I would start by going through the nvidia readme.
Back to top
View user's profile Send private message
GoldenMouse
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2005
Posts: 112

PostPosted: Wed Oct 31, 2007 4:40 am    Post subject: Reply with quote

I appreciate the help. School is setting a furious pace, else I'd be working on this a little more actively. Sanity should return late next week. Until then, I'll be a little slow on this. :oops: So, thanks for helping out.

I'll look through those docs and see if Google has anything interesting, then post back when I get a chance, likely in a day or so.
Back to top
View user's profile Send private message
GoldenMouse
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2005
Posts: 112

PostPosted: Sat Nov 03, 2007 12:09 am    Post subject: Reply with quote

Updates:

Option "AddARGBGLXVisuals" "True" does have an effect, of sorts. Before, glxgears would perform slowly and be choppy, yet report normal framerates (500fps). With that option set, glxgears looks just fine for a couple of seconds before resuming that other behavior.

Setting that CLI option before running glxgears had no effect.

So, something's still broken, but your suggestion seemed to be onto something.
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 585

PostPosted: Sat Nov 17, 2007 8:59 am    Post subject: Reply with quote

Sorry, just now seeing your last reply.

At least you're moving fwd a little; if glxgears starts out ok then craps out that's a pretty good clue - I don't know what it means but it's a good clue :) I do remember though that when I use "zoom desktop" in beryl while running glxgears it goes to crap - did you just sit there and watch it go down or did you do something on your desktop that might've slowed it down? Or I wonder if there's some other nvidia option your setup is going to require? Maybe you could search the nvidia forums and find something? Or google glxgears for others that saw that happen.

The XLIB* thing isn't needed except for probably just a few apps of a certain kind but for those few it's definitely needed. Did you try starting one of the problem games using that? Just to see if that at least fixes the game part of your problem?
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sat Nov 17, 2007 3:35 pm    Post subject: Reply with quote

Make sure the XFCE compositor is disabled. Go to a terminal and execute killall xfwm4 && xfwm4 --compositor=off and see if your problems don't go away.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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