/srv/irclogs.ubuntu.com/2014/12/05/#ubuntu-unity.txt

=== jzheng is now known as jzheng_afk
=== Malsasa_ is now known as Malsasa
tsdgeosdandrader: there?10:12
tsdgeosgreyback: you there?10:15
dandradertsdgeos, yes10:15
greybacktsdgeos: yep10:15
tsdgeosgreyback: dandrader: do you know what is creating the QTouchEvents? is it the qtmir qpa?10:16
tsdgeosin the phone10:16
dandradertsdgeos, QtEventFeeder10:16
tsdgeosdandrader: where's the code of that?10:16
dandradertsdgeos, src/platforms/mirserver/qteventfeeder.h10:17
dandradertsdgeos, src/platforms/mirserver/qteventfeeder.cpp10:17
tsdgeosin qtmir?10:17
dandradertsdgeos, yes10:17
tsdgeosoki tx10:17
tsdgeosdandrader: greyback: can i compile qtmir on the phone with this qmake or do i need some special flags?10:21
dandradertsdgeos, I always build it on the phone10:22
dandradertsdgeos, with qmake. nothing special10:22
tsdgeosok, no special flag, just run qmake, good10:22
dandradertsdgeos, but I pass it CONFIG+=no_tests to speed up the build10:22
tsdgeosoki10:22
dandradertsdgeos, check the readme10:22
tsdgeossorry ^_^10:23
dandradertsdgeos, I also pass it PREFIX=/usr, although I'm not sure it it's really needed10:24
greybackdandrader: for qmake, that's not needed10:26
Saviqor!10:29
Saviqx-build!10:29
Saviqthe cmake-based qtmir is migrating now ;)10:30
pstolowskitsdgeos, hey, there is conflict in https://code.launchpad.net/~aacid/unity8/list_on_bottom_swipe, can you update?10:40
tsdgeosdandrader: if i put a qDebug in QtEventFeeder::dispatchMotion should i see it in the unity-dash.log if it's the dash i'm pressing over?10:40
tsdgeospstolowski: hmmm10:41
tsdgeos$ bzr merge ../unity8/10:41
tsdgeosNothing to do.10:41
tsdgeosmaybe i have not pushed?10:41
dandradertsdgeos, no10:41
dandradertsdgeos, it will be in unity8.log10:41
tsdgeosok10:41
tsdgeospstolowski: it's pushed10:41
tsdgeospstolowski: conflict with what?10:41
dandradertsdgeos, QtEventFeeder lives in the unity8 process. it takes an event out of mir and puts it into unity8's QQuickWindow10:41
tsdgeosdandrader: but unity8-dash has a different window, how events get there?10:42
dandradertsdgeos, if you wanna track the input events that unity8 sends to client apps check MirSurfaceItem in qtmir10:42
tsdgeosdandrader: well i have an input event that "seems" wrong10:42
tsdgeosi'm trying to track where goes wrong10:42
tsdgeosor if it's just sent wrong by autopilot10:42
tsdgeosok, tx for the pointers10:43
pstolowskitsdgeos,  debian/control10:44
tsdgeospstolowski: merging which branches?10:44
dandradertsdgeos, src/modules/Unity/Application/mirsurfaceitem.cpp:61510:45
pstolowskitsdgeos, trunk. unity8 just landed10:45
dandradertsdgeos, that's where unity8 sends a mir input event down to the client app10:45
pstolowskitsdgeos, i mean, another chanes in unity8 landed10:45
tsdgeospstolowski: ah unity8 just landed10:46
tsdgeosk10:46
dandraderoh... qtmir trunk now uses CMake10:46
greybackyep, proper cros building now possible10:47
tsdgeosnoooooooooooooo10:47
dandradergreyback, Saviq, qtmir README still talks about qmake :)10:47
tsdgeosnooooooooooooooooo10:47
* tsdgeos shakes fist10:48
greybackd'oh10:48
tsdgeos107 tags updated.10:48
tsdgeosSaviq: ↑10:48
Saviqmterry!!!!10:48
dandradergreyback, do we have a CONFIG+=no_tests equivalent?10:48
greybackdandrader: probably not10:48
dandradergrrrrr10:48
greybacksorry10:49
Saviqeasy to add10:49
Saviqcopy/paste from usc10:49
tsdgeospstolowski: ok, merged10:49
pstolowskitsdgeos, thanks10:51
tsdgeosmzanetti: merge your branches plz10:53
tsdgeosText conflict in debian/unity8-common.install10:53
tsdgeos1 conflicts encountered.10:53
mzanettiagain :D10:53
mzanettitsdgeos: ack, will do. thanks10:53
* tsdgeos keeps digging up11:08
tsdgeosdandrader: who calls QtEventFeeder::dispatch ?11:08
tsdgeosi guess mir11:11
dandradertsdgeos, yes11:11
* tsdgeos ends where he didn't want to end11:11
Saviqgreyback_, dandrader, I had to overwrite lp:qtmir and lp:qtmir/gles11:15
Saviqit has dome dumb empty commits from the train on top11:15
Saviqs/has/had/11:16
Saviqs/dome/some/11:16
greyback_ok11:16
mzanettigreyback_: hey, I had to push some change to the uninvert-launcher branch11:30
mzanettigreyback_: mind reapproving?11:30
tsdgeosmeh i want to build mir but don't have enough space in the phone :/11:30
greyback_mzanetti: ok looking11:30
mzanettigreyback_: so the issue is that the launcher changed in trunk, which I merged11:30
mzanettigreyback_: unfortunately had to clip11:30
greyback_naughty11:31
dandradertsdgeos, to the ubuntun image resize trick!11:35
dandradertsdgeos, and use mako, not krillin11:35
tsdgeosdandrader: i'm on mako, my krillin has enough space :D11:35
dandraderif you say so11:36
greyback_tsdgeos: I've not rebuilt mir for phone in a while, but I know the team use their own chroot-based Xcompile scripts11:36
Saviqtsdgeos, for when x-building doesn't work, I started using a chroot in $HOME on the device11:36
tsdgeosright11:36
tsdgeosthat makes sense-ish11:36
Saviqcan get you a rootfs11:36
dandradertsdgeos, just in case http://paste.ubuntu.com/9381191/11:36
=== dandrader is now known as dandrader|afk
Saviqyeah that's not gonna work on krillin11:37
Saviqwe have real partitions there11:37
* Saviq recommends chroots11:37
Saviqthey survive flashing etc.11:37
Saviqand it's real easy to debootstrap into a folder11:37
mzanettitsdgeos: merged 'em all11:38
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== dandrader|afk is now known as dandrader
=== alan_g is now known as alan_g|lunch
dandraderSaviq, so have 107 stale tags leaked into unity8?13:47
Saviqdandrader, yes, mterry managed to land them yesterday13:47
dandraderSaviq, your script doesn't seem to detect them13:47
Saviqdandrader, you might not have the latest instalment http://people.canonical.com/~msawicz/unity8/strip-tags.py13:48
Saviqthis should remove all the invalid tags13:48
dandraderSaviq,  yeah, now it works13:48
=== alan_g|lunch is now known as alan_g
seb128where is the app details page come from in unity8/touch (the one you get when you long press on an app icon)14:36
Saviqseb128, the click store in general14:41
Saviqseb128, falling back to the .desktop file14:41
seb128thanks14:41
Saviqmzanetti, think you could prep a vivid silo? I'd want to focus on the first ota landing14:48
Saviqmzanetti, don't build yet, list_on_bottom_swipe is migrating already, but it's blocked in proposed for a while still14:49
mzanettiSaviq: sure. is there a spreadsheet entry already?14:50
Saviqmzanetti, no14:50
=== dandrader is now known as dandrader|lunch
mzanettiack14:52
tsdgeosmzanetti: what do you mean in https://code.launchpad.net/~aacid/unity8/deparment_jumping/+merge/243639 ?14:55
mzanettitsdgeos: I open the store and even though the department selection says "all" I only see the music section14:56
tsdgeosmzanetti: in the navigation list? or as part of the results?14:56
mzanettitsdgeos: results14:56
tsdgeosmzanetti: the list is still full of stuff?14:56
mzanettino, only has the media section too, and "all"14:56
tsdgeosweird14:58
tsdgeosi'll check14:58
tsdgeosmaybe it really needs the scopes shell part14:58
Saviqgreyback_, can you have a look at bug #1394645 please15:00
ubot5`bug 1394645 in The Webapps-core project "OSK doesn't appear after OA login" [Critical,Confirmed] https://launchpad.net/bugs/139464515:01
greyback_Saviq: sure15:04
Saviqgreyback_, it seems from the last comments like we might be on the hook there15:13
greyback_Saviq: yeah I think you're right15:18
tsdgeosCimi: you're reviewing my debug output to try to find what's wrong :D15:27
tsdgeossorry should have marked as DO NOT REVIEW YET15:27
Cimitsdgeos, I saw you filled the description so I thought it was good to go :)15:28
=== dandrader|lunch is now known as dandrader
kgunnSaviq: i don't think these are unity8....do you agree ?15:43
kgunnbug 139842715:43
ubot5`bug 1398427 in qtmir (Ubuntu RTM) "Can't use earphone to answer or disconnect a call" [Critical,In progress] https://launchpad.net/bugs/139842715:43
kgunnbug 139464515:43
ubot5`bug 1394645 in The Webapps-core project "OSK doesn't appear after OA login" [Critical,Confirmed] https://launchpad.net/bugs/139464515:43
Saviqkgunn, the latter one is between u8 and qtmir it seems15:43
Saviqkgunn, the former we're debating, have asked for design feedback to start with15:43
Saviqkgunn, they're "ours" in the sense there might be little or more work in it15:44
Saviqfor us15:44
tsdgeosCimi: ok, you can review https://code.launchpad.net/~aacid/unity8/autopilot_drag_more/+merge/243367 now, but better let it run in CI and see if it passes15:46
tsdgeosi had it running on the phone for 45 minutes and succeded all the time so is looking good15:46
tsdgeosbut you never know15:46
Cimitsdgeos, if it is a workaround, add a comment linking the bug15:48
tsdgeosi can't15:48
tsdgeosi have not filed the bug yet15:48
Cimiok so file it :P15:48
Cimiyou said filed in the commit :P15:48
tsdgeosi am a lier15:49
tsdgeosyou got me15:49
Cimi:D15:49
Cimi * Did you make sure that your branch does not contain spurious tags?15:50
Cimihah15:50
CimiI think I lied sometimes on that15:50
* Cimi slaps himself15:50
=== Malsasa_ is now known as Malsasa
tsdgeosCimi: happier now? https://code.launchpad.net/~aacid/unity8/autopilot_drag_more/+merge/24336715:55
Cimitsdgeos, the comment was to be added in the code :P15:55
tsdgeosthat's nonsense15:56
tsdgeoswhat do we have commit logs for then?15:56
Saviqmterry, looks like bug #1363400 is coming your way15:56
ubot5`bug 1363400 in unity8 (Ubuntu) "[wizard] allows to "Continue" without connecting to network" [High,Triaged] https://launchpad.net/bugs/136340015:56
Cimitsdgeos, why? we usually add FIXME in code for this reason15:56
Cimiwhen we workaround things15:56
tsdgeoswhich i complain every single time we do that15:56
tsdgeosif we're going to make our commit logs useless we may as well keep them empty15:56
mterryhmm, Cimi knows that code better than me -- do you know what's going on with the above bug? ^15:57
tsdgeosCimi: but sure, i'll add it there15:57
tsdgeosnot that i care :D15:57
Cimitsdgeos, I am happy both ways, just we need to keep going with the same rule15:57
Cimilet's discuss with saviq and others15:58
Cimimterry, there is a stupid counter for wifi15:58
Cimimterry, we need more capability from network indicator, like a value saying "wifi is connected"15:58
mterryCimi, it doesn't tell us that?15:58
Cimimterry, it didn't when I wrote that code iirc15:59
tsdgeosCimi: added15:59
mterryCimi, can I assign the bug to you?15:59
Cimimterry, is not on me...16:00
mterryCimi, right, but someone needs to do the u8 side and make sure the network side gets done16:00
Cimimterry, ok then16:00
Cimimterry, just looked at the code16:01
SaviqCimi, if we need more from some backends, add a task for it16:01
CimiSaviq, yeah, months ago answer was "not a priority"16:01
CimiSaviq, will chase again16:02
mterryCimi, thanks!16:02
SaviqCimi, it just became a priority as the bug is targeted for the milestone in 2 weeks16:03
SaviqCimi, so you got some push behind you this time16:03
mterrySaviq, if it's targetting rtm, the code change will be in u-s-s16:05
Saviqmterry, ah right16:05
Saviqmterry, this is going to be a tricky one16:05
Saviqmterry, so it affects unity8 (Ubuntu) but u-s-s (RTM16:05
mterrySaviq, heh, right16:05
Saviqgreyback_, fix for bug #1365673 still on hold?16:07
ubot5`bug 1365673 in unity8 (Ubuntu) "/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene:6:qt_message_fatal:QMessageLogger::fatal:UbuntuClientIntegration::UbuntuClientIntegration:UbuntuMirClientIntegrationPlugin::create:loadIntegration" [High,Confirmed] https://launchpad.net/bugs/136567316:07
greyback_Saviq: yeah, I suspect it breaks something else16:07
Saviqgreyback_, any chance for a fix for 18.12?16:08
greyback_Saviq: well if it's some other issue (which this far I've been unable to determine/reproduce) then unlikely. If it's just that, then looks good16:09
Saviqgreyback_, ok, I'll leave it in for that milestone for now then16:09
tsdgeosmzanetti: you tried  lp:~aacid/unity8/deparment_jumping  on rtm or vivid?16:11
mzanettitsdgeos: vivid16:13
tsdgeosok16:15
dandradermterry, got an MP for you to review https://code.launchpad.net/~dandrader/unity8/greeterRefactoring/+merge/24382316:20
dandradermterry, I cherry picked it out of the shellRotation work16:21
mterrydandrader, oof ok16:21
dandradermterry, so it can be reviewed separately.16:21
mterrynice, thanks16:21
Saviqtsdgeos, I'll wait for moreAsyncDash before landing the other bits in rtm, ok?16:25
tsdgeosSaviq: sure16:25
tsdgeosCimi: actually you want to give it more time on https://code.launchpad.net/~aacid/unity8/moreAsyncDash/+merge/241524 or ?16:26
Cimitsdgeos, ccan we retrigger ci?16:26
tsdgeossure16:26
Cimiso for monday we are ok to go?16:27
tsdgeoshmmm16:27
tsdgeosactually did i lose the hability to retrigger builds?16:28
tsdgeosSaviq: any idea? ↑16:28
Saviqtsdgeos, seems I have, too16:29
tsdgeosCimi: so no, can't retrigger a build :D16:29
tsdgeosi'll merge16:29
Saviqtsdgeos, ah, it's all the network etc. issues in CI16:29
tsdgeosthat should trigger one16:29
Saviqtsdgeos, it won't16:29
Cimitsdgeos, great16:29
tsdgeosoh :/16:29
Cimiah16:29
Saviqtsdgeos, there's still issues in the lab they're working on16:29
* greyback_ hates that QtCreator just fails to open cmake project if a dependency is missing16:33
Saviqgreyback_, +1, but I'm not sure it's QtC's fault.., cmake just doesn't generate the list of files that QtC uses then16:49
Saviq(I think)16:49
greyback_Saviq: sure I get that, but that's a technical reason which I don't hugely care about. Prompt me, force cmake to generate as much as it can, and disable building16:50
greyback_then I can still read & edit code16:50
Saviqmaybies16:50
Saviqgreyback_, btw, seems kgunn threw bug #1394645 josharenson's way16:59
ubot5`bug 1394645 in The Webapps-core project "OSK doesn't appear after OA login" [Critical,Confirmed] https://launchpad.net/bugs/139464516:59
greyback_Saviq: ok16:59
kgunnunless greyback_ you wanna give josharenson an early christmas present :)16:59
kgunnand just fix it16:59
josharenson:-D16:59
greyback_will see17:00
josharensonI have another question for you greyback_ before you go eow, gimmie a min17:00
greyback_not sure where focus has gone to17:00
greyback_ok17:00
josharensongreyback_ so current screenshot logic (the actual screengrab) is handled in qml now...17:07
josharensonso does USC/mir have the ability to take screenshots already?17:07
greyback_josharenson: it does, just via a different mechanism.17:08
josharensongreyback_ I figured.. ok ill go look for it17:08
greyback_josharenson: have a look at mir::scene::Session::take_snapshot17:09
josharensoncool17:09
greyback_an example of it being used is in qtmir: src/modules/Unity/Application/applicationscreenshotprovider.cpp17:10
josharensonack, thanks17:13
josharensonhummm so if screenshots are handled in USC, how will the user receive feedback17:18
greyback_josharenson: what feedback should the user get? Noise being played? Screen flash?17:20
josharensongreyback_ yes17:20
josharenson:-p17:20
josharensongreyback_ also, I assume it should be encoded via something like libping rather than being converted to a QImage17:20
josharensonlibpng17:21
mzanettijosharenson: QImage::saveToFile()17:21
josharensonmzanetti, trying to avoid the use of qml in usc, unless that isn't an issue17:22
josharensonwell qy17:22
josharensonqt*17:22
* josharenson can't type today17:22
greyback_josharenson: I didn't know you could use Qt. You can use the qmultimedia stuff to play back sound - not sure if it'll work as root user, but one way to find out17:23
greyback_the white flash, well, 1 form of feedback is probably enough? Sound should do it, no (sorry hearing-impaired people)?17:23
josharensongreyback_ trying not to use Qt....17:23
greyback_josharenson: then you've hard work ahead of you :(17:24
greyback_can probably use pulseaudio C library to play sound17:24
josharensongreyback_ is there any reason not to use qt? kgunn had asked me about it and I told him I would avoid it17:24
mzanettijosharenson: there's already Qt in there17:24
mzanettiat least it links qtcore and qtdbus17:24
josharensonmzanetti, so... any disadvantage to adding more? Just trying to keep screenshots shell agnostic17:25
* greyback_ might've heard that people wanted to remove Qt dependency from USC17:26
greyback_kgunn: ^^ any truth to that?17:26
josharensongreyback_ is there any way shell can listen to USC for events?17:26
greyback_josharenson: via dbus would be only way17:27
josharensongreyback_ thats not bad... then any shell could listen for the screenshot dbus signal and notify the user however it wants17:27
greyback_true17:28
josharensonand libpng could, I assume, save the raw pixel data to $USER17:28
josharensonwell after encoding17:28
greyback_well if you have qt, I don't see why you shouldn't just use it17:29
* mzanetti is a bit lost here17:29
josharensonmzanetti, I guess the tl;dr is I want to move screenshot logic entirely to USC and minimize (or not at all) use of Qt17:30
mzanettiyeah... I understand that... did anyone tell you to avoid Qt?17:31
josharensonmzanetti, kgunn had asked me something like "will moving screenshots to usc mean there will be more qt in usc?"17:32
josharensonso I assumed it was discouraged17:32
mzanettiah... you I guess you'll have to clarify if that's true. would be news to me.17:34
kgunnmzanetti: i don't know if it's a completely bad thing...but there was some reason we were thinking we wanted to pull qml out of u-s-c17:36
kgunni guess more of a "is this really a necessary dependancy?" kind of thot17:36
kgunnalan_g: AlbertA ^17:36
alan_gAIUI there were security concerns about Qt in a privileged task. (But I wasn't directly involved in those discussions)17:38
AlbertAkgunn: josharenson: why move screenshots to USC?17:41
greyback_kgunn: alan_g: whatever these "security concerns" are, the other side of the argument should be development time and convenience. the phrase "security concerns" always sounds like FUD to me17:41
AlbertAI thought we convinced ourselves it was not a good idea for it to be in USC17:41
kgunnAlbertA: but why ?17:42
AlbertAkgunn: well one reason was encrypted user folders17:42
kgunni recall the conclusion, but not the reason17:42
mzanettihmm... I guess that's a good point17:43
AlbertAkgunn: and you would be screenshotting the root server17:43
josharensonAlbertA, was because we wanted to switch screenshots to power + volume, and power key was in USC17:43
mzanettiAlbertA: so the reason this happens is because we thought using the power key would be a better idea than up/down17:43
kgunne.g. workingn around volume notification is hard+hacky17:44
kgunnin shell17:44
mzanettibut I can see the point about moving the shotting logic to usc might be a bad idea17:44
kgunnso expose shell to power key instead ?17:44
AlbertAmzanetti: kgunn: ok...but how would volume + power key help? doesn't it still popup the volume notification?17:44
kgunnusc would filter i suppose17:45
mzanettiAlbertA: power + volume would help though17:45
mzanettiyeah, exposing the power key to unity might be way to go17:45
josharensonWhat if we just added the delay to volume key presses (and cancel on release) as we talked about earlier17:45
kgunnhacky17:46
kgunnmainly...but i thot it would work17:46
AlbertAmzanetti: sorry I still don't get it...how does power + volume help? I mean the volume notification comes in during a volume press17:46
josharensonkgunn, we should do that anyway as to make the button press order independent17:46
mzanettiAlbertA: well, we trigger the notification in the shell if the volume key is pressed down17:46
kgunnjosharenson: don't have to convince me :)17:46
alan_ggreyback_: if someone has to vet all the Qt code that could slow things a lot17:46
mzanettiAlbertA: but we can if() that with isPowerButtonPressed17:47
greyback_alan_g: we rest a huge percentage of the platform on qt17:47
AlbertAmzanetti: aaahh ok...17:47
greyback_if the policy is to avoid using qt for root-user processes, then there'll be a development time cost17:48
AlbertAgreyback_: there's only a tiny bit of QT in USC, which can easily be replaced with dbus-cpp and process-cpp17:48
alan_ggreyback_: I'm speculating - as I said I wasn't involved in the discussions17:48
greyback_AlbertA: sure, but I'm asking if doing that is worth the trouble17:49
AlbertAmzanetti: josharenson: well anpok has a branch that kinda exposes the power key stuff through dbus, but it needs some work17:50
alan_gAnyway "don't use Qt in USC" dates from the "previous administration". We might want to check current thinking.17:50
AlbertAmzanetti: josharenson: including disabling taking action on power key presses17:50
mzanettialan_g: ah... I thought that would be a new thing... would have surprised me17:50
AlbertAgreyback_: well there's already a desire to refactor USC17:50
* josharenson notes that could be helpful with orientation sensors as well17:51
AlbertAgreyback_: that would just be part of that refactoring17:51
mzanettiAlbertA: josharenson: yes, that sounds like the way to go17:51
camakoLast time I asked why we have the nested configuration, the response was because we don't trust Qt, whereas, say, Google uses trusted code in their "shell".17:51
greyback_AlbertA: ok great, then this is a good time to decide to use Qt in USC, or not. Mixing Qt and other libs is wasteful17:51
AlbertAgreayback_: right!17:52
mzanettibut seriously... doing everything ourselves can't be more secure17:52
josharensonok so, keep screenshots in shell, but use power key?17:52
mzanettijosharenson: yeah17:53
josharensonmzanetti, ok follow up question...\17:53
AlbertAmzanetti: josharenson: I mean as a bandaid pending anpok's work...17:53
alan_gmzanetti: we do as little as possible in USC17:53
greyback_kgunn: if security/trust is the main reason against Qt in USC, can we have a meeting to discuss this topic with some security team people?17:53
josharensonmzanetti, you are ok with adding a delay to the notification onVolumeKeyPressed, but canceling the delay onVolumeKeyReleased?17:53
AlbertAmzanetti: josharenson: just have USC not take action on power key presses if a volume key is also currently pressed down17:54
josharensonso you can do Vol + Power || Power + Vol for a screenshot17:54
greyback_kgunn: just so we make the decision clear for all17:54
mzanettijosharenson: getting away with any delay/timers is the main thing we're doing this...17:55
josharensonAlbertA, do we support holding VolumeDown + Power for a hard reset?17:55
mzanettijosharenson: I guess Power+Vol, in that order, is enough17:55
josharensonmzanetti, ok so you think we should keep the screenshot button sequence order dependent...17:55
josharensonok17:55
AlbertAjosharenson: it should be button sequence independent17:55
mzanettiAlbertA: :D17:55
josharensonimpossible to do without some kind of delay17:56
AlbertAjosharenson: yo can know if a volume key is currently pressed and not released17:56
josharensonI know17:56
mzanettiAlbertA: but... then we need a delay, and we don't want to delay the volume notification that everyone uses, for the screenshot feature that noone uses17:56
josharensonbut if you want to display the notification without a delay, then it will always be in screenshots17:56
AlbertAjosharenson: oh yeah heh17:56
josharensonso you get delay, or order dependence... I'll implement order dependence, but make it easy to switch17:57
AlbertAjosharenson: well actually maybe we can change USC so that it takes action on power key release rather than press17:57
josharensonAlbertA, but don't you hold power key for shutdown?17:58
AlbertAjosharenson: yeah...I guess the 2s delay is too short....17:59
AlbertAI remember now why I avoided the power key in the first place :18:00
josharensonok, doing it the mzanetti way, and I'll add you all as reviewers so you can have a final argument ;-)18:00
AlbertA:)18:00
josharensonha18:00
mzanetti:D18:00
AlbertAmzanetti: josharenson: so it's too convoluted to tell the volume notification to dissappear?18:02
kgunnah good...didn't miss anything18:02
=== alan_g is now known as alan_g|EOW
josharensonAlbertA, thought of that... but what if you WANT the volume notification in the screenshot18:03
AlbertAjosharenson: :) well then there's nothing to change18:04
josharensonlol18:04
mzanettiAlbertA: you might only want it in the pic *sometimes*18:04
mzanetti:D18:04
mzanettino?18:05
josharensonyeah18:05
AlbertAmzanetti: make it a system settings option ;)=18:05
josharenson99% of the time you don't want it... but you might want to show someone how loud you are listening to a song at18:05
mzanettiAlbertA: requires it's setting in the welcome wizard, even18:05
AlbertAmzanetti: josharenson: so the main obstacles are, if power key press should come first, then how can USC know to ignore taking action? but it's the opposite in the shell....18:07
AlbertAthat means USC has to take actions on power key release, except for holding power key down for a period of time...18:07
josharensonAlbertA, you have to assume that the delay for a screenshot is shorter than that for shutdown18:07
josharensonso.. bad18:08
AlbertAthen in that case the user has to race agains the 2S limit before the shutdown dialog comes in18:08
mzanettiAlbertA: yeah, that's already happening afaik18:08
mzanettiAlbertA: you only turn the screen off on release18:08
mzanettiAlbertA: so if then a vol button comes in, we'd need to cancel the shutdown menu18:08
AlbertAmzanetti: oh true....18:09
mzanettiactually... the shutdown menu is already in the shell, so no problem with that18:09
mzanettiit's be nice to cancel the screen blanking on release though18:10
AlbertAmzanetti: right...18:10
mzanettihow do we cancel the screen blanking onRelease when the shutdown menu opens?18:10
mzanettiisn't it just setting event.accepted=true in the shell?18:10
josharensonI'm assuming this is why screenshot currently doesn't involve the power key18:11
AlbertAmzanetti: you would still race agains the 5sec shutdown timeout too though...but 5s should be enough time for the user to get a vol key in there and cancel that in USC as well18:11
* josharenson checks android behavior 18:11
AlbertAmzanetti: there's already some logic in USC18:11
AlbertAto ignore power key presses within the 2sec window :)18:12
greyback_how about something different? if you hold power & tap on the screen, it takes a screenshot?18:13
josharensongreyback_ so do you disable all other touch events when power is down?18:15
mzanettigreyback_: doesn't really solve that issue though18:15
AlbertAgreyback_: I think you could probably get spurious screenshots while trying to shut off the phone18:15
mzanettiand you still need to cancel the screen blanking18:15
josharensonor if you had a fullscreen app, and touching the screen changed its state in any way, the screenshot would not be what the user expected18:15
greyback_thinking out of the box here18:15
mzanettiAlbertA: so that new upcoming api will allow us to do that?18:15
mzanettiin that case, lets do it properly when we can...18:16
AlbertAmzanetti: well here's the branch: https://code.launchpad.net/~andreas-pokorny/unity-system-compositor/expose-powerkey-state-and-screen-toggle-controller-interface/+merge/24083418:17
AlbertAanpok: ^18:17
AlbertAmzanetti: you could potentially receive power key press, receive volume key press, disable screen toggling, take screenshot, and renable screen toggling after getting power key release18:19
AlbertAseems a bit dangerous though...as in....if abused or not done right, the user may not be able to shut off the screen18:20
AlbertAso maybe the API should be just disable screen toggling until the next power key release18:20
mzanettiAlbertA: yeah... sounds about right18:23
mzanettialthough I think it wouldn't be that risky to disable and re-enable it in unity...18:24
anpokAlbertA: aye - still need to rework it18:39

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