You are not logged in.

#76 2009-07-07 03:59:30

dvh
Member
Registered: 2007-10-06
Posts: 41

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

I am trying to solve an issue with xf86-video-intel on my mac, and I think that this UXA mode might help.  I am using kernel 2.6.30, but I thought the procedure from the start of this thread might still apply.  When I followed all of the directions (screwed up a couple of times on the way), I can get KMS enabled and UXA started, as evidenced by the Xorg.0.log.  But, when X starts, I don't get a decent display.  I only see a couple of pixels lit in the center of my screen, and nothing else.  I am unable to switch to a separate console, so I must hard reboot to recover.  Can anyone advise as to whether or not I should be doing somehing different with 2.6.30?

I have also read about some potential issue with "tiling".  Does my display symptom match that issue?  can I disable the tiling mode?

thanks for any help you can offer.  As I said, I am not just trying to experiment here, but I have issues with my display freezing with the latest intel drivers

-dvh

Offline

#77 2009-07-08 05:05:36

dvh
Member
Registered: 2007-10-06
Posts: 41

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

turns out that the "pixels" I see are the "massive mouse corruption" as described in this: http://bugs.gentoo.org/show_bug.cgi?id=269554.  seems as if I now need to wait for the 2.6.31 kernel to resolve this issue.  I am not new to linux, but relatively new to arch...so, is there a way to get and use a kernel from a testing or unstable repo, while staying with the latest stable everything (except of course, dependencies from the new) else?

-dvh

Offline

#78 2009-07-08 18:51:03

Dr4go
Member
Registered: 2008-08-24
Posts: 37

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

Well... in this case I would consider you to download the newest stable kernel from linux.org, download also the newest 2.6.31 RC, copy the the effected files from the 2.6.31 kernel (probably the whole drm stuff) to the latest stable kernel and build your own custom kernel. Then do a make modules_install, copy the kernel to /boot/ and add a new entry for that kernel to the grub. Have fun. wink

Last edited by Dr4go (2009-07-08 18:52:06)

Offline

#79 2009-07-15 03:11:07

Chadi
Member
Registered: 2009-07-02
Posts: 6

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

@dvh:
Check this, I don't know if the problem you encounter is related.

Offline

#80 2009-07-15 04:51:46

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

dvh wrote:

I am not new to linux, but relatively new to arch...so, is there a way to get and use a kernel from a testing or unstable repo, while staying with the latest stable everything (except of course, dependencies from the new) else?

I have the same issue as you.  What I did for now was build the kernel26-git and the xf86-video-intel-git package from the AUR.  After installing these, KMS works great.  Once kernel 2.6.31 goes into the main repos, I'd switch back to them.

Good luck!

Offline

#81 2009-07-15 16:06:07

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

tom5760 wrote:
dvh wrote:

I am not new to linux, but relatively new to arch...so, is there a way to get and use a kernel from a testing or unstable repo, while staying with the latest stable everything (except of course, dependencies from the new) else?

I have the same issue as you.  What I did for now was build the kernel26-git and the xf86-video-intel-git package from the AUR.  After installing these, KMS works great.  Once kernel 2.6.31 goes into the main repos, I'd switch back to them.

Good luck!

Last time I tried to compile a kernel I had to set about a thousand different flags one by one and it just plain didn't work for me. Is the AUR package a simple "yaourt -S and enjoy" deal or do I have to build this thing piece by piece again?


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#82 2009-07-15 16:19:15

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

(For the ATi users) I managed to enable KMS for my ATi card with 2.6.31 smile Yes, it's not only possible for the Intel cards.

kernel26-git, with CONFIG_DRM_RADEON_KMS=y
libdrm-git with experimental radeon api
xf86-video-ati-git
mesa-git (I used the mesa-kms PKGBUILD though from AUR) with gallium radeon enabled.

And almost everything works great (3d, Xv overlay etc etc), fast VT switching, even Plymouth."Almost",  because powersaving is somehow disabled.

ATi X1600.

Last edited by flamelab (2009-07-15 16:25:31)

Offline

#83 2009-07-15 21:27:29

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

SomeGuyDude wrote:

Is the AUR package a simple "yaourt -S and enjoy" deal or do I have to build this thing piece by piece again?

Yep, just run yaourt, and go get some coffee.  Works fine.

Offline

#84 2009-07-16 06:28:00

Dr4go
Member
Registered: 2008-08-24
Posts: 37

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

SomeGuyDude wrote:

Last time I tried to compile a kernel I had to set about a thousand different flags one by one and it just plain didn't work for me. Is the AUR package a simple "yaourt -S and enjoy" deal or do I have to build this thing piece by piece again?

Well... if you want / like to have a custom compiled kernel it is _indeed_ wise to go through all the flags... It took about two months 'til I got my current kernel config file (sometimes I forgot things to add / realized later that for example the burner didn't work or such things).

But... if you don't want to do that there is still another way... just copy the .config file of your arch kernel to the custom compiled kernel. wink

Offline

#85 2009-07-16 12:45:25

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

Tried the git kernel26 and the intel-video. Starting X yielded a black screen with a cursor that didn't move.

Well, I suppose a functioning Openbox setup is better than nothing.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#86 2009-08-07 15:10:50

gabe_
Member
From: Grand Rapids, MI, US
Registered: 2009-07-17
Posts: 18

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

Thanks to the wiki, I have KMS enabled, and working... However, I can't figure out how to force X to use 96dpi. Any tips?

My settings in xorg.conf are ingored:   

Section "Device"
   Option      "NoDDC"
EndSection

Section "Monitor"
   DisplaySize  270 148
EndSection

/usr/bin/startx is also ignored:

defaultclientargs="-dpi 96"

It should be noted that with KMS disabled, these settings work fine, and my fonts are perfectly sized, and rendered at 96dpi. With KMS enabled, I get awkwardly sized fonts. 'xdpyinfo | grep resolution' returns something like 112dpi.

Offline

#87 2009-08-07 19:14:53

CaptainShanks
Member
Registered: 2008-10-25
Posts: 57

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

gabe_ wrote:

Thanks to the wiki, I have KMS enabled, and working... However, I can't figure out how to force X to use 96dpi. Any tips?

My settings in xorg.conf are ingored:   

Section "Device"
   Option      "NoDDC"
EndSection

Section "Monitor"
   DisplaySize  270 148
EndSection

/usr/bin/startx is also ignored:

defaultclientargs="-dpi 96"

It should be noted that with KMS disabled, these settings work fine, and my fonts are perfectly sized, and rendered at 96dpi. With KMS enabled, I get awkwardly sized fonts. 'xdpyinfo | grep resolution' returns something like 112dpi.

Do you use Gnome or KDE? To get things working in Gnome, put this under the [servers] tag in /etc/gdm/custom.conf:

[server-Standard]

command=/usr/bin/Xorg -audit 0 -dpi 96

If you use KDE, find the ServerArgsLocal string in /usr/share/config/kdm/kdmrc under the [X-:*-Core] tag and change it to look like this:

ServerArgsLocal=(whatever was there before) -dpi 96

Hope that helps big_smile

Offline

#88 2009-08-07 19:49:23

gabe_
Member
From: Grand Rapids, MI, US
Registered: 2009-07-17
Posts: 18

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

CaptainShanks wrote:

Do you use Gnome or KDE?

Thanks for the reply, but sadly I don't use Gnome, or KDE.

Offline

#89 2009-08-07 20:01:30

Crows
Member
From: Wales
Registered: 2008-09-05
Posts: 92

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

Adding:

Xft.dpi: 96

to ~/.Xdefaults may work for you.

Offline

#90 2009-08-07 20:07:21

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

gabe_ wrote:
CaptainShanks wrote:

Do you use Gnome or KDE?

Thanks for the reply, but sadly I don't use Gnome, or KDE.

Try putting

xrandr --dpi 96

in your .xinitrc.
I login from the terminal and had the same problem as you when I turned KMS on. The above solved my problem.


====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

#91 2009-08-07 20:13:37

gabe_
Member
From: Grand Rapids, MI, US
Registered: 2009-07-17
Posts: 18

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

That seems to have done the trick.

Thanks, Crow!

Offline

#92 2009-08-07 20:37:58

Crows
Member
From: Wales
Registered: 2008-09-05
Posts: 92

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

No problem. I've come to love that file when I'm using anything other than Gnome/KDE. It would be nice if something other than firefox cared about the stuff in fonts.conf.

Offline

#93 2009-10-27 19:51:30

pseudonomous
Member
Registered: 2008-04-23
Posts: 349

Re: HOWTO: Enable KMS with the stock 2.6.29-ARCH kernel

Hi everyone, 2 Questions:

I've recently tried out intel KMS w/ a dell mini 10v (gma 950), and if I use the "late start" method described in the wiki, things seem to works exactly as they did without KMS enabled, is there some way that I can check if KMS is enabled?  (I tried "dmesg | grep ntel" and "dmesg | grep kms" and "dmesg | grep mode", then gave up)

I've also tried the "early" method from the wiki, but then I get a 640x480 X11 environment, which I can't fix with xrandr , it just does nothing,  But if I use the KDE display settings, I can fix the resolution.  I can't, however, get the KDE display settings program to let me setup dual-head monitors (I have trouble with this ussaully not working without KMS, but then xrandr works, so I use it instead).  Anybody have any ideas on what I could do to fix this?

Thanks!

Edit:

I've xrandr working, apparently with "early" KMS enabled my outputs are now named LVDS1 and VGA1 instead of LVDS and VGA.

Edit:

Related to the above remark, I can know set proper resolutions with 'option "PreferredMode "XxY"' in xorg.conf, this may cause me problems if I try to hook up a lower
resolution monitor, but I suppose I'll cross that bridge whan I come to it.

Edit:

The fact that with "early" KMS I can use clone-mode monitors in the TTYs and TTY switching is much faster leads me to believe that my "late" KMS setup is not really kernal mode setting.  So I'd still like to see if I can get this to work.

Last edited by pseudonomous (2009-10-27 20:40:41)

Offline

Board footer

Powered by FluxBB