/srv/irclogs.ubuntu.com/2015/09/23/#ubuntu-touch.txt

tathhuAyy00:00
ansiktAre the porting guides still recommended?  I'm seeing a lot of references to 2013 and Saucy.01:10
ansiktAlso, now that clockworkmod is abandoned, should we still use that as the bootloader?02:07
ansiktFurther, am I better off grabbing the build someone else built back in '13 and try and update it, or should I just try to build for Vivid from scratch?02:10
veebersIs someone able to help me with a QML question? I have a skeleton of what I'm working on here: http://pastebin.ubuntu.com/12527836/02:12
veebersThe question is? How do I reference the Dialog element from outside the Component so that line 17 will work (or better yet so I can close the dialog from where it's created)02:13
=== chriadam is now known as chriadam|away
=== evanwang is now known as evanwang_afk
=== evanwang_afk is now known as evanwang
Kniple_good morning all you wonderful people!06:13
dholbachgood morning06:14
dholbachand the same to you Kniple_!06:14
Kniple_I still have quite a lot of problems with my MX4, it charges oddly, this night, for example, it did not charge, only stayed on 40% throughout the night. :(06:14
Kniple_I remember there being something about a large fix to mx4's battery problems in OTA5, but seems there aree still problems.06:14
anpok_Kniple_: you had it attached to a wall charger?06:18
Kniple_yes06:18
Kniple_not the original wall socket to usb though, but the cable was original.06:18
Kniple_(they sent a UK one with my order.)06:19
zzarr_hello! is there a way to get arrow keys on the virtual keyboard?06:37
=== tsdgeos_ is now known as tsdgeos
=== chihchun_afk is now known as chihchun
tathhuDIY :P08:34
JamesTaitGood morning all; happy Wednesday, and happy Restless Legs Awareness Day! ☺08:50
guest42315hi all! what should the telegram scope do? i get a blank page (i'm connected in the telegram app)09:49
davmor2guest42315: have you tried pulling it down to refresh it?09:51
guest42315davmor2, yep many times, still nothing09:51
guest42315davmor2, i see the bussy/loading line on the buttom but when it stops.. nothing09:52
guest42315blank page09:52
guest42315lemme adb into the phone09:53
guest42315davmor2, *** Error in `/usr/lib/arm-linux-gnueabihf/unity-scopes/scoperunner': corrupted double-linked list: 0xac80b680 ***09:56
guest42315aa_getcon failed, errno = 1309:56
=== ogra2 is now known as ogra-snappy-test
guest42315is this bad?09:56
davmor2popey, ogra: ^ is this working for you, I see stuff in my telegram scope.09:59
jibelit could be bug 147275510:01
ubot5bug 1472755 in libqtelegram (Ubuntu) "/usr/lib/arm-linux-gnueabihf/unity-scopes/scoperunner:*** Error in `/usr/lib/arm-linux-gnueabihf/unity-scopes/scoperunner': corrupted double-linked list: ADDR ***" [High,Triaged] https://launchpad.net/bugs/147275510:01
ogra_works fine here10:04
guest42315i also get a lot of this10:06
guest423152015/09/23 12:25:16.829068 ERROR session error'ed out with read tcp 91.189.88.30:443: use of closed network connection10:06
guest42315^^ ubuntu-push-client.log10:06
guest423152015/09/23 12:29:18.111438 ERROR not connected after 1m0s; giving up10:06
Mirvpstolowski: it seems osomon is not around, but do you think you could evaluate whether eg scopes see any problems or benefit from this recent qtbase upgrade? did you ever encounter such errors as described in https://codereview.qt-project.org/#/c/120738 's bug report like queueing multiple requests? the fix (and the previous one which it now fixes further) were urged to be included by upstream, but if t10:09
Mirvhere's no reasonable explanation for osomon's x86 unit test regression and we don't get any benefits visible, we should probably revert this fix-of-the-previous-fix to back to OTA6 level. silo 54 has the revert.10:09
MirvI'm thinking of running some typical https requests in a loop or such10:10
guest42315https://bugs.launchpad.net/canonical-devices-system-image/+bug/149884110:12
ubot5Ubuntu bug 1498841 in Canonical System Image "telegram scope - blank page" [Undecided,New]10:12
popeydavmor2: what?10:15
davmor2popey: do you see messages in the telegrram scope10:16
* popey enables the telegram scope to find out10:16
popeyno, blank10:16
popey[M#k\[ 1792.236721] type=1400 audit(1443003410.450:373): apparmor="DENIED" operation="mknod" profile="com.ubuntu.telegram_sctelegram_1.3.20.114" name="/tmp/etilqs_vIXgQhqkdRkVPcE" pid=18838 comm="scoperunner" requested_mask="c" denied_mask="c" fsuid=32011 ouid=3201110:17
davmor2guest42315: ^ there you go10:25
guest42315davmor2, so it's popey fault, right?10:37
guest42315popey, broke telegram scope10:38
davmor2guest42315: if at first you don't succeed use the fallback and blame popey ™10:39
guest42315:)) right10:39
zzarr_poor popey :'(11:10
pstolowskiMirv, I need to think about it a bit, will let you know. I *think* I saw 'device not open' mentioned in the bug report a couple of times in Apps/Store scope logs in the past, but it was rare and without any pattern to reproduce11:11
Mirvpstolowski: thanks! I'm not that worried in the sense it passed QA, I've run unit tests now on many other packages, and the only known flakiness is on x86, but still the more we understand about the fix's effects the better11:33
=== chihchun is now known as chihchun_afk
=== alan_g is now known as alan_g|lunch
=== pat_ is now known as Guest88770
Guest97268hi anyone around12:44
k1l_Guest97268: best is to just ask the question12:45
Guest97268my bq aquaris e4.5 was working fine over night i woke to check time powered the button on and off to check time, this morning when i woke i pwoered the button on and screen just flashes12:46
Guest97268i thought the battery was flat at first but when i plugged into mains power it said 28%12:47
Guest97268so i tried rebooting using power button and volume buttons but nothing happens12:48
mterrympt, were you working with MacSlow on the flash-the-device animation?12:50
mcphailGuest97268: let it fully charge then try again12:54
Guest97268ok will do12:56
mcphailGuest97268: I think there is a bug with the battery levels12:57
Guest97268only had a few updates for apps recently and it was working fine before12:58
=== alan_g|lunch is now known as alan_g
mcphailGuest97268: I had something similar happen a while ago. Phone claimed 48% battery left but instant power-off at reboot due to low battery12:59
mcphailGuest97268: phone hadn't been charged for 4--5 days so 48% battery was probably optimistic12:59
Guest97268ok will a fix for this be on the horizon or is it just a one off13:00
mcphailGuest97268: I don't think a fix will be forthcoming unless we find a way to reproduce the bug. It hasn't happened to me since13:00
Guest97268i normally do a full charge when needed but recently i think i have only been charging to the 90%'s before having to take the phone out with me13:01
mcphailGuest97268: I think I may have had a partial charge before my episode. I usually charge to 100% as well13:02
Guest97268its been on charge a few minutes and has not booted up13:02
mcphailGuest97268: I had to charge mine for an hour or so13:02
Guest97268if i was out and about i'd have been real concerned my phone was brocked lol13:03
Guest97268must remember to full charge it when needed13:03
mcphailGuest97268: Yes - hopefully your problem will be the same as mine13:03
Guest97268fingers crossed then!! absolutely love this phone!! my best one yet!!13:04
Guest97268Thanks for the guidance catch you when i'm on next13:10
=== dholbach_ is now known as dholbach
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== ogra2 is now known as ogra-snappy-test
=== ogra2 is now known as ogra-snappy-test
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== dandrader is now known as dandrader|lunch
=== alan_g is now known as alan_g|EOD
BlackJohnnyhello17:42
BlackJohnnyi am trying to port a gaming engine to ubuntu-touch and I have an error when running an app build with the engine (cocos2d)17:43
BlackJohnnylibust[18075/18077]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)17:43
BlackJohnnya little bit later the glCreateProgram fails and I think they are related17:43
BlackJohnnyany hint on how to fix/work around this?17:44
guest42315BlackJohnny,  i think i had the same error with sdl/opengl17:55
guest42315BlackJohnny, you can open a bug here https://bugs.launchpad.net/canonical-devices-system-image17:55
BlackJohnnyihhh17:56
BlackJohnnyguest42315, but how come the qt apps work with opengl?17:57
guest42315BlackJohnny, i don't know17:59
guest42315BlackJohnny, i just used some sdl/opengl templates, just a sec17:59
guest42315BlackJohnny, https://github.com/Sturmflut/ubuntu-touch-sdl2-gles2-template18:00
guest42315BlackJohnny, https://github.com/Sturmflut/ubuntu-touch-sdl-template18:00
BlackJohnnyguest42315, should that compile and run with no problems on utouch?18:01
guest42315BlackJohnny, yes18:02
BlackJohnnyguest42315, I will have a look, thanks!18:02
guest42315BlackJohnny, have fun18:02
=== dandrader|lunch is now known as dandrader
BlackJohnnyguest42315, it runs ok. That should help me track the issue I am currently facing18:07
guest42315BlackJohnny, :D (the devs are usually here @ 11am - 9pm London time18:09
guest42315that's why so quiet now in here18:09
BlackJohnnyguest42315, i do this after work :)18:09
guest42315you can also try on #unity-mir18:09
BlackJohnnythanks for the hint18:09
guest42315oh not that18:09
guest42315#ubuntu-mir18:09
guest42315:D18:10
BlackJohnnyevery piece of hardware i work on is linux :)18:10
BlackJohnnyand ... "landroid"18:11
guest42315:))18:11
bregmaBlackJohnny, if you're having trouble porting a toolkit to Mir, try poking bschaefer he did the SDL port and may know a few things18:21
BlackJohnnybregma, thanks for the info18:22
bregmacan anyone tell me where I need to look on my phone to see logs written during the previous failed boot?18:23
bregmaI can connect using "adb sehll" while in recovery mode, regular boot hangs and I want to find out why18:23
bregmaI tried mounting system.img and ubuntu.img but they don't seem to harbour anything that looks likely18:23
* bschaefer reads backlog18:24
bregmaI know ogra_  in particular could tell me but he's forgiven if he's not around right now18:25
ogra_i sadly am around and super busy18:25
popeybregma: i can tell you where I found mine18:25
bregmapopey, that would please me18:25
ogra_/proc/last_kmsg18:26
ogra_thats the dmesg output from exactly the last boot ...18:26
bregmamm, nothing helpful in there, it looks normal to me18:26
popeybregma: where did you find the system.img?18:26
bregmaany other logs, like upstart or anything get preserved?18:26
bschaeferBlackJohnny, im not sure what cocos2d is off the top of my head :), does it use SDL2? (sounds like something mac related)18:26
bregmapopey, I found them in /data18:27
BlackJohnnybschaefer, cocos2d is a game engine initially created for ios but now is for may platfoms including linux ... but not for touch18:27
popeyhm, well this is odd, they're missing here18:28
bschaeferBlackJohnny, now SDL2 has a cocoa backend18:28
bschaeferbut ... im not sure if thats the same *cocoa*18:28
bregmapopey, do a 'mount -a' first to get /data mounted?18:28
bschaeferand if it was, it wouldnt work on mir18:28
* bschaefer reads the cocoa backend18:28
popeyoh, duh18:28
bregmabschaefer, I don't think cocoa and cocs2d are the same18:29
BlackJohnnybschaefer, the engine does not seem to support sdl18:29
bschaeferBlackJohnny, if it doesnt support SDL2 then you'll have to write your own native window for the opengl context18:29
bschaeferand create your own Mir native window for it to work18:29
popeybregma: so /data/system-data/var/log/syslog ?18:29
* bschaefer isnt sure how open the cocoa2d system is18:29
bschaeferbregma, yeah i figured but wanted to double check18:29
bschaeferBlackJohnny, https://hg.libsdl.org/SDL/file/63f03a567fe3/src/video/mir18:30
bschaeferthe backend for SDL2 for mir18:30
bregmapopey, that looks hopeful18:31
bregmaSep 22 16:22:00 ubuntu-phablet kernel: [   36.015321] init: lxc-android-config post-start process (704) terminated with status 118:31
bschaeferwhich sets up creation of an opengl context through EGL, or uses software renderering, as well as handles input events and feeds it into the SDL2 backend18:31
BlackJohnnybschaefer, I was thinking that I will have to somehow replace the X11 code but had the feeling that glCreateProgram is called before having anyting to do with that18:31
bschaeferBlackJohnny, yeah, not 100% sure how cocos2d handles the video driver backend situation18:32
bschaeferbut yes the x11 code will have to be replaced with mir code18:32
bschaeferto talk to the mir api bits, that allows for rendering on the mir display server18:32
bschaefera lot of it is simply plumbing18:32
popeybregma: yeah, that's what I had18:33
bschaeferdepends on how much work cocos would need to fit to how mir works ie. EGL2 support (is the bigger depends)18:33
bschaeferwhich if it works on the phone, should already be expected in the backends18:33
BlackJohnnyit uses egl18:34
bschaeferbut if its only for X11 then im not sure about the EGL2 support18:34
bschaeferthats good18:34
bregmapopey, I don't have the mesa links in /etc/alternatives you had, as far as I can tell18:34
bschaeferthat makes things easier to do18:34
BlackJohnnyas far as I've understood it only uses xopendisplay and close from x1118:34
bschaeferBlackJohnny, these are the three examples of ported libraries to MIR: SDL1.2, SDL2, GLFW318:35
bschaeferhttps://github.com/glfw/glfw/tree/master/src18:35
bschaeferhttps://code.launchpad.net/~brandontschaefer/+junk/sdl1.2-mir18:35
BlackJohnnyI am new to GL programming so pls dont judge me :)18:35
bschaeferhttps://hg.libsdl.org/SDL/file/63f03a567fe3/src/video/mir18:35
bschaeferBlackJohnny, :) no worries18:35
bschaeferBlackJohnny, i've not seen cocos source code18:35
BlackJohnnyok thanks18:35
bschaeferbut ... i would assume it has some plumbing of the X11 code to the cocos API18:35
bschaefersuch that the users are not aware of X11 existing18:35
BlackJohnnyindeed18:35
bschaeferwhen using the toolkit18:35
bschaefersoo all you have to do in a sense is replug those lower level API calls with calls that match up to mir18:36
bschaefersuch that mir will know how to render all the pixels :)18:36
bschaeferso for mir, XDisplayOpen is equal to mir_connect_sync18:36
BlackJohnnybschaefer, I need to consult the links you gave me. Many thanks!18:36
bschaeferBlackJohnny, just poke me with any questions! (Im on PST time)18:37
BlackJohnnybschaefer, ok, thanks18:37
bschaefernp!18:38
jgdxkenvandine, mind looking at the two mps in silo 22?18:57
kenvandinejgdx, sure18:58
kenvandinejgdx, green in jenkins... i love it!18:58
jgdxkenvandine, thanks. Two passes in a row among them18:58
jgdxam I dreaming18:59
jgdx:p18:59
kenvandinejgdx, approved18:59
davmor2jgdx: yes you're dreaming19:01
davmor2jgdx: now wake up and do some work ;)19:01
jgdxdavmor2, okay, i'll guess I just have to enjoy it while it lasts then19:01
jgdx:)19:01
davmor2:D19:01
kenvandineWellark, hey... i just found https://bugreports.qt.io/browse/QTBUG-3312319:03
kenvandineWellark, you have patches for that, any chance of getting someone to merge those?19:04
kenvandineWellark, although your fix hard codes the fallback to /usr/share/pixmaps19:14
kenvandineWellark, i'm trying to get icons from a libertine container, so i want it to find icons in $appdir/pixmaps, for example to find the firefox icon :)19:15
kenvandineWellark, where $appdir is the path to /usr/share inside the container19:16
elimisteveHey all, question: is anyone working on mesh networking for Ubuntu Phone?19:24
elimistevebeing able to transfer files or send text-based messages in a p2p way would be awesome, without needing centralized infrastructure19:24
bschaeferBlackJohnny, looking at the code, it looks like it actually uses GLFW19:31
bschaeferthough it might have a hard coded depends on X11 for Linux19:31
bschaefer(for getting the DPI)19:31
BlackJohnnyfor desktop yes but what I have done is to mirror the  android implementation for ubuntu-touch19:32
bschaeferBlackJohnny, and it looks like it *can* use GLFW3 soo all you need to do is grab this source code: https://github.com/glfw/glfw19:32
bschaefero i see19:32
bschaeferglfw3 *should* work on the phone as well19:32
bschaefersince it uses egl19:32
BlackJohnnyI can go on this path though19:32
bschaeferIIRC19:33
bschaeferi think you might just have to enable DESKTOP (for ubuntu touch + glesv2 as well as disable the X11 bits)19:34
bschaeferBlackJohnny, but idk with https://github.com/glfw/glfw you need -DGLFW_USE_MIR=ON19:34
BlackJohnnyso having the desktop implementation and use mir instead of x1119:34
bschaeferto enable the mir parts of GLFW (since it doesnt do runtime video driver switches)19:34
bschaeferBlackJohnny, right, you just need to recompile GLFW with MIR enabled19:35
bschaeferand not X11 enabled19:35
bschaeferBlackJohnny, there is some hard coded X11 in the linux part of the platform19:35
bschaeferthat will have to commented out/disabled19:35
BlackJohnnythat would be awesome19:35
bschaeferas that wont work :)19:35
bschaeferBlackJohnny, it should*just* work with a bit of hacking19:35
BlackJohnnyi was studying the sdl code19:36
bschaeferBlackJohnny, well it turns out you wont need to implement that since i've done that backend work in GLFW already :)19:37
Wellarkkenvandine: I don19:37
Wellark't have the git branches anymore19:38
BlackJohnnycloning glwf19:38
kenvandineWellark, i see part of it was merged19:38
kenvandinebut not the base dirs part19:38
kenvandinewhich is what i think i need19:38
Wellarkbut they should be available from qt repositories19:38
bschaeferBlackJohnny, yup, just make sure you have -DGLFW_USE_MIR=ON :)19:38
kenvandineWellark, they are :)19:38
Wellarkkenvandine: you can cook up a distro patch19:38
bschaefer(you might need some libraries not sure)19:38
Wellarkkenvandine: and have Mirv to include them in overlay ppa19:39
kenvandineWellark, i'll look at it, after thinking about it i need a slight variation of your patch19:39
kenvandineWellark, thanks for the info19:39
mcphailbschaefer: I may need to poke you for some advice about getting the Godot engine running on the phone. Have been spending a bit of time playing with Mir code. Think I can crack it, but hope you don't mind if I call on your expertise at some point?19:40
bschaefermcphail, anytime!19:41
mcphailbschaefer: cheers!19:41
bschaeferyou can always send me an email if off time zones :)19:41
Wellarkkenvandine: see https://codereview.qt-project.org/#/c/63987/3/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp19:42
Wellarkif the code has not changed in later Qt Releases19:42
Wellarkyou can see the line QString xdgDirString = QFile::decodeName(qgetenv("XDG_DATA_DIRS"));19:42
Wellarkso, you might not need a patch, just a clever append to XDG_DATA_DIRS19:43
kenvandineWellark, yeah19:43
mcphailbschaefer: I may do that. Thanks! If you're interested, I'll be working from https://github.com/mcphail/godot/tree/try_mir . Will be digging in again in a week or so when I finish my travels19:43
bschaefermcphail, cool, i check it out19:44
Wellarkkenvandine: oh, also. firefox ships a .xpm so you need this too: https://codereview.qt-project.org/6398819:46
bschaefermcphail, nice, looks like a good skeleton setup, a lot of those functions you can check SDL2 out for19:46
kenvandineWellark, actually my container has a png for firefox19:47
bschaeferum actually base it off this SDL2 branch (since new mir API/ABI changes)19:47
kenvandineWellark, but... support for xpm should be there :)19:47
bschaeferhttps://code.launchpad.net/~brandontschaefer/+junk/SDL2-new-mir-ABI19:47
* bschaefer needs to make sure thats up-to-date with mir 0.1619:47
mcphailbschaefer: I'm working off the older API just now as I want it to work with the phone :)19:47
Wellarkkenvandine: ok. good. firefox used to ship only xpm19:48
bschaefermcphail, o right19:48
bschaefermcphail, one thing i dont see is surface/opengl/events19:48
kenvandineyeah... finally getting more modern, but still ships the icon in the pixmaps dir19:48
Wellarkkenvandine: feel free to pick up the upstream work and get those pull requests updated and merged to qt proper :)19:48
bschaeferis that to come in with the skeleton?19:48
mcphailbschaefer: yes, that's what I'm experimenting with just now19:48
kenvandineWellark, i'll take a look19:48
Wellarkkenvandine: thanks!19:48
bschaefermcphail, nice! Yeah just looked at x1119:48
kenvandineWellark, the only one of the apps on the immediate radar that's causing a problem is firefox19:49
mcphailbschaefer: yes - that's what I'm copying19:49
bschaefermcphail, the first thing i start with is getting the main mir connect, then opengl, then render SOMETHING19:49
bschaeferthen i worry about events19:49
bschaefernice to see that pixel flip :)19:49
mcphailbschaefer: ha!19:49
* bschaefer needs to go back and do SFLW ... it was lacking EGL/GLESv2 support IIRC19:50
mcphailbschaefer: this has been a fun learning process19:50
bschaefermcphail, it is very fun!19:50
bschaeferalso nice to see how much smaller the x11 bits are to the mir bits19:50
bschaefererr19:50
bschaeferother way around19:50
bschaeferhow much smaller the mir code ends up being vs the x11 code19:51
mcphailbschaefer: I hope so, anyway19:51
bschaefer:)19:51
bschaeferbregma, do you remember that list of toolkits we had for things that needed porting to mir?19:52
* bschaefer cant find that old oc19:52
bschaeferdoc*19:52
Wellarkkenvandine: good luck! :)19:52
bschaefernm found it19:55
=== dandrader is now known as dandrader|afk
popeyelimisteve: aquarius made soonsnap which kinda does that, but does use a central server, but kinda transfers between machines20:14
=== dandrader|afk is now known as dandrader
BlackJohnnybschaefer, hi again21:13
bschaeferBlackJohnny, hello!21:13
BlackJohnnybschaefer, before i go to sleep :) I cant compile because some MirBufferStream type missing21:14
BlackJohnnyis it some work in progress ?21:14
BlackJohnnyglfw21:14
bschaeferBlackJohnny, hmm what version of mir do you have?21:14
BlackJohnnyi have installed the sdk with it installed by default21:14
bschaeferIIRC   Installed: 0.15.1+15.10.20150903-0ubuntu121:14
BlackJohnnydidn checked21:15
bschaeferyou'll need 0.15 or more21:15
bschaeferBlackJohnny, new API/ABI21:15
bschaeferBlackJohnny, apt-cache policy libmirclient-dev21:15
BlackJohnny0.12.1+15.04.20150324-0ubuntu1 021:16
BlackJohnnyok21:16
bschaeferBlackJohnny, you'll need to https://github.com/glfw/glfw/commit/9527c93a1c9a43ab3b2a2cfb56389cd3619b90f321:16
bschaeferremove that commit21:16
bschaeferfrom GLFW321:16
bschaeferand it should fine :)21:16
BlackJohnnyok, thanks21:16
bschaefernp!21:16
* bschaefer has glfw3 upstream aimed at trunk mir :)21:16
mcphailbschaefer: what is the Mir versioning convention when they break the interface? It would be nice if they'd bump the major version21:18
bschaefermcphail, 0.14/0.15 is the major API/ABI breakage21:18
bschaeferfrom there its pretty clean, just new API functions (and no ABI breakage)21:19
mcphailbschaefer: surely the project is worthy of a 1.x release with major version bump on each breakage?21:19
bschaefermcphail, the two big changes are mir events 2.0, and buffer stream vs surface21:19
bschaefermcphail, i've no clue :), i think thats a goal21:19
mcphailCheers :)21:19
* mcphail thinks OS projects are too recticent about achieving a 1.x release21:20
bschaefer:)21:22
BlackJohnnybye bye21:35

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