/srv/irclogs.ubuntu.com/2014/07/01/#ubuntu-mir.txt

=== no_mu is now known as Nothing_Much
RAOFPfft. That was a bit of a gnarly one.01:25
=== josharenson1 is now known as josharenson
RAOFYou know, it really would be nice if Qt creator didn't crash each time my RANDR config changed.04:49
dufluConfusing.... "0.1.9" is the latest download available ... by date :)  https://launchpad.net/mir/+download07:06
alan_galf_: anpok duflu - anyone about to vote or shall I just approve it? https://code.launchpad.net/~alan-griffiths/mir/spike-nested-server-test-fixture/+merge/22463708:31
duflualan_g: Code? What's that?08:32
* duflu looks away08:32
* alan_g thinks this is a new duflu - not sure if I like it. ;)08:33
mptHi, can anyone remember why we started talking about “surface roles” instead of “surface types”? The Mir code still refers to “types”, correct?08:43
duflumpt: Correct. I implemented "types" and "states" based on the old design docs a year or so ago. The word "role" then appeared in newer design docs, but the Mir code still refers to types and states.09:20
dufluThere's another new noun too... I forget09:21
* duflu votes for "types and states"09:23
dufluAlthough the enumeration values used in code don't need to match perfectly so long as the mapping is clear09:24
mptthanks duflu09:53
dokoalan_g, tvoss: so the phone team did choose to do this transition this way, why do the mir people insist now on a different way?10:17
dokoalan_g, btw, your nick name is not up to date in the directory10:17
alan_gdoko: the mir team are being asked to approve a change that hasn't been adequately explained to them. Why were they not involved in a decision that affects them?10:19
dokoalan_g, what is missing from https://bugs.launchpad.net/mir/+bug/1329089/comments/5 ?10:20
ubot5Ubuntu bug 1329089 in dbus-cpp (Ubuntu) "g++-4.9 binary incompatibilties with libraries built with g++-4.8" [Critical,In progress]10:20
dokoalan_g, I would assume three weeks is enough for raising questions10:20
alan_gdoko: it was proposed two working days ago. Not three weeks10:21
tvossalan_g, the bug is way older than that, though10:22
alan_gThe bug comment says "Don't use versioned build dependencies for g++-4.x at all (preferred)" and the MP introduces versioned dependencies - how does one follow from the other?10:29
alan_gtvoss: regardless of the merits of the chosen approach duflu does have a point about the changelog10:52
tvossalan_g, sure, happy to change that10:52
alan_gtvoss: that should resolve both the "Needs Fixings" you've got. ;)10:54
=== no_mu is now known as Nothing_Much
=== alan_g is now known as alan_g|lunch
=== chihchun is now known as chihchun_afk
=== alan_g|lunch is now known as alan_g
=== ogra_` is now known as ogra_
=== chihchun_afk is now known as chihchun
=== dandrader is now known as dandrader|afk
=== Guest38857 is now known as renatu
=== renatu is now known as renato_
=== renato_ is now known as renato__
=== dandrader|afk is now known as dandrader
alf_mterry: dandrader: I saw that we updated the scene code in unity-system-compositor devel-mir-next. The issue there is that because we are creating the SceneElements on our own (instead of letting the scene do the work), we are missing on the new visibility tracking (occludded/exposed events) mechanism.15:32
dandraderalf_, yes15:33
alf_mterry: dandrader: Last week I suggested that we drop the scene reimplementation and just hide all sessions that are not needed. Was this considered, or was it too risky to do now?15:33
dandraderalf_, fell free to do whatever you think is best. I just did it because no one else in mir team had time to do it and I had to unblock the qt comp work. My idea in that patch was to keep the exact same behavior as before15:34
dandraderalf_,  thus ignoring the visibility as that method simply won't return elements that are not to be rendered15:34
alf_dandrader: ok, if there is nothing blocking a potential change, I will take a look, thanks15:35
dandraderalf_, which I guess yields the same result as returning elements with visible=false?15:35
dandraderalf_,  and if I recall correclty, mterry wanted to keep this scene infrastructure for some future use....15:37
mterrydandrader, alf_: no, it should be fine to try hiding the sessions15:38
dandraderalan_g, is I call surface->configure(mir_surface_attrib_focus, mir_surface_focused), is there any logic in mir that might override this and set the focus back to unfocused?15:43
dandraders/is I/if I15:43
alan_gdandrader: you mean as a result of your call or as a result of anything?15:44
dandraderalan_g, well, both. :)15:45
racarrdandrader: SurfaceConfigurator could...15:46
racarrwhich it looks like you guys are implementing in unity-mir and hooking up to a Qt signal um15:46
racarryouc an check the return value of surface->configure to see15:46
racarrifyou succeed in setting it to focused (and then perhaps its changed latter)15:47
alan_gdandrader: yes. E.g. the surface is destroyed by the client15:47
racarror if it never gets set to focused (i.e.t he surface configurator intercepts it and changes to unfocus)15:47
dandraderracarr, right, we do have a surfaceconfigurator that seems to just return whatever it gets15:49
dandraderwill take a closer look at this guy to see if there's any missing piece15:49
dandraderracarr, is SurfaceConfigurator::attribute_set just like a signal that tells what has happened or does it expect any action to be taken in the implementation?15:51
racarrdandrader: It returns the value which should actually be set15:51
racarrso its like a value filter or something15:51
racarrdandrader: i.e. for the shell to say15:51
racarrhaha no this surface cant be maximized dont be silly15:51
racarretc15:51
dandraderracarr, Isn't that SurfaceConfigurator::select_attribute_value ?15:51
racarrOH sorry15:52
racarrYes I believe attribute_set is just a signal15:52
dandraderracarr, hmmm, looking at ms::BasicSurface::configure it looks like configuring the focus attribute doens't actually do anything?15:56
alf_racarr: dandrader: We have a FocusSetter class that can change the focus in reaction to new sessions etc in SessionManager. Is unity-mir overriding this?15:56
dandraderracarr, I mean, it doesn't call an internal set_focus() or anything....15:56
dandraderit just notifies the observer15:57
dandraderalf_, I took a quick look at FocusSetter but it seemed to deal with session focus which seemed to be a concept distinct from surface focus...15:58
racarrdandrader: Ah sorry didnt understand what you were doing. yes that is true15:58
racarrFocusSetter is the only way to "set focus" and the attribute is something it sets.15:59
racarrIt sets focus to the default surface for a session16:00
racarrbut I guess we can/should have focus(surface)16:00
dandraderracarr, all I wanna do is calling surface->configure(mir_surface_attrib_focus, mir_surface_focused) and have the client be told that so that it can update this stuff UI accordingly16:01
alf_mterry: how do you try unity-system-compositor + greeter + multiple sessions (e.g. if I make changes how do I test I haven't broken it?)16:01
racarrdandrader: I'm not 100% surethats right, because it shouldn't be "focused"16:02
racarrfor example unless it has16:02
mterryalf_, uh... that was much easier back with a split greeter16:02
racarrthe keyboard input target16:02
racarritspossible, that the_surface_configurator16:02
dandraderracarr,  because in the qtcompositor world the focus concept lives in the qml scene of unity8, so I wanna use surface->configure(mir_surface_attrib_focus,...) as a way of exposing that info to the client. so effectively I just want  the IPC done16:02
racarrcould becomethenew...focus mechanism16:02
mterryalf_, it's tricky because USC gets its ideas of which session should be focused from lightdm16:03
alf_dandrader: racarr: use a NullFocusSetter?16:03
racarrYep16:03
dandraderracarr, in qt comp, every client surface is represented by a qml item, which has a focused property16:03
mterryalf_, so really unless you fake something up, you'll need an actual split greeter16:03
racarrdandrader: Yes I see I forgot the input targeter,etc werent relevant16:03
racarrI think Alf is right use a NullFocusSetter so no one will interfere with you setting the attributes otherwise16:04
mterryalf_, but you can test the spinner / primary session swapping by killing unity8 and confirming that it brings up a spinner again16:04
mterryalf_, and creating new demo clients to connect to USC and confirm that they don't display16:04
racarror implement the_focus_setter with an impl that just calls surface->configure16:04
dandraderracarr, but still surface->configure(mir_surface_attrib_focus is effectively a noop in BasicSurface... no IPC gets done16:04
racarrerr...I dont think thats true because we have a test16:05
racarrlemme look16:05
alf_mterry: that would be a good starting point, but I would like to also put the greeter in the equation when testing (isn't that the reason behind current and next sessions in usc?)16:06
dandraderracarr, or is there a surface observer that gets notified and does the IPC?16:06
mterryalf_, yes it is the reason16:06
mterryalf_, but the split greeter branch was ripped out of trunk and not replaced with anything that works against current trunk right now16:07
mterry(I've been too busy with RTM stuff to rework it in the short term)16:07
racarrdandrader: yeah thats it, src/server/scene/surface_event_source.cpp16:07
racarrlol...its a little...nonobvious from the code16:07
alf_mterry: makes sense... what does RTM use ATM? (yay, acronym madness!)16:08
mterryalf_, right now it uses an integrated greeter, just some qml that the unity8 process draws16:08
dandraderracarr, ahhh, ok. thanks for the info!16:09
racarrnp, sorry to be a little confusing lol16:09
alf_mterry: ok, so that works for now because we only have one session on the phone?16:11
mterryalf_, right.  No multi-user support yet16:11
alf_mterry: ok, so if, for example, I used translucent sessions to visually check that two sessions (current, next) are rendered, would that be a decent test  of the expected behavior?16:14
mterryalf_, yeah, sure.  But the trick is fooling USC into thinking what the next session should be16:15
mterryalf_, maybe just hard-code the name for testing purposes16:16
davmor2kgunn: Manta is having display issues.  If I unplug it and the screen blanks I get a brief flash of grey and then it is just black16:16
alf_mterry: Sounds good, thanks. Hopefully I will find some time this week to give it a go. Thanks!16:16
davmor2kgunn: we are wondering if this would be similar to the issue that people on nexus 5 are seeing16:18
kgunnwhat image davmor216:18
kgunni've been playing with manta last nigth &16:19
kgunnthis morning16:19
davmor2kgunn: 106/107 for today16:19
kgunnhavent seen this16:19
kgunnlemme check my image16:19
kgunn#16:19
davmor2kgunn: needs to be unplugged16:19
kgunndavmor2: mmm...lemme see16:19
davmor2kgunn: if you have the usb lead in it works fine16:19
davmor2kgunn: once you are in the broken state you can actually plug the usb lead into the dev press the power button and it wakes fine16:20
kgunndavmor2: ok, i see it...freaking weird16:20
kgunnAlbertA: ^16:20
kgunncheck this out...16:20
kgunnwhy would usb connection effect screen unblank & contents16:20
kgunne.g. the screen does come on, but contents missing16:21
kgunndavmor2: and its seems inconsistent16:21
kgunnsometimes it works16:21
davmor2kgunn: happens reliably here if there is no usb lead in.  I also noticed that it sometimes happens on the music scope if you play a track from the scope and then pause it but that is flakey at best16:23
kgunndavmor2: huh...it definitely happens more than not, but its not 100% i can get back to lock screen every now and then w/o usb in16:24
AlbertAkgunn: davmor2: only in manta?16:25
kgunnprobably 1/3 of the time lock screen....2/3's grey/black16:25
davmor2kgunn: I wonder if it is because of the gfx chipset and it being a tablet so it does deep sleep properly.  That would mean that adb was causing a wake on the system and then screen pops into life maybe?  long shot16:25
kgunndavmor2: mmm...maybe16:25
kgunndoes feel kernelish16:26
davmor2AlbertA: yeap only manta possible bq/meizu and maybe nexus 516:26
kgunndavmor2: i've been playing ever since you pung....it seems to be rare on time-outs (vs very common on button hit)16:27
AlbertAdavmor2: ok flashing #107... yeah it maybe related to suspend...16:27
davmor2AlbertA, kgunn: So Flo is fine I've been trying it most of the afternoon16:31
davmor2mako: was tested for promotion it is fine16:31
kgunndang it kdub driving a uhaul...he would find this interesting16:32
davmor2kgunn: Shall I file a bug against mir for this initially?16:32
AlbertAdavmor2: against unity-system-compositor16:32
davmor2AlbertA: will do16:32
davmor2https://bugs.launchpad.net/ubuntu/+source/unity-system-compositor/+bug/133641116:41
ubot5Ubuntu bug 1336411 in unity-system-compositor (Ubuntu) "Manta on recent images doesn't wake correctly from suspend" [High,New]16:41
=== alan_g is now known as alan_g|EOD
=== dandrader is now known as dandrader|lunch
AlbertAdavmor2: kgunn: https://code.launchpad.net/~albaguirre/unity-system-compositor/fix-1336411/+merge/22520917:16
AlbertAdavmor2: the blank issue in manta was due to suspend indeed17:16
davmor2AlbertA: yeah17:17
AlbertAdavmor2: so as soon as I get a review, I'll propose to land17:17
AlbertAcan somebody take a look at: https://code.launchpad.net/~albaguirre/unity-system-compositor/fix-1336411/+merge/22520917:30
kgunnrsalveti: or mterry ^ ? we're down a kdub today who might normally review17:43
mterryI am about to head to a dentist appt, but can do later today17:44
olliAlbertA, how do I take a screenshot on the device?18:04
* olli can't google it and doesn't remember how to do it18:04
racarrphablet-screenshot exists if thats what you mean18:05
racarrAlbertA: Im checkingit out...18:05
olliracarr, thx18:06
olliI was searching in the ubuntu- name space18:06
racarr:)18:07
racarrAlbertA: So the basic point is what was "acquire-sys-state"18:09
davmor2AlbertA: okay back from tea.  Is there a package I can install and test and I'll happily do that for you18:09
racarrwhich I am guessing is like...acquire a powerd we are awakecookie or something18:09
racarrneeds to be called18:09
racarrbefore display->configure?18:09
AlbertAracarr: right before attempting to power on the display18:10
AlbertAnexus10 doesn't like it...18:10
AlbertAotherwise18:10
racarrok makes sense to me lol18:10
racarryouc an get in to a similar state on nexus 4 actually or at least you used to be ableto18:10
racarr*thinks*18:10
racarreh18:11
racarrsimilar but unrelated18:11
racarrthere was a point where to run mir without unity8 you had to run18:11
racarrpowerd-cli active:p becausenothing else18:11
racarrwaskeeping the system out of suspend state18:11
racarrandthen powering the displays would fail of course.18:11
racarranyway lgtm18:11
AlbertAracarr: heh :)18:12
olliAlbertA, racarr phablet-screenshot seems to be looking for a local socket, wasn't there a convenience script I could run on the dekstop and which would get me a screenshot from the device18:12
olliwithout having to login etc18:12
AlbertAracarr: thankfully those days are gone18:12
AlbertAolli: yeah that should let you do it from the desktop18:12
AlbertAolli: it has been updated though18:12
AlbertAolli: but it's a utopic package18:13
AlbertAolli: so if you are not in utopic, you won't get the updated scripts I suppose18:13
davmor2olli: you need to change /usr/bin/phablet-screenshot from /run/mir_socket to /var/run/mir_socket iirc then it works18:16
AlbertAracarr: thanks!18:23
AlbertAkgunn: can you top approve? https://code.launchpad.net/~albaguirre/unity-system-compositor/fix-1336411/+merge/22520918:23
davmor2AlbertA: if there is a package I can install to test that fix give me  a ping and I'll happily test it in the morning nearly my EOD unfortunately18:27
AlbertAdavmor2: sure, I'll ping you thanks@18:29
kgunnAlbertA: done18:42
kgunnAlbertA: we should throw that in with camako's mir040 landing request18:47
AlbertAkgunn: oh...I just put a new row18:47
AlbertAin ci train18:47
kgunnAlbertA: actually...that's fine18:48
kgunnwe can do it seperate18:48
kgunncamako probably wants to finally get mir landed, no need to add 1 more complication ;)18:48
=== dandrader|lunch is now known as dandrader
dandraderracarr, don't you think we're missing this? http://paste.ubuntu.com/7733309/20:55
racarrdandrader: Looks like it.21:15
dandraderracarr, ok, I'll report a bug21:16
dandraderhttps://bugs.launchpad.net/mir/+bug/133654821:23
ubot5Ubuntu bug 1336548 in Mir "SurfaceConfigurator::attribute_set always say "unfocused" for focus property changes" [Undecided,New]21:23
racarrdandrader: Thanks ill make a test andpropose a branch unless you are already on it21:23
dandraderracarr, I don't have a branch. just have that patch. that's why I reported the bug (making the test is the hardest part) :)21:24
racarrdandrader: :) Thanks.21:29
racarrwill propose fix asap21:29
dandraderracarr, thanks!21:29
dandraderracarr, we are also missing a mir_surface_get_focus(), or mir_surface_get_focus_state() :(21:37
dandraderon the client API side21:37
dandradersame for the visibility attribute21:39
racarrdandrader: Also true -.- though it does show up in the attrib change events22:34
racarrwill...mp an mp for that as well22:34
dandraderracarr, yes22:35
dandraderracarr, reported a bug for it as well https://bugs.launchpad.net/bugs/133655322:35
ubot5Ubuntu bug 1336553 in Mir "mir client API is missing getters for some surface attributes" [Undecided,New]22:35
racarrWas out picking up more green tea! To the emacs machine.22:37
racarrThanks for writing it up in bugs.22:37
RAOFYay bugs!23:00
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader

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