Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg-server-1.5.3 Intel Verry slow
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
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Mon Jan 12, 2009 6:34 am    Post subject: Xorg-server-1.5.3 Intel Verry slow Reply with quote

Hi,

I have just upgraded from xorg-server-1.3.0.0-r6 to 1.5.3. Before glxgears used to run @~800fps and now 60fps. The logfile says that direct rendering is enabled... what have I done wrong??

Output of xorg.log
http://pastebin.com/m4427587f

my xorg.conf
Code:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
  Option  "blank time"  "1"  # Blank the screen after 5 minutes (Fake)
  Option  "standby time"  "2"  # Turn off screen after 10 minutes (DPMS)
  Option  "suspend time"  "3"  # Full suspend after 20 minutes
  Option  "off time"  "4"  # Turn off after half an hour

EndSection

Section "Files"
#       RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "XkbLayout" "de"
        Option "XKbOptions" "latin1-nodeadkeys"

EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        #DisplaySize      380   300     # mm
        Identifier   "Monitor0"
        VendorName   "INL"
        ModelName    "LE1908"
 ### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 82.0
        VertRefresh  56.0 - 75.0
        Option      "DPMS"
EndSection

Section "Device"
        Identifier  "Card0"
        Option     "DRI" "true"                 # [<bool>]
        Option     "Clone" "true"
        Option     "MonitorLayout" "CRT,LFP"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
        Option "XAANoOffscreenPixmaps" "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
#       Default Depth 16
        DefaultColorDepth 16
        SubSection "Display"
        Depth   16
        Modes "1280x1024" "1280x800" "1024x768"
        EndSubSection
EndSection

Section "Extensions"
Option "Composite" "true"
EndSection

Section "DRI"
Mode    0666
EndSection
Back to top
View user's profile Send private message
or4n
n00b
n00b


Joined: 29 Jan 2003
Posts: 24
Location: Finland

PostPosted: Mon Jan 12, 2009 7:33 am    Post subject: Reply with quote

Sounds like you got vsync enabled. Not sure how to check it though :|
_________________
Registered Linux-user #256243
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5997
Location: Pomona, California.

PostPosted: Mon Jan 12, 2009 9:09 am    Post subject: Reply with quote

You have done nothing wrong. The default is (at last) for the frames per second to match the screen sync. The result is clearer DVD video, and a more efficient use of system resources. If you aren't running at 60 fps, you will experience video tear, CPU overuse, and sometimes even lockups.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1700
Location: Poland => Lodz

PostPosted: Mon Jan 12, 2009 11:09 am    Post subject: Reply with quote

And on a laptop your battery will be drained a lot faster.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Mon Jan 12, 2009 12:24 pm    Post subject: Reply with quote

Stay on 1.4.2 or wait for xorg-server 1.6 and intel 2.6 driver with full GEM support.

Code:
media-libs/mesa-7.0.3
x11-base/xorg-server-1.4.2
x11-drivers/xf86-video-intel-2.4.3
x11-libs/libdrm-2.3.0
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5997
Location: Pomona, California.

PostPosted: Mon Jan 12, 2009 8:05 pm    Post subject: Reply with quote

I would still recommend going for xorg-server-1.5.3. Once you get it properly installed, it works like a charm. For me, it's the most stable and viewable xorg-server to date, for all three of my systems.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Mon Jan 12, 2009 9:00 pm    Post subject: Reply with quote

I agree that xorg 1.5.3 is excellent, but on my intel
notebook the 2.6.28 kernel gives horrible results:
screen artifacts and improper rendering of window
decorations (seems stable however).

About vsync, are there any *disadvantages* to it?
(apart from its ruining glxgears as a benchmark :wink: )
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Moloch
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 293
Location: Albuquerque, NM, US

PostPosted: Mon Jan 12, 2009 9:17 pm    Post subject: Reply with quote

You can disable vsync specifically for glxgears by creating a ~/.drirc:
Code:
<driconf>
    <device screen="0" driver="i915">
        <application name="glxgears" executable="glxgears">
            <option name="vblank_mode" value="0" />
        </application>
    </device>
</driconf>


Using <application name="Default"> will make it global. Chnage driver= to match your system. You can also emerge x11-misc/driconf which provides a gui interface to configure all this.
_________________
Understanding is a three-edged sword: your side, their side, and the truth. --Kosh
1010011010
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1700
Location: Poland => Lodz

PostPosted: Mon Jan 12, 2009 9:21 pm    Post subject: Reply with quote

Note that this .28 intel problem seems to appear only in very old graphics chips like the 950.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Mon Jan 12, 2009 10:12 pm    Post subject: Reply with quote

Quote:
very old graphics chips


mine is Intel Corporation 82852/855GM :roll:
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5997
Location: Pomona, California.

PostPosted: Tue Jan 13, 2009 6:42 am    Post subject: Reply with quote

albright wrote:
I agree that xorg 1.5.3 is excellent, but on my intel
notebook the 2.6.28 kernel gives horrible results:
screen artifacts and improper rendering of window
decorations (seems stable however).

I didn't get that. All I got is complete lockup coming out of X. The power LED on the monitor turns amber (no signal), and I can't even ping the system. I also come up with other errors, one of which made the kernel dev tell me there was a hardware problem with my system. I vetoed that idea completely. If the system has worked just ducky with kernels from 2.6.22.19 up to 2.6.27-gentoo-r7 without any sort of failure, nor the part in my /var/log/dmesg that was supposedly a hardware issue. 2.6.28, and all fell to pieces. Gen-tosh can't even start X with 2.6.28. :roll:

Quote:
About vsync, are there any *disadvantages* to it?
(apart from its ruining glxgears as a benchmark :wink: )

Non that I have found yet. There are many disadvantages to not not having vsync set properly.

For instance, I inadvertently helped a user here (forget whom) to fix a long standing openGL based freeze. Whenever his GL screen savers kicked in, it locked the machine. Dropping the fps to 60 stopped that, and gave him tear-free video. When it was higher, it gave him instability and lockups.

On my old Toshiba laptop, (gen-tosh), and on this machine (core-too), I wasn't Johnny Onthespot updating VIDEO_CARDS="i810" to VIDEO_CARDS="intel." The next time I recompiled mesa and libdrm, things didn't compile right, and I wound up with 440fps on this machine, and 85 on gen-tosh.

It was a mess. CPU usage went through the roof, especially on gen-tosh. The extra load wasn't helpful in the least. Talk about thrashing a system. I turned off the GL screen saver so it didn't kill the system, but it was still painfully slow.

This one became really weird. The video was unstable, and the drain on resources made it slow to a crawl. Even the heat sensors on the CPU could tell there was something not-quite-right with the systems. Once I fixed things, and brought the fps back to 60, all was well. Gen-tosh could even run the Boing screen saver for the first time since I got the machine and installed Linux (Slackware, then Gentoo).

So, I became convinced of how nice it is to have the fps at 60, and vsync working. I can watch DVD's without having to switch to Windoze to make it happen. That's definitely worth it!

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1979
Location: Poland

PostPosted: Tue Jan 13, 2009 8:20 am    Post subject: Reply with quote

albright wrote:
I agree that xorg 1.5.3 is excellent, but on my intel
notebook the 2.6.28 kernel gives horrible results:
screen artifacts and improper rendering of window
decorations (seems stable however).


Disable xorg.conf over-optimisations.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Tue Jan 13, 2009 1:49 pm    Post subject: Reply with quote

Quote:
Disable xorg.conf over-optimisations.


Any particular suggestions; here's the possibly relevant parts
of my xorg.conf:

Code:
Section "Monitor"
    Identifier  "lcd"
    Option      "DPMS"
EndSection

Section "Device"
    Identifier  "card0"
    VendorName  "Intel Corporation"
    BoardName   "82852/855GM Integrated Graphics Device"
    Driver      "intel"
    Option      "MonitorLayout"  "CRT,LFP"
    Option      "Clone"          "true"
    Option      "DevicePresence" "true"
    Option      "AccelMethod"   "UXA"
    Option      "Tiling"        "No"
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "card0"
    Monitor     "lcd"
    Option      "XaaNoOffscreenPixmaps" "true"
    DefaultDepth 24
    Subsection "Display"
        Viewport    0 0
        Depth       24
    EndSubsection
EndSection

Section "Extensions"
   Option  "Composite" "Enable"
EndSection

Section "DRI"
    Mode 0666
EndSection


I have concluded that my old card just isn't really supported (at least
not yet).
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
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