/srv/irclogs.ubuntu.com/2015/09/01/#ubuntu-unity.txt

=== maclin1 is now known as maclin
=== maclin1 is now known as maclin
=== maclin1 is now known as maclin
=== maclin1 is now known as maclin
=== maclin1 is now known as maclin
guest42315how do you handle gamepad events in qml?07:28
tsdgeosmzanetti: app scope is left align? i didn't have that07:59
* tsdgeos tries again07:59
mzanettitsdgeos, didn't notice it on the first review either, but I installed that branch on my dogfooding device and last night I saw the apps scope being off07:59
tsdgeosright, they are08:01
tsdgeoswonder what they are returning in the align field08:01
* tsdgeos prints08:01
guest42315so guys.. i need gamepad support in qml.. to code a nice game08:02
tsdgeosthey are not adding anything08:03
guest42315else i'm not coding a nice game08:03
mzanettiguest42315, what makes you think that gamepads are not supported in qml?08:03
mzanettior rather, how does it relate?08:03
guest42315oh, i coudn't find documentation oh how to use gamepad in qml08:04
guest42315:/08:04
mzanettiguest42315, well, if the gamepad is connected, it should just be like any other input device (mouse/keyboard)08:04
guest42315at first i thought that i just use the key events but that doesn't work08:04
guest42315yeah...08:04
guest42315but it doesn't work08:04
mzanettidoes it work in other applications?08:05
mzanettii.e. non-qml ones?08:05
guest42315the gamepad works in supertux for example08:05
=== davidcalle_ is now known as davidcalle
mzanettiguest42315, interesting, are you trying that on the phone or on a desktop?08:05
guest42315desktop08:05
guest42315the keyboard event work08:05
mzanettihmm... then that's odd... I might have been wrong then08:06
guest42315can you test with a gamepad?08:06
guest42315:D08:06
mzanettiI do have a gamepad hidden deep down in the closet somewhere, yes :D08:06
guest42315:))))08:06
tsdgeosmzanetti: right, so the appscope has a bug that was hidden by our bug :D08:08
mzanettimuahaha :D08:08
tsdgeosi'll see if i can rework it somehow08:09
mzanettiguest42315, ok... turns out it is not that easy indeed. Should be possible, and google reveals a bunch of tutorials on how to use gamepads/joysticks with Qt but it requires some C++ code.08:13
mzanettisounds like an interesting project08:13
Saviqtsdgeos, re: upstart restart - sure, I understand it doesn't, I just wonder how that's possible08:16
tsdgeosupstart doing weird things :D08:16
Saviqtsdgeos, like where would the UNITY_MIR_SOCKET come from if it's not set in upstart08:16
tsdgeosthe docu says that those stanzas are not even run by restart...08:16
tsdgeosŝo there's that08:16
Saviqright, it's pre-start and post-stop08:17
Saviqso yeah, I'll do some investigation08:17
tsdgeosi'd call it "upstart broke"08:18
tsdgeosand we workaround it08:18
tsdgeosbut sure investigate :)08:18
SaviqI just want to retrace what's happening and how does your change help08:18
Saviqwe should just move to systemd already ;P08:19
tsdgeosSaviq: i did add some echo "variable" &> /tmp/file08:19
tsdgeosand you'll see that the variables get lost unless this is added08:19
Saviqtsdgeos, yeah that's what I plan to do, query initctl for the value, for the global value, look at the local env etc.08:21
guest42315mzanetti, thanks :D yep would be nice to have gamepad support08:22
Saviqtsdgeos, only thing that comes to mind is that pre-start and post-stop *are* actually run on restart, and what's more they end up being run in the same environment, so even if post-stop unsets the vars in upstart, the local env still holds them, and the logic gets broken08:24
tsdgeosSaviq: oh sure, they are run, that's out of question08:24
Saviqtsdgeos, that could be fixed by using initctl get instead of reading the local env08:25
tsdgeosmaybe :D08:26
tsdgeosi don't enough upstart to be honest08:26
Saviqthat's the only explanation I have for this, really08:29
=== larsu_ is now known as larsu
tsdgeosmzanetti: updated the card carousel08:44
mzanettitsdgeos, ack08:44
tsdgeosltinkl: https://code.launchpad.net/~lukas-kde/unity8/globalshortcuts/+merge/26960808:54
mzanettiltinkl, good morning, mind reapproving https://code.launchpad.net/~mzanetti/unity8/animate-spread-invokation/+merge/26972209:09
mzanettiltinkl, I had to resubmit with a prereq to avoid conflicts in the silo09:10
mzanettino other changes09:10
tsdgeoshmmmm09:33
tsdgeosmzanetti: ltinkl: should i be able to get a unity8 desktop session from the current packages in vivid+overlay?09:34
tsdgeosi get the greeter, to which i put the password09:34
tsdgeosand i am sent back to the greeter09:34
tsdgeosNot sure if09:35
tsdgeosFailed to connect to "/run/user/1004/ubuntu-keyboard-info" after 10 failed attempts09:35
tsdgeosmay be the cause?09:35
greyback_that's indicating the osk isn't coming up, which isn't fatal09:35
=== nudtrobert1 is now known as nudtrobert
tsdgeosright, thought so09:35
tsdgeoswonder if the unity8 process itself is crashing09:35
tsdgeoslet me see09:35
tsdgeosyep09:36
* tsdgeos debugs09:36
tsdgeosgreyback_: btw i tried yesterday again my game using qgraphcisview on the phone and still segfaults, guess still the support for multiwindow not really there?09:37
tsdgeosfake multiwindow, since the game really uses only one window09:37
tsdgeosbut i see more than one "Ubuntu Window" printed09:37
greyback_tsdgeos: it's not there09:37
tsdgeosi guess something is creating more that aren't really shown09:37
greyback_but it shouldn't crash, instead only 1 window should be visible09:38
greyback_any idea where the crash happens?09:38
tsdgeossure i can give you a bt, give me a few mins09:38
tsdgeosso this is where unity8 crashes on my desktop09:39
tsdgeoshttp://paste.ubuntu.com/12244262/09:39
tsdgeoswhat?09:39
greyback_eek09:39
greyback_have you a mix of mir 0.13 & 0.14 packages on your system?09:40
* greyback_ hopes gcc5 ABI shift isn't the cause09:40
tsdgeoslots of threads but this should not be a problem http://paste.ubuntu.com/12244264/09:40
tsdgeosgreyback_: spot on!09:41
greyback_that really is a lot of threads09:41
tsdgeosgreyback_: so i guess i can't do anything about it?09:42
tsdgeosother than move to wily? :D09:42
greyback_tsdgeos: no it should work09:42
tsdgeosah ok09:42
greyback_could you manually remove the mir 0.13 packages and try again?09:42
tsdgeosgreyback_: this is what i have http://paste.ubuntu.com/12244280/09:43
tsdgeosgreyback_: if i remove the 0.13 packages it wants to remove the unity8 package09:43
tsdgeoshttp://paste.ubuntu.com/12244284/09:44
greyback_hmm09:44
greyback_my only guess is that something other than qtmir depends on mir, which unity8 happens to use. And that something needs a rebuild09:47
greyback_I've an errand to run right now, back in 1 hour, will try to repro then09:47
tsdgeostx09:49
Saviqtsdgeos, just drop the Name= on your phone and restart unity8-dash ;)10:03
tsdgeosSaviq: why?10:04
Saviqtsdgeos, to check what happens when you remove the Name=Scopes10:04
tsdgeosi did that on the phone10:04
tsdgeoslooks exactly like what design wants10:04
tsdgeosjust the spinner10:04
Saviqno reason why it should look different anywhere else, then :)10:05
tsdgeoswell that's not the desktop spread10:05
tsdgeosit's a different code path10:05
tsdgeosmay look different10:05
Saviqright, window name10:05
* Saviq didn't really see the desktop spread for quite some time ;)10:06
tsdgeosgreyback_: the crash i get on my game is http://paste.ubuntu.com/12244384/10:09
tsdgeosis this something we should do? or u-s-c ? https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/148895910:45
ubot5Ubuntu bug 1488959 in unity8 (Ubuntu) "Tapping screen when dimmed should just restore the brightness and not activate a component" [Undecided,Confirmed]10:45
Saviqtsdgeos, ok, managed to grok what happens with the upstart job11:16
tsdgeoscool11:16
Saviqtsdgeos, apart from the fact, as you say, the scripts should not run11:16
tsdgeoswhat's wrong?11:16
Saviqtsdgeos, the problem is we're only unsetting/resetting the global vars11:16
Saviqtsdgeos, but the scripts run in the *job* env11:17
Saviqwhich isn't cleared in case of a restart11:17
tsdgeosright11:17
tsdgeosthat's actually documented afaik11:17
Saviqso after post-stop, in pre-start we still have the values in our local and job envs11:17
Saviqsure, that even makes sense11:17
tsdgeosbut it's also documented thye don't run11:17
tsdgeosso :D11:17
Saviqtsdgeos, on top of your branch http://paste.ubuntu.com/12244688/11:22
Saviqtsdgeos, we should have an autopilot test verifying those11:22
* tsdgeos starts running11:23
mzanettidandrader, hey, can you drop the whitespace here please: https://code.launchpad.net/~dandrader/unity8/removeForceActiveFocus/+merge/26960911:29
Saviqtsdgeos, shouldn't be that bad, we already have something around upstart there ;)11:30
dandradermzanetti, ok11:31
dandraderSaviq, back already? welcome back!11:31
Saviqdandrader, sounds like you weren't expecting me so soon ;D11:31
tsdgeosSaviq: so want me to do a restart 3 times and check it works? as part as that MR or separate?11:31
Saviqdandrader, thanks, happy to be around11:31
Mirvtsdgeos: have you had time to test the bug fix + unity 8 with the silo 026? I've about completed with full AP suite runs (a pain nowadays).11:31
tsdgeosMirv: yes i did, sorry i forgot to update the bug11:32
Saviqtsdgeos, you mean in an autopilot test? no, maybe just add a FIXME in there11:32
Saviqto add a test11:32
tsdgeosSaviq: ok11:32
Mirvtsdgeos: ok11:32
tsdgeosfood!11:32
mzanettianpok, hey, could this be Mir? https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/148889911:34
ubot5Ubuntu bug 1488899 in unity8 (Ubuntu) "USB keyboard not recognized Meizu 4" [Undecided,New]11:34
mzanettior rather lower layers?11:34
Saviqtsdgeos, when you back, ideas on how to get some stats on the portrait-er vs. landscape-er images? I added some console.log()s, but the maths don't add up, looks like the change is triggered more than once sometimes11:38
dandradermzanetti, done11:38
mzanettita11:38
anpokmzanetti: hardware usb issue (otg should work on mx4, shouldnt it?), could be udevd (we upgraded that a one or two months ago),11:52
anpokbut above that.. if it is detect as a keyboard on the udev level there is no reason it shouldnt work with mir11:53
anpok*detected11:53
mzanettianpok, yeah, I agree, just wanted to have another confirmation before assigning the bug way down to lower layers11:53
mzanettithanks11:53
anpokit would be interesting to get dmesg/syslog output11:53
anpokthen we would know for sure11:54
anpokbtw i did add a mir bug which will probabl converge into a udev or kvm problem11:54
anpokbecause on wily there is an issue with udev detecting the right mouse deice11:54
anpok*device11:54
anpok+within kvm11:54
mzanettigreyback_, hey, qtubuntu conflicting too (dpr silo)12:01
=== alan_g is now known as alan_g|lunch
=== MacSlow is now known as MacSlow|lunch
greybacktsdgeos: re your game backtrace, think qtubuntu doing something wrong. Have logged https://bugs.launchpad.net/qtubuntu/+bug/1490956 - if you can add anything, please do12:24
ubot5Ubuntu bug 1490956 in qtubuntu "QOpenGL widget-based app crashing" [Undecided,New]12:24
tsdgeosSaviq: you added a console.log where? in the calculation? or in the onchanged?12:32
tsdgeosthe calculation is triggered as the other two variables are calculated12:32
tsdgeosbut afaics the onchanged should only be triggered when it really changes12:32
tsdgeosgreyback: added some stuff and subscribed myself to the bug12:32
greybacktsdgeos: appreciated12:32
Saviqtsdgeos, in onCompleted and onChanged on a separate bool prop, but you're right, it might be triggered twice12:33
greybackltinkl: hey, do you still want the OOBE silo?12:36
tsdgeosSaviq: added FIXME as requested12:42
Saviqtsdgeos, tx12:44
=== davidcalle_ is now known as davidcalle
=== alan_g|lunch is now known as alan_g
ltinklgreyback, ye please13:10
greybackok13:10
=== MacSlow|lunch is now known as MacSlow
tsdgeosltinkl: so you're on wily?14:51
=== dandrader is now known as dandrader|afk
ltinkltsdgeos, on vivid15:19
tsdgeosltinkl: you're runnig your own complited unity8 or installed one?15:19
=== dandrader|afk is now known as dandrader
ltinkltsdgeos, compiled15:26
ltinkltsdgeos, in a separate session/user15:26
tsdgeosk15:27
syehHi, can someone here tell me what this line in unityshell.cpp is meant to catch:  renderer.find("LLVM") != std::string::npos15:28
syehI think it should try to match "llvmpipe" not "LLVM"15:28
mzanettimterry, hey, the QR code in arale's wizard. Did we do that ourselves or was that in cooperation with penk etc?16:00
mterrymzanetti, I believe we did not do that ourselves16:01
mzanettikgunn, do you know? ^16:01
mterrymzanetti, PES or whatever they were called used a new front-screen for it, via wizard plugins16:01
kgunnmzanetti: yeah pes thing i think16:01
kgunnpart of custom tarball16:01
mzanettiack. will talk to them16:01
mzanettithanks16:02
syehTrevinho:  in unityshell.cpp, can renderer.find("LLVM") be replaced by renderer.find("llvmpipe")?16:35
Trevinhosyeh: I think is fine... Or keeping both if it's not a problem16:57
=== alan_g is now known as alan_g|EOD
=== dandrader is now known as dandrader|lunch
syehTrevinho:  LLVM is causing a problem for our Gallium driver because we'd like to report LLVM if there's a chance we can fall back to Gallium LLVM draw path for certain operations17:30
syehWhat is the patch review process for Unity?  I am not sure if "format-patch" and "send-email" works under bzr17:34
greybacksyeh: push your branch to bzr, then create a merge proposal. See http://packaging.ubuntu.com/html/fixing-a-bug.html#committing-the-fix18:04
greybacksyeh: so push to lp:~syeh/unity/a_name_for_my_fix18:05
greybackthen can use "bzr lp-open" to open the web-page for your branch, which contains a "Propose or Merging" link18:05
syehgreyback:  thanks.  I just committed the change in my local repo.  Let me see how to push18:08
greybacksyeh: something like "bzr push lp:~syeh/unity/a_name_for_my_fix" should do the job. Have assumed "syeh" is your launchpad username, replace if needed18:09
syehso actually, I've done a "bzr add ..." then "bzr commit" before I got your message.  How do I revert that so I can do debcommit?18:11
=== dandrader|lunch is now known as dandrader
dandradermzanetti, ping19:32
mzanettidandrader, hey19:39
dandradermzanetti, do we have a branch that replaces the rectangular shadow of the app window with only the visible parts along its borders?19:39
mzanettidandrader, don't think so. Cimi said he'd be doing that but I haven't seen anything. why do you need that?19:40
dandradermzanetti, is not that I *need* it. Just noticed the issue while working on something else19:41
dandraderso I was wondering19:41
mzanettidandrader, ah. on arale?19:41
dandradermzanetti, no, N719:41
mzanettihmm... n7 shouldn't be that bad19:41
mzanettianyways, no we don't have one yet19:42
dandradermzanetti, didn't say I noticed the performance drawback. but did notice the big black semi-translucent rect and thought "hmm... seems wasteful"19:43
mzanettiright...19:44

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