/srv/irclogs.ubuntu.com/2013/09/03/#ubuntu-mir.txt

=== racarr|desert is now known as racarr
racarrHello!00:18
RAOFNo longer eating delicious desert?00:19
racarrBack home :D it will probably take a few days for the dust to fully leave my lungs though.00:19
RAOFOoh. I *can* slot in a MockSurface. Yay!00:27
RAOFOh, no.00:41
RAOFThat's a lie.00:41
smspillazracarr: !!02:04
robert_ancellRAOF, did you get anywhere with XMir+focus switching?02:14
RAOFrobert_ancell: Yeah, I'm just preparing to propose a Mir branch to fix an annoyance there.02:15
robert_ancellRAOF, cool02:15
robert_ancellRAOF, also, do you think there's any version dependency that could help bug 1218932?02:15
ubot5bug 1218932 in Unity System Compositor "unity-system-compositor should depend on >= version of xserver-xorg-video-<driver> (intel|nouveau|radeon) that works with it." [Undecided,Confirmed] https://launchpad.net/bugs/121893202:15
robert_ancellThe depends of u-s-c on xmir is a bit suspect already, not sure if there's any minimum version that makes sense02:16
robert_ancellactually, I guess that should be mir with a minimum version on a driver, though it should be a recommends I guess02:16
RAOFYeah, I need to think about that a bit more.02:19
racarrsmspillaz: !!?!!02:23
RAOFrobert_ancell: https://code.launchpad.net/~raof/mir/unfocus-on-surface-destroy/+merge/183563 is available for your pleasure.02:59
robert_ancellRAOF, the name sounds like a useful feature :)02:59
robert_ancellRAOF, does the destroy event not get to the client?03:01
RAOFrobert_ancell: It does, but you don't know whether the surface was focused or not.03:03
robert_ancellRAOF, would it be better just to add a mir_surface_get_has_focus()? This isn't like X - Mir will always notify if you get focus03:05
robert_ancellI'm just thinking that unfocus due to deletion is a slightly separate case to being unfocussed for a particular reason03:06
RAOFIt is, yes. I could add has_focus(), but it would be a bit racy - you'd need to check it in the surface deletion callback to avoid possibble races (and that's non-obvious).03:08
robert_ancellRAOF, you say "We probably need to rethink focus entirely, but this is an incremental improvement that I need" - can't XMir track the focus itself?03:10
RAOFI could, yes.03:10
RAOFrobert_ancell: Actually, I'm not sure whether I *could* do focus tracking in XMir. Aside from the locking being a huge pain in the arse, I'm not clear on what our message ordering guarantees are.03:30
RAOFI could do it with a mir_surface_get_has_focus(), though.03:30
=== chihchun_afk is now known as chihchun
robert_ancellRAOF, for input it doesn't matter about ordering right? You grab input devices when getting a focus event, and drop them when getting an unfocus or destroy03:30
robert_ancellRAOF, but with duflu's second opinion, I'm happy to approve the MP anyway03:31
dufluI think it's OK to say "we're not really sure what's focussed when" for now. The API is too racy (by design) to be sure.03:31
RAOFThat branch guarantees that a released surface always ends up unfocused from the client API's perspective.03:32
robert_ancellRAOF, btw, I was thinking - do you think XMir will drop the input devices fast enough when switching to the second XMir? Could both XMirs get duplicate events during the changeover?03:32
RAOFFair question; that's entirely possible.03:32
duflurobert_ancell: Even if you guaranteed ordering in the protocol, you can never guarantee when each XMir will be scheduled by the kernel and process the messages.03:33
robert_ancellduflu, correct03:33
robert_ancellduflu, but if XMir is being driven by the events, then the ordering isn't really relevant to it in this case03:34
robert_ancellRAOF, btw, did you see https://dvdhrm.wordpress.com/2013/08/25/sane-session-switching/03:34
RAOFrobert_ancell: Yeah.03:34
RAOFI think I commented on that one?03:34
RAOFYes :)03:36
robert_ancellah, I didn't read the comments. Due to blog comments almost always being crap. I guess planet.freedesktop probably has more credibility here03:37
RAOFHeh.03:44
RAOFrobert_ancell: So, probably the *correct* way to do this is a synchronous “please switch now” client API for xmir.03:44
robert_ancellRAOF, I was wondering if we are forced to do it the correct way or continue with our hack03:45
RAOFIt depends on how fixed you want the bug.03:45
robert_ancellRAOF, fixed enought that it doesn't bite us in the arse later03:46
RAOFWithout a request/ack style API there *will* be periods where both X servers are consuming events.03:47
robert_ancellRAOF, yeah, I think we just have to bite the bullet and do it properly via u-s-c. I don't really want to add it into the Mir protocol, but that would be the easiest and most reliable place to put it03:48
RAOFWe don't have anywhere else to put it :/03:48
robert_ancellRAOF, well, if XMir could contact u-s-c via a different socket we could do something custom and temporary. But XMir doesn't really know u-s-c exists03:49
RAOFWe could teach it.03:49
RAOFIt'd not be super hard.03:49
robert_ancellRAOF, I suppose we could open a pipe and give you the fd in an env variable03:50
RAOFOr as another commandline option.03:50
RAOFNote: we are discussing the most terrible thing ever. ☺03:51
robert_ancellYes, I feel dirty03:51
* duflu goes to play in the rain, erm lunch04:41
dufluRAOF: Any idea why X is always slightly clumsy at changing modes? I always see flickering and sometimes briefly misplaced outputs while it reconfigures. This happens without X too. Plain Mir doesn't.05:55
dufluThis happens *without* Mir too05:56
dufluUgh. I mean the issue with X pre-dates Mir. A pure Mir environment seems to switch layouts much more cleanly. But I guess I haven't seen pure Mir switch modes yet05:58
RAOFduflu: I think XMir exposes a case where Mir does some unnecessary modesetting.06:08
dufluRAOF: No I mean X has always done this... without Mir06:08
RAOFBut the X issue is bound up in X's "one framebuffer to rule them all"06:08
RAOFie: you *can't* turn on a new monitor without touching the existing monitors.06:09
dufluOh. Yes.06:09
RAOFVarious drivers can do better and worse at mitigating that; Intel seems to make a fair amount of trouble to mitigate that (copying the contents of the previous framebuffer, etc)06:09
dufluRAOF: On an unrelated note, would intel's double/triple buffering in the DDX affect the generic logic of the xmir module?06:13
RAOFI don't believe so, no; from memory, those codepaths are in the drmmode bits, which we bypass.06:14
RAOFBah! How do I get Jenkins to retry the flaky test?06:15
dufluRAOF: Click on the link. Or shout at it.06:15
RAOFWhat's the IP of s-jenkins?06:16
RAOFThat's behind the VPN, right?06:16
dufluThink so06:16
dufluRAOF: Any tips for explorers wishing to dive into XMir's damage tracking?06:22
RAOFduflu: The main business is in xmir-window.c, where xmir_window_get_dirty maintains a circular list of damage regions in struct xmir_window.06:24
dufluRAOF: And xmir_window is effectively one Mir output?06:24
RAOFRight. We have one xmir_window per output (strictly speaking, one per CRTC)06:25
RAOFThey're sitting in xmir_screen->root_window_fragments06:25
hikikoRAOF, should the multimonitor work in the lightdm screen?06:42
hikiko(before we start unity)06:43
RAOFhikiko: Yes, but you'll have mirrored displays because unity-greeter doesn't set anything different.06:44
hikikommm is there any setting in lightdm I should have or the defaults are fine?06:44
RAOFThe defaults are fine.06:45
hikikoin an Intel 4000 I have multimonitor working on unity but not in lightdm06:45
hikikowhich is very strange06:45
RAOFAs in: your second display doesn't show anything?06:45
hikikoit shows a vertical purple line06:46
hikikoI ll upload a screenshot in a while06:46
hikikoRAOF: http://i.imgur.com/ulUN09l.jpg06:52
hikikobut as soon as I login everything is working fine06:52
RAOFHuh.06:52
RAOFInteresting.06:52
RAOFI wonder what it's doing?06:53
hikikomaybe there's something wrong in my system06:53
hikikohow can I check that lightdm uses xmir for sure?06:54
RAOFgrep -i xmir /var/log/Xorg.${DISPLAY#:}.log06:54
hikikoalso this occurs when I have the 2nd monitor plugged from the begining, I will check what happens if I start without the 2nd monitor plugged06:55
hikikoin Xorg.2.log I have this line:06:58
hikiko[  2356.280] xorg-server 2:1.13.3-0ubuntu6+xmir3 (For technical support please see http://www.ubuntu.com/support)06:58
hikikoam I using xmir?06:58
dholbachgood morning07:00
hikikogood morning dholbach07:00
hikikoRAOF, ^ I think I use xmir... shall I fill a bug report?07:01
RAOFhikiko: That would suggest that you're *not* using mir07:02
RAOFAlso, that you've got an old Xserver :)07:02
hikikohaha07:02
hikikogreat07:02
dholbachhi hikiko07:03
hikikoso RAOF07:03
hikikothere must be a conf?07:03
RAOFhikiko: Do you have unity-system-compositor installed? It installs /etc/lightdm/lightdm.conf.d/10-unity-system-compositor, which enables usc and hence XMir.07:04
hikikoor installing xserver-xorg-mir is enough07:04
hikikoRAOF, if I run apt-get install there are extra packages :) it should be that07:06
hikiko(I mean apt-get install unity-system-compositor)07:06
RAOFYeah, apt-get install unity-system-compositor should do it.07:06
hikikook I found what it was: when you upgrade unity-system-compositor with apt-get install there's a question07:07
hikikoinstall the package maintainer's version / keep your current etc and default == keep current07:08
hikikolet me try again07:08
hikikofixed :D07:09
hikikoRAOF, now unity wallpaper07:10
hikikohas the size of the small monitor07:10
RAOFYup, that sounds right.07:10
hikikoand the dash07:10
RAOFWe clone by default.07:10
hikikook so I leave it like that?07:10
RAOFOh, you probably want to set up a spanned desktop; the Displays capplet will let you do that.07:11
RAOFYou can set it up just like you want.07:11
hikikocool :)07:12
hikikoand RAOF another question (final)07:12
hikikoI want to test xmir for the first time07:12
hikikoI build and run ./mir_demo_server... --enable-xmir and that's all?07:13
hikikowhat should I expect to see?07:13
RAOFhikiko: Once you've installed unity-system-compositor you'll be using xmir all the time.07:16
hikikoI mean the xmir I will build07:16
hikikonot the system's xmir07:17
RAOFAh. In that case, run mir_demo_server_shell, and then on a different VT run “Xorg :33 -mir 1 -retro -verbose 7”07:17
RAOF(The :33 and 1 are just placeholder values; you can use whatever you want there)07:17
RAOFWhen you switch back to mir_demo_server_shell you'll see the delightful X root weave, which is the black and white crosshatch thingy.07:18
hikikoand then how do you stop it? just killing mir_demo_server_Shell?07:18
RAOFCtrl-C works fine :)07:18
dufluhikiko: Ctrl+Alt+Backspace is how you get out of mir_demo_server_*07:24
dufluCtrl+C was disabled a while back07:25
hikikoyes that's what I noticed :)07:26
hikikothanks duflu and RAOF :D07:26
RAOFOh, yeah. But Ctrl+C will kill Xorg.07:26
RAOFWhen you VT switch back to your Xorg-running VT.07:26
hikikooh, I see07:27
hikikoand one more question to setup a spanned desktop do I need to do something on mir or I do it from unity settings?07:28
hikikofound07:38
dufluRAOF: Woo, no time-travelling frames any more08:31
tvoss_duflu \o/08:32
dufluJust need to *repeat* and verify. It's not a fix. Just a hack right now08:32
tvoss_duflu, what is the idea?08:32
duflutvoss_: XMir seems to be reporting incorrect damage regions08:33
tvoss_duflu, ah08:33
duflutvoss_: Still, somehow, affected by XMir's multimonitor logic08:34
tvoss_duflu, hmmm ... interesting08:34
tvoss_duflu, go ahead then ;)08:34
=== dholbach_ is now known as dholbach
hikikois there any way to temporarily disable xmir?11:03
=== hikiko is now known as hikiko|lunch
=== alan_g is now known as alan_g|lunch
=== chihchun is now known as chihchun_afk
=== hikiko|lunch is now known as hikiko
=== alan_g|lunch is now known as alan_g
=== chihchun_afk is now known as chihchun
smspillaztvoss_: ^ interesting comment by duflu - do apps need to provide a damage region or is it just assumed to be sizeof(surface) on swap_buffers?14:26
smspillazI didn't see anything in the mir api about it14:26
tvoss_smspillaz, no damage region, yet14:32
smspillaztvoss_: ah okay. What was duflu's comment about damage regions about then?14:35
tvoss_smspillaz, duflu was talking about the xmir world, so mostly the x <-> mir integration parts over there14:36
smspillaztvoss_: ah you mean xmir reporting incorrect damage regions to x clients?14:37
* smspillaz thought that xdamage didn't live in the ddx14:37
tvoss_smspillaz, I would think vice-versa14:37
tvoss_smspillaz, let me check14:38
sil2100Hi everyone!14:58
sil2100Do you know if we still need to enable the Mir PPA for daily-releasing Mir?14:59
sil2100i.e. D09add_ppa~mir-team~staging ?14:59
sil2100Since I would prefer not to use non-standard PPAs when releasing stuff14:59
sil2100kgunn: ^ do you know?15:00
* alan_g wishes he didn't need to learn so much about [E]GL15:00
kgunnsil2100: mir is in archive...no ppa needed15:00
sil2100Awesome15:00
kgunnat most, for those not already running xmir...just apt-get install unity-system-compositor15:01
racarrMorning!15:01
kgunnracarr: welcome back15:01
kdubgood morning!15:02
* kdub is back15:02
racarrkgunn: Thanks :)15:02
alan_gracarr: welcome back15:05
racarralan_g: Thanks :)15:07
kgunnkdub: welcome back!!15:11
=== chihchun is now known as chihchun_afk
kdubthanks!15:12
racarrI keep on looking for some email titled like15:14
racarrMirpocalypse15:14
racarrbut havent found it yet. Seems like things are going pretty well?15:14
alan_gracarr: no dramatic failures15:20
alan_gbut we've not been able to address the lack of a coherent data model and there are plenty of bugs and missing features15:21
=== om26er is now known as om26e
=== om26e is now known as om26er
racarralan_g: :) Thanks.15:57
=== michae___ is now known as T0Z
racarrYay, email finished16:50
racarrI think I replied to all emails last week (except bugs + MRs) that warrant a response from me16:50
racarrso if you sent me an email last week and are waiting to hear back16:51
racarrplease resend / ping me.16:51
racarrkgunn: Hey. I think I am keeping myself busy until lunch catching up on commit logs then bugs but can we schedule a sync for this afternoon maybe17:33
racarrSo I can prioritize some tasks?17:33
kgunnracarr: sounds good17:33
kgunni've got thing around 4pm my time...other than that i'm pretty open17:34
racarrkgunn: Ok how about in 2.5 hours (3 your time?)17:35
kgunnsounds good17:35
racarrOk. Thanks :)17:36
=== racarr is now known as racarr|lunch
racarr|lunchBack soon!17:52
=== racarr|lunch is now known as racarr
racarrupdating my phone image now20:23
racarrexcited to see last weeks progress :)20:23
kdubracarr, once you've updated, could you try the acceptance tests? seeing some failures there on the phone20:39
racarrkdub: ok20:43
racarrupdating my phone image earlier really meant charging my ultra dead neuxs 4 so it will be a bit stil20:43
kdubyeah, mine died a few times mid-update because it ran out of battery20:47
racarrits so obvious that comcast has been throttling me and is now rewarding me for not using any internet for a week -.-20:48
racarrBeen getting like 3MBs all day20:48
racarrPhone looks pretty great :)21:00
kgunnracarr: on the phone...you notice the flicker yet ?...i'm wondering if that's z-order fighting22:03
kgunnkdub: ping22:13
kdubkgunn, pong22:13
ricmmracarr: ping22:14
kgunnkdub: hey...so i was trying to do mir logging on android...so i did stop unity8, then exported22:16
kgunnMIR_SERVER_MSG_PROCESSOR_REPORT=log22:17
kgunnMIR_SERVER_DISPLAY_REPORT22:17
kgunn=log22:17
kgunnMIR_SERVER_GLOG=122:17
kgunnand MIR_SERVER_GLOG_LOG=/tmp/22:17
kgunnbut...no luck22:18
kgunndid i miss something22:18
kgunn(obviously i restarted unity8 after all that)22:18
kdubhmm, seems like that should work22:18
kgunnkdub: is the log file names something funny (like j1jk2k3.something) or something obvious like (mir_glog.log)22:19
kdubMIR_SERVER_GLOG_LOG_DIR=/tmp22:19
kdubkgunn^^22:24
kdubthe name should be... mir.hostname.user.loglevel.timestamp22:26
racarrricmm: Pong!22:27
racarrkgunn: Yes! I saw it twice pretty quickly but then not again yet22:29
racarrkgunn: I dont think its that but would have to dig deeper22:29
ricmmkgunn: it doesnt inherit the environment from where you are restarting the job22:30
ricmmkgunn: you'd need to add that to the unity8.conf job22:30
kgunnricmm: thanks for solving that mystery for me!22:33

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