/srv/irclogs.ubuntu.com/2012/04/02/#ubuntu-x.txt

DarxusLooks like my radeon, which works great in Oneric, does not work with the radeon drivers in Precise.00:23
DarxusNormal mode, it boots to a dark purple flickering screen, entirely unusable, using the radeon driver.  Safe mode, it boots with the vesa driver:00:23
Darxus<  (II) [KMS] drm report modesetting isn't supported.00:23
Darxus<  (II) GPU only supported with KMS, using vesa instead.00:24
DarxusFresh precise beta 2 install, doing a dist-upgrade now to see if that helps.00:24
RAOFDarxus: Got a dmesg?00:24
DarxusSure, I'm booted into save graphics mode now, that good?00:25
Darxushttp://www.chaosreigns.com/tmp/precise.safemode.dmesg.txt00:27
RAOFYou'd need to boot without nomodeset to get a useful dmesg.00:32
DarxusOkay.00:32
DarxusWhat are you looking for in dmesg?00:32
RAOFAnything drm related; adding “drm.debug=0xe” to the kernel command line would be useful.00:33
DarxusOkay.00:33
DarxusSo add "nomodeset drm.debug=0xe" to the end of the kernel args?00:34
RAOFYeah.00:35
RAOFAnother thing to check would be the grub→drm handoff; you'd want to remove the “set gfxpayload=$STUFF” stuff when booting.00:36
DarxusStill waiting for the dist-upgrade.00:37
DarxusOkay.00:38
DarxusRebooting.00:42
DarxusDoesn't look like it includes what you're looking for: http://www.chaosreigns.com/tmp/precise.dmesg.txt00:46
Darxusah, I typed the drm.debug part wrong, trying again.00:46
DarxusUploaded over the last one, http://www.chaosreigns.com/tmp/precise.dmesg.txt00:49
DarxusStill doesn't look useful.00:49
DarxusX is still using the vesa driver.00:49
DarxusX log still says00:50
Darxus[    15.733] (II) [KMS] drm report modesetting isn't supported.00:50
Darxus[    15.733] (II) GPU only supported with KMS, using vesa instead.00:50
RAOFYou've kept “nomodeset” in the kernel command line.00:51
RAOFWhich, indeed, will disable kms, which will mean that nothing interesting happens.00:51
DarxusI guess I misunderstood what you wanted me to do.  What should I do?00:52
RAOFRemove the “nomodeset” from the kernel command line, add the “drm.debug=0xe” bit, and boot.00:55
RAOFThat will, presumably, fail to work correctly, and the dmesg should give an idea as to why.00:55
RAOFThen, try the same thing, but removing the “set_gfxpayload” bit from the grub entry (you can do this from the grub menu)00:56
DarxusOkay, thanks.00:56
Darxusfglrx looks like it works, which is nice.  But not useful with wayland.00:56
RAOFIndeed :)00:57
DarxusI neglected to mention when this fails I can't get any usable console :/01:03
Darxusdmesg isn't written to a file anywhere by default, right?  So, init script or something to run it?01:03
RAOFdmesg is sent to /var/log/kern.log01:04
RAOFWell, and also syslog.01:04
RAOFAnd probably a couple of other places :)01:04
DarxusAh, okay.01:04
DarxusSo just giving you a copy of /var/log/kern.log from a boot where the graphics fails would be good?01:05
RAOFThat'd be good.01:06
DarxusOkay.01:07
Darxushttp://www.chaosreigns.com/tmp/kern.log01:11
DarxusThat's only the boot with the graphics failing.  Booted to oneric, renamed that log, booted to precise with drm.debug=0xe, rebooted back to oneric...01:11
RAOFEPERM01:12
RAOFOr, translated through perror: I don't have permissions to view that :)01:12
DarxusFixed, sorry.01:13
DarxusApr  1 21:08:55 dancer kernel: [   10.663848] [drm:radeon_process_aux_ch], dp_aux_ch flags not zero01:13
DarxusApr  1 21:08:55 dancer kernel: [   10.663849] [drm:radeon_dp_i2c_aux_ch], aux i2c too many retries, giving up01:13
DarxusI guess that shouldn't cause this problem.01:14
RAOFYeah.01:16
RAOFradeon thinks it's brought up 1600x1200 on your VGA output.01:16
DarxusAnd no useful errors?  :/01:17
RAOFThe *other* option might be that X is starting too soon - do you have a corresponding Xorg.0.log01:17
DarxusSure.01:17
RAOFI'm less familiar with how radeon looks when stuff goes wrong than intel, but I can't see anything obvious there.01:17
Darxushttp://www.chaosreigns.com/tmp/Xorg.0.log01:18
RAOFOh.01:18
RAOFAnd *X* thinks everything worked, too.01:19
DarxusI swear it's a horribly flickering dark purple mess :/01:19
RAOFI'm sure it is, but it seems that neither the kernel nor X is aware that anything's wrong.01:20
RAOFDid you try dropping the gfxmode bit in grub?01:20
DarxusNo.01:20
RAOFGive that a whirl; the framebuffer handoff can confuse things, and may well be the cause here.01:21
DarxusWith everything else as defaults?01:21
DarxusRadeon driver version isn't in the Xorg log?01:21
RAOFWith everything else as defaults (assuming that your defaults don't include nomodeset)01:22
DarxusRight.01:22
RAOFThe version is in the log - 6.14.9901:22
RAOFNot that that's particularly useful, as we habitually take git snapshots of the ati DDX, since it's (a) usually stable, and (b) has a slow release cycle.01:23
DarxusWorked!01:24
DarxusI just removed the setgfxpayload... line.01:24
RAOFSweet.01:24
RAOFPlease file a bug with “ubuntu-bug linux”.  We may need to add your card to the blacklist.01:24
DarxusA blacklist of cards to effectively skip the setgfxpayload stuff?01:25
RAOFYup.01:25
DarxusNice.01:25
DarxusWhat info do I need to provide on the card, just "lspci | grep -i vga" output?  Should I attach the kernel log and X log?01:26
DarxusAnd what should I title the bug?  What do you call that blacklisting?01:26
RAOFIf you use “ubuntu-bug linux” it'll attach all the relevant information.01:26
RAOFTitle the bug something like “graphics fails with setgfxpayload=keep”01:27
DarxusThanks.01:27
DarxusThen I can finally test out the wayland packages in precise, and attempt to run some stuff that's built against gtk3 with it :)01:27
Darxushttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/97120401:30
ubottuLaunchpad bug 971204 in linux (Ubuntu) "graphics fails with setgfxpayload=keep, AMD Radeon" [Undecided,New]01:30
RAOFDarxus: Excellent; I'll ensure that gets looked at by the kernel team.01:35
DarxusGreat, thanks.01:35
DarxusI'll be happy to test a fix.01:36
RAOFOooh, I see you've got a system built by the well-respected “System manufacturer System Product Name”.  Second only to that great paragon of computing, “To Be Filled In By OEM”.01:36
DarxusHaha.01:37
DarxusYou got something against people putting their own machines together?  :P01:37
Darxushttp://www.chaosreigns.com/dancer/  <- more detail than you could possibly care about.01:37
DarxusExcept pictures :/  Need to fix that.01:38
=== himcesjf1 is now known as himcesjf
joumetalxorg-edgers radeondrigetversion failed because of version mismatch. required 1.17.0 but kernel reports 2.12.0. known issue?12:40
jcristaumeans you need to load radeon.ko sooner12:40
mlankhorstnoon13:29
DarxusI just had a hang where my monitor went off and alt-sysrq reisub didn't work :(  I suspect there are more substantial problems between my video card and the radeon driver in precise.13:36
DarxusJust using eog triggered it.  13:36
=== yofel_ is now known as yofel
alex_mayorgabryceh: ping18:23
alex_mayorgaanyone here that could help fix https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/551668 before 12.04 ships?18:24
ubottuLaunchpad bug 551668 in nvidia-graphics-drivers (Ubuntu) "Fn+F5 and Fn+F6 don't modify brightness on Sony VAIO VPCCW (GT 230M)" [Undecided,Confirmed]18:24
tjaaltonalex_mayorga: aiui you need to quirk it in the xorg.conf18:31
alex_mayorgatjaalton: Can you dumb down that a bit for me please?18:41
tjaaltonalex_mayorga: you need a driver option in xorg.conf18:44
tjaaltondon't ask which one18:44
mlankhorstblob?18:46
mlankhorstOption "EnableACPIBrightnessHotkeys" "boolean"18:47
mlankhorsthttp://us.download.nvidia.com/XFree86/Linux-x86/295.20/README/xconfigoptions.html18:47
tjaaltonyeah18:48
alex_mayorgawould that work with nouveau?18:48
alex_mayorgaI'm using nouveau now18:48
mlankhorstnvidia-graphics-drivers is nvidia blob right?18:48
jcristaumlankhorst: yes18:48
jcristaualex_mayorga: then why are you linking to a blob bug?18:49
brycehjcristau, the bug he linked to was open against both -nvidia and -nouveau18:49
alex_mayorgajcristau: I put it affects both18:50
jcristauah.18:50
jcristauso it's just the url being confusing.  fair enough, sorry.18:50
alex_mayorgasorry, don't know how to get the nouveau link18:50
tjaaltonthe nouveau upstream ug was marked as fixed18:50
mlankhorsthttps://bugs.freedesktop.org/show_bug.cgi?id=3192018:51
ubottuFreedesktop bug 31920 in Driver/nouveau "Brightness control is erratic (/sys/class/backlight/nv_backlight/max_brightness is wrong)" [Normal,Resolved: fixed]18:51
alex_mayorgaI think it's https://bugs.freedesktop.org/show_bug.cgi?id=23023 instead18:51
ubottuFreedesktop bug 23023 in Driver/nouveau "no backlight support in /sys or /proc ; xbacklight not working" [Normal,Reopened: ]18:51
alex_mayorgathe other one worked for the original reporter but not much else18:51
alex_mayorgaanyhow, thought I could stop by in case any more detail is needed18:52
alex_mayorgathe fact is, backlight levels do not work on this laptop18:52
alex_mayorgaeven if the display shows =(18:53
brycehrelated to 819002 maybe?18:53
alex_mayorgabug 81900218:59
ubottuLaunchpad bug 819002 in Linux "Brightness level control is not working properly on Sony Vaio" [Medium,Incomplete] https://launchpad.net/bugs/81900218:59
brycehthe patch for that bug appears to come from http://code.google.com/p/vaio-f11-linux/wiki/KernelSupport19:00
alex_mayorgabryceh: Looks very similar19:02
alex_mayorgamine is another model though19:02
alex_mayorgabryceh: Got powers on https://bugzilla.kernel.org/show_bug.cgi?id=41652 ?19:05
ubottubugzilla.kernel.org bug 41652 in Power-Other "Brightness control keys not working" [Normal,Needinfo]19:05
brycehpatchset proposed on platform-driver-x86 via http://www.mail-archive.com/platform-driver-x86@vger.kernel.org/msg02399.html19:07
alex_mayorgaHow come the keys are caught, OSD shows, but in the end nothing happens?19:07
alex_mayorgaGuess kernel devs don't care as long as their mac book pros work, right? ;-P19:10
hyperairmaybe kernel hackers just don't buy vaios.19:11
mlankhorstpretty much..19:11
* hyperair wouldn't either.19:11
* alex_mayorga doesn't have much sayin on what he gets for "saturnalia"19:12
brycehhttp://www.mail-archive.com/platform-driver-x86@vger.kernel.org/msg01975.html19:13
brycehAdded support for handle 0x0143 (Vaio SA/SB/SC, CA/CB). Minor corrections included. 19:13
brycehguess that doesn't fix vaoi vpccw though19:13
alex_mayorgabryceh: the patched were never taken, were they?19:17
alex_mayorgaThe guy seems to have a Launchpad account https://bugs.launchpad.net/~marco-absence19:18
brycehalex_mayorga, doesn't appear so to me19:18
alex_mayorgaWhat is there to do then? Upstream doesn't seem to care =(19:24
mlankhorstit's not cc'd to lkml..19:25
brycehmlankhorst, yeah, presumably because he wanted to finish the v2 set of patches first?  I'm not really familiar with the platform-driver-x86 list.19:26
brycehalex_mayorga, as far as next steps, some random ideas...19:28
mlankhorstreading that mail-archive, there were some technical problems with that patch anyhow..19:28
brycehalex_mayorga, 1.  contact the patch author, Marco Chiappero, to get an update about the patch and if he plans to re-propose it.  (And if he can update it to include your model).19:30
brycehalex_mayorga, 2.  try sweet talking the ubuntu kernel team into building a kernel with that patchset for you to test.  This might not be possible though, if there's problems with the kernel or if it's hard to figure out how to apply it to a mainline kernel.19:31
brycehalex_mayorga, 3.  If you feel like hacking on some C code, see if you can figure out which chunk from all those patches provide the backlight fix, extract it and revise it to work with the current kernel, and then verify that bit alone fixes it for you.  If so, then propose inclusion of that into the kernel.19:32
brycehthat last one could be rather labor intensive19:32
brycehalex_mayorga, 4.  join the platform-driver-x86 mailing list, and post an email asking for an update on the status of Marco's vaio patchset19:34
brycehalex_mayorga, meanwhile, I've added my findings to the bug reports and tagged them to get some attention from our kernel team.  However I think they'll be more likely to take action if one of the above steps is taken.19:34
alex_mayorgabryceh: Thanks! I'll put those in my to-do19:35
cndbryceh, RAOF, Sarvatt: the only other input option breakage I was aware of was bug 96949519:48
ubottuLaunchpad bug 969495 in xserver-xorg-input-evdev (Ubuntu) "evdev stopped remapping events" [Medium,Invalid] https://launchpad.net/bugs/96949519:48
cndwhich is invalid, the user was using someone else's evdev and now is using the Ubuntu version19:48
cndso I think we're ok19:49
Sarvattcnd: still can't close my lid due to https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/948697 but ya guys touched on that in #ubuntu-kernel earlier19:54
ubottuLaunchpad bug 948697 in xorg-server (Ubuntu) "[bcm5974] Xorg crashed with SIGSEGV in valuator_mask_set_double()" [High,Confirmed]19:54
cndSarvatt, oh, it causes X to crash?19:54
cndor is that just an old title19:54
Sarvattyeah it crashes X19:54
Sarvattbut i have suspend on lid closed disabled, sforshee has suspend enabled19:54
Sarvattit crashes it after about 8 hours with the lid shut with it sending constant streams of input crap :)19:55
cndyeah, I see19:55
cndthat's quite the stress test :)19:55
cndSarvatt, do you think we should lower the priority of that bug?19:56
cndI guess it's a normal configuration though...19:57
Sarvattcnd: done19:57
Sarvattyeah its specific to this model macbook air with the non default lid close change from what i can see19:58
cndSarvatt, a full stack trace with symbols would help too19:58
cndeven better if synaptics and the server are built with noopt19:58
cndbut it's still low priority since we really need a fix for the lid closure issue19:59
cndand the bug likely won't show up once that's fixed19:59
Sarvattall the dupes of this one are getting duped to https://bugs.launchpad.net/bugs/933504 which is completely unrelated20:02
ubottuLaunchpad bug 933504 in xorg-server (Ubuntu Precise) "Xorg crashed with SIGABRT in __libc_message()" [High,Confirmed]20:02
Sarvatthey someone with a macbook pro 5,1 hitting it https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/96728620:03
ubottuLaunchpad bug 933504 in xorg-server (Ubuntu Precise) "duplicate for #967286 Xorg crashed with SIGABRT in __libc_message()" [High,Confirmed]20:03
Sarvattsucks the retracer is removing good info when it dupes to the unrelated bug20:04
brycehSarvatt, yeah I hate that20:06
Sarvattuhoh test rebuild going, libxaw is going to fail with new xutils-dev20:08
Sarvattoh cjwatson fixed it already20:08
brycehSarvatt, it's probably not a huge concern though; looking at the dupes I think we already have independent bug reports for each of those (with better stacktraces)20:11
brycehSarvatt, as long as I've worked on X I don't recall ever seeing these types of "double free or corruption" bugs.  Certainly never to this volume.  Something has to be screwed up in our stack.20:16
bryceha lot seem to occur in the input layer, and most of those seem to occur in some sort of input deletion20:17
brycehmakes me wonder if the 1.12 input code might be freeing memory already freed by the 1.11 side of the server?20:18
=== stgraber_ is now known as stgrber
=== stgrber is now known as stgraber
=== Daviey_ is now known as Daviey
pzanoniI just love Launchpad´s feature of posting freedesktop bug comments to launchpad20:33
cndbryceh, hard to say20:50
cndyou mentioned there are dupes with good stack traces?20:51
brycehcnd, yes a handful20:52
brycehcnd, want me to sub you to ones that look relevant and have good traces?20:52
cndbryceh, my subscriber folder is a bit large :(20:53
cndif you could just paste a one or two here I can take a look20:53
brycehcnd, alright20:53
brycehhttps://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/97118220:55
ubottuError: launchpad bug 971182 not found20:55
brycehhttps://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/95016220:58
ubottuLaunchpad bug 950162 in xorg-server (Ubuntu) "Xorg crashed with SIGABRT: double free or corruption, ErrorF (f=0xc69 <Address 0xc69 out of bounds>) at ../../os/log.c:604" [High,Confirmed]20:58
brycehhttps://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/94388020:59
ubottuLaunchpad bug 943880 in xorg-server (Ubuntu) "Xorg crashed with SIGABRT in __libc_message() from XIDestroyDeviceProperty" [High,Confirmed]20:59
brycehcnd, ^^ that one has many dupes20:59
brycehhttps://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/93350420:59
ubottuLaunchpad bug 933504 in xorg-server (Ubuntu Precise) "Xorg crashed with SIGABRT "double free or corruption (out)" from DeleteInputDeviceRequest" [High,Triaged]20:59
mlankhorstfun20:59
cndbryceh, do we know if any of these still exist after the fix in -0ubuntu6 (or 7, can't remember)?21:00
brycehcnd, check dates on final comments21:01
cndyeah, I see now21:01
cndodd21:01
cndbryceh, have you seen any good reproduction scenarios21:02
cndrunning the X server under valgrind would be very enlightening21:02
brycehcnd, no  the ones we had good repro on I sent your way already21:03
cndok21:03
brycehcnd, here's one that repro's pretty easily and has a good trace, but it's a different bug I think - https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/94858721:04
ubottuLaunchpad bug 948587 in xorg-server (Ubuntu) "hid-wiimote driver causes Xorg crash in GetPointerEvents" [High,Confirmed]21:04
cndyeah, that looks different21:07
cndI'm going to run X under valgrind here21:07
cndjust to see if anything obvious shows up21:07
cndmaybe it doesn't crash all the time, but it always attempts to do something bad21:07
brycehsounds good21:08
brycehmeanwhile, I'll check if any have not tested against latest and prompt them to do so21:10
Sarvattoh goodie, more SRU paperwork to file https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/96821821:13
ubottuLaunchpad bug 968218 in xorg-server (Ubuntu) "ssh x11 forwarding precise to oneiric causes glibc malloc(): memory corruption" [High,Incomplete]21:13
brycehSarvatt, yeah was looking at that last week.  is there a fix identified?21:14
Sarvattyup superm1 says what i put in the ppa fixed it21:14
brycehgreat21:16
brycehSarvatt, you going to take care of the sru, or shall I?21:16
Sarvatthttp://cgit.freedesktop.org/xorg/lib/libXi/commit/?h=libXi-1.4-branch&id=22e9ace88d57803ecda95db7c9355a614db1902a was the fix, i had to extend it to XITouchClass and XITouchValuatorClass because of 1_xi2.1.patch21:17
Sarvattbryceh: I'm completely bugged out for the day here, will do it tomorrow unless you want to get it in21:17
cndbryceh, har har, got a segfault while running under valgrind and disconnecting my magic trackpad :)21:19
brycehcnd, 8-D21:19
brycehSarvatt, ok, I might have time later today21:20
cndwe (I) really need to get the build conflict on libxtst-dev removed from synaptics21:22
cndevery time I switch from building synaptics to the x server I have to install/remove it21:22
cndbryceh, when I run Xorg under valgrind, I get a segfault when a device is disconnected, the mtdev has returned an error from attempting to read an event from the event node, and then we try to log the error22:03
cndthe actual segfault occurs in this line:22:03
cndsprintf(tmpBuffer, "[%10.3f] ", GetTimeInMillis() / 1000.0);22:03
cndthere is nothing wrong with that, AFAICS22:03
cndI fear there's some corruption in SIGIO22:03
cndspecifically, when an input event node returns an error from read()22:04
brycehmmm22:08
brycehyeah unless tmpBuffer is an invalid chunk of memory22:09
cndtmpBuffer is: static char tmpBuffer[1024]22:10
cndso it should be fine22:10
brycehhmm yeah22:11
cndI can't see anything that would cause an issue with sigio in mtdev_get though22:11
cndwhen it errors out, it mainly just returns the error code directly from read()22:11
brycehhttps://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/971767 also has a stacktrace passing through GetTimeInMillis()22:14
ubottuError: launchpad bug 971767 not found22:14
brycehalthough I think the problem would have started from CreateCallbackList() in that one22:14
cndwhen I remove the error message in synaptics, valgrind no longer gets a segfault22:15
bryceh        ar_ptr = <error reading variable ar_ptr (Asked for position 0 of stack, stack only has 0 elements on it.)>22:15
cndbut it doesn't complain about anything else either22:15
brycehweird22:15
cndso I can't reproduce the issue22:15
brycehwhat about an error message without the GetTimInMillis() call in it?22:16
cndI'll try it, but it's really just a red herring22:17
brycehyeah22:19
brycehbug 971767 looks like it might be a bug deeper down than X22:22
ubottuError: Launchpad bug 971767 could not be found22:22
cndbryceh, it doesn't appear to have anything to do with GetTimeInMillis()22:32
cndI replaced it with "0", which is confirmed when I look at the Xorg.log file22:32
cndbut it still died22:32
cndso the bug is being hit from within sprintf, where it is given completely valid data22:33
brycehintriguing22:33
cndargh, I wasn't looking closely enough at the backtrace22:33
brycehoh?22:34
cndhttp://paste.ubuntu.com/912157/22:34
cndI don't think sprintf is signal safe :)22:34
cndit's not listed as being signal safe in man signal (7)22:34
cndso we're calling sprintf22:38
cndthen that somehow generates a bad signal22:38
cndso we are now in OsSigHandler printing a backtrace22:38
cndwhich then itself fails22:38
brycehhmm, grepping for 'signal' in our patches shows only 100_rethrow_signals.patch22:39
cndI'm going to have to leave it for now though22:47
cndmore important bugs to work on22:47
brycehcan you update the bug report with your findings/theories?22:48
cndI don't have any :(22:48
cndI never saw a bug using valgrind that would give me any idea22:49
cndI just saw the weird bug when it was trying to print a message22:49
brycehcnd, well, that'd be a finding...22:49
cndtrue22:49
cndbryceh, fwiw, in bug 943880 the stack trace from *after* we fixed the synaptics corruption is from when the server is shutting down22:53
ubottuLaunchpad bug 943880 in xorg-server (Ubuntu) "Xorg crashed with SIGABRT in __libc_message() from XIDestroyDeviceProperty" [High,Confirmed] https://launchpad.net/bugs/94388022:53
cndwhile it's not cool, it's also not terrible22:53
brycehok22:54
brycehyeah I figure once apport is turned off a lot of these bugs will "disappear"22:54

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