/srv/irclogs.ubuntu.com/2009/05/13/#ubuntu-x.txt

mnemoSarvatt: btw, you should get some sleep..  :)00:00
maxbCan anyone point me at any documentation which explains how X gets its xkb_layout these days? Since today's hal upload ceasing to deal with keymaps in favour of leaving it to udev-extras, my X no longer picks up the "gb" layout for my system and defaults to "us" instead00:08
Sarvatti'd be interested in knowing that too, i have to customize my layout because i use a gateway bios from a clone of this aspire one and i can't just change the acer hal fdi to match Gateway anymore00:10
maxbWhy a Gateway BIOS in an Acer, ooi?00:11
Sarvattacer limits the number of backlight brightness levels in their bios00:11
maxbah, ues00:12
maxb*yes00:12
Sarvattgateway one is the exact same thing minus that part because they never used the panels with flickering problems at the lowest levels00:12
Sarvatti get 30 minutes more battery life with the gateway one :d00:12
maxbI have a flickery one unfortunately00:12
maxbThough I'd still like to have the option of the lower brightnesses00:13
Sarvatti do too, otherwise I would use the acer bios because it only blacklists the flickery one from the lowest levels00:13
Sarvattflickering during hdd access is a small price to pay for 30 minutes more battery life :d00:13
Sarvatthttp://macles.blogspot.com/2009/03/brightness-table.html#comments00:14
Sarvattoh good, looks like libdrm is getting updated to 2.4.10 and adding drm_intel_bo_disable_reuse that might fix that swapping/font corruption problem00:30
brycemnemo: btw, there's a technique I use in launchpad when asking questions - if the bug is already set to 'Incomplete', I move it to 'New', and then 'Incomplete' after asking my question.  This resets the "without reply" toggle on the bug01:12
brycemnemo: it is a hassle, but by doing this it makes it easier to do a search for "Incomplete with response" bugs to see ones that the reporter (or some me-tooer) has answered01:12
bryceunfortunately launchpad is not smart enough to realize when us triagers comment on an Incomplete bug, it doesn't count as a "response" :-)01:13
Sarvattbryce: I build -intel 2.7.1 final release here using your 2.7.0 debian instead of merging debian's like we do on edgers incase you want to copy it to x-updates https://launchpad.net/~sarvatt/+archive/sarvatt-graphics02:31
Sarvattso it's got all of the patches except 119_drm_bo_unreference_needs_null.patch which is already in 2.7.102:32
bryceSarvatt: ah, excellent thanks03:02
bryceprobably I should do the merge using the official tarball03:08
Sarvattoops, forgot to change the commit id it was based on in the changelog. ah well, wanted to rebuild it against the new 2.4.10 drm anyway03:14
bryceok, 2.7.1 packaged and in process of building:  https://edge.launchpad.net/~ubuntu-x-swat/+archive/ppa03:55
bryceonce it's built and a couple people verify it's good to go, I'll move it to x-updates03:55
tjaaltonupgraded to karmic, now reboot..09:13
tjaaltonhmm, wrong layout09:16
Sarvatthave you guys considered backporting http://cgit.freedesktop.org/mesa/mesa/commit/?h=mesa_7_4_branch&id=63cde0ea0e2bc85005136c353c363777488804d2 to jaunty's mesa?09:25
Sarvattre: bug 35939209:25
ubottuError: Could not parse data returned by Launchpad: The read operation timed out (https://launchpad.net/bugs/359392/+text)09:25
tjaaltonhaven't seen it before, but looks sane09:26
Sarvatti was just looking over https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/359392 again and have seen they backported that patch to all the branches09:28
ubottuUbuntu bug 359392 in compiz "[i965] X freezes starting on April 3rd" [Undecided,In progress]09:29
tjaaltonit's just a matter of workflow management09:30
tjaaltonI'd like to put these in a git branch (ubuntu-jaunty for instance) where such fixes can be staged and uploaded to a ppa or -proposed09:31
jpdsSarvatt: No, this was a hardy -> intrepid -> jaunty upgrade.13:52
apwbryce, hey ...15:38
apwit seems that your test version of x does seem to have changed behaviour on mtrr for the better, but it still seems to remove the mtrr ...15:38
apw2:2.6.3-0ubuntu9.3~bug314928~2 is installed15:39
apwby w15:40
bryceapw, ok, that's good... is there removed mtrr's causing further problems I take it?17:43
apwit seems to still badly interact with the kernel, as in it still removes the mtrr on exit17:44
apwi see this both for logout and for guess session exit17:44
apwit is better in that for a rather more invasive kernel patch which adds and removes the mtrr on vt switch the mtrr does survive with your new xserver.  but the viable patch to add and remove mtrr at load/unload still gets broken by it17:45
brycehrm17:47
apw[  203.861744] Pid: 3553, comm: Xorg Tainted: G        W  2.6.28-13-generic #44~17:49
apwlp314928apw517:49
apwthat is the process which is calling the ioctl ... 17:50
brycewhat is the "viable patch"?17:51
apwthe clean backport of upstream behavour is to add and remove the mtrr at load/unload time.  the patch matching the further normal semantics is the one i am looking at as viable17:51
bryceahh17:52
apwthe other was a bodge i did to see if i could get round things the xserver was doing, doing it at enter/leave vt time.  but that seemed to get hurt by the xserver also fiddling at VT switch time17:52
bryceok, so either there is another bit of code removing mtrr's, or the code I if'd still gets called in some circumstances17:52
apwyour change i _think_ has removed the vt switch fiddle, but perhaps not the exit fiddle17:52
apwyeah something like that17:53
brycewould it help for me to add some debug comments on each call so you can sort out which is being called?  or have you been able to sort that out via gdb?17:53
apwi've been tracing it with kernel debug thus far17:53
bryce(or maybe it'd be obvious if I skim through the code for similar mtrr stuff)17:53
apwbut we can try it pretty easy as it exhibits on guess sessions too, so its not sooo iintrusive to test17:54
hyperairanyone familiar with the issue of intel's gpu driver leaking memory like a bloody sieve?17:55
apwwhich version?  kernel memory?  what workload?  many of us are using intel successfully17:56
bryceapw: hmm, the driver seems to call i830_fixup_mtrrs in just the one place17:56
bryceapw: there's mtrr code in the xserver which I wonder about17:56
apwin the generic part you mean?17:56
bryceyeah17:57
bryceI grepped "mtrr" in the xserver core and it spewed a bunch of stuff, but then jbarnes pointed us at this patch so I ignored it.  But now I wonder if it's worth looking at.17:57
jbarnesbryce: was my patch not sufficient?17:58
jbarnesI think with libpciaccess the server won't mess with mtrrs anymore17:58
brycejbarnes: no apw says he's still getting mtrr's removed, although it's considerably better17:59
jbarneshm17:59
bryceapw: do you get any messages "Removing bad MTRR range" or "Failed to remove bad MTRR range"?17:59
apwyeah its definatly happening less often.  i beleive it was happening at vt switch into another x-server and is not now17:59
apwbryce, in Xorg.0.log ?17:59
bryceyes18:00
apwnothing about mtrr at all in there18:00
brycehmm18:00
brycewell, from what I understand of the code, if the -intel driver is removing MTRRs it should be printing at least one of  those messages18:00
bryceso if it's not -intel, and if the xserver isn't messing with mtrrs anymore... could it be something besides X doing it?18:01
jbarnesI think the mtrr code removes any ranges set by the process when it exits18:03
jbarnesiirc18:04
bryceby mtrr_remove_offending() ?18:04
jbarnesI was thinking the kernel18:04
bryceah18:04
jbarnesyeah, I *think* when the mtrr file gets closed or the process exits its additions will be removed18:06
jbarnesunless some other process added them too18:06
apwjbarnes, i am seeing an explicit removals occuring via an ioctl on the mtrr control file, i added a warning to the kernel and it logged the Xorg process as culprit18:08
jbarnesoh ok18:08
jbarneswith the intel driver huh?18:08
jbarnesthe only place in the server that should hit that path is xf86MapVidMem, which we don't use anymore afaik18:11
apwperhaps its time for a version with some explicit debug in that routine to tell us if it is called18:15
apwjust in case somehow my machine is mad and still using it somehow18:15
apwbryce, so what do you think?  perhaps a bit of debug in userspace might help here?  am able to test here18:30
jbarnesapw: if you have debug symbols, gdb could help too18:30
jbarnesset a breakpoint on the setWC callback and backtrace18:30
jbarnesor in one of the mtrr fns18:30
apwjbarnes, ok i think bryce did make some dbg ones18:31
bryceyep, you'll want -dbg's of both -intel and xorg-server18:31
apwhrm i think i only have the -intel one18:32
brycexserver-xorg-core-dbg specifically18:32
mnemobryce: -intel only prints those two messages to xorg.log if it tried to delete the mtrr but the operation failed18:50
mnemowell no sry.. the first one should have been in the xorg.log18:51
mnemonevermind18:51
bryceright18:51
tjaaltonhuh, Xorg uses 100% cpu but everything seems to work18:56
mnemotjaalton: on what gfx card? and what is it doing if you sample stacks with gdb?18:57
tjaaltonmnemo: intel, karmic18:58
tjaaltoncan't use gdb since there's no other machine to ssh from18:58
tjaaltonbut I remember hearing something similar recently18:58
mnemoi've a bunch of -ati bugs for jaunty with constant 50% or 100% cpu (i guess the 50% cpu reports are for dual core users etc)18:59
mikaelhmmnemo, hi. Remember me:-)19:01
mnemomikaelhm: yea, did you find a proper stacktrace yet?19:01
mikaelhmnop, it just happend again (first time today)19:01
mikaelhmthere is nothing in the log19:01
mikaelhmbut.19:02
mikaelhmWhen i look in the dmesg19:02
mikaelhmI see this http://paste.ubuntu.com/171815/19:03
mikaelhmand when i booted up I got this apport bug thingy-dingy19:04
mnemoyea thats like another bug probably19:05
mikaelhmSorry the program "firefox" closed unexpe19:05
mikaelhmit said...19:05
mnemomikaelhm: whenever something crashes, just send bug reports using apport.. doesnt matter if its pidgin or firefox or whatever.. they can often be useful for us19:06
mnemomikaelhm: also, in some rare cases gfx driver bugs can also show up as application crashes19:06
mikaelhmshould it be a new bug or related? I'm new to bugreporting.19:06
mnemowhen it's a new program, always file a new bug19:07
mikaelhmoki19:07
mikaelhmit says, firefox chrashed in SIGSEGV in pthreaths_mutex_lock19:07
mikaelhmbut i'll report it.19:08
mnemoplease do19:08
mikaelhmCould not upload report data to crash database:19:09
mikaelhm<urlopen error The read operation timed out>19:09
mnemothat's because canonical cant run their servers properly :(19:10
mikaelhmI could only cancel it19:10
mikaelhm:-(19:10
mnemoit happens quite often with firefox because the debug dumps are so big that the server times out... i've filed a bug about it to the LP team but they havn't fix it yet19:10
mnemothis happens only for firefox crashes though19:10
mikaelhmok19:10
mnemoso for those you might want to consider checking the checkbox "reduced report" (and not "complete") because that one works and it still gets us a stacktrace19:11
mikaelhmbut how to report then? just manually,, or? can i get apport again?19:11
mnemomikaelhm: if you want to re-submit the firefox that just happened you can look in /var/crash and then double click the .crash file that has firefox in the name (and select "reduce report" this time)19:11
mikaelhmcannot select reduce report19:13
mnemostrange.. why not? is that option grayed out?19:13
mikaelhmthere is no option.19:13
mikaelhmdamnit19:14
mikaelhmabout 95% done19:14
mikaelhmthere is only a ratio butten for complete report (106mb recommended) but its grayed out19:15
mnemomikaelhm: when you click the .crash file you should see this --> http://temp.minimum.se/apport.png19:16
mnemoif you cant select "reduced report" then you probably can't report this bug unfortunatly.. :(19:17
mikaelhmi only see this http://i-dyllen.dk/apport.png19:20
mnemoah, strange.. ok so then this bug cannot be submitted19:22
mikaelhmmnemo, cannot or might not, if i try several times will it work, i dont no the report bug,19:23
mnemoat least i've never managed to submit one of those, but I didn't try a lot of times..19:24
mnemothe bug that prevents this bug from being submitted is this bug: https://bugs.launchpad.net/malone/+bug/35790719:24
ubottuUbuntu bug 357907 in malone "+filebug is timing out when processing large blobs" [Undecided,Confirmed]19:24
mikaelhmI think I managed it.19:25
mikaelhmno, this time the webpage gave me a timeout error19:27
mikaelhmhttps://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+filebug/fuAN2CdKMInjhg7HGPiB7uPlNkV?field.title=firefox+crashed+with+SIGSEGV+in+pthread_mutex_lock()19:27
tjaaltonok, got a backtrace from my hung xserver19:31
tjaaltonwell, not hung but cpu-hungry19:31
tjaaltonhmm backtrace wont do, need to use a profiler19:33
mnemotjaalton: so what did the backtrace say?19:35
tjaaltonmnemo: nothing of interest, because the server works19:36
tjaaltonsomething is just eating resources19:36
mnemoWaitForSomething ?19:37
tjaaltonyes19:37
mnemoi guess "info threads" also says just one thread?19:38
mnemoafaik X is always single threaded19:38
tjaaltonsigh, profiling made easy.. not!19:42
mnemowhich one did you use?19:42
tjaaltontrying oprofile19:42
mnemoi've never tried it myself but I heard they use sysprof in #intel-gfx sometimes19:42
tjaaltonok, trying it19:44
tjaalton"in kernel"19:46
tjaaltonright, thanks19:46
tjaaltonnot very helpful19:46
mnemosysprof can split that up as well I think19:46
mnemobut then you need kernel debug symbols installed first19:46
tjaaltonsigh^219:47
tjaaltondon't think they're apt-gettable19:48
tjaaltonah, found it19:51
=== jldugger is now known as pwnguin
mnemotjaalton: cool, what package was it?19:53
tjaaltonmnemo: no I mean found the ddebs19:53
mnemotjaalton: where did you get them? i'd like to try it as well..19:55
tjaaltonddebs.ubuntu.com19:55
tjaaltonapt-get doesn't seem to work though19:59
mnemotjaalton: was that a replacement kernel with debug info or was it added debug symbols for the existing normal package? (i.e. like how -dbgsym works)20:00
tjaaltonjust the symbols20:00
mnemothey dont even seem to have symbols the stock jaunty kernel in there... i just find 2.6.28-12 in http://ddebs.ubuntu.com/pool/main/l/linux/  but im still on -11 (maybe -12 is in proposed?)20:05
tjaaltonI dont think sysprof is meant for debugging the kernel20:10
tjaaltonit still doesn't split it up20:10
tjaaltongreat, opreport doesn't work20:18
tjaaltonneeds a rebuild20:19
mnemotjaalton: did oprofile give you anything yet?20:30
tjaaltonmnemo: not yet20:38
tjaaltonneed to learn how to use it first20:39
tjaaltonbah, opreport doesn't work, and doesn't build20:42
tjaaltonso that's it then20:42
tjaaltonhuh, I can't suspend.. grr21:06
Sarvatti just started getting this too yesterday tjaalton, are you on karmic too?21:13
tjaaltonSarvatt: yes21:13
tjaaltonthe hotkeys don't work, and the applet only has logout21:13
Sarvattsystems too darn slow to do anything when it happens, takes about 3 minutes for the VT to come up but I'm on a slow atom cpu :D21:13
Sarvattyep no suspend/hibernate on my faster-user-switch applet either, hotkeys are screwy too since the change to udev-extras21:21
Sarvattbeen a rough last few days for karmic21:21
Sarvatti get a devicekit battery fully charged notification every time i plug ac in too no matter the charge level21:22
mnemobryce: ping?23:10
mnemoi was going to ask you if you've seen any like this before? --> https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/37622023:13
ubottuUbuntu bug 376220 in mesa "package libglu1-mesa 7.4-0ubuntu3.1 failed to install/upgrade: package libglu1-mesa is already installed and configured" [Undecided,New]23:13
brycemm23:13
brycelooking23:13
mnemoits my mesa SRU so im a bit paranoid23:13
mnemoits probably nothing23:13
mnemoit was copied from proposed to updates today23:14
bryceguess would be that it's a foss-vs-proprietary issue23:14
mnemohow so?23:14
brycewait, no23:14
mnemothe log doesnt actually show any error for mesa so I was thinking it might be a bug in apport23:14
mnemobecause those ttf fonts seem to fail23:15
mnemoand maybe then it gets the package wrong?23:15
bryce2009-05-08 11:00:47 ERROR -1: Malformed status line.23:15
brycemaybe an error in sources.list?23:16
mnemoi think the malformed status thing could be a bad reply from sourceforge when its wgetting the proprietary fonts23:16
bryceok23:16
mnemomy other theory was that maybe he tried the mesa upgrade from proposed and so thats why he already had it23:17
mnemobut if apport triggers on that then i guess i should have seen something like it before23:17
mnemoanyway, its probably nothing23:17
bryceyeah not sure23:17
mnemoim going to sleep now so.. 23:18
mnemoi hope this doesnt blow up overnight :)23:18
brycenight mnemo :-)23:18
mnemonn bye23:18
brycetjaalton: do you know if we need mdetect for anything anymore?  Isn't that no longer needed with dexconf, etc.?23:45
bryceif not, we can just sync -vmmouse from Debian I think.23:46

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