/srv/irclogs.ubuntu.com/2016/09/29/#ubuntu-mir.txt

alan_ggreyback: do you agree this is the right approach? https://bugs.launchpad.net/miral/+bug/1628630/comments/108:38
ubot5Ubuntu bug 1628630 in MirAL "miral should not change surface geometry because it got maximized" [Medium,In progress]08:38
greybackalan_g: I do agree08:39
alan_gthanks08:39
=== marcusto_ is now known as marcustomlinson
zzarrhello! is it possible to run the 16.10 mir version on 16.04 with an overlay (or other ppa)?09:04
anpokstable-phone-overlay gets the same mir version that is released to yakety09:05
anpokhttps://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay09:05
=== davmor2_ is now known as davmor2
zzarranpok, that works on my desktop?10:51
zzarrE: The repository 'http://ppa.launchpad.net/ci-train-ppa-service/landing-031/ubuntu xenial Release' does not have a Release file.10:54
zzarrohh... that was another repo10:55
zzarryes the one you linked is fine10:55
zzarrI should fix... but I feel that the release of Yakkey is to close to care10:56
om26erHello! How reliable is fbset under Mir, shall I use it in production ready code to query screen resolutions ?11:21
=== hikiko is now known as hikiko|ln
greybackom26er: I don't think fbset would have anything to do with mir. fbset reads the geometry of the primary framebuffer, so the resolution of your "first" screen11:31
greybackom26er: what are you wanting to do?11:31
om26ergreyback, I am trying to replace some code in autopilot that have hard-coded resolutions for some devices like mako, grouper etc. I want to make that dynamic by talking to the system11:32
om26ersince I want the code to work both under Mir and X11, I probably have limited options, but fbset seems to work under both11:33
greybackom26er: if you want it display server independent, then yeah, fbset is best that I know of11:34
greybackfbset no good with multiple displays tho11:35
greybackMIR_SOCKET=/run/mir_socket mirout  only works if Mir running11:35
greybackom26er: coud you ask the toolkit? Toolkit should know the display geometry11:36
greybackdanger with fbset might be on something like M10, whose display is rotated11:37
om26ergreyback, hmm, for reliability I could have a hybrid xrandr/mirout solution. though if I can talk to the toolkit that would be cleaner though it would only be tied to Ubuntu then.11:37
greybackmode "1200x1920-0"   <- output on my M1011:38
om26erbummer11:38
greybackmirout reports the same11:39
greybackwe have to fix how rotation is reported11:39
greybackunfortunately at the moment, I cannot provide you a reliable way of getting the actual screen geometry (incorporating rotation) - I fear for now you'll need a per-device rotation hack11:45
zzarrwould a Intel Joule 570x thrive with Mir?12:05
zzarrmy question is, would it be possible and a good idea to use Intel Joule as a platform for a phone?12:16
kdubzzarr, if it has a mesa driver (probably) then its alright, you might need to backport the mir patches to the egl triee12:19
kdubsorry, the mir patches to the egl bits in the mesa tree12:19
zzarrokey12:21
zzarrI'm thinking about designing a qwerty slider with a mouse-pointer feature12:22
zzarr(propably a gaming stick for mouse)12:22
=== hikiko|ln is now known as hikiko
om26ergreyback, how can I check if the current display server is Mir ? Can I rely on /run/mir_socket mirout existence ?12:40
om26er*/run/mir_socket existence12:40
greybackom26er: eh. That is a socket which can be located anywhere. On desktop, I think it at /tmp/lightdm-mir-012:41
greybackom26er: check if MIR_SOCKET env var is set, probably safest12:41
=== chihchun is now known as chihchun_afk
=== dandrader is now known as dandrader|afk
=== dandrader_ is now known as dandrader
=== JanC is now known as Guest12605
=== JanC_ is now known as JanC
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
om26ergreyback__, it seems MIR_SOCKET is not in the environment at all16:01
bregmaom26er, what is you environment?16:01
om26erI want to be very safe while detecting if the display server is based on Mir. For example it could be the demo server or unity8 server, is there lower level interface to check that16:01
om26erbregma, I tested on Arale and kvm16:02
greyback__om26er: it won't be set in the global env, but will be set in the env of any app that needs a display server16:05
bschaeferhmm the MIR_SOCKET should be unset since the default socket location will be under XDG_RUNTIME_DIR16:13
bschaeferyou need MIR_SOCKET when you're running in kms/tty1 while X is running16:13
* bschaefer is also a little unsure about U8 :)16:13
om26erI need to detect which display server is running in python/shell. There are quite a few ways to check if X the display server. For Mir, probably currently I could check if Unity8 is running.16:20
bschaeferom26er, can you just attempt to connection to the mir server?16:20
bschaeferif it fails then its not around?16:20
om26erbschaefer, How to ?16:20
bschaefermir_toolkit/mir_connection.h:63:MirConnection *mir_connect_sync(char const *server, char const *app_name);16:21
bschaeferthough not sure about python16:21
bschaeferthe other thing is to check XDG_RUNTIME_DIR for a mir_socket or MIR_SOCKET16:22
bschaeferXDG_RUNTIME_DIR/mir_socket should exist or MIR_SOCKET should be around16:22
=== dandrader is now known as dandrader|afk
=== chihchun_afk is now known as chihchun
=== 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!