You are not logged in.
My guide to getting kms going without breaking you current kernel image:
(could need improving - I still only get Extreme Tux Racer at 6FPS...)
1) Create /etc/mkinitcpio-kms.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES="intel_agp drm i915"
# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish. This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway. This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
# FILES="/etc/modprobe.conf"
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'modload' may be used in place of 'udev', but is not recommended
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
# This setup specifies all modules in the MODULES setting above.
# No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
# This setup will autodetect all modules for your system and should
# work as a sane default
# HOOKS="base udev autodetect pata scsi sata filesystems"
#
# This is identical to the above, except the old ide subsystem is
# used for IDE devices instead of the new pata subsystem.
# HOOKS="base udev autodetect ide scsi sata filesystems"
#
# This setup will generate a 'full' image which supports most systems.
# No autodetection is done.
# HOOKS="base udev pata scsi sata usb filesystems"
#
# This setup assembles an pata raid array with an encrypted root FS.
# Note: See 'mkinitcpio -H raid' for more information on raid devices.
# HOOKS="base udev pata raid encrypt filesystems"
#
# This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev usb lvm2 filesystems"
HOOKS="base udev autodetect pata scsi sata filesystems"
2) Create /etc/mkinitcpio.d/kernel26-kms.preset
# mkinitcpio preset file for kernel26
########################################
# DO NOT EDIT THIS LINE:
source /etc/mkinitcpio.d/kernel26.kver
########################################
ALL_config="/etc/mkinitcpio.conf"
PRESETS=('default')
default_config="/etc/mkinitcpio-kms.conf"
default_image="/boot/kernel26-kms.img"
#default_options=""
3) Run:
/sbin/mkinitcpio -p kernel26-kms
4) Delete/move /etc/X11/xorg.conf.
5) Boot with grub lines
kernel /vmlinuz26 root=/dev/sda2 i915.modeset=1
initrd /kernel26-kms.img
Enjoy.
Offline
How do you see that KMS works ?
1) Console resolution changes to my display's native resolution when I boot.
2) VT-switching to a console takes literally no time.
3) X uses DRI2+UXA by default.
Do you use HAL or have an xorg.conf ?
Please share it thanks
I use hal, which, if I'm not mistaken, is required for X to start nowadays.
I don't use an xorg.conf.
I am a bit perplexed about the differences in performance we're all seeing. I'm having very good performance for instance, but a bunch of other problems.
Maybe mesa-7.4 (which should be out this week or next) will fix some of these issues.
Offline
OK, it's working now !!!
My mistake was after adding modules in mkinitcpio.conf...I didn't run /sbin/mkinitcpio.
Thanks !
But no real speed improvements in compositing (Kwin4 cube effect only 33 fps) for me too
Offline
OK, folks. I now see what you mean with performance regressions. I have been mostly using my new laptop with a g45 chipset, but right now I'm on my old laptop which has an 855GM. On this one, I can confirm that performance is severely regressed, and that the depth no longer looks like 24bit (although Xorg.0.log says "(==) Depth 24 pixmap format is 32 bpp").
Offline
Hey!
So, any ideas on what exactly can be done to improve the situation? I write little 3D games as a hobby, and right now I'm stuck on my crappy laptop (I'll get a new computer soon). I could run 3D stuff on it, until I 'pacman -Syu'ed recently. Now, everything's really slow.
I tried a few things, including the '5 step' thing you gave in a previous post (I had to keep my xorg.conf though, I was having input issues, if you think that'll change anything, then do tell me), but nothing helped much. It did, though, make the fonts look pretty weird.
Last edited by nikki (2009-03-28 19:11:08)
Offline
Nikki:
I can recommend reading this thread: http://bbs.archlinux.org/viewtopic.php?id=66057
I'm currently running an old version of 'xorg-server' and 'xf86-video-intel', and everything is running great! When something new comes out, I update and give it a try, but if it doesn't work, I just downgrade again!
Offline
I just tried it, and I get way better 3D performance than with the old driver. I can actually play Wolfenstein: Enemy Territory without much lag from my computer! Works great!
Last edited by smartboyathome (2009-03-29 04:26:29)
Offline
Nikki:
I can recommend reading this thread: http://bbs.archlinux.org/viewtopic.php?id=66057
I'm currently running an old version of 'xorg-server' and 'xf86-video-intel', and everything is running great! When something new comes out, I update and give it a try, but if it doesn't work, I just downgrade again!
Cool, it works!
One problemt though: The resolution is screwed. I have a 1280x800 monitor, and I get 1024x768. I'll try to fix that.
Offline
Sharpeee wrote:Nikki:
I can recommend reading this thread: http://bbs.archlinux.org/viewtopic.php?id=66057
I'm currently running an old version of 'xorg-server' and 'xf86-video-intel', and everything is running great! When something new comes out, I update and give it a try, but if it doesn't work, I just downgrade again!Cool, it works!
One problemt though: The resolution is screwed. I have a 1280x800 monitor, and I get 1024x768. I'll try to fix that.
That sounds weird! I don't have any problems at all! Here is my 'xorg.conf' if that can help:
Section "ServerLayout"
Identifier "X.org Configured"
Screen "Default Screen"
InputDevice "Configured Mouse"
InputDevice "Generic Keyboard"
InputDevice "SynapticsTouchpad"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection
Section "Module"
Load "extmod"
Load "record"
Load "xtrap"
Load "dri"
Load "dbe"
Load "glx"
Load "freetype"
Load "synaptics"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbLayout" "dk"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "SynapticsTouchpad"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "SendCoreEvents" "true"
Option "SHMConfig" "true"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "DRI" "true"
Option "NoDDC" "true"
Option "NoAccel" "false"
Option "EnablePageFlip" "true"
Option "RenderAccel" "true"
Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"
Option "ExaNoComposite" "false"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x768"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Offline
A little hint for those who have no luck enableing KMS:
Try to disable the vga=*** argument from the kernel boot line in menu.list before adding i915.modeset=1
Thanks to Allan for sharing your solution!
PS: i have ~6fps in etracer as well
Last edited by rostoQ (2009-03-29 11:05:34)
Offline
Sharpeee wrote:Nikki:
I can recommend reading this thread: http://bbs.archlinux.org/viewtopic.php?id=66057
I'm currently running an old version of 'xorg-server' and 'xf86-video-intel', and everything is running great! When something new comes out, I update and give it a try, but if it doesn't work, I just downgrade again!Cool, it works!
One problemt though: The resolution is screwed. I have a 1280x800 monitor, and I get 1024x768. I'll try to fix that.
i had this issue too. check your logs, you'll see the output the server is defaulting to then disable it. that should do it.
Offline
I tried this today. It seemed to work, but I'm really getting bad performance when dragging and/or resizing windows. You can watch the window redraw itself very slowly. Without kms, but with UXA, I don't have this problem
Offline
Tried out the new packages today, very disappointing for me. 945GM/GMS/GME, 943/940GML here. Moving from Xorg 1.4 to the latest testing packages (Xorg + mesa 7.3 + Intel RC1 drivers + 2.6.29) glxgears goes down from ~1200 to ~150, urbanterror goes from barely tollerable to completely unplayable, kwin is slooow.
Couldn't get KMS to work. Tried with a vanilla kernel but then all I'd get would be a blank screen as it kicks to the KMS at udev. Very weird, dmesg seemed to show that everything was fine (switched to 1280x800) and the system would continue to respond - I could start X and it would work fine, but trying to switch back to the consoles would result in the black screen again.
Also, I've experienced more kernel panics in two hours of running this setup than in the last two years, on all my machines combined. Not impressed.
Offline
I have an X3100 965GM
I tried Allan's way and added enable_mtrr_cleanup and nopat on the kernel command line.
kernel /vmlinuz26 root=/dev/sda2 ro quiet enable_mtrr_cleanup nopat
as explained in http://bbs.archlinux.org/viewtopic.php?id=68709
Also note that I've removed xorg.conf and let the server detect everything.
And it works great (kms, 2d, 3d, suspend and everything).
Thanks guys, good work.
Offline
Soon in a repo nearby :
http://www.archlinux.org/pipermail/arch … 11069.html
Hope this solves all the problems we have on 945GM (performance, but not only !)
Last edited by john_schaf (2009-04-06 12:58:01)
Offline
I have an improved performance of my 965GM with xorg and intel drivers from testing. Only waking up after suspend doesn't work.
Offline
Soon in a repo nearby :
http://www.archlinux.org/pipermail/arch … 11069.htmlHope this solves all the problems we have on 945GM (performance, but not only !)
This didn't improve anything at all. Replaced the regular intel driver with this legacey, and the performance in etracer is even worse. Here my lspci | grep Graphics:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
Further, KMS (which runs fine with the non-legacy-driver) doesn't work properly anymore (flickering before X and stripes when switching to VTs).
Offline
This didn't improve anything at all. Replaced the regular intel driver with this legacey, and the performance in etracer is even worse. Here my lspci | grep Graphics:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
I have the exact same graphics card. It works very well for me, but I only use Kwin's desktop effects. I don't run any games. You could have a look at my posting in the "xorg-server 1.6.0 in testing" thread, maybe its a configuration issue: http://bbs.archlinux.org/viewtopic.php? … 32#p530232
Edit: KMS requires GEM+DRI2. The legacy driver does not provide for either.
Edit2: I ran a quick opengl test of QGears2's "fancy gears": xf86-video-intel-2.6.99.902-1 achieved 18.8 fps, while xf86-video-intel-legacy-2.3.2-1 achieved 42.26. This is still not great, but for me, it can at least make the compositing experience on the desktop good enough to upgrade from xorg-server 1.4.
Last edited by mutlu_inek (2009-04-06 23:43:14)
Offline
mienensuchkind wrote:This didn't improve anything at all. Replaced the regular intel driver with this legacey, and the performance in etracer is even worse. Here my lspci | grep Graphics:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)I have the exact same graphics card. It works very well for me, but I only use Kwin's desktop effects. I don't run any games. You could have a look at my posting in the "xorg-server 1.6.0 in testing" thread, maybe its a configuration issue: http://bbs.archlinux.org/viewtopic.php? … 32#p530232
Edit: KMS requires GEM+DRI2. The legacy driver does not provide for either.
Edit2: I ran a quick opengl test of QGears2's "fancy gears": xf86-video-intel-2.6.99.902-1 achieved 18.8 fps, while xf86-video-intel-legacy-2.3.2-1 achieved 42.26. This is still not great, but for me, it can at least make the compositing experience on the desktop good enough to upgrade from xorg-server 1.4.
Thank you for your reply. Last time i tried without xorg.conf, i will try yours and disable kms completly. But since i don't need composite effects and performance for gaming, i'll stick with whatever driver drains less energy (if a noticable difference occurs)
Last edited by mienensuchkind (2009-04-07 12:21:54)
Offline
So, how does this work out for people? I have kms working great, dri2 also shows effect (e.g. I can run glxgears/google earth inside compiz-fusion without any artifacts or other problems), which is awesome, but it also has some really bad mysterious side effects:
1) Massive loss of performance. Compiz-Fusion benchmark dropped from a pleasant 50fps to around 9fps
2) Many apps have become completely transparent, massive problems there! (See the screenshot below)
3) I lost sub-pixel font smoothing
I used Allans guide for setting up my kernel image and I use the kernel line like this:
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/b838b9a5-f57e-4761-8ddf-11d1d88f3aa8 ro usbcore.autosuspend=1 i915.modeset=1 enable_mtrr_cleanup nopat
I can't completely remove xorg.conf because I need it for synaptics and such, and I also need to manually set my native resolution, because while kms manages to autoset the framebuffer resolution to my 1440x900, it switches back to 1280x768 when X starts. Here's the relevant sections:
Section "Monitor"
Identifier "Monitor0"
VendorName "CMO"
ModelName "1418"
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1440x900"
Virtual 1440 1924
EndSubSection
EndSection
For various differing options in xorg.conf, X remains black, this one I posted works, but with the said side effects. Here's the screeshot:
It's supposed to be grey, not transparent...
This is with the current repo xorg, and it doesn't matter if I use the repo intel drivers or intel-newest from aur, they're exactly the same.
edit:
I just switched to the legacy drivers and of course I lost kms and dri2, but I can report that the performance of the legacy drivers + current xorg and kernel equal a massive performance gain compared to the previous xorg. I now have constat 100fps in compiz-fusion opposed to previous 50fps. To wrap it up, under normal working conditions in compiz fusion I have (all with the GMA945 chipset of course):
xorg-server-1.5.3 + xf86-video-intel-2.4.3 --> ~50fps
xorg-server-1.6.0 + xf86-video-intel-2.6.3 --> ~9fps + kms + dri2 features + texture bugs
xorg-server-1.6.0 + xf86-video-intel-newest-2.6.99.902 --> ~9fps + kms + dri2 features + texture bugs (same as repo drivers)
xorg-server-1.6.0 + xf86-video-intel-legacy-2.3.2 --> 100fps
I'll stick to legacy for now but regularly check out how the newer drivers do, as I really love having kms and dri2. Especially dri2 is a huge step for a compiz-fusion user as it makes using 3d apps possible inside of it.
So Question:
Is there anyone with a GMA945 and working kms/dri2 who still has decent performance?
Last edited by Shapeshifter (2009-04-12 15:58:20)
Offline
Anybody else having troubles rotating the screen with UXA and KMS enabled? My screen just turns off
I would really like to get this to work, since I'm running this on my Tablet pc.
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
I also report a loss of performance with a EeePC 915GM chip, and packages versions moved to extra.
No errors in the Xorg log file. Xterm is getting slow to display, tuxracer is very laggy. I could play fine without KMS.
edit: it finally seems it is not KMS related, but more something like http://bbs.archlinux.org/viewtopic.php?id=69695
I also have performance drop without KMS. Sorry.
Last edited by vinvin (2009-04-14 16:22:54)
Offline
With the new intel driver, I got KMS working, and although there was a 2D performance improvement 3D performance was horrible. Compositing was unuseable, ~4 fps in tux racer, supertuxkart was unplayable.
I installed the intel-legacy driver and now I get ~16 fps in tux racer and supertuxkart is again playable, and I can use compositing. Good work patching it to work with the new Xorg!
Man, I think my laptop must be getting old if I have to install 'legacy' drivers to get it to work
"He was perfect except for the fact that he was an engineer"
Offline
My guide to getting kms going without breaking you current kernel image:
(could need improving - I still only get Extreme Tux Racer at 6FPS...)1) Create /etc/mkinitcpio-kms.conf
# vim:set ft=sh # MODULES # The following modules are loaded before any boot hooks are # run. Advanced users may wish to specify all system modules # in this array. For instance: # MODULES="piix ide_disk reiserfs" MODULES="intel_agp drm i915" # BINARIES # This setting includes, into the CPIO image, and additional # binaries a given user may wish. This is run first, so may # be used to override the actual binaries used in a given hook. # (Existing files are NOT overwritten is already added) # BINARIES are dependancy parsed, so you may safely ignore libraries BINARIES="" # FILES # This setting is similar to BINARIES above, however, files are added # as-is and are not parsed in anyway. This is useful for config files. # Some users may wish to include modprobe.conf for custom module options, # like so: # FILES="/etc/modprobe.conf" FILES="" # HOOKS # This is the most important setting in this file. The HOOKS control the # modules and scripts added to the image, and what happens at boot time. # Order is important, and it is recommended that you do not change the # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for # help on a given hook. # 'base' is _required_ unless you know precisely what you are doing. # 'udev' is _required_ in order to automatically load modules # 'modload' may be used in place of 'udev', but is not recommended # 'filesystems' is _required_ unless you specify your fs modules in MODULES # Examples: # This setup specifies all modules in the MODULES setting above. # No raid, lvm2, or encrypted root is needed. # HOOKS="base" # # This setup will autodetect all modules for your system and should # work as a sane default # HOOKS="base udev autodetect pata scsi sata filesystems" # # This is identical to the above, except the old ide subsystem is # used for IDE devices instead of the new pata subsystem. # HOOKS="base udev autodetect ide scsi sata filesystems" # # This setup will generate a 'full' image which supports most systems. # No autodetection is done. # HOOKS="base udev pata scsi sata usb filesystems" # # This setup assembles an pata raid array with an encrypted root FS. # Note: See 'mkinitcpio -H raid' for more information on raid devices. # HOOKS="base udev pata raid encrypt filesystems" # # This setup loads an lvm2 volume group on a usb device. # HOOKS="base udev usb lvm2 filesystems" HOOKS="base udev autodetect pata scsi sata filesystems"
2) Create /etc/mkinitcpio.d/kernel26-kms.preset
# mkinitcpio preset file for kernel26 ######################################## # DO NOT EDIT THIS LINE: source /etc/mkinitcpio.d/kernel26.kver ######################################## ALL_config="/etc/mkinitcpio.conf" PRESETS=('default') default_config="/etc/mkinitcpio-kms.conf" default_image="/boot/kernel26-kms.img" #default_options=""
3) Run:
/sbin/mkinitcpio -p kernel26-kms
4) Delete/move /etc/X11/xorg.conf.
5) Boot with grub lines
kernel /vmlinuz26 root=/dev/sda2 i915.modeset=1 initrd /kernel26-kms.img
Enjoy.
i dont know why, since this shouldnt be relevant, but since i followed your howto, ive been having lots of problems (even with no KMS and EXA).
before, i used to have about 600fps under glxgears, i could play etracer at about 15fps, chromium at 50fps, and compiz worked... now im having this odd behaviour where compiz gives a white screen, mytthtv segfaults on me, glxgears tops 150fps. i dont know what went wrong, ive undone the kernel changes @ grub's menu.lst, and restored xorg.conf, i downgraded kernel, intel drivers, and all relevant pacakges concerningn the display adapter, and yet, it yields the same results..
ive even replaced the intel graphics with the ones from aur (latest build), and the legacy package, both give the same results...i dont know what went wrong, im actually at a loss here....any help would be much appreciated.
ps. KMS + UXA works great, except for the memory leak, and mythtv hangs when playing content.
Offline