/srv/irclogs.ubuntu.com/2014/10/10/#ubuntu-mir.txt

slvnHello !09:09
slvnI am developping an application for Ubuntu Touch that is native09:09
slvnit talks directly to mir, and use open gl09:09
slvnI would like to get it fullscreen09:09
slvnit works correctly in fullscreen with MIR-only09:10
slvnbut with the launcher (.click package), there is the "appmenu" (status bar with clock, battery, wifi)09:10
slvnhow to hide this AppMenu ?09:10
slvnI was told that CameraApp was totally fullscreen ... it seems, (though it also reboot my Nexus10)09:11
greybackslvn: are you using Qt?09:20
slvngreyback, no !09:20
greybackslvn: mirclient?09:20
slvnC/C++ + MIR Client09:20
slvnyes, through SDL09:20
greybackah 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 fullscreen09:23
greybackslvn: ^09:23
greybacks/SDK/SDL/09:23
slvnyes, mir/sdl works correctly09:25
slvnit sets the surface to fullscreen09:25
slvnit actually works when I run the application with mir only09:25
slvn( I did that a few month ago)09:25
slvnbut, when the app is package with click09:26
slvnand started with the launcher (upstart?)09:26
slvnthere is this status bar09:26
slvnso my "fullscreen" windows is shifted09:26
slvnI need : either to hide the status bar, or to have it sizes09:26
greybackI 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 it09:26
greybackif 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:27
slvnHmm, maybe this property has then so be set before some transaction with unity09:28
alan_gslvn: as a way of narrowing the problem: have you checked with "mir only" recently?09:29
slvnalan_g, after reflexion, "mir only" needs me to do "initctl stop unity8" + start mir_demo_server_shell09:30
slvnI haven't tried it recently09:30
slvnbut that's almost sure ...09:30
slvnbefore it just start mir09:30
alan_gslvn: there are three bits of software that may have the problem mir, unity and your program. If we can eliminate unity...09:32
slvnI fine to try !09:37
slvnmy "mir only" configuration is in fact with the "mir_demo_server_shell"09:37
slvnbut I can find this tool anymore09:38
slvncan't09:38
alan_gslvn: mir_demo_server_basic should suffice09:40
slvnhow can I turn on the "apt-get" packages system ? and which package should I get ?09:44
alan_gslvn: 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:46
slvnAnd as you said "Gallery"  is correctly hiding the status bar09:47
slvnreading the headers files09:47
slvnI might have to call "mir_wait_for"09:48
slvnafter "mir_surface_set_type09:48
alan_ggreyback said that. (But it looks like it works to me)09:49
alan_gslvn: yes, that's an async call09:50
=== slvn is now known as Guest48010
=== MacSlow is now known as MacSlow|hanout
=== Guest48010 is now known as slvn_
dufluslvn_: FYI: the state and type attributes are not implemented in mir_demo_server_*10:06
dufluthey won't do anything there10:06
dufluyet10:06
dufluWhich is why our demo clients fake fullscreen by just sizing themselves10:06
dufluIt's on the list of things to do :)10:06
* duflu -> weekend10:07
=== MacSlow|hanout is now known as MacSlow
slvn_alan_g, greyback : So I have found :)10:46
slvn_this is a typo error : calling mir_set_type() on a "State" wont work ..10:46
slvn_I will report the bug + path to SDL10:47
greybackslvn_: aha, good catch!10:49
alan_gslvn_: excellent!10:53
slvn_:) SDL has macros to load the shared library. and then is may "skip" the type. so there was no warning from the compiled10:54
slvn_compiler.10:55
slvn_then I have my issue :o)10:55
slvn_I want to use the mir surface10:55
slvn_in landscape or portrait10:56
slvn_I don't really to how to explain that, but here it is.10:57
slvn_I have a game that always plays in *vertical*. (like  a tetris ! you need to play in portrait, not in landscape)10:58
slvn_If I use a tablet Nexus10 for instance,  I want the game to be display in the portrait direction10:58
slvn_both ios and android has a way to do that11:00
alan_gslvn_: 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 orientation11:11
greybackslvn_: 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 portrait11:12
greybackslvn_: so on phones, you'll have height > width, so that's portrait by default11:13
greybackon tablet, it'll be width > height, so you'd need to rotate your game view somehow to suit11:13
slvn_yep but how to rotate my game view ?11:14
greybackslvn_: we've not fully implemented the proper way for an app to specify orientations11:14
=== MacSlow is now known as MacSlow|lunch
greybackthat I can't answer, I don't know SDK at all11:14
greybackSDL11:15
greybackgrr, muscle memory11:15
slvn_hmm, I will see what can I do with the internals of SDL11:16
=== dandrader_ is now known as dandrader
slvn_I think I would need a "mir_surface_SET_orientation", like the "get" that exists...11:54
greybackslvn_: 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
greybackyou're right though, shell should rotate and resize the surface to suit the app12:15
greybackwe're just not there yet12:15
greybackso the plan is for app to specify what orientations it supports, in the desktop file probably12:16
greybackand shell will respect that12:16
=== dandrader is now known as dandrader|afk
=== MacSlow|lunch is now known as MacSlow
slvn_greyback,  but in the end, this is the application that choose :) either by a .desktop, or a call to mir api12:29
greybackslvn_: yep in the end, the app chooses what it prefers12:30
slvn_you say the plan is to specify the orientation in the desktop file for instance. Is there a Ticket issue ?12:32
=== dandrader|afk is now known as dandrader
greybackslvn_: I've failed to locate one, so I made one https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/137977712:46
ubot5Ubuntu bug 1379777 in unity8 (Ubuntu) "Allow applications to specify the orientations supported" [Undecided,New]12:46
slvn_greyback, great, perfect, you make it understandable !12:49
kdubjenkins has a mystical ability to generate strange errors: "virtual memory exhausted"?12:49
greybackslvn_: I've no idea of time-scale when we can deliver that. But I'll update that bug when we start working on it12:50
slvn_I believe this important when creating an application that cannot react to all orientation, and that require a specific orientation12:51
greybacktotally12:54
=== 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
anpokalf__: regarind the vt switching issues..15:24
anpokregarding15:24
anpokhmm what is causing the failure?15:24
alf__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:32
alf__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 bug15:33
alf__anpok: in any case, things fail15:33
anpokoh15:34
alf__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 place15:36
=== qengho is now known as CardinalFang
=== CardinalFang is now known as qengho
anpokalf__: why would that solve the issue?15:59
anpokah16:00
mterryDoes https://bugs.launchpad.net/ubuntu/+source/mir/+bug/1379848 look like anything people have seen before?16:21
ubot5Ubuntu bug 1379848 in mir (Ubuntu) "Crash in mir::compositor::BufferQueue::give_buffer_to_client" [Undecided,New]16:21
anpokon a closing application? could this be https://bugs.launchpad.net/bugs/137632416:23
ubot5Ubuntu bug 1376324 in mir (Ubuntu) "/usr/sbin/unity-system-compositor:*** Error in `unity-system-compositor': free(): invalid pointer: ADDR ***" [High,Triaged]16:23
anpok^ mterry16:24
mterryanpok, 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, yeah16:26
=== dandrader|afk is now known as dandrader
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader

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