[09:09] Hello ! [09:09] I am developping an application for Ubuntu Touch that is native [09:09] it talks directly to mir, and use open gl [09:09] I would like to get it fullscreen [09:10] it works correctly in fullscreen with MIR-only [09:10] but with the launcher (.click package), there is the "appmenu" (status bar with clock, battery, wifi) [09:10] how to hide this AppMenu ? [09:11] I was told that CameraApp was totally fullscreen ... it seems, (though it also reboot my Nexus10) [09:20] slvn: are you using Qt? [09:20] greyback, no ! [09:20] slvn: mirclient? [09:20] C/C++ + MIR Client [09:20] yes, through SDL [09:23] ah ok. I'm not sure if SDK wraps this correctly, but mirclient has a mir_surface_set_state(MirSurface *surface, MirSurfaceState state) method where you can set the state to mir_surface_state_fullscreen - and that will make it fullscreen [09:23] slvn: ^ [09:23] s/SDK/SDL/ [09:25] yes, mir/sdl works correctly [09:25] it sets the surface to fullscreen [09:25] it actually works when I run the application with mir only [09:25] ( I did that a few month ago) [09:26] but, when the app is package with click [09:26] and started with the launcher (upstart?) [09:26] there is this status bar [09:26] so my "fullscreen" windows is shifted [09:26] I need : either to hide the status bar, or to have it sizes [09:26] I don't know of any reason why it being packaged in a click package would stop it being fullscreen. This Mir API is the only way to do it [09:27] if the surface has the fullscreen property set, then unity8 will hide the status bar at the top (camera app & gallery succeed in doing this) [09:28] Hmm, maybe this property has then so be set before some transaction with unity [09:29] slvn: as a way of narrowing the problem: have you checked with "mir only" recently? [09:30] alan_g, after reflexion, "mir only" needs me to do "initctl stop unity8" + start mir_demo_server_shell [09:30] I haven't tried it recently [09:30] but that's almost sure ... [09:30] before it just start mir [09:32] slvn: there are three bits of software that may have the problem mir, unity and your program. If we can eliminate unity... [09:37] I fine to try ! [09:37] my "mir only" configuration is in fact with the "mir_demo_server_shell" [09:38] but I can find this tool anymore [09:38] can't [09:40] slvn: mir_demo_server_basic should suffice [09:44] how can I turn on the "apt-get" packages system ? and which package should I get ? [09:46] slvn: don't bother. After a quick grep there's no code in Mir that cares about the mir_surface_state_fullscreen attribute - it is passed on to unity. [09:47] And as you said "Gallery" is correctly hiding the status bar [09:47] reading the headers files [09:48] I might have to call "mir_wait_for" [09:48] after "mir_surface_set_type [09:49] greyback said that. (But it looks like it works to me) [09:50] slvn: yes, that's an async call === slvn is now known as Guest48010 === MacSlow is now known as MacSlow|hanout === Guest48010 is now known as slvn_ [10:06] slvn_: FYI: the state and type attributes are not implemented in mir_demo_server_* [10:06] they won't do anything there [10:06] yet [10:06] Which is why our demo clients fake fullscreen by just sizing themselves [10:06] It's on the list of things to do :) [10:07] * duflu -> weekend === MacSlow|hanout is now known as MacSlow [10:46] alan_g, greyback : So I have found :) [10:46] this is a typo error : calling mir_set_type() on a "State" wont work .. [10:47] I will report the bug + path to SDL [10:49] slvn_: aha, good catch! [10:53] slvn_: excellent! [10:54] :) SDL has macros to load the shared library. and then is may "skip" the type. so there was no warning from the compiled [10:55] compiler. [10:55] then I have my issue :o) [10:55] I want to use the mir surface [10:56] in landscape or portrait [10:57] I don't really to how to explain that, but here it is. [10:58] I have a game that always plays in *vertical*. (like a tetris ! you need to play in portrait, not in landscape) [10:58] If I use a tablet Nexus10 for instance, I want the game to be display in the portrait direction [11:00] both ios and android has a way to do that [11:11] slvn_: as things are right now Mir doesn't really deal with orientation beyond mir_surface_get_orientation() - and that's under the control of unity. greyback may know if apps can lock the orientation [11:12] slvn_: on your portrait/landscape issue - I suggest you read the width & height of the surface you get from Mir, and orient your view to always be portrait [11:13] slvn_: so on phones, you'll have height > width, so that's portrait by default [11:13] on tablet, it'll be width > height, so you'd need to rotate your game view somehow to suit [11:14] yep but how to rotate my game view ? [11:14] slvn_: we've not fully implemented the proper way for an app to specify orientations === MacSlow is now known as MacSlow|lunch [11:14] that I can't answer, I don't know SDK at all [11:15] SDL [11:15] grr, muscle memory [11:16] hmm, I will see what can I do with the internals of SDL === dandrader_ is now known as dandrader [11:54] I think I would need a "mir_surface_SET_orientation", like the "get" that exists... [12:15] slvn_: that won't happen. It's not the application's decision to say what it's orientation should be. Instead the shell dictates that. [12:15] you're right though, shell should rotate and resize the surface to suit the app [12:15] we're just not there yet [12:16] so the plan is for app to specify what orientations it supports, in the desktop file probably [12:16] and shell will respect that === dandrader is now known as dandrader|afk === MacSlow|lunch is now known as MacSlow [12:29] greyback, but in the end, this is the application that choose :) either by a .desktop, or a call to mir api [12:30] slvn_: yep in the end, the app chooses what it prefers [12:32] you say the plan is to specify the orientation in the desktop file for instance. Is there a Ticket issue ? === dandrader|afk is now known as dandrader [12:46] slvn_: I've failed to locate one, so I made one https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1379777 [12:46] Ubuntu bug 1379777 in unity8 (Ubuntu) "Allow applications to specify the orientations supported" [Undecided,New] [12:49] greyback, great, perfect, you make it understandable ! [12:49] jenkins has a mystical ability to generate strange errors: "virtual memory exhausted"? [12:50] slvn_: I've no idea of time-scale when we can deliver that. But I'll update that bug when we start working on it [12:51] I believe this important when creating an application that cannot react to all orientation, and that require a specific orientation [12:54] totally === mpt_ is now known as mpt === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader === dandrader is now known as dandrader|afk [15:24] alf__: regarind the vt switching issues.. [15:24] regarding [15:24] hmm what is causing the failure? [15:32] anpok: In the nested case we create an auth fd, get the magic cookie in the nested server and ask the host to auth it. However, the magic cookie that is returned by drmGetMagic is tied to the currently active drm master, but in this particular use case, there is no active master ([1]), so the cookie is useless, the host server can't auth it. [15:33] anpok: [1] That's not exactly true, it could be that the master is the auth fd created by the nested server, but that's another bug [15:33] anpok: in any case, things fail [15:34] oh [15:36] anpok: one solution is to introduce a new client function mir_connection_drm_get_auth_fd() so that the host server can perform the GetMagic/AuthMagic calls in one place === qengho is now known as CardinalFang === CardinalFang is now known as qengho [15:59] alf__: why would that solve the issue? [16:00] ah [16:21] Does https://bugs.launchpad.net/ubuntu/+source/mir/+bug/1379848 look like anything people have seen before? [16:21] Ubuntu bug 1379848 in mir (Ubuntu) "Crash in mir::compositor::BufferQueue::give_buffer_to_client" [Undecided,New] [16:23] on a closing application? could this be https://bugs.launchpad.net/bugs/1376324 [16:23] Ubuntu bug 1376324 in mir (Ubuntu) "/usr/sbin/unity-system-compositor:*** Error in `unity-system-compositor': free(): invalid pointer: ADDR ***" [High,Triaged] [16:24] ^ mterry [16:26] anpok, the crash seems to be happening between two pages of the wizard. But the indicators and maliit-server are being restarted when this crash happens. So clients are closing and reconnecting, yeah === dandrader|afk is now known as dandrader === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader