/srv/irclogs.ubuntu.com/2013/05/15/#ubuntu-mir.txt

RAOFDamnit, laptop. Stop thermally throttling yourself!03:37
mlankhorstyeah start making burn holes on raof's lap03:48
RAOFIt's sitting on a table. It's welcome to try and burn that!03:51
robert_ancellRAOF, bug #1102762 is fixed right?04:09
ubot5`bug 1102762 in Mir "Support nouveau drivers" [Medium,In progress] https://launchpad.net/bugs/110276204:09
racarrRAOF: Does Mesa still live on github?04:37
racarrI was hoping to see a shiny eglplatform revision but itsnothere04:37
racarroh I see, mir-ppa is the branch04:37
RAOFracarr, robert_ancell: Correct04:54
racarrare we having the weekly?05:50
RAOFI presume so?05:51
robert_ancellracarr, RAOF, yes05:52
RAOFFIRST!06:00
hikikohi06:03
RAOFOh, thomi - could we get Saucy builds of mesa out of github, too?06:30
mlankhorstis mir used on the touch image yet?07:01
tvossmlankhorst, it's not officially in the image, but working towards that goal07:37
tvossgreyback, good morning :)07:37
greybacktvoss: well howdy07:38
=== alan_g is now known as alan_g|cold
greybackkdub: hey, good news: unity runs on mir in process: http://ubuntuone.com/58W4ARPX7KKPLdoHHsDrvL11:22
greybackkdub: but performance isn't buttery, in fact appears a bit slower than out of process11:22
greybackthis is galaxy nexus11:22
greybackkdub: doing some initial profiling, it appears the buffer swap is slow (often over 30ms per frame)11:30
=== greyback is now known as greyback|lunch
=== mmrazik is now known as mmrazik|afk
=== greyback|lunch is now known as greyback
=== francisco is now known as Guest49422
hikikoalf___, here?13:19
alf___hikiko: hi, here13:19
hikikohi!13:19
hikikoI have a problem when I compile, I get this error: Linking CXX shared library ../../lib/libmirserver.so ../../lib/libmirfrontend.a(session_mediator.cpp.o):(.data.rel.ro._ZTVN3mir8frontend15SessionMediatorE[_ZTVN3mir8frontend15SessionMediatorE]+0x38): undefined reference to `mir::frontend::SessionMediator::drm_auth_magic(google::protobuf::RpcController*, mir::protobuf::DRMMagic const*, mir::protobuf::DRMAuthMagicStatus*, google::protobuf::Closure*)13:21
hikiko' because I include files from the graphics/gbm, do you know how I could change the CMakeLists.txt so that the linker doesn't complain anymore? :)13:21
hikikoi mean the cmakelists from the sdl platform13:21
=== mmrazik|afk is now known as mmrazik
hikikoi tried to make it identical to the gbm cmakelists13:25
hikikobut I still get thi serror13:26
alf___hikiko: you need to create a session_mediator_sdl which is going to be basically a copy of session_mediator_android.cpp, and build with it13:27
hikikoalf___, I can't use the existing gbm one?13:32
hikikowhat's the session mediator?13:32
alf___hikiko: SessionMediator is the object that (ultimately) handles RPC requests from clients. At this point you don't need to support drm_auth_magic, since it's used by clients only. I am not sure if you can support it at all, since you will need to be the DRM master to do so.13:41
hikikoI can't be the drm master, the xserver will be :S13:42
alf___hikiko: perhaps you will just need to forward the request to X then13:42
hikikobut I need to authenticate to the xserver13:42
alf___hikiko: but anyway, for the first step (getting render_to_fb to run) it's not needed13:43
alf___hikiko: ... which makes me wonder if we need mir_connection_drm_auth_magic() at all. No one seems to be using it.14:09
alf___RAOF: ^^14:09
hikikoI need to do the magic I guess because when I tried to create my gbm buffers in my example without authentications and inside X I didn't have permissions14:10
hikiko+then you have to somehow pass the device descriptor to the xserver I guess (not sure)14:11
alf___hikiko: For GBM at least, we are sending a pre-authenticated DRM fd to the client (e.g. to mesa), so I guess you will need to do the same for SDL, with the difference that you will need to ask X to authenticate it (XF86DRIAuthConnection). In any case, mir_connection_drm_auth_magic() seems to be unused right now. I will talk to RAOF to ensure he doesn't need it and remove it.14:17
hikikommm maybe :) let me find where you do this authentication for gbm14:19
alf___hikiko: gbm_display_helpers.cpp14:19
=== olli_ is now known as olli
olliis anybody attending the "Support for convertibles and touch screen on Ubuntu desktop ( Client )" session15:05
olliSaviq, kgunn15:05
kgunnchecking15:05
Saviqolli, I was going to go to "Touch System Settings"15:06
olliSaviq, is that now?15:06
Saviqolli, yes15:06
Saviqno15:06
Saviqin an hour15:06
Saviqok, coming to the convertibles15:06
kgunnsorry, i was going to kylin images...but maybe i should go to that instead15:06
ollikgunn, Saviq I think we should cover both15:07
olliit would make sense to me for kgunn to go to kylin15:07
kgunnack15:07
ollias this is a "customer" of ours and Saviq to go to the touch one to keep them straight/honest15:07
kdubgreyback, i'm working on performance stuff today, can take a look at inprocess qml going slowly15:12
greybackkdub: ok cool15:12
kdubgreyback, that video looks ok though, is it only sometimes that it takes 30ms?15:12
greybackkdub: overall frames took just a bit over 30ms when adding in the rendering time15:13
greybackkdub: handy tip is to set QML_RENDER_TIMING=1 before running a qml app, you get frame info out with that15:14
kdubgreyback, what sort of special branches do i need?15:15
greybackkdub: see racarr's email last night, he gives all the info there.15:15
kdubgreyback, cool, thanks15:16
kdubbusy morning :) status, yesterday worked on a cleanup branch, began swap interval 0 work15:35
mlankhorstoh thanks for reminding me, drm needs to add support for thjat15:41
mlankhorstthat*15:41
moustafaHey! Is anybody else having difficulty installing mir through the PPA due to unmet dependencies?15:42
kdubmoustafa, what package?15:42
moustafakdub, 'mir'.  The conflict is caused by libmirserver0 being at 0.0.3bzr687raring0, where mir requires it to be at 0.0.2bzr643raring015:43
mlankhorstremove mir15:43
alf___status: integrating lttng with mir reporters15:44
moustafamlankhorst, It can't even install :)15:52
kgunnmoustafa: i had the same issue16:02
kgunnthomi: ^16:03
thomikgunn: we're fixing that today :)16:03
kgunnmoustafa: i was pestering folks last night, but my understanding is, you can build the libmirserver from source and it'll work16:03
thomihmmm16:04
kgunnthomi: thanks ;) it helps lazy folk like me16:04
thomiisn't libmirserver build by the mir source package?16:04
moustafakgunn, well, that would be the obvious way of doing it, but I like being a bit lazy (curse you, PPAs!)16:04
kgunnthomi: well, based on my interaction with robert, it seemed the source didn't match the ppa (? sheepishly)16:05
thomikgunn: yeah, sorry, I assumed you were complaining about the u-s-c issue :)16:06
thomimoustafa: which series are you looking at?16:06
moustafathomi, Raring16:07
kgunnthomi: me also16:07
thomihmmm16:08
thomimoustafa: right, as mlankhorst mentioned, 'mir' is an old package, that you should remove. If you want the demos, install mir-demos16:09
thomimoustafa: the packages (listed here: https://launchpad.net/~mir-team/+archive/staging/+packages?field.name_filter=&field.status_filter=published&field.series_filter=raring) look like they've built fine16:10
moustafathomi, So, I would require mir-demos to run mir as a system compositor with X?  Or can I just go ahead with mir-demos.16:13
moustafathomi, That said, mir isn't even installed (refuses to do so anyway)16:13
thomimoustafa: hmm, you said "The conflict is caused by libmirserver0 being at 0.0.3bzr687raring0, where mir requires it to be at 0.0.2bzr643raring0", which made me think you were installing the 'mir' package - maybe you could pastebin your shell session?16:14
moustafathomi, http://paste.ubuntu.com/5668074/16:15
mlankhorstthomi: why is there no breaks/replaces on mir then?16:15
thomimlankhorst: there should be. I'll do tha today16:16
thomimoustafa: right, don't install 'mir'16:16
thomimoustafa: if you want to run the demo shell, that is now in the 'mir-demos' package16:16
thomimoustafa: if you want to run on top of X... I'm not sure what you need for that. maybe someone like kdub, alf___ or kgunn can tell you16:17
kgunnhikiko: ^16:18
=== francisco is now known as Guest53340
hikikoit doesn't run on top of x yet :)16:22
hikikomoustafa, there's no emulator yet16:22
hikikounder construction!16:22
moustafahikiko, Duly noted!16:25
hikikobut moustafa I think that some examples16:26
hikikowork on X16:26
hikiko alf___ L16:27
hikiko^16:27
kdubgreyback, ping16:39
greybackkdub: pong16:39
kdubi've gotten to the point where ipc qml clients are running, how to run qml-phone-shell?16:41
kdubi'ts failing to run, i'd guess there's some service or something that I haven't started up16:41
greybackkdub: you running phablet-integrate-mir-no-sw-cursor ?16:43
kdubgreyback, no, i've just jammed some hello world qml files on to test with qmlscene so far16:44
greybackand they're not working?16:44
kdubno, they are, its qml-phone-shell that isnt16:45
greybackok16:45
greybackyou compiled it with the "build" script I hope16:45
kdubno, is there a wiki?16:46
greybacknope, sorry16:46
kgunnkdub: for building16:46
kgunnhttp://unity.ubuntu.com/getinvolved/development/unitynext/16:46
kgunnassume that's what you were looking for16:46
greybackah, news to me16:46
kgunngreyback: :)16:47
kdubyeah, i was just thinking 'theres some primitive unity knowledge i'm missing here...'16:47
kdubthanks kgunn16:47
kgunnmanager== data aggregator :)16:47
greybackkdub: but most of that info is desktop specific. Really all you need is "./build" and "./run"16:47
racarr -m -f ?16:47
kgunngreyback: you mean ./run_on_device ?16:48
greybackracarr: worked without for me on last run. "-m" only for desktop16:48
greybackkdub: are you compiling on the device, or cross-compiling on your PC?16:48
kdubcross compiling16:48
greybackkdub: what is easiest for you to do is: "./run_on_device -s" to push code to the phone and compile it there. It will leave the qml-phone-shell executable in /home/phablet/shell/builddir/src/shell/16:50
greybackkdub: but note that install compiler, etc on the phone16:50
greybacks/install/installs/16:50
kdubgreyback, thanks, will give it a try16:52
=== mmrazik is now known as mmrazik|afk
racarrAh17:00
racarrstatus: Met with katie, talked about surface types v. roles17:00
racarrnow eating a bagel and deciding what order to do things in17:01
kdubso many phablet scripts to learn about17:08
racarryeah17:09
racarrgreyback: Wondering if there is anything I can do in particular while you are still on17:10
greybackracarr: getting your platform-api and qtubuntu branches merged would be handy, so we all can get unity+mir running easily. Think it's much effort?17:12
racarrgreyback: Unfortunately blocked atm17:13
racarrplatform-api is about to (tomorrow, friday?) have a big refactoring17:13
greybackracarr: :( what by?17:13
racarrand we are going to land it afterwards17:13
greybackaha yes, I recall taht17:13
greybackok, well best wait for that so.17:13
racarrthe eglplatform.h bits landed though17:13
tvossracarr, is QtMir still current or do we do things in QtUbuntu?17:13
greybackcool17:13
racarrtvoss: It's all qtubuntu17:13
kgunnsweet17:14
racarrtvoss: Though mir qtubuntu is a little different17:15
racarrdue to mir doing keymapping + key input wasn't really working so much in qtubuntu17:16
racarr(mir client)17:16
racarrEveryone likes mapping keys on the client17:16
racarrbut I don't understand why17:16
racarrEspescially because you have to map them on the server too for the input ilter17:16
racarrfilter*17:16
tvossracarr, ack17:18
racarralf___: Ping?17:22
racarrp.s. nice underscore17:22
racarrhmm17:35
racarrhow do you acceptance test that pressing control+c doesn't17:35
racarrkill the server17:35
racarrI dont even know :/17:39
racarrToo many missing pieces17:39
kdubracarr, what are you trying to do :) shouldn't sigterm/sigint kill the server?17:41
racarryes but ctrl+c shouldn't generate17:41
racarrany signals17:42
racarrbecause mir should parse it like anything else and pass it on to applications17:42
racarrwhich is easy17:43
racarrtcgetattr (vtfd), cfmakeraw(attr) tcsetattr(attr)17:43
racarrand it's easy enough to, well, mock out this in to a file operations bit, test that the virtual terminal uses these interfaces correctly17:43
racarrtest that the display calls the virtual terminals disable_control_sequences methods appropriately17:43
racarretc17:44
racarrbut there is no acceptance test17:44
racarryou just have to mock the kernel ;)17:51
racarrand with that Im giving up on acceptance testing this for now :p17:53
racarrit may be possible to use a pty...I dunno17:53
kdubgreyback, what is "phablet-integrate-mir-no-sw-cursor"? a branch somewhere?17:54
greybackkdub: lp:~robertcarr/unity/phablet-integrate-mir-no-sw-cursor17:55
greybackit adds code to qml-phone-shell to create a Mir server, add cursor and other bits17:55
kdubah, i should read that email more carefully :)17:55
racarrhttps://code.launchpad.net/~robertcarr/mir/disable-sequences-and-add-terminate-handler/+merge/164014 exists18:11
racarrim not in any hurry to land it though18:11
kdubgreyback, http://pastebin.ubuntu.com/5668437/18:14
kdubnot sure what package qpa/qplatformnativeinterface.h comes from...18:15
greybackkdub: qtbase5-private-dev18:15
greybackI'm surprised the run_on_device script didn't install that for you18:15
kdubalso, i found i had to install the GL headers in addition to the gles headers, struck me as a bit strange18:17
greybackkdub: that's probably wrong for phone. In src/shell/CMakeList.txt you should substitute "${OPENGL_gl_LIBRARY}" with "GLESv2"18:19
kdubanyways, just built successfully, thanks greyback18:19
racarrDOES IT RUN DOES IT RUN18:19
greybackdramatic pause!18:20
* kgunn passed out from holding breath18:21
kdubno, that would be too easy :)18:21
=== mmrazik|afk is now known as mmrazik
greybackHere are higher-level instructions if anyone wants to run unity+mir on their phone: http://studio.sketchpad.cc/gmY0M6iqeh18:24
greybackthey're a bit messy still, yes. But they work18:25
racarrwait so it does run?18:38
kdubno, just exits18:40
kdubjust starting to read through the code though18:40
racarrthe ./run script hides the segfaults18:40
racarrbecaues it does openvt18:40
kdubstill don't know exactly what this thing is18:40
racarrso I got rid of the openvt bit and ran it in GDB18:40
racarrto debug in GBM18:41
racarrgreyback: Instructions seem to be missing building platform api + qtubuntu?18:42
greybackracarr: I've them packaged18:42
greybackracarr: .deb files are in my chinstrap18:42
racarrgreyback: Oh! I see18:42
racarrSo you're one of those people who does things the right way huh?!?!18:43
racarr:p18:43
greybackyes, very much so18:43
greyback:D18:43
racarrgreat. thanks for writing this up :)18:44
greybackracarr: I'm guessing you plan to have separate platform-api-client and -server packages eventually. And same for qtubuntu?18:45
racarrgreyback: seperate packages yes...I think the final structure is likely to be like18:45
racarrthere is platform-api (which also contains bit like GPS, etc)18:46
racarrthat can (dynamically?) load either mirserver, mirclient, windows forms18:46
racarrwhatever18:46
kdubdo i need the 'client' or the 'server' libqubuntu.so qpa plugin?18:46
racarrlikewise qtubuntu should probably gain just a tiny amount of intelligence18:46
racarrkdub: server18:46
greybackracarr: got it. Makes sense18:46
racarrto auto select loading platform-api server/client18:46
racarrrather than maintain two qtubuntu18:46
greybackyep, totally18:47
racarrADHD: I was wondering in the shower today. When do we need to have mir running under virtualized environments?18:50
racarrkgunn: ^18:50
racarris it captured somewhere?18:50
kgunnracarr: what do you mean exactly ?18:51
racarrthen also, I wonder if say porting xf86-video-vmware to a graphics platform is easy XD18:51
racarrkgunn: I mean, Mir should be able to run under vmware/virtual box18:51
racarrHas to be able to presumably18:51
racarrby 14.0418:51
kgunnracarr: ah, ok....18:51
kgunnyes18:51
kgunnand i would think that would be super easy (or am i a nut?)18:52
kgunnmm18:52
kgunnmaybe not so...kernel stuff18:52
racarrwell, the basics are easy18:52
racarrbut like, in the X driver, they use special interrupts to map a framebuffer through the virtualization layer18:53
racarror things like that18:53
racarrthey have libGLs that talk to virtualbox/vmware which then use the host libgl18:54
racarrthings like that18:54
racarrmode setting, they have special communication (I think it's weird interrupts again)18:54
racarrfor mode interaction between the guest video driver and the virtualization host18:54
racarretc.18:54
kgunnright....i don't know how it all works but i suppose the kernel itself is the virtual bit18:55
kgunnsharing hw resources like fb18:55
racarrIt seems like (looking at xf86-video-vmware) this is kind of abstracted away a little.18:55
kgunni would imagine so18:55
racarri.e. they have funny functions like vmware_do_bla_bla that18:55
racarrhandle the complex bit of18:55
racarrtalking to the host and back and forth and all18:55
racarrbut mir needs to be hooked up to it18:55
racarrif it really is that simple18:55
kgunnsure18:55
racarrit's kind of the same sized task as porting mir to SDL18:55
racarr(but made easier by that)18:56
racarrbut, um18:56
racarrI just told you literally everything I know about this so18:56
racarrI don't have the confidence to say that :p18:56
kgunn:))18:56
kgunnwell, don't get too distracted....other things on the horizon18:56
kgunnosk18:56
kgunnapp data sharing18:56
racarrYes of course, I am not going to work on it now18:57
racarrI just want to make sure it doesn't get lost18:57
racarrbecause I dont think we have a work item, but it's clearly expected18:57
kgunnlemme check18:57
racarrand I am worried it will have some secret bit like "actually there is this closed source bit that we have to convince them to modify because our semantics...."18:58
greybackracarr: probably daft question, but does the phone have concept of a vt?19:02
greyback"adb shell" is a proper VT?19:02
kdubgreyback, unsure19:03
kgunngreyback: i think that's as close as it gets (adb)19:03
kgunnwell...i take that back....there are some who got x working on android19:04
kgunnbut it was really custom19:04
greybackMe too. I'm just curious is there's a way to run mir from ssh so that it works. It's easy on the desktop to create a new vt and run an app in it (openvt), but it would be handy to have something similar for phone19:05
greybackoh dumb-ass, I can just use "adb shell" itself from the pc19:07
racarr:)19:07
racarrnot daft XD I was wondering the same thing19:08
racarrI realized today I don't really remember how terminals/vt/pty all work19:08
racarrI did in college at one point when I thought reading advanced unix programming was a fun thing to do in your spare time ;)19:08
tvossracarr, got the unix bible on my book shelf :)19:09
greyback:D thanks guys, I'll expect the answer in the morning so :D19:09
racarrXD19:10
* greyback eod19:12
racarrGoodnight!19:12
racarrLunch for me, nexus 7 upgrade running as we speak so I will try unity mir android when I get back19:15
=== racarr is now known as racarr|lunch
kdubracarr|lunch, nex7 won't work with default hybris package19:18
=== hikiko-uds is now known as hikiko
racarr|lunchkdub: Mm right. Do packages to fix it still exist?19:32
kdubracarr|lunch, no19:32
racarr|lunchkdub: Can I build them?19:36
=== francisco is now known as Guest83331
hikikohello20:19
hikikoquestion:20:19
hikikoI get this linked error when trying to compile my sdl branch:20:20
hikiko/usr/lib/libmirclient.so.0: undefined reference to `mir::protobuf::EventSequence::~EventSequence()'20:20
hikikobut when I grep20:20
hikikoI can't find any reference to EventSequence in the code20:20
bschaeferhikiko, hmm perhaps its generated at build time?20:23
bschaeferbuild/src/shared/protobuf/mir_protobuf.pb.h:1477:class EventSequence : public20:23
hikiko!20:24
hikikoI don't have that class20:24
bschaeferthat could be a problem!20:24
hikikowtf maybe I have to merge with a more recent version before I proceed :S20:24
bschaeferpossibly, im at rev 68720:25
* bschaefer pulled an hour or so ago20:25
hikikoyes :) I have to :)20:25
hikikolol20:25
bschaefer:)20:25
hikikothank you!20:25
bschaefernp!20:25
hikiko+see you tomorrow20:25
kgunnkdub: racarr|lunch good grief....i just now made my way thru the github shennanigans & have the proper branch22:52
kgunnkdub: so reading the install file....looks like the best thing to do is native compile this on the device ?23:00
kdubit probably is the easiest23:00
kdubit doesn't look like getting that working though is trivial though23:01
racarr|lunchkgunn: You are trying the seven too?23:32
racarr|lunchIt didn't work for me23:33
racarr|lunchBut I might have done something wrong23:33
racarr|lunchoh whoops23:33
=== racarr|lunch is now known as racarr
RAOFLate lunch? :)(23:38
racarrkdub: linker.c:661| WARNING: `/system/lib/hw/gralloc.tegra3.so` is not a prelinked library23:45
racarrmeaningful?23:45
kdubracarr, no23:45
racarr:(23:45

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