/srv/irclogs.ubuntu.com/2013/06/18/#ubuntu-mir.txt

RAOFkdub_: Pong00:08
RAOFYay! I can boot all the way to X again!00:08
kdub_RAOF, so, the gbm-cleanup branch is ready to go from the mir side00:10
RAOFAnd you'd like a review?00:11
kdub_i guess I'm just trying to figure out how to land the mesa cleanup without disrupting too many people :)00:11
RAOFWhich mesa cleanup? Have I accidentally merged something that breaks the world?00:11
kdub_well, that mp for mesa probably will break things if its pushed to the package00:12
RAOFOh, really? It didn't look like it, but I didn't actually test that :)00:12
kdub_ah, well then I should just land ~kdub/mir/gbm-cleanup and everything will be ok then00:13
RAOFIt probably isn't in the mesa packaging yet, though; it got merged to egl-platform-mir, which requires an extra step.00:15
kdub_RAOF, right, i suspect that the packaging hasn't picked up the change00:15
RAOFI can make it so that the packages will do the right thing though.00:15
kdub_RAOF, well, i guess lets do that00:17
RAOFYeah.00:17
kdub_and then land gbm-cleanup right after they hit the ppa00:17
kdub_really, i think "native_display.h" should probably be 'upstreamed' out of mir at some point00:18
kdub_RAOF, close to my eod, should we do the transition tomorrow?00:55
RAOFkdub_: I can probably walk it through myself.00:55
RAOFIt's just landing gbm-cleanup and the mesa changes at the same time, right?00:56
kdub_right00:56
RAOFYeah, I can do that.00:57
RAOFOh.00:57
RAOFCan you push a commit to gbm-cleanup bumping the version to 0.0.4? If not, I'll do that.00:57
kdub_ah, sure00:58
kdub_RAOF, done01:04
RAOFbitchn.01:04
duflukgunn: Got more details for https://bugs.launchpad.net/mir/+bug/1191937 ?01:35
ubot5Launchpad bug 1191937 in Mir "loss of x acceleration when xmir is loaded" [Critical,Triaged]01:35
kgunnduflu: only details i have are...bregma was able to run xmir on an intel core w/ amd gpu01:36
kgunnit was super slow, and dash is opaque01:36
kgunni believe he's still running it....if you needed debug/log info01:36
duflukgunn: Erm, sounds like Unity falling back rather than Mir. Maybe like https://bugs.launchpad.net/nux/+bug/106676401:37
ubot5Launchpad bug 1066764 in Nux "Unity fails to load on old hardware (compiz enabling LLVMpipe has no effect and Mesa tries to use hardware still)" [High,In progress]01:37
kgunnduflu: could be....altho (this may be a bad assumption on my part) gpu acceleration was there01:39
kgunnprior to loading xmir01:39
kgunnbregma ? ^01:39
duflubregma? If you have details please add to https://bugs.launchpad.net/mir/+bug/119193701:39
ubot5Launchpad bug 1191937 in Mir "loss of x acceleration when xmir is loaded" [Critical,Triaged]01:39
bregmaI do not have an AMD GPU01:40
dufluThat's good news for me :)01:40
kgunnbregma: my bad01:42
robert_ancellRAOF, are you just copying the lightdm package into the system-compositor PPA?01:43
RAOFrobert_ancell: Yes.01:53
RAOFbregma: Can you add the output of “LIBGL_DEBUG=verbose glxinfo” to that bug - that'll give some idea of what's failing. (My guess is that it's lightdm failing to set permissions on the dri device properly)02:00
bregmahmm, if I close the lid on this laptop networking goes away and never comes back, that's new...  unrelated to Mir, but new in the last couple of days...02:06
RAOFNot super useful :)02:08
bregmadone and attached02:15
bregmaopening a terminal and using the Unity switcher are painfully slow, more signs of missing hardware acceletration02:16
bregmabut flash games run OK in the browser :)02:16
=== fdr is now known as rafaelfdr
RAOFRight. As I suspected, it's a permissions issue on /dev/dri/*02:22
=== rafaelfdr is now known as fdr
RAOFrobert_ancell: https://bugs.launchpad.net/mir/+bug/1191937 is a “lightdm failed to set permissions to /dev/dri/* correctly” bug. I remember this happening before, and you fixed it. Do you happen to remember how? :)02:28
ubot5Launchpad bug 1191937 in Mir "loss of x acceleration when xmir is loaded" [Critical,Triaged]02:28
robert_ancellRAOF, lightdm doesn't set any permissions - we did see similar issues when console kit support wasn't working02:29
RAOFI guess that's what I mean.02:29
robert_ancelland the sympton for that was random session behaviour and erorrs in .xsession-errors02:30
RAOFConsoleKit would also be setting up the permissions for /dev/dri; they're meant to be rw- for the active session, and --- for everyone else.02:31
robert_ancellRAOF, so it changes permissions on VT switch?02:34
RAOFCorrect.02:34
RAOFOh.02:34
RAOFI see where you're going here :)02:34
robert_ancellRAOF, well, that shouldn't matter for the single login case because there is no VT switch02:35
RAOFExcept that it might not set the permissions *at all* if you don't VT switch?02:35
robert_ancelland it's normal for the session to be run by the lightdm user, then the user of the session logged into02:35
RAOFActually, I don't know whether it changes permissions on VT switch, or whether you can tell it that the current VT is where the logged in user is.02:35
robert_ancellRAOF, so my current /dev/dri is root.video after booting using xmir02:36
robert_ancellIs that what you expect?02:36
RAOFrobert_ancell: How about getfacl /dev/dri/card0?02:37
RAOFBecause *that's* got user:chris:rw-02:37
robert_ancell# file: dev/dri/card002:37
robert_ancell# owner: root02:37
robert_ancell# group: video02:37
robert_ancelluser::rw-02:37
robert_ancellgroup::rw-02:37
robert_ancellother::---02:37
RAOFHm. Ok.02:38
RAOFAnd you presumably don't have any acceleration.02:38
robert_ancellIt seems laggily so02:38
robert_ancellWhat is it on a normal boot?02:38
RAOFI'm in a normal boot, and mine contains user:chris:rw-02:39
robert_ancellRAOF, I can't see anything in the consolekit source that might change this02:39
robert_ancellor GDM02:40
RAOFI know that *something* applies the correct ACL for the user of the active VT.02:40
robert_ancelludev?02:40
RAOFI'm pretty sure that's consolekit (when we're using consolekit, obviously)02:40
RAOFudev doesn't know anything about VT switching.02:40
robert_ancellwhich we aren't anymore02:40
RAOFRight. Which would presumably be why XMir works for me; I'm on Saucy.02:41
robert_ancellRAOF, but how would the ownership changes be synchronised?02:41
RAOFOh, are you on saucy now?02:41
robert_ancellyes02:41
RAOFHm. And it still doesn't work. Odd.02:41
robert_ancellRAOF, this is from a fresh boot, It seems accelerated if I stop lightdm, then start it with xmir02:41
robert_ancellkgunn, are you restarting lightdm from a console or changing lightdm.conf and restarting your machine?02:43
kgunnrobert_ancell: so first i try restart lightdm from the console....which just results in the blinking cursor (x console? )02:44
kgunnthen i restart02:44
kgunn(hard boot)02:45
kgunnnote, i'm on saucy as well02:45
kgunnwhen i say "first i try"...meaning right after i change lightdm.conf02:46
kgunnand the hard boot results in the "you're running in low gfx mode"02:46
RAOFHm, ok.02:48
RAOFI'll let these builds finish and then see if I can reproduce.02:48
kgunnnot sure if i said this...but i'm only toggling the lightdm.conf type=unity02:49
RAOFkgunn: Are you running from ppa:mir-team/staging or from ppa:mir-team/system-compositor-testing?02:49
kgunnRAOF: today...changed to the system-compositor-testing02:49
kgunn(which i understand is supposed to be a stable collection)02:50
kgunn(vs the staging that is)02:50
RAOFCorrect.02:51
RAOFOk. I'll pull from there, and see what falls out.02:51
RAOFrobert_ancell: Does the lightdm in the archive handle type=unity?02:52
robert_ancellRAOF, no02:52
RAOFOk. So we need to bump the version of lightdm in the PPAs so that it supersedes the archive version.02:53
RAOFkgunn: What does ‘apt-cache policy lightdm’ say+02:53
RAOF?02:53
=== jono is now known as Guest3821
kgunnRAOF: 1.7.2-0ubuntu103:10
RAOFRight. That's why yours isn't working. That version of lightdm doesn't know how to XMir.03:11
kgunnis 1.7.0 the only version?03:13
kgunnRAOF: so i'm confused....shouldn't the system-compositor-testing ppa be dictating my lightdm version?03:14
RAOFOnly if you've done the apt-pinning dance.03:15
RAOFI've made it so that all the XMir bits have a higher version than what's in the archive, but I don't have the ability to do the same for lightdm.03:15
robert_ancellkgunn, we should be on 1.7.2 but it looks like jenkins is not CI/autolanding LightDM at the moment03:18
kgunnrobert_ancell: confused by your statement....i am on 1.7.2....03:22
robert_ancellkgunn, you said " is 1.7.0 the only version"03:22
RAOFRight, but the autolanding infrastructure should be autolanding 1.7.2+mir bits into the staging PPA.03:23
robert_ancellRAOF, yeah, but it appears it's not anymore03:23
robert_ancellduflu, have you ever checked the lightdm logs after it fails to start?03:25
kgunnRAOF: robert_ancell ...when you say "1.7.2+mir bits"....do you mean lightdm trunk + lightdm patches just for mir ? or something else ?03:26
duflurobert_ancell: Working through morning jobs and getting xmir on saucy yet03:26
dufluI haven't used xmir for some... months :)03:26
RAOFkgunn: lightdm trunk + lightdm patches for mir.03:26
robert_ancellkgunn, more specifically - lp:~mir-team/lightdm/unity is the branch that has the unity (i.e. mir) support03:27
kgunnRAOF: robert_ancell: thanks...making sense03:27
kgunnrobert_ancell: hence your point, ci not picking it up...so whatever is in the ppa is probably old (?)03:28
robert_ancellduflu, ok. That bug has quickly become a "me to" bug for any issue in plymouth/lightdm/xmir/unity-system-compositor03:28
robert_ancellnot starting03:28
robert_ancellkgunn, it's one version old03:28
robert_ancellRAOF, do you get a purple box where the launcher should be (if launcher set to autohide) that redraws if you move the mouse over it?03:30
RAOFrobert_ancell: In XMir?03:30
robert_ancellyes03:31
RAOFNot last time I tried, but all my builds have now finished and I'm in the process of switching to XMir. So, I can give you an answer soon :)03:31
RAOFHowever that sounds a lot like the launcher misrendering that I've experienced with llvmpipe.03:32
robert_ancellRAOF, http://imgur.com/S7Ei9iK03:32
RAOFYup, that's some crazy interaction between llvmpipe, compiz, and damage.03:33
RAOFrobert_ancell: Care to review/approve https://code.launchpad.net/~raof/mir/gbm-cleanup-extra/+merge/169972 ? It's a couple of packaging commits on top of https://code.launchpad.net/~kdub/mir/gbm-cleanup/+merge/169306, which has already been approved.03:34
robert_ancellok03:35
robert_ancellRAOF, why is llvmpipe running? I guess I'm not accelerated?03:35
RAOFYeah, that would be why.03:36
robert_ancellRAOF, approved - you better land it before the existing trunk is built otherwise it wont make any difference...03:37
RAOFrobert_ancell: Whyso? Oh.03:38
* RAOF hadn't noticed duflu approving the old branch.03:39
RAOFOk. I've un-approved kdub's gbm-cleanup, and it looks like I've done that before the autolander kicked in.03:40
kgunnsee you guys tomorrow03:46
dufluBye kgunn03:47
duflurobert_ancell: I assume that's an important branch if only one reviewer :)03:47
RAOFduflu: It's the branch that got previously reviewed, plus 2 trivial commits.03:50
dufluRAOF: Oh. I recommend setting the prerequisite field in future to clarify that in LP03:50
RAOFOk. Does that tell everyone “this should land *in stead of* the prerequisite branch”?03:51
dufluRAOF: Nah, no such option :/03:57
dufluBut mebbe at least reject the old one first :)03:57
dufluOtherwise some idiot like me might review and approve it03:58
RAOF:)03:58
robert_ancellRAOF, those dri permissions are very weird. I can confirm it doesn't have 'bob' when I'm using xmir, but it does when I'm using vanilla X. However - if I log in as 'belinda' it still only has 'bob' explicitly listed in the permissions04:21
robert_ancellAnd it never lists 'lightdm' but the greeter still works04:22
RAOFDoes the greeter try to open /dev/dri?04:22
RAOFI wouldn't expect so.04:22
robert_ancellRAOF, so it's only once you try and open a GL app basically?04:22
robert_ancellalso, note it added me even though I hadn't logged in04:23
RAOFIt only *matters* once you try to open a GL app (as non-root)04:24
RAOFIt should be correctly set up first, though.04:24
* RAOF goes to see how u-s-c is broken on his system, now that everything's built and installed!04:24
RAOFOk. Without rebooting, everything works fine.04:27
RAOFBut then again, I still have the correct acl set.04:28
RAOFSomehow.04:28
RAOFHm. And XMir works fine for me!04:35
RAOF(Modulo the not-starting-on-boot-correctly bit, which I can now reproduce)04:35
RAOFHuh. Possibly because I still have consolekit installed.04:38
RAOFrobert_ancell: There's no way to change the parameters given to unity-system-compositor by lightdm without changing the code, is there?04:41
robert_ancellRAOF, no, what would you like to send?04:41
RAOFI'd like to enable error reporting :)04:42
RAOFBecause the default appears to be "log nothing"04:42
RAOFI was wondering why /var/log/lightdm/unity-system-compositor.log always seemed to be empty!04:43
RAOFOh, that's right. There's no autolanding happening for lightdm/unity.04:45
RAOFHuh.04:54
robert_ancellRAOF, I've pinged QA about that, hopefully will be sorted when Martin awakes04:55
robert_ancellRAOF, please do enable reporting!04:55
robert_ancellRAOF, did you see what happened when it wasn't starting on boot?)04:56
RAOFI haven't enabled the reporting yet, I was trying to reproduce the no-permissions problem.04:56
robert_ancelllaters05:00
tvossgood morning :)05:16
tvossRAOF, ping05:17
RAOFtvoss: Pong05:17
tvossRAOF, hey there :) how is it going?05:17
RAOFPretty well.05:17
tvossRAOF, I retriggered builds for some of the packages in system-compositor-testing yesterday, we were hitting a broken builder05:17
RAOFAh, ok. That's why i386 was built this morning :)05:18
RAOFThanks!05:18
tvossRAOF, yw :) however, I'm hitting the plymouth issue with both ppas and unity is running unaccelerated05:18
tvossRAOF, I can, however, get an accelerated variant in some hackish way05:19
RAOFSo, I'm reproducing the unaccelerated bit.05:19
RAOFWhich is really odd.05:19
RAOF*Sometimes* when starting lightdm it'll remove you from the acl on /dev/dri/*, which breaks acceleration.05:19
tvossRAOF, I love these issues05:20
* duflu thinks tvoss loves the wrong things about life05:20
RAOFThe first couple of times everything worked!05:20
tvossRAOF, so the point is: my hackish way to get acceleration is by _not_ restarting after installation but just restarting lightdm05:20
duflutvoss: Yep that's what I've been doing since January :/05:20
RAOFYeah, that should work. Also logging in to a VT and starting lightdm should *sometimes* work.05:21
tvossRAOF, I *think* lightdm tries to signal plymouthd in some way and does not succeed05:21
RAOFI'm not sure what conditions are required for that to work. Maybe having an ssh connection?05:21
tvossRAOF, nope, I'm switching to a VT and call sudo service lightdm restart05:21
RAOFEven after a reboot that should sometimes work.05:23
RAOFBut sometimes not!05:23
tvossRAOF, where is the race then?05:23
tvossRAOF, any gut feeling?05:23
RAOFOh, you're talking about the possibly plymouth race. I guess that's going to be plymouth not dropping DRM master soon enough, but I'm rebuilding lightdm so that I can get some actual debug logs.05:24
RAOFI was talking about the unaccelerated bits.05:24
tvossRAOF, let me know if I can help :) I'm pretty fluent in resurrecting my system now05:24
tvoss@unaccelerated: that's weird, why could that even happen? lightdm is setting us up for accel, right?05:24
RAOFNo, ish.05:25
* tvoss branches kwin05:25
tvossRAOF, ish :)05:25
RAOFWhat *should* be happening is the login process thingy (consolekit or logind) should be setting the correct ACL on /dev/dri/* (ie: the user of the current VT should have access).05:26
RAOFat interacts with lightdm, obviously, as lightdm is doing the login bity.05:26
tvossRAOF, hmmm ...05:27
dufluIs it right that unity-system-compositor depends on an exact version of libmirserver0? This means whenever the former fails to build, the previous build is uninstallable because libmirserver0's build number has incremented05:28
RAOF(if you run getfacl /dev/dri/card0 you'll get user:tvoss:rw- in the output if everything's working)05:28
RAOFduflu: Yes. Because the alternative is that unity-system-compositor inexplicably segfaults whenever libmirserver changes ABI, which is frequently.05:29
tvossduflu, that's why we have system-compositor-testing, which is a "snapshot" of staging that avoids that problem05:29
dufluRAOF: Oh yes. I forgot it depends on the less-settled libmirserver rather than client05:30
* duflu changes PPAs then05:32
dufluRAOF: Umm, Jenkins just marked this as complete. Is it really? https://bugs.launchpad.net/mir/+bug/113055305:43
ubot5Launchpad bug 1130553 in Mir "Mir does not support eglSwapInterval(0)" [Medium,Fix committed]05:43
RAOFOnce the corresponding mesa has built, yes.05:44
tvossRAOF, can you give me a status of buffer_age, that is, take a look to what degree we have it wired up?05:50
RAOFtvoss: Looks like it's not exposed to EGL.05:52
tvossRAOF, okay, thanks05:52
dufluThat reminds me... When I wrote fingerpaint and needed single-buffering, I thought a nice alternative might be to have some client-side visibility of aging buffers. It would have been much more efficient if I knew the API would guarantee persistence of some sort...?05:52
tvossRAOF, is it a huge benefit to wire it up now?05:53
duflu... that is after-all the intention of buffer_age (http://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_buffer_age.txt)05:56
dufluRAOF: I can deduce that X-something is meant to update the DRI device perms. But what?06:37
dufluIt can only know to do that after a user as logged in. So maybe it's a hook in the X graphics driver we broke?06:37
dufluRAOF: I can deduce that X-something is meant to update the DRI device perms. But what?06:40
dufluIt can only know to do that after a user as logged in. So maybe it's a hook in the X graphics driver we broke?06:40
RAOFNo, it's something to do with our login-tracking infrastructure.06:40
RAOFBecause logging in to a VT sets the acl correctly.06:41
dufluRAOF: Where does such infrastructure live?06:41
RAOFlogind or consolekit, I believe.06:41
duflulibck-connector0?06:41
RAOFOn Saucy we shouldn't be using consolekit, so logind.06:42
RAOFWooo!06:43
RAOFloginctl is the command to check, I think.06:44
RAOFHm3.06:44
RAOFI seem to have three login sessions, one of which does not have a SEAT attached.06:44
RAOFSo, now that I've got unity-system-compositor doing some loging, I'm going to reboot and see what's happening when it doesn't work on boot.06:45
RAOFOk. So, unity-system-compositor dies with no output before “I0618 16:52:50.382107  2032 glog_logger.cpp:80] [graphics] Successfully setup native resources.”06:55
RAOFAlso, it looks like XMir sessions get registered with logind but not associated with a seat, which is plausibly the reason for the permission problem.06:56
RAOFIt's Zoë06:56
RAOF-time, but I'll come back and see what's what when that's done.06:56
tvossRAOF, thx for the feedback :) can you ping me once back?07:44
RAOFtvoss: Back for 20 minutes or so before the next round of Zoination.07:46
tvossRAOF, how can we move ahead while you are offline? Trying to get a quick tasklisk down07:47
RAOFtvoss: For the plymouth-doesn't-die-on-boot thing, tracing the code to see what could cause unity-system-compositor to bail *before* it would normally log “[graphics] Successfully setup native resources” would be the way to go.07:48
tvossRAOF, noted down07:48
tvossRAOF, got a  branch up that people can get started with or is this in trunk?07:49
RAOFFor the “No accel in XMir” problem, checking the logind documentation/source to see how/where/why it doesn't set the /dev/dri/* acl.07:49
RAOFHm, no branch yet. Let me push those up.07:49
tvossRAOF, ack07:50
RAOFSo, getting debugging info out of unity-system-compositor requires lp:~raof/mir/unity-system-compositor-commandline-passing07:52
tvossRAOF, cool, thanks07:52
duflutvoss: No accel: https://bugs.launchpad.net/mir/+bug/119193707:53
ubot5Launchpad bug 1191937 in Mir "loss of x acceleration when xmir is loaded" [Critical,In progress]07:53
dufluPlymouth CPU: https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/119205107:53
ubot5Launchpad bug 1192051 in plymouth (Ubuntu) "plymouthd spinning at 100% CPU" [High,New]07:53
RAOFtvoss: Also needs lp:~raof/mir/lightdm-enable-u-s-c-logging07:53
tvossduflu, great, thx07:53
RAOFSo, it looks like pam-systemd is responsible for setting up the seat thingies.07:59
RAOFHm. Or maybe not?08:01
tvossRAOF, who might be able to clarify here?08:02
RAOFpitti knows systemd best, I think.08:02
RAOFSo, I think dumping the dbus traffic to org.freedesktop.login1 would be instructive.08:09
tvossRAOF, cool08:09
tvossalan_g, ping08:14
RAOFGargh, logind.08:19
RAOFVT != session.08:19
alfRAOF: tvoss: duflu: Have you seen any problems with VT switching with Mir in saucy? Every time I try to VT switch my graphics hang... (everything worked fine in raring) :/08:27
duflualf: I did have that bug Alan fixed but haven't tested the fix since it landed(?)08:28
duflualf: Also I logged: https://bugs.launchpad.net/mir/+bug/118977008:28
ubot5Launchpad bug 1189770 in Mir "[regression] Killing Mir with Ctrl+C often leaves the screen blank and difficult to recover " [High,New]08:28
duflualf: The client's meant to hang right? So you mean your host hangs?08:29
alfduflu: my whole system hangs, sometimes I can't even ssh :/08:30
duflualf: I did see one intel GPU hang kernel message (and actual hang) today08:30
dufluBut only one08:30
dufluon saucy08:30
alan_gtvoss: pong (sorry missed you)08:31
* duflu wonders why we're not considering the bug to be in lightdm as he looks at the lightdm source (seating logic)08:38
dufluor src/seat-unity.c ;)08:42
hikikoquestion:09:00
Stskeepsg 2109:00
hikiko(hello!)09:00
hikikoI am checking the demo_client_accelerated.cpp09:01
hikikothere's no MirDisplay or something? you create windows using egl (EGLDisplay) and pass the egl surface to mir?09:01
hikikoit seems that the client does the rendering using EGL :s but I might be wrong09:04
dufluhikiko: "Window" creation:     surface = mir_connection_create_surface_sync(connection, &request_params);09:10
hikikooh yes there's MirSurface :) sorry!09:11
RAOFAha!09:26
RAOFget_seat_from_display in systemd/login/pam-module.c09:26
tvossalan_g, RAOF is looking into the issue, too09:27
* alf just recovered from another saucy graphics crash...09:27
alan_gtvoss: should be move discussion where he can see it?09:28
alan_g*we09:28
tvossalan_g, sure09:28
duflualf: Just saw: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/761065/comments/8609:28
ubot5Launchpad bug 761065 in linux (Ubuntu Natty) "[Sandybridge] Spurious "*ERROR* Hangcheck timer elapsed... blt ring idle" messages in dmesg when using compiz" [Medium,Fix released]09:28
dufluRAOF: Oh good. I was trying to learn about "seats" and systemd09:28
duflualan_g, the discussion is open here: https://bugs.launchpad.net/lightdm/+bug/119193709:30
ubot5Launchpad bug 1191937 in Light Display Manager "loss of x acceleration when xmir is loaded" [Undecided,Confirmed]09:30
alfduflu: Thanks, but this happens on radeon. This time I just tried to stop a mir client and server and the whole system froze :(, plus I can't get find any useful log messages about what happened...09:30
dufluHurray for new kernels and alpha distros09:30
RAOFSo, I think I see where it's going wrong. pam-systemd tries to do a reverse-lookup from the DISPLAY socket to the VT, and hence the seat. It does this by looking up the controlling tty of the xserver process. I don't _think_ that will be a VT in the nested case, so this fails.09:34
RAOFAnd now, dinner.09:35
alan_gRAOF: just been looking at failures in EGLHelper::setup (i.e. before the "Sucessfully setup" log) - the exceptions would be caught in main() and reported to std::cerr. Am I right in thinking this won't be captured?09:38
* tvoss is compiling piglit :)09:41
* tvoss notes: running piglits sanity tests results in unity crashing :)09:48
pittitvoss: hello09:54
tvosshey pitti :)09:54
tvosspitti, we are running into an issue where hardware accel for mir as the system compositor is not working due to the acl for /dev/dri* not being setup correctly09:55
tvosspitti, RAOF had tracked it down to: <RAOF> So, I think I see where it's going wrong. pam-systemd tries to do a reverse-lookup from the DISPLAY socket to the VT, and hence the seat. It does this by looking up the controlling tty of the xserver process. I don't _think_ that will be a VT in the nested case, so this fails.09:55
tvosssystemd/login/pam-module.c09:56
pittitvoss: so that's the per-user-session MIR instance? that runs as the user?09:57
pittior is that the system-wide compositor?09:57
tvosspitti, nope, that's the system-wide Mir session, being started by ligthdm09:57
pittiwhich runs as some system user?09:57
tvosspitti, yup09:57
pittiby lightdm? that sounds strange09:57
pittiI thought we'd have MIR running right from the start, for booting and lightdm09:58
tvosspitti, that's the goal, right now, it's lightdm starting Mir09:58
tvosspitti, for that, we have https://launchpad.net/unity-system-compositor09:58
tvosspitti, which takes over the seat essentially09:58
pittitvoss: which user is that running as?09:58
tvosspitti, checking ...09:59
pittitvoss: i. e. not "root" and not "martin", but it would be a system user like "lightdm" or "mir"?09:59
tvosspitti, yup09:59
pittiok, this most likely doesn't have a PAM session10:00
RAOFalan_g: No, stderr should be captured by the log.10:00
pittiand also, session tracking wouldn't really apply to this AFAICS10:00
pittiso it seems to me that it would be prudent to put this system user into the video group?10:00
RAOFhttp://paste.ubuntu.com/5776654/10:01
RAOFpitti: c3 is my user XMir session, as started by lightdm. c1 is a VT login.10:02
RAOFpitti: And the problem is that - if I don't have a VT session logged in - my user isn't added to the /dev/dri/* acl, because logind doesn't have it associated with a seat, and logind only sets the acls for seated-things.10:03
pittiright; we don't want ACLs for non-seat logins such as cron or ssh10:03
pittiRAOF: so lightdm starts a session which is basically xmir, which then starts the "real" session (like unity)?10:04
RAOFpitti: lightdm basically starts Xservers as normal.10:04
RAOFpitti: It's just that lightdm *first* starts the system-compositor, doesn't VT switch, and hooks all the Xservers up with unity-system-compositor.10:05
pittiRAOF: ah, so the concept of session tracking via observing VT switches doesn't work any more10:06
RAOFpitti: Correct.10:07
RAOFAll the sessions run on the same VT.10:07
tvossmlankhorst, ping10:07
pittiRAOF: so I guess ATM all sessions are "active" at the same time10:09
RAOFpitti: Correct - as you can see, both my VT session and XMir session are active, because they both happen to be on VT 1.10:09
pittiRAOF: is there an equivalent of $DISPLAY, i. e. how does a Mir-aware program know which session it belongs to?10:12
mlankhorsttvoss: pong10:12
pittiRAOF: I guess we'd need to teach logind about that method then, unless we still have $DISPLAY (that might even be enough for the XMir case)10:12
RAOFpitti: We still have $DISPLAY (as you can see from my output), but I *don't* think you can reverse map $DISPLAY to the VT it's running on.10:13
RAOFpitti: At least, it looks a lot like pam-systemd as it currently stands cannot do that.10:13
pittiright, that's where things go wrong10:13
pittiRAOF: are you sure the problem is in the PAM module?10:13
pittiRAOF: that just tries to separate the cases of "VT given" from "display given", and passes it as two separate arguments to CreateSession10:14
mlankhorstRAOF: can you accept the packages still in new? https://launchpad.net/ubuntu/precise/+queue?queue_state=010:14
RAOFpitti: No, but the output of loginctl suggests that the session was set up without a VT set.10:14
pittiRAOF: I had thought the problem is in logind.c itself, in the actual session/seat tracking10:14
RAOFmlankhorst: Do they need to be in main, or universe?10:15
mlankhorstmain10:15
RAOFmlankhorst: They need to be in main, don't they. Cool.10:15
duflupitti: We have hidden the information (clients should pass path NULL) but it is always using /tmp/mir_socket for now10:15
dufluNo environment is used10:16
RAOFmlankhorst: Done.10:16
mlankhorstthanks!10:17
RAOFWe're likely to end up either with an environment variable or just a well-known path. I think we're more likely to end up with the latter.10:17
pittiRAOF: hm, so we are only ever going to have one VT for everything, we can't use the VT number to track sessions10:17
dufluPossibly both eventually. But I was trying to keep the path a secret to avoid hard-coded chaos10:18
RAOFIndeed.10:18
pittiRAOF: hence my feeling that this needs to be changed in the active session tracking10:18
RAOFOh, we *also* need to change the active session tracking.10:18
RAOFBut we need that to support multi-user.10:18
RAOFWe need "actually associate with a seat" for it to work at all ;)10:18
pittifor seat, yes10:19
pittiRAOF: that will only cover devices which have per-seat ACLs though, like /dev/dri10:20
pittinot the per-session ones like audio10:20
pitti(or usb)10:20
RAOFBut that's ok because all sessions are treated as active :)10:20
pittinot really10:21
pittiwe only want the active session to have access to audio devices, USB sticks, scanners, cameras and the like10:21
RAOFOh, yes.10:21
pittiotherwise there wouldn't be a clear "owner" of them, and concurrent access10:21
RAOFBut for a first go, having a single user have access to those things is nice!10:21
* duflu thinks these guys have it under control and goes to make dinner10:21
pittiyes10:21
pittiRAOF: so the problem there is that the xmir process doesn't have any tty associated to it?10:24
RAOFThat is my suspicion. I haven't checked that (and it's 8:30 here, so I'm not likely to tonight :))10:24
pittiRAOF: you can check the xmir process' /proc/pid/stat10:28
pittithe TTY is the 4th number after the state ('R')10:28
RAOF0, apparently.10:29
RAOFWhich should be a valid TTY.10:29
pittino, it's "nothing"10:29
pittithat's a device number10:29
pittii. e. a major/minor in one int10:29
pittie. g. my bash has 34825, which is major 136, minor 910:29
pittii. e. /dev/pts/910:30
pittitty would be major 4, i. e. 1024+ttynumber10:30
RAOFAh, right.10:30
pittimy X process has 1031, i. e. tty710:30
RAOFYeah, no tty for xmir.10:30
pittiok, that's a bit odd10:31
pittiRAOF, tvoss ^ so that seems strange for a process not not have any tty/pty; is that deliberate?10:34
pittiphone, brb10:35
tvosspitti, wrong person to ask10:35
* tvoss that is10:35
RAOFpitti: No, that actually seems perfectly sane - XMir doesn't open a tty, so it won't have a controlling tty.10:42
RAOFX would normally open a tty in order to do VT switching, but XMir can't do that.10:43
pittiok, RAOF is gone10:48
pittiso, I'll make some investigations how that could happen; I'm not that proficient in that tty/pty area10:49
didrocks(told the guy knowing on which major block device numbers are using the ttys)10:50
didrocksapart if you cheater with ls -l /dev/tty7, but I would be disappointed :)10:50
ogra_note that the ubuntu touch kernels largely dont have VT support enabled10:57
ogra_(there are no /dev/yyz[0-9] at all10:57
ogra_)10:57
ogra_err10:57
ogra_tty10:57
=== greyback is now known as greyback|lunch
alan_g\o/ My desktop finally booted a saucy image12:13
=== greyback|lunch is now known as greyback
=== francisco is now known as Guest7324
alfalan_g: Have you tried using clang on saucy?13:48
alan_galf not yet13:48
alfalan_g: ok, I am getting stddef.h cannot be found errors13:49
alan_galf: I've just got to the point of being able to build g++/naive on my desktop - will try clang next if it helps13:52
alan_galf: just a thought - you did vape the cmake cache first?13:52
alan_gHmm - "4 tests failed"13:53
alfalan_g: no haste, it's not blocking me, just wondering if you had seen it. I did a build in a clean dir, plus just compiling a trivial .c file fails with clang13:53
alan_gsounds like clang isn't installed correctly13:54
alan_galf: FWIW clang compiles fine for me (tests hang of course)14:18
alfalan_g: thanks, so I guess something went wrong during the upgrade14:19
alan_galf: I ended up repartitioning my system disk before I got saucy to boot14:20
alan_gSo, for once, I've a pretty clean install14:20
alfalan_g: do you have clang 3.2 or 3.3?14:21
alan_g3.214:22
alfalan_g: can you please try and pastebin the output of "clang -v bla.c" (where bla.c includes eg. stdio.h)14:23
alan_galf: https://pastebin.canonical.com/93010/14:28
alfalan_g: thanks14:29
alfalan_g: heh, just removing and reinstalling clang fixed things...14:43
alan_galf: of course. (That's the fun of upgrades)14:50
racarrtMorning15:01
kdub_morning15:03
alan_gafternoon15:07
racarr** DONE Land platform API...15:23
racarrthat was a todo for...too long15:23
tvossracarr, it's in? :)15:25
racarryep, qtubuntu or today15:26
racarrfor*15:26
tvossracarr, not bad :) not bad :)15:27
=== alan_g is now known as alan_g|afk
alfkdub_: IIRC, at some point you proposed some noexcept changes for NiceMock/StrickMock. Any update? (I updated our internal gmock and have come across the same issues again with 4.7... 4.8 works fine without any change)15:59
=== olli_ is now known as olli
kdub_alf, no, not a lot of movement upstream https://groups.google.com/forum/?fromgroups#!topic/googlemock/ZO4Q1vR7XfM16:07
alfkdub_: ok, I will apply the patch manually then16:08
=== alan_g|afk is now known as alan_g
racarralan_g: Applied your suggestion (misread them the first time ;)) to https://code.launchpad.net/~robertcarr/mir/improve-input-acceptance/+merge/16948316:40
racarrif you have time for another review before EOD16:40
racarrI have to write some acceptance tests today and was hoping to use it :D16:40
alan_gracarr: sure16:40
racarrthanks :)16:41
=== mmrazik is now known as mmrazik|afk
racarrI feel like oprah on launchpad today17:17
racarrand you get an approve! and you get an approve! and you get an approve!17:17
=== alan_g is now known as alan_g|EOD
racarrkdub_: Is there any trick for adb shell just...working weird in terms of terminal functionality? i.e. every text editor has some weird glitches17:26
racarrthat make it super hard for me to edit files on the phone17:26
kdub_no, not really... unless i'm investigating kernel crashes or something, i usually ssh in17:26
mterryracarr, I'm trying to follow http://studio.sketchpad.cc/gmY0M6iqeh but ran into a problem with boost17:27
racarrmterry: Of what sort?17:27
mterryracarr, I know!  Like nano doesn't like Enter17:27
mterryracarr, I am at the ./build -s step of unity17:28
mterryracarr, and it wants to install libboost1.49-dev, which conflicts with libboost1.53-dev17:28
racarrmterry: hmm17:29
racarrI don't have an immediate guess as to why that happened...but I think17:29
racarryou could find the explicit 1.49 dependency and just make it17:29
racarrnon explicit or 1.5317:30
mterryracarr, I see your platform-api change landed in trunk, but not yet the packaging changes to build with mir?17:30
racarrmterry: Thoe live in lp:~robertcarr/platform-api/mir-with-packaging17:30
racarrwe are doing parallel CI17:31
racarralso you can use bzr branch lp:~unity-team/unity/phablet-integrate-mir17:31
racarrinstead of phablet-tuesday now17:31
racarrXD17:31
racarrmterry: Im in the process of testing out the qtubuntu packaging build on the phone17:32
racarrbut um. had to reimage my phone17:32
racarrand building everything takes a long time17:32
racarrI really enjoy this sketchpad thing17:33
racarrXD17:33
mterryracarr, ah, looks like phablet-integrate-mir needs to merge from trunk.  It has boost1.49 in its ./build script, but trunk has fixed that17:40
mterryand by trunk, I mean unity/8.017:40
racarrah probably17:42
racarrI dont think I am in unity-team so you will have to do it locally for now17:42
racarrmterry: ^17:42
racarroh17:42
racarrI definitely am17:42
racarrmerging and what not17:43
racarrhmm17:47
racarrI need to find a base revision manually apparently17:47
racarrhmm17:50
racarr91 conflict17:50
racarrall time record17:50
racarrI think I don't understand bzr17:58
racarrI found a base revision but then apparently it becomes a 'reverse cherry pick' and loses branch history17:59
racarrand also I cant use weave merge17:59
racarroh18:04
racarrI see18:04
racarrthey literally have no common ancestory because its18:04
racarra new repo18:04
racarr-.-18:04
kdub_android drivers don't like us shuffling the buffers out from underneath them while we ignore their reference requests...18:54
=== francisco is now known as Guest75516
arssonjust manage to install unity-system-compositor and unity was gone but i have two cursors20:29
arssonyou do some strange thing in there :)20:30
tvossarsson, that's expected :)20:30
tvossarsson, raof is working on getting rid of that, it's only the hw cursor not being wired up to the X side completely, yet20:30
tvossarsson, please note that you might be running unaccelerated X right now, too, as the acl on /dev/dri* are not setup correctly (being worked upon, too) :)20:31
tvossarsson, which ppa did you use?20:31
arssonstagein20:31
arssonMir staging ppa20:32
tvossarsson, cool, thx20:33
arssonwell unity-system-compositor is not installable anymore20:33
arssonthat was quik20:33
tvossarsson, yup, the components in there rev too fast, that's why we have system-compositor-testing ppa, same team20:34
arssondo i dare to try that?20:36
tvossarsson, not yet, you should wait for the permission issue to be fixed20:37
tvossarsson, I'm waiting for that, too :))20:37
arssonok. lets watch porn then! :)20:38
tvossarsson, I'd rather prefer wine, but have fun :)20:39
kgunn:)20:46
kgunnrobert_ancell: anything i can do here to help debug or try20:48
robert_ancellkgunn, you get the lock up on boot right?20:49
kgunnrobert_ancell: depends on definition of lock up....20:50
robert_ancellfails to get to greeter?20:50
kgunni was getting to the little gui...."you are running in low gfx mode".....but effectively stuck there20:51
kgunnrobert_ancell: for sure...fails to get greeter20:51
robert_ancellkgunn, ugh, I haven't seen that20:51
robert_ancellI'm trying to track down plymouthd using 100% CPU and the system-compositor failing to start20:53
kgunnrobert_ancell: yeah...but didn't we determine i had an incompat lightdm mismatched20:53
kgunnrobert_ancell: wonder if i need to ppa-purge....start fresh20:54
* kdub_ was hoping we didn't have to give android drivers strong refs to their buffers... looks we do though20:58
kdub_will get rid of that weird "ensure_no_live_buffers_are_bound()" interface on mg::GLRenderer20:59
kdub_the whole 'dynamic buffers!' has been good for polishing out some rough edges of the android system21:07
kdub_maybe even one day, we'll be able to resize ;-)21:08
kgunnkdub_: don't tease21:29
racarrHmm22:39
racarrso now when I try and build trunk I get warnings that libEGL.so may conlict withw22:39
racarrlibmirclient.so22:39
racarrand then check-discover-acceptance-tests22:39
racarrcrashes22:39
racarrany ideas?22:40
racarrI guess my mesa needs updating22:42
kdub_racarr, yep23:08
RAOFMornin' all.23:21
racarrkdub_: is the mesa I need int he PPA?23:21
racarrI am having series of strange link errors23:21
racarrMorning RAOF :)23:22
RAOFracarr: Grr. Let's have a butchers.23:22
racarrblerp?23:23
RAOF“butcher's hook” → “look”23:23
racarrthis seems like23:24
racarrsome pretty advanced rhyming slang23:24
kdub_lets see...23:27
RAOFIt's the standard double-indirect cockney rhyming slang!23:27
=== marlinc is now known as marlinc|away
RAOFracarr: The mesa you need is *not* in the PPA, apparently because Launchpad hasn't noticed that libmirclient-dev 0.0.4 has built.23:29
racarroh23:30
racarrthat sounds suspiciously similar to something that would cause the link errors23:30
RAOFStupid launchpad. It's meant to trigger when the dependencies of a dep-wait package are built!23:30
racarrI am getting23:30
RAOFAnyway, amd64 is now appears to be building, so everything should be peachy soon.23:31
RAOFracarr: What do I have to do to get unity-system-compositor to *not* appear to freeze when pressing <alt>+<left>?23:32
RAOF(Because that's going to the kernel VT subsystem, which is switching VTs, so unity-system-compositor is suspended)23:32
racarrRAOF: I think something like this23:34
racarrhttps://code.launchpad.net/~robertcarr/mir/disable-sequences-and-add-terminate-handler/+merge/16401423:34
racarrin particular around here23:34
racarr+ int make_raw(int vt_fd)23:34
RAOFOooh, of course.23:37
RAOFI could totally do that in u-s-c.23:37
kdub_RAOF, thanks for handling the driver bump, btw23:47
RAOFNo probelm.23:47
RAOFOh, *arse*.23:48
RAOF0.4 ≠ 0.0.423:48
RAOF*That's* why!23:48

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