/srv/irclogs.ubuntu.com/2009/11/25/#ubuntu-x.txt

bryceesr, in several examples of this class of bug, it's shown an edid-fail error.  Not sure what's up with that but possibly a strong clue.00:00
esrOK.  Running get-edid | parse-edid yields well-formed output...00:00
bryceesr, traditionally on -intel, these bugs have been caused by the need for monitor quirks.  E.g. edid shows 0mmx0mm physical dimensions, or invert X and Y or mixes up mm with cm00:01
brycewe quirked a lot of that in X, so in theory some of those could have been lost going to KMS.  However of the bugs I looked into only a few fit that classification.00:01
esrIt got horiz and vert frequencies correct, but generated only one modeline - 1280x1024.00:01
brycemm00:02
esrSure looks like my guess was correct.00:02
esrEDID ain't delivering.00:02
brycealso compare with xrandr --verbose - that has different edid parsing code (same as is used in xserver)00:02
esrTrying...00:02
esrNow that's interesting.00:03
bryceget-edid pretty much bypasses X, so if you see an issue with that, it means something pretty far down the stack is not working right00:03
bryceddcprobe is the third tool but that's hardly useful anymore00:04
esrOK, xrandr verbose generate a boatload of modelines but they top out at 1280x1024 too.00:05
esrI think out problem is right down at EDID level.00:06
bryceyeah00:06
brycethis is why I'm suspecting something at or just above the kernel level00:06
brycebooting an earlier kernel would rule out the kernel itself00:06
esr(Note: I maintained the XFree86 Video Timings HOWTO so this stuff isn't exactly alien to me.)00:07
brycegreat00:07
esr(That's whyn I figured I could help you guys diagnose.)00:07
esrWhat do you recommend as a next diagnostic?00:08
bryceyeah I've so far been unable to reproduce the issue (and tied up with other priorities) so having someone that is clueful is quite helpful00:08
brycewell, we need to have a better understanding of the edid pipeline.  What components are involved00:08
bryceand then vary those to identify which component has broken00:08
esrAgreed.00:08
bryceso booting a different kernel would probably be the next easiest step00:09
brycee.g. if you have the jaunty kernel around00:09
esrI've got a stock 9.10 freshly installed here. I don't think I still have a 9.04 kernel but let me look at grub.conf 00:10
esrEr, there is no grub.conf00:11
bryceyou want /boot/grub/menu.lst00:11
esrHm, I've got a vmliinuz.old.  That *might* be the 9.04 kernel00:11
keesfresh 9.10 will use /boot/grub/grub.cfg00:12
keesyou can add the jaunty repositories and install an old kernel by version, too.00:12
esrI shouldn't have said "fresh"; I upgraded.00:12
bryce get-edid uses a VESA VBE 2 interrupt service routine request to read a 00:13
bryce 128 byte EDID version 1 structure from your graphics card, which retrieves 00:13
bryce this information from the monitor via the Data Display Channel (DDC).  00:13
bryceso what provides the VESA VBE 2 interrupt service ?00:13
esrThat I never learned.00:13
bryce"real-mode x86 instructions on i386"00:14
bryceyeah me neither.  I assume it's the kernel but maybe some other lib00:14
brycekees, you'd know?00:14
sconklinbryce: I only have a few minutes.00:18
bryceheya sconklin00:18
brycesconklin, do you have a pointer to that timing patch you mentioned?00:19
sconklinso where does the EDID coem from? The kernel driver reads it, at least in some cases, maybe all.00:19
brycewe're trying to figure out why edid seems to be coming through incomplete on karmic compared with jaunty00:19
sconklinhuh, lemme look00:19
sconklinThat patch was supposed to be only for a limited set of intel hardware, and after the last email you sent me about it I'm not sure it's related00:20
bryceah ok, hmm.  Still would be worth looking at00:21
esrMy graphics chip is an Intel 965.00:21
esrIs that in the "limited set"?00:21
bryceweird, I also have 965 and haven't seen this problem00:22
sconklinit was supposed to be limited to the arrandale chipsets, but I think that's a lot of common code with the 945, not the 96500:22
esrlspci sez: 00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02)00:23
bryceesr, ahh Q965 is a different variant00:23
sconklinsorry, iron lake00:23
esrLovely :-(00:23
brycesconklin, oh00:23
sconklinhttp://kernel.ubuntu.com/git?p=ubuntu/ubuntu-karmic.git;a=commit;h=6a8ea128b38f4f0d3798bb09df4618c50d832c7c00:24
sconklinthat's the one I was thinking of00:24
sconklinlooks like only for new steppings, so I think that's not it00:24
sconklinsorry00:25
esrSee why I didn't want to just drop aa bug report on the tracker?  I had a feeling it was gonna be this kind of swamp...00:25
sconklinhttp://kernel.ubuntu.com/git?p=ubuntu%2Fubuntu-karmic.git&a=search&h=HEAD&st=commit&s=edid some edid-related patches were committed in august00:27
brycedrm/edid: fixup detailed timings like the X server.00:28
brycethat sounds interesting00:28
sconklinexactly what I was looking at - hold on a sec00:28
sconklinI have arlied's tree here00:28
brycewhoa00:29
bryceinteresting this is in drivers/gpu/drm/00:29
bryceso that suggests this patch applies to all hardware not just intel00:30
brycehowever I'm not sure this would explain -nvidia... they kind of do their own thing00:30
brycebut maybe00:30
brycewait no, I bet this is KMS-specific code00:30
esrI'm willing to test a custom kernel build if you guy can figure out a way to package it so I can install it.00:31
esrAdvantage: For me this is 100% reproducible.  get-edid fails every time.00:32
sconklinthere's another patch that eliminates some entries in the edid based on hsync/vsync==0 or sync beyond blank00:33
sconklinwhen it does it emits a DRM_DEBUG_KMS message00:34
sconklinI can probably get a kernel built if we know what we need to test. I'm supposed to be off for the rest of the week so it may not be prompt00:35
sconklinI'm still browsing patches.00:35
brycesconklin, it would be great to get a kernel ppa with some/all of the edid patches tossed in there00:36
sconklinbryce: you mean those patches removed?00:36
esrAnd then bisect the patch set...00:36
sconklinwhen was the first bug opened for this00:37
sconklin?00:37
esrI haven't opened one yet.  Wanted to screen for bogons first ;-)00:37
brycesconklin, it's really hard to pinpoint I only noticed the surge of reports at release time00:37
sconklinok, that could just be release00:38
bryceyeah00:38
sconklinbryce: by the way I'm working on getting a test kernel with the moblin patches to you00:38
bryceoh I see, we already have these patches in place, so it's a matter of identifying which to disable00:39
sconklinyeah, let me also pull the latest and see if there are any fixes or reverts00:39
sconklinWait, that was drm-next, and may not have all hit linus's tree yet.00:40
brycelooks like several fixes are in linus' tree on top of this00:40
sconklingive me a few minutes to get this straight in my head00:40
esrI'm not going anywhere.00:41
sconklinhaha, neither am I as it turns out00:41
bryceheh00:41
brycesconklin, I'm looking through these upstream changes and they're really basic fixes... even *I* know these are needed to work around known edid problems00:42
sconklinI haven't seen anything that didn't look basically sane00:42
brycewow, I am really surprised they didn't port this from the xserver, all this logic has been known for quite some time00:43
brycesconklin, also I bet there are more in the fedora kernel00:44
sconklinthe symptoms are that you get a wrong set or subset of what the monitor should support?00:44
esrYup.00:44
brycesconklin, that's correct00:44
bryceesr, can you pastebin your edid someplace?00:46
bryceI can probably figure out exactly which patch solves your issue00:46
brycehowever this is proving my original suspicion correct - it's not just one bug but a whole bunch of separate ones because the kernel isn't carrying the quirks that the xserver had00:46
esrbryce Sure, will do00:47
sconklinthat's pretty ugly00:47
brycein theory, booting with i915.modeset = 0 (i.e. turning off KMS) would result in fixage00:47
esrhttp://pastebin.com/m274c46a100:48
esrThat what you wanted?00:48
brycesconklin, ok so we are going to need pretty much all of these edid patches.  Plus more I think.  There are a lot more quirks I know of, that aren't covered here.00:48
sconklinit looks like there are no further patches with "edid" in the comment queued for linus - they all landed in the last window00:48
bryceesr, let's see the xrandr --verbose too00:49
esrHold on...00:49
sconklinbryce: ok, I'd be happy to work with you on making sure they're all in there and upstreamed.00:49
brycesconklin, great00:49
sconklincan it wait until next week? Is the level of breakage high enough to make this urgent?00:50
esrhttp://pastebin.com/d1f70504e00:50
esrxrandr output00:50
esrI've got the problem solved for *me*...it just looks really bad that this got out in a release.00:51
sconklinesr: no question about that00:51
brycesconklin, well, better to take time to do it right than roll out something that will cause worse problems00:51
esrHard for me to tell people Linux is ready for end-users when we fuck up stuff this basic.00:52
brycesconklin, I am also going to be gone thurs/fri anyway00:52
esrI repeat my offer to advance-test the fix.00:52
bryceesr, well these are highly monitor-specific things00:53
sconklinbryce: ok, let's make a review of what you know is broken, collect all the upstream patches and those in fedora, and then assemble them and upstream anything that needs to go.00:53
esrAnd you know as well as I do that end users don't buy those excuses.00:53
bryceesr, settle down00:55
bryceesr, hmm, neither of those showed the monitor model00:55
bryceby chance is it a 226BW or 225BW?00:55
bryceor 205BW00:55
sconklinhahaha my boys are in the next room talking about jailbreaking phones00:56
bryceesr, technically most users haven't bought anything ;-)00:56
esrbryce: Not sure how to tell, all that's on the bezel is SyncMaster 1100DF00:56
bryceesr, ok should say in the Xorg.0.log - mind posting that as well?00:57
bryceheh, we should have just had you file a bug originally, then all this would be there00:57
sconklinthere are six patches upstream that are obviously edid related, and arrived after karmic00:57
esrHold on...00:57
esrhttp://pastebin.com/d25e8244d00:59
brycefeh, I wish there were 3 of me00:59
esrLooking for monitor subtype.  No match on "BW".01:00
brycehttps://wiki.ubuntu.com/X/Quirks - monitor quirks section01:00
bryceSamsung SyncMaster's have required quirking before01:01
bryceone needed quirk_detailed_sync_pp, two needed quirk_prefer_large_6001:01
sconklingreat reference Bryce01:01
brycethanks01:01
brycesconklin, we need to update it for doing kernel quirks, but it'll give us a starting point01:01
esrEr. Product id 109?01:02
brycebtw, for reference all the X quirks are in hw/xfree86/modes/xf86EdidModes.c01:02
brycewe'll want to ensure all those get ported over to the kernel01:02
bryceesr, thanks01:02
bryceesr, ok yours is different.  But I'd wager you need one of these quirks.01:03
esrI wouldn't be surprised if I did.01:03
esrquirk_prefer_large sounds suspiciously applicable.01:04
brycegetting called away to dinner.  bbl01:05
sconklinlater01:05
esrYou guys need anything else from me?01:05
albert23esr: x log says: Using hsync ranges from config file01:06
sconklinesr: I don't think so. Thanks01:06
albert23esr: are you sure you are not blocking high res modes in xorg.conf?01:06
esrYeah, that's because I had toi hand-hack the X config to get hight resolution.01:06
esrWhen I first saw the problem there was no custom stuff in it at all.01:07
esrI hand-patched in hsync/vsync and a mode line.  Now it works.01:07
arahey morning all! 07:44
=== ripps_ is now known as ripps
aranvidia no longer discovers my external monitor (it shows as crt-0), any ideas?09:30
MsMacoi had a backup of /etc to avoid having to re-set-up everything and just restored it since i reinstalled. this /etc worked on amd64, but my new install is i386. does X get not-happy when this happens? i get kicked back out of X immediately on attempted login16:16
MsMacoi tried "dpkg-reconfigure xserver-xorg" in case it was something to do with the arch in /etc, but that doesnt seem to have helped any16:17
MsMaco(intel 965, karmic, dunno what else would be useful)16:20
Ngwhat does /var/log/Xorg.0.log say?16:21
MsMacofailed to load module i810 (module does not exist)16:22
MsMacothat and soething about virtual kbd are the only EE lines16:23
Ngthe i810 error is fine16:23
MsMacoit should be -intel not -i810 though, i think16:23
jcristauit tries both16:23
Ng:)16:23
jcristauso the i810 error is expected16:24
MsMacook16:24
Nga reasonable test is to log into a console, stop gdm and just run X, see if it's X or the gdm stuff on top of it16:24
jcristausharing /etc across archs could make any number of things go wrong though.  not particularly with X.16:25
MsMacoNg: startx works. so something's bonkers with kdm16:26
MsMacojcristau: yeah i never tried doing it across arch before, just across installs of the same arch because reconfiguring stuff is annoying16:26
MsMacothanks for your time. sorry to bug you16:27
keesbryce: I'd like to copy xorg-server from the security-proposed PPA to -proposed, is that ok by you?  https://edge.launchpad.net/~ubuntu-security-proposed/+archive/ppa/+sourcepub/868253/+listing-archive-extra16:41
jcristaukees: that reminds me i should apply your patch..16:50
keesjcristau: heh, yes please!  :)16:51
jcristauhttp://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=commit;h=81e2cbb3dea9ca293d22a3dfc56724513350cfbb16:55
brycekees, fine by me17:08
keesbryce: okay17:08
keesjcristau: \o/  thanks :)17:09
jcristaukees: thanks for the patch :)17:09
keesjcristau: np :)17:09
=== Ng__ is now known as Ng
=== wgrant_ is now known as wgrant

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!