/srv/irclogs.ubuntu.com/2014/05/22/#ubuntu-mir.txt

RAOFkgunn: You rang, m'lud?00:13
kgunnRAOF: racarr__ was just sayin' that glamor on mir more coupled than he thot & might not lend itself to doing a demo of libreoffice on mir for next week...wondered if you had thots ?00:20
kgunnnot sure how much you've looked at glamor00:20
RAOFNot a whole lot, although looking at the xf86-video-ati code I thought that the GBM bits were to do with making DRI work rather than 2d.00:21
kgunnbut then we talked about not using glamor...which sounds like on desktop that'd be ok (on mobile, slow)00:22
kgunnbut then there's menus00:23
kgunnRAOF: so just lookin' for some technical guidance, but my gut thinks go for it w/o glamor and put some work in to get the menus00:23
RAOFThat seems reasonable.00:24
kgunnbut willing to listen to reasons why we should focus on glamor, or not put effort in on menus00:24
RAOFWe don't need glamor for the desktop.00:24
kgunni didn't quite understand why "menus are free with galmor"...or am i reading into what Master Carr is saying ?00:25
RAOFYou're reading that into what Master Carr is saying.00:29
RAOFMenus aren't free; they're the first part of window managment.00:29
RAOFWhich _is_ a bit of a project :)00:29
kgunnso would that work really be the same w/ & w/o glamor?00:30
RAOFYes.00:33
RAOFGlamor is merely “does it work (with GPU acceleration) on the phone”.00:33
kgunnright00:34
kgunnmakes sense00:34
RAOFSo one track is “sw-only xf86-video-mir that just uses the Mir API and X's software rendering” → “xf86-video-mir that uses glamor for 2d” → “xf86-video-mir that uses glamor for 2d and supports 3d”00:36
RAOFThose are all mostly required steps for “fast XMir on the phone”00:37
RAOFAnd then there's the “hello, window management” track, which gives you - for example - popup menus that popup in the right place :).00:37
kgunnok, tbh, our goal of officelibre on mir is more about unity8 on desktop (not phone)00:39
kgunnracarr__: ^00:40
kgunnRAOF: so, i got something i don't understand, trying to debug something using mir_demo_client_egltriangle, so i'm doing the VT1 basic server and VT2 demo on my laptop00:42
RAOFOk, sounds good so far.00:42
kgunni modify mir_surface.cpp, make install....i even changed the mir_demo_client_egltriangle as to make it update/install as well00:43
kgunnhowever...when i run00:43
kgunni do not "see the change"00:43
kgunnfrom usr/local/bin installs...00:43
kgunni have to run the demo client directly from the build folder00:43
kgunnhow come?00:43
RAOFWell, that's what I do, because /usr/local installs are a *great* way to get extremely surprised in a month's time :)00:44
kgunn:)00:44
kgunnok, so i'll just keep doing that...00:44
kgunnno problem00:44
kgunnbut is there a reason why ?...i mean i really thot the install would take care00:44
kgunnalso...is there a way to wipe out the local/bin00:45
kgunn?00:45
kgunnto avoid that surprise ?00:45
RAOFMy initial guess as to your problem would be whether or not cmake strips out the RPATH on everything when installing.00:45
RAOFkgunn: rm -r /usr/local/bin/* ? :)00:45
kgunnok...00:45
* RAOF has recently run this, having been surprised by an apitrace install lurking in there.00:45
kgunnthat easy huh00:45
RAOFUnless you've got something you actually *want* in /usr/local, yeah.00:45
kgunncool00:46
RAOFYou might also want to kill /usr/local/lib, because that little gem is *before* /usr/lib in the library search path.00:46
kgunnyep...researched enough to see that...and its first in my path00:47
racarr__lol sorry to be confusing about menus00:48
kgunnracarr__: you weren't...i was playing the board game "Jump to Conclusions"00:48
racarr__unrelated to glamor :)00:49
racarr__oh00:49
racarr__I prefer candyland.00:49
kgunnlol00:49
AlbertAkgunn: heh I love those office space references00:49
RAOFMmm. Candy mountain!00:49
kgunnAlbertA: just for you :)00:49
AlbertAkgunn: I want to file my TPS report now00:49
kgunnAlbertA: yeah...i'm gonna need you to come in Saturday....yeah...why don't you just plan on coming in Sunday too00:50
racarr__AlbertA: We're gonna have to ask you to come in to malta on a sunday...00:50
kgunnlol00:50
AlbertAevern funnier because we are00:50
AlbertAhaha00:50
* RAOF arrives home Monday morning.00:50
RAOF(There will not be any RAOF on Monday or Tuesday after the sprint)00:51
AlbertARAOF: I guess you didn't get the memo00:51
AlbertARAOF: ;)00:51
kgunnRAOF: you're next movie watching assignment http://www.imdb.com/title/tt0151804/00:53
racarr__RAOF: Im bored. wanna write an X11 window manager?01:47
RAOFNo, not really :)01:47
racarr__lol my real question, is how to turn on rootless X.01:47
racarr__I was thinking I would make input work in rootless (seems like there would be something to do) and maybe try and get some basic01:48
racarr__infrastructure going.01:48
RAOFracarr__: I'm currently resurrecting my rootless X thingy, which seems to have been eaten by git.01:48
racarr__Ah01:49
RAOFOh! Yeah, that'll be what I need to actually get windows to display!01:49
racarr__?01:49
RAOFNeed to tell things that there's a Composite manager.01:49
RAOFOtherwise they'll do stupid things, like draw on the root window.01:49
racarr__ah. yes they will lol01:50
mterryanpok_, you still around by anychance?  The cpu usage thing seems unrelated to mir...01:57
mterryanpok_, (copying unity8-greeter on top of unity8, then switching greeter code to run unity8 instead makes cpu usage be normal.  So something is inspecting executable names)01:57
mterryanpok_, but I do still need help on the 'volume up/down presses ignored by android-input layer in greeter' issue...01:58
RAOF2nd laptop mode: engage.02:56
=== irsol_ is now known as irsol
RAOFDear Google: any email sent to me written in Mandarin is almost certainly spam. kthxbye.04:07
=== chihchun_afk is now known as chihchun
=== duflu_ is now known as duflu
anpok_yay just finished merging devel and making the unit test non-time-depending in my branch06:17
anpok_non-time oO06:18
* duflu high-fives anpok_06:20
anpok_hi06:20
dufluHi there06:20
anpok_so avoid to time dependency in buffer consumption..06:21
anpok_we might need to consume all occuluded buffers (but not by drawing them :)) and provide expose/occlusion events for displays that got powered of06:22
anpok_and hope that qt can deal with that06:22
anpok_*off06:23
dufluanpok_: Hmm, I had proposed a branch that did just that.06:23
dufluIt got rejected06:23
dufluAlthough it's a good idea06:23
anpok_well you proposed drawing occluded buffers06:23
dufluanpok_: Different branch06:24
anpok_oh06:24
anpok_too many branches...06:24
anpok_but for this to work we need the client api change ..06:24
dufluAh, crap.06:25
anpok_i mean.. we do not make an occlusion test when the compositor off06:25
anpok_which we wanted to do anyhow sometime.. maybe today?06:25
RAOFWell, that looks like _part_ of libreoffice...06:29
anpok_hm lets see how bzr deals with that06:31
anpok_duflu: https://bugs.launchpad.net/mir/+bug/1318852 AlbertA is referring to the usage of src_alpha, one_minus_src_alpha as a blending function - which only works when the textures are not premultiplied06:34
ubot5Ubuntu bug 1318852 in Mir "[enhancement] support proper per-pixel alpha for alpha-enabled display framebuffers" [Medium,New]06:34
anpok_but which does not cause much trouble because we rarely have transparent client buffers06:35
dufluanpok_: Depends how often you run "mir_demo_client_egltriangle -b 0" ;)06:35
anpok_duflu: well and how often do we verify that resulting rgb and a channels are mathematically correct and follow an additive blending model?06:36
RAOFAlso, when are we going to support sRGB alpha? :)06:37
anpok_duflu: the screencast bug fixed some time ago by applying filters (and I think avoid alpha writes) is caused by the used blending functions06:38
RAOFHah!06:38
RAOFmir_surface_is_valid isn't particularly useful :)06:38
anpok_we could safely assume premultiplied alpha for any client buffer and used (one, one_minus_src_alpha)06:38
anpok_RAOF: hm where are you?06:38
dufluanpok_: I hope you're right. Although I can't yet see how this should produce a fragment with alpha != 1.0 ...06:39
duflu        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);06:39
RAOFanpok_: Still in hobart?06:39
anpok_hm not makeing much sense, libreoffice valid surface?06:40
dufluRAOF: Oh... mir_surface_is_valid(NULL)  ?06:41
dufluhttps://bugs.launchpad.net/mir/+bug/124847406:41
ubot5Ubuntu bug 1248474 in Mir "mir_surface_is_valid(NULL) crashes instead of returning false" [Medium,Triaged]06:41
anpok_assume you have an opaque background d_r, d_g, d_b, d_a, and blend a window shadow (s_r,s_g,s_b,s_a) above it with, lets assume a pixel s_a= 0.25 then your resulting alpha = s_a*s_a + d_a*(1-s_a) => 1/8 + 1*(3/4) => 7/806:44
RAOFduflu: Actually mir_surface_is_valid() for any non-surface :)06:44
dufluWow  Oo06:44
dufluAwesome. Surfaces everywhere!06:44
dufluIt's a new paradigm06:44
anpok_if you use GL_ONE instead (and make the shadow buffers and window decorations premultiplied)06:45
anpok_you get -> 1*s_a + d_a(1-s_a)= 1/4 + 3/4 = 106:45
racarr__Ah, yes, non surfaces are surfaces, 1=0, I see it all so clearly now...*runs off in to the night*06:45
anpok_racarr__: see you late06:46
anpok_r06:46
dufluracarr__: Consider that a good point to have a drink et al06:46
RAOFanpok_: Oh, no. I think something is destroying a surface, then X is handling an event that was queued from that surface.06:46
racarr__Haha, I just got back from the wine bar and was just checking IRC before sleep :)06:47
RAOFSo 0x926158 probably _was_ a valid surface, quite recently.06:47
racarr__Good indeterminate time all!06:47
RAOFBut now it's a SIGSEGV06:47
RAOFracarr__: Enjoy post-wine!06:47
dufluWhee, the handle validation problem06:47
anpok_racarr__: apply the advanceable clock mp, it is global, but makes you independent on any extern time source06:47
dufluanpok_: OK, I trust you without stopping to check the math. If you have a superior solution in mind propose away :)06:47
anpok_duflu: .. maybe i manage today... need to finish my input nightmare06:48
RAOFBAH!06:59
RAOFWhat's nulling mir_win->win?06:59
dufluRAOF: XMir's still *magic* after all07:06
RAOFAh. And the reason why input isn't working is that nothing hooks it up. Oops!07:35
RAOFWow. Apart from the bit where I've got the rendering offset and the bit where mir_demo_server_shell has issues with alt-tab, libreoffice is surprisingly usable.07:44
dufluRAOF: Whoa, that is worthy of celebration/video07:45
RAOFI think I'll wait until I've got the rendering correctly offset first :)07:45
dufluRAOF: Bah, Compiz never got that right ;)07:45
RAOFIt got it more right than “big black box between the top-left corner and where the window wants to be”07:46
RAOFduflu: I'm not sure why you're exposing DPI to clients at all? I thought 100% of what you wanted was correctly-sized decorations, which are done in the server anyway?07:48
dufluRAOF: Clients need DPI (or something) to know how big to render text/buttons/etc. And particularly if a client is modifying its titlebar, it needs to agree with the server on the scale.07:49
RAOFOh, they certainly do eventually.07:49
dufluBut even before that, we want to avoid huge-titlebar-with-tiny-widgets or vice-versa07:50
dufluCos then Mir wouldn't be any better than Unity 7 ;)07:50
* duflu still thinks Trevinho is awesome07:58
anpok_now that the revert of 1hz rendering landed - i guess have to manually merge devel again? Or are we soon reverting the revert again?10:50
alan_ganpok_: I don't know that we have a plan for 1hz. But what makes this rev different to any other change to devel?10:57
alf_Saviq: greyback: https://code.launchpad.net/~afrantzis/qtubuntu/fix-1321189/+merge/22061311:00
alf_Saviq: greyback: please note the lack of extensive testing11:00
greybackalf_: fix makes sense, that was my hunch anyway11:00
Saviqalf_, awesome11:00
SaviqMirv, can you integrate that into the qtubuntu builds ↑?11:01
SaviqMirv, it should fix the rendering issues under Qt 53.11:01
Saviq5.311:01
anpok_alan_g: it just touches the alarm tests due to some bsr and I have two branches in that area too11:02
anpok_and i am lazy enough to not like conflicts :)11:02
alan_ganpok_: I don't see 1hz landing again until we've discussed what went wrong. So plan on your stuff landing before it gets sorted out.11:05
anpok_alf_: not sure if you read the irc backlog of last night .. i finnally figured out why my clock improvements did not really improve things.11:22
alf_anpok_: I haven't read it... at what time should I look?11:23
anpok_oh not important.. 1900 my time .. maybe 2000 yours?11:24
anpok_short story11:24
anpok_posting actions on a io_service does not make the io_service reevaluate the pending timers11:24
anpok_only when I create a new timer it will go and look for a new "now"11:25
MirvSaviq: yes11:29
MirvSaviq: sounds excellent11:30
Mirvpushing a build right away11:30
MirvSaviq: note that even that your some output Qt 5.3 was actually using OpenGL ES 3.0, but let's see11:30
Mirv(ES 3.0 is now supported in 5.3)11:31
=== om26er_ is now known as om26er
Mirvalf_: that was some awesome one-liner13:06
alf_Mirv: glad it helped :)13:07
mterryanpok_, did you get my message late last night about the cpu issue with the greeter?13:56
anpok_mterry: probably not14:04
mterryanpok_, ok, so I investigated more14:04
anpok_ah at 3:5714:04
mterryah ok14:04
anpok_and volome up down still an issue14:05
mterryanpok_, yeah both are still issues, I just know more  :)14:05
anpok_:)14:05
anpok_the other one is already erased14:05
mterryanpok_, volume up/down is interesting.  So it's an android-input issue about focus.  But if I run the greeter as the user shell, it works.  So it's not related to the actual code of the greeter either14:06
mterrySomething about how the greeter environment is set up, versus a user environment apparenlty14:06
anpok_hm ok i thought it would be a display off -> no focused surface issue or something14:06
mterryanpok_, the problem appears on first boot even before display off14:07
mterryShoot.  Now it's working on my device and I don't know what I did14:12
anpok_but you DID something?14:13
mterryanpok_, I've been trying lots of things, but it started working, and after undoing what I did most recently it was still working.  So I must have done something last night and not noticed it worked.  I'm going to work backwards now  :)14:14
anpok_ok cool all issues erase.. me hurries back into input nightmares14:14
anpok_you still might have found a bug14:17
mterryanpok_, heh, no I want you on retainer  :)14:17
=== tedg is now known as ted
anpok_mterry: meeting the kids -> then I am all yours15:00
anpok_*then15:00
mterryricm:)15:00
mterrywhoops15:00
mterry:)15:00
anpok_at least I make you think that :)15:00
=== greyback is now known as greyback|afk
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== greyback|afk is now known as greyback
AlbertAkgunn: alf: so I flashed a fresh image16:07
AlbertAkgunn: alf: with the current solution (buffer consuming thread) I still see a probably one frame flash16:07
AlbertAof old content16:07
alf_AlbertA: sure, it depends how fast you do it :)16:08
AlbertAkgunn: alf: with 1Hz branch but set to 20Hz timeout I always see it...16:09
AlbertAkgunn: alf_: I wonder why16:10
kgunnlike alf_ said, doesn't it depend on how fast you do it ?16:10
AlbertAkgunn: I mean in the 20Hz case, it doesn't matter how slow you do it16:11
AlbertAkgunn: 30 seconds later, it still flashes the one frame16:11
kgunnAlbertA: oh wait...so, you're cutting the compositor out of the chain in this method right16:12
kgunnso we16:12
kgunnhave left the frames we dumped in there...16:12
AlbertAkgunn: right only framedropping16:12
kgunnjust prior to turning off16:12
kgunnso those are what you see16:12
AlbertAkgunn: alf_: but that should be similar in the buffer consuming compositor too...I would think16:12
kgunnAlbertA: i didn't think so...cause buffer consuming compositor actually rendered to the "display"16:13
kgunnso they're gone16:13
AlbertAkgunn: I suppose the difference is16:13
AlbertAkgunn: it advances the compositor buffer16:14
AlbertAkgunn: and in framedropping it doesn't16:14
kgunnexactly16:16
kgunndednick: can you retarget https://code.launchpad.net/~nick-dedekind/unity-mir/trusted-sessions/+merge/210775 to unity-mir/devel ?16:22
kgunnthen i can put it in an existing silo16:22
kgunnwith https://code.launchpad.net/~mir-team/unity-mir/mir-0.2.0-compatibility-changes/+merge/21873416:22
kgunnAlbertA: or should we just merge https://code.launchpad.net/~mir-team/unity-mir/mir-0.2.0-compatibility-changes/+merge/21873416:22
kgunninto unity-mir/devel...16:23
kgunnand MP unity-mir/devel to unity-mir trunk >16:23
kgunn?16:23
* kgunn goes to grab sandwich16:23
AlbertAkgunn: yeah merge, if unity-mir/devel => means track mir changes it makes sense16:23
kgunndednick: nvmd :)16:25
kgunnAlbertA: yes it does16:25
dednickkgunn: huh? :)16:25
kgunnlol...go back to trusted sessioning16:26
kdub_AlbertA, camako: duflu asked for a resubmit on https://code.launchpad.net/~kdub/mir/overlay-gl-program/+merge/220690, so if you could take a look over again, I'd appreciate it :)16:55
camakokdub_, will do16:55
AlbertAkdub_:sure16:59
ogra_moop17:47
kgunnogra_: yep, waiting on jdstrand17:47
ogra_yeah17:47
kgunnoh crap i gotta run...bbiab17:47
kgunnAlbertA: can help with the discussion ogra_17:48
AlbertA?17:48
jdstrandogra_: do you still have /tmp/mir_socket too?17:48
ogra_yes17:49
jdstrandkgunn: so, there should be two sockets. one for the root process and one for the session. the one for the session has been correctly moved to XDG_RUNTIME_DIR aiui. why is the root one in /tmp? can't it go in /run/mir or something?17:50
ogra_jdstrand, kgunn had to run and pointed to AlbertA ... i guess we need to summmarize for him17:53
ogra_AlbertA, so according to the landings 0.1.9 should hav abstracted the socket name for mir_socket but we still see mir_socket for system-compositor as well as the session Mir17:53
ogra_and both even with 666 permissions17:53
ogra_seemingly https://code.launchpad.net/~mir-team/mir/utopic r1185 was supposed to change that17:53
ogra_but it looks like it didnt17:53
ogra_(teh secutity team would like to have abstract socket names ... jdstrand can probably elaborate)17:53
jdstrandkgunn: plus, why is /tmp/mir_socket writable by world?17:53
jdstrandah, I missed that he ran17:53
jdstrandso, /tmp/mir_socket is 777 and /run/user/32011/mir_socket is 77517:54
jdstrandif we are using a named socket, I would expect 700 for both and /tmp/mir_socket to be in fome root owned directory (eg /run/mir)17:55
jdstrands/fome/some/17:55
ogra_i think the session needs to be able to talk to it17:56
ogra_not sure about the architecture here though17:56
jdstrandif so, then still could use a root-owned dir17:57
=== dandrader is now known as dandrader|lunch
jdstrandthe one in /run seems to lenient though17:57
AlbertAogra_: we decided not to go for abstract socket names since the security team said at the time apparmor did not mediate them17:58
jdstrandtoo*17:58
jdstrandah, well, that will be this cycle17:58
jdstrandjj has most of it ready17:58
jdstrandAlbertA: ok, what about 775 for the one in XDG_RUNTIME_DIR? could that be 700?17:59
ogra_jdstrand, does that matter ? the dir is already 70017:59
jdstrandactually, that doesn't really matter, /run/user/32011 is 70017:59
alan_gShouldn't the filesystem endpoint be suppressed on the system compositor anyway?17:59
ogra_:)17:59
=== alan_g is now known as alan_g|EOD
* ogra_ thinks the session socket is all fine ... but the system one looks worrying18:00
AlbertAjdstrand: at least a group no?18:00
jdstrandAlbertA: ok, so, the perms on the one in XDG_RUNTIME_DIR are weird, but not a security issue since a parent dir is 700. could we move /tmp/mir_socket to /run/mir (or something-- some root-owned dir)?18:00
AlbertAjdstrand: because we need mir clients to be able to connect to it18:00
jdstrandAlbertA: if you need the root owned socket to be 777, that's fine, but can it be put in a non worldwritable directory?18:03
AlbertAalan_g | EOD: but then how do you get the fd to connect to?18:03
jdstrand/run/mir_socket would even be fine18:03
AlbertAjdstrand: not sure who makes it 777...I suppose unity-system-compositor is changing the perms18:04
ogra_but can user processes then write to it ?18:04
ogra_sounds like that is needed18:04
AlbertAjdstrand: but sure it doesn't have to be /tmp18:04
AlbertAogra_: the way I see it18:05
AlbertAogra_: the nested mir server (unity8 process) needs to talk to it...so that could just be a group permission18:05
ogra_which the user is in18:05
ogra_which in turn makes it fully user writable18:06
jdstrandit may not necessarily be a security issue depending on how it opens the file and handles failure modes correctly. but putting it in /run makes sure it won't ever be18:06
* jdstrand notes that confined apps cannot connect to /tmp/mir_socket now, nor /run/mir_socket. they do have access to /run/user/32011/mir_socket18:07
ogra_but in the split greeter world also the greeter needs to be in that group ... (the lightdm user) ... not sure what the security implications of that are18:07
AlbertAogra_: in any case the socket file name/path is configurable so it just a matter of setting the right option when launching unity-system-compositor18:08
ogra_right18:08
ogra_mterry, ^^^18:08
ogra_can lightdm start u-s-c with a socket in a root owned dir ?18:08
ogra_instead of tmp ?18:09
mterryogra_, so we need a world-accessible place for tjhe USC socket?18:09
ogra_well, jdstrand would like to see it in /run18:09
mterryogra_, yeah, but the client sessions need to be able to access it18:09
jdstrandI would be surprised if it didn't work...18:09
mterryogra_, both lightdm and USC are run as root, so I don't see a problem then18:10
ogra_hmm, where do we set the var currently ...18:11
* ogra_ cant find it in usc-wrapper or ubuntu-touch-session 18:11
ogra_i know we had $MIR_SOCKET once18:12
ogra_or is that dead18:12
jdstrandfyi, when we have abstract socket mediation in apparmor it opens the possibility to lock this down even more (eg, should be able to disallow any connections from unconfined and only allow connections from a particularly confined process-- eg, the session compositor)18:14
jdstrandwe don't have to do that now or anything, just saying18:14
AlbertAogra_: it's MIR_SERVER_FILE18:21
ogra_AlbertA, right, but i dont see it being set anywhere .. we used to export that var in one of the start scripts before18:21
AlbertAogra_: ah I see18:21
ogra_(not a  Mir thing :) )18:22
jdstrandogra_: so, it being in /tmp isn't a mir thing? I just did 'stop lightdm ; touch /tmp/mir_socket ; start lightdm' and was able to prevent lightdm from starting18:27
ogra_jdstrand, no that var isnt a mir thing18:28
ogra_jdstrand, ignore that ... i was looking at bending the var to make it use /run for a test18:29
ogra_but i cant find where we set it anymore18:29
jdstrandI'd like to file a bug, but don't know where...18:29
ogra_unity-system-compositor creates the socket on startup now i think18:30
jdstrandhttp://ubuntu-codesearch.surgut.co.uk/ didn't help me18:31
jdstrand./src/system_compositor.cpp:        return the_options()->get("file", "/tmp/mir_socket");18:32
jdstrand(unity-system-compositor)18:32
ogra_yeah18:33
AlbertAogra_: yes if it's not set, mir will create a default socket in /tmp/mir_socket18:34
AlbertAI mean if MIR_SERVER_FILE is not set18:34
ogra_right18:34
jdstrandfyi, bug #132230018:37
ubot5bug 1322300 in unity-system-compositor (Ubuntu) "Please move /tmp/mir_socket to /run/mir_socket (or similar)" [Undecided,New] https://launchpad.net/bugs/132230018:37
jdstrandperhaps that should be retargeted to mir. feel free to do so18:37
jdstrandAlbertA: is the protocol for talking to the mir_socket defined somewhere?18:38
AlbertAyeah in mir18:39
AlbertAjdstrand: it's essentially google protobuf messages over the socket18:39
jdstrandthanks18:42
kgunnAlbertA: thanks, sorry had to run...back now, read the scrollback...so end result is to change /tmp/mir_socket default in mir? or in usc ?19:02
AlbertAkgunn: usc19:02
kgunnvia MIR_SERVER_FILE got it19:02
jdstrandkgunn: not sure if you saw it, but I filed bug #132230019:07
ubot5bug 1322300 in unity-system-compositor (Ubuntu) "Please move /tmp/mir_socket to /run/mir_socket (or similar)" [Undecided,New] https://launchpad.net/bugs/132230019:07
kgunnjdstrand: yep...19:08
kgunnjust makin' sure i understood...if we were fixing it in usc or in mir19:08
kgunnmterry: meant to follow up with you and anpok_ , did you guys have luck in determining where the high cpu load was coming ?19:25
kgunn(and mem?)19:25
mterrykgunn, no...  anpok_ pointed me at ricmm who said we have some code to disable sensors for unity8 (which may be related because sensors also take high CPU in this case), but didn't mention where.  I've been distracted by the volume button bug in meantime though19:26
=== dandrader|lunch is now known as dandrader
mterrykgunn, I'm trying to follow up with ricmm, but maybe he's EOD or something19:33
ogra_mterry, he's sick19:33
mterryogra_, oh poor guy19:34
ogra_he was around for a split second from his rrom earlier19:34
jdstrandkgunn: I think the priority is higher than Opinion fwiw19:35
jdstrandit is perhaps 'low' in practice, but I can easily prevent mir from starting without privs if I can create a file in /tmp before mir starts19:36
anpok_re19:36
* kdub_ grumbles about our recomposite signalling19:59
kgunnjdstrand: per discussion above with AlbertA, seems we want to fix it in USC....i only tied it to mir as "opinion" so it doesn't get lost20:07
kgunnmake sense?20:07
jdstrandkgunn: oh, I missed that it was against the mir task. sorry20:08
AlbertAkdub_: heh... but you are making it better now...:)20:08
jdstrandkgunn: yeah, that makes sense20:08
kgunnmterry: ricmm is in malta this week with kidney stones i hear ...wonder if rsalveti might know how/where code is to turn off sensors20:08
mterryrsalveti, poke about your knowledge of any turning-off-sensors-for-unity8 code we have?20:09
kdub_AlbertA, yeah, lucky me :)20:09
rsalvetiqtubuntu-sensors?20:10
kdub_but really, this isn't 'rewire the recomposition signalling' its 'make it possible to replace the compositor easily'20:10
rsalvetimterry: not sure if we have an easy way to disable it, Saviq would know20:10
rsalvetibut the bridge is in qtubuntu-sensors afaik20:10
mterryrsalveti, hrm, a quick grep doesn't see the string unity8 in there20:11
mterryrsalveti, (I'm trying to solve a problem that is apparently some piece of code examining the process name for 'unity8')20:11
rsalvetino, that would be the just for qt, that implements the bridge between qml and platform-api20:11
rsalvetihm, weird20:12
rsalvetiyeah, guess ricmm would be your guy20:15
dandradermterry, what sensor are you talking about?20:16
greybackmterry: you sure it's unity8? Or just something that loads the ubuntumirserver QPA plugin?20:17
mterrydandrader, sensors.qcom and whatever Binder_2 both stay at ~10% CPU (along with the greeter).  ricmm said we had some code to disable sensors for unity8, which I'm guessing is related?20:17
greybackmterry: have you profiled the process to see what method is being called so much?20:17
mterrygreyback, I tried to use callgrind, but that slowed it down enough (even on lowest settings) that lightmd killed it.  I haven't gotten to the point of recompiling lightdm with larger timeouts20:18
greybackmterry: try "perf"20:18
mterrygreyback, oh yeah?  Lighter weight?20:19
greybackmterry: *much*20:19
mterrygreyback, OK, will do20:19
greybackmterry: this is a note I have on how to get/use it, hope it helps: http://pastebin.ubuntu.com/7502908/20:20
greybackimportant to install the linux-*-tools package that suits the kernel20:21
mterrygreyback, OK thanks!20:22
dandradermterry, well, there's platforms/ubuntu/ubuntucommon/screen.cc:127:"void QUbuntuScreen::toggleSensors(bool enable) const {" in qtubuntu that I think is used by both ubuntumirserver (unity8) and ubuntumirclient QPAs, if that's any help20:22
greybackdandrader: looking at the same :)20:23
mterrydandrader, qtubuntu does check for "unity8" as a process name, but it doesn't seem to be used anywhere!  I added debugging output and changed the check to look for unity8-greeter too, but no go20:25
mterrygreyback, just filed https://code.launchpad.net/~mterry/unity-mir/no-focus/+merge/220718 for the volume up/down issue I've been seeing20:26
* mterry is now laser focused on cpu bug20:26
greybackmterry: no, it does no such thing. Unity8 loads the server plugin supplied by qtubuntu. qtubuntu does listen for orientation events somehow20:27
mterrygreyback, grep qtubuntu for unity8, it does do a check.  But I've been told that is dead code?20:27
mterrySurfaceFlinger support I guess20:27
greybackmterry: well I'm surprised. Yes it's checking the process name, and disabling sensors if it is unity820:29
mterrygreyback, so while I think that's dead code, I'm worried that code got copied to some other component and is the source of my current problems20:29
greybackmterry: that piece of code is very much being used still.20:30
mterrygreyback, !  I must be crazy then, because I put a qDebug() line in there and couldn't see it20:31
greybackmterry: I must be mistaken. qtubuntu code a maze20:33
mterrylet me double check20:33
greybackmterry: sorry to divert, but could you please link a bug to https://code.launchpad.net/~mterry/unity-mir/no-focus/+merge/22071820:41
mterrygreyback, done20:43
greybackmterry: thanks!20:44
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
robert_ancellWhat are edge_flags from MirMotionEvent?22:07
robert_ancellRAOF, are you getting loads of Cyrillic spam too?22:08
kdub_just went to launchpad.net and expected to see the mir homepage22:47
kdub_we should look into fixing that22:47
kdub_:P22:47
RAOFrobert_ancell: Dunno, but MirMotionEvent will probably be significantly different once we've worked out what we want in it :)23:03
robert_ancellha!23:04
RAOFrobert_ancell: Not too much Cyrillic spam, no.23:04
robert_ancellI get tonnes of Cyrillic spam to my Canonical account23:04
RAOFThis is the stuff that makes it through the filters, right? I've not checked my Spam folder for the Canonical account in forever.23:11
robert_ancellNo, the filters catch it all23:21
robert_ancellbut I get enough false positives that I have to check the spam folder23:22

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