[06:54] duflu: btw the discussion with you did inspire me to a working solution. I installed Ubuntu from USB stick to another USB stick on my another computer, and then booted that up on the Chromebook, therefore bypassing gfxboot [06:55] since gfxboot is only used on live usb for the legacy boot [06:56] Mirv: Oh good trick [06:57] I might try that [07:05] anpok_: vscroll events are now magnitude 1.0 for mouse wheels. Is that new? [07:05] Weren't they 1/15 before? [07:35] greyback_: Figured out why touchpads in Unity8 don't feel very accurate. We convert the floating point input to integers :P [07:35] duflu: we do? Where? [07:36] greyback_: handleWheel* ... QPoint [07:36] rather than QPointF [07:38] Touchpad two-finger scrolling is normalized... a float usually less than 1.0 [07:38] 1.0 just means "the same amount as a mouse wheel tick" [07:39] duflu: ok, nice find. Patch on the way? [07:40] greyback_: Sorry, I need to get more Xmir done before EOW [07:40] duflu: bug logged? [07:40] (just added smooth scrolling there too) [07:40] greyback_: Yep, top of the Qtmir list [08:04] anpok_: vscroll events are now magnitude 1.0 for mouse wheels. Is that new? [08:04] I'm not complaining, but I thought it was 1/15th before === greyback_ is now known as greyback === hikiko is now known as hikiko|ln [11:52] hi [11:52] how do you run gedit on mir from cli? [11:56] zone42314: GDK_BACKEND=mir gedit [11:57] Failed to connect to Mir: Failed to send message to server: Success [11:57] (gedit:11651): Gtk-WARNING **: cannot open display: [11:57] doesn't work [11:57] Which Mir server are you running? What arguments? [11:57] i'm using the terminal app on unity8 [11:57] not on server [11:58] i need to launch gedit from terminal app [11:58] but using mir gdk mir or whatever is called [11:59] U8 needs something like GDK_BACKEND=mir gedit -- --desktop-file [11:59] In this case Unity8 is your Mir server [12:00] alan_g: some programs just throw and error if you use -- args [12:00] how do you launch them? [12:00] if you can't use -- [12:00] zone42314: that's not my doing [12:01] where to ask? [12:01] unity channel? [12:01] you may need MIR_SOCKET=/tmp/mir_socket too [12:01] #ubuntu-touch or #ubuntu-unity might be good places [12:01] ok thanks [12:01] although most the people there hang out here and vice versa [12:02] But that ought to be set if the terminal's running under U8 [12:03] SDL_VIDEODRIVER=mir supertux2 -- --desktop_file_hint=unity8.deskop [12:03] Error: Unknown option '--''. Use --help to see a list of options [12:03] :( [12:03] is there a way to workarround this error? [12:04] zone42314: no point (yet) SDL_VIDEODRIVER=mir supertux2 doesn't work on any mir servers [12:05] what does ubuntu-app-launch do? [12:06] looks like you can launch supertux2 with 'ubuntu-app-launch supertux2' [12:06] and i don't see using Xmir [12:06] That probably starts an Xmir server [12:06] but then i should see the Xmir in top [12:06] right? [12:06] True [12:06] but i don't [12:07] What system you running? Xenial? [12:07] 16.10 [12:07] Ah. That may have a more recent SDL than I've got [12:08] ibsdl2-2.0-0/yakkety,now 2.0.4+dfsg2-1ubuntu1 amd64 [installed,automatic] [12:08] probably not [12:09] Is ubuntu-app-launch a script? [12:09] hey, i'm here for help :D [12:09] don't now :( [12:09] i can't c/p from Xmir pff [12:09] it's on lp [12:10] Sorry, wife calling "lunch" [12:10] bon apetite [12:10] appetit [12:49] zone42314, supertux2 does not run natively on Mir, it definitely requires XMir [12:51] bregma: but if it runs with Xmir, you should see the Xmir process in top, right? [12:51] XMir does not use a lot of CPU [12:51] do a ps-ef | grep -i xmir [12:52] because supertux2 uses libSDL2, it should theoretically run OK natively on MIr, but it turns out is uses some X11 calls outside of libSDL, so it will fail [12:53] bregma: i don't have ps-ef, do i need to install ps-watch? [12:53] the root of that problem is that it uses the "glew" OpenGL extension wrangler library, which has a hardcoded assumption that Linux == X11 [12:54] zone42314, there should be a space between the 'ps' and the '-ef' [12:55] I am running supertux2 on a test machine right now.... [12:55] $ ps -ef | grep -i xmir [12:55] stephenw 13490 13486 4 08:54 ? 00:00:00 Xmir -rootless -title @ -displayfd 3 -mir yakkety_supertux2_0.0 [12:58] 12385 11641 0 15:56 pts/19 00:00:00 grep --color=auto -i xmir [12:58] i only see this [12:59] bregma: how did you launched sueprtux2? [13:00] zone42314, I have it in a libertine container, I just click on the icon in Unity 8 [13:00] bregma: but libertine uses Xmir [13:00] no? [13:00] yes [13:00] no [13:00] like I said, it won't run natively on Mir [13:01] it == supertux2 [13:01] but it runs on my pc [13:01] sudo apt install supertux2 [13:01] ubuntu-app-launch supertux2 [13:02] zone42314, is that from Unity 8? Are you running on a Mir server at all? [13:02] it's from unity8 [13:02] i'm running the game from the terminal app with ubuntu-app-launch [13:02] and it runs? [13:02] because -- --deskop_file_hint=unity8 gives an error [13:02] * bregma has been wrong before [13:03] because suerptux2 doesn't like the -- arg [13:03] why do you have a -- in there at all? [13:04] bregma: how do you launch apps in unity8-desktop from terminal app [13:04] you need to use -- --desktop_file_hint (i think?, right?) [13:04] you need to pass the appropriate .desktop file to ubuntu-app-launch [13:04] how do you run gedit or nautilus for ex? [13:04] zone42314, I use libertine for X11-based programs [13:06] greyback: have updated. Happy now? https://code.launchpad.net/~alan-griffiths/miral/monitor-outputs/+merge/300740 [13:06] zone42314, if you have a native Mir application, and its .desktop file is set up properly, you should just have to pass the .desktop file name to ubuntu-app-launch (no --desktop-file-hint or -- or anything) [13:06] * bregma install supertux outside of a container to play with it [13:07] bregma: thanks :D [13:07] i think that's how i launch supertux :P [13:09] alan_g: approved [13:13] bregma: does it work? :D [13:16] I doubt supertux2 works without Xmir, it fails for both me and duflu (https://bugs.launchpad.net/mir/+bug/1605074/comments/13) [13:16] Launchpad bug 1605074 in xorg-server (Ubuntu) "supertux2 has two mouse pointers (one should be hidden)" [Undecided,Confirmed] [13:19] zone42314, I have a slow internet connection, so it takes a while..... [13:20] zone42314, I modified the .desktop file by adding the magic X-Ubuntu-Touch=true stanza, and launched using 'ubunti-app-launch supertux2' but the app crahes on startup [13:21] haven't figured out why yet (need a backtrace) but my guess is the libglew problem I mentioned earlier [13:21] same thing if launched from the Unity 8 Dash [13:21] bregma: duflu agrees (see above comment) [13:22] It doesn't work natively with the miral shell either [13:24] bregma: oh. i'm super confused right now because it works fine for me [13:24] zone42314, well, until I've analyzed my crash I won't commit to why it doesn;t work for me [13:24] bregma: An SDL game that works (well starts up) natively is 7kaa [13:25] alan_g, 7kaa is known to start on the demo Mir server, not necessarily on Unity 8 [13:26] Exactly. But supertux doesn't work at all with the Mir backend [13:26] U8 is whole additional set of opportunities [13:26] indeed [13:28] * bregma takes the dog for a walk while he waits for stack traces to run with his pokey network connection [13:28] Lucky dog [13:33] zone42314: "it works fine" with X-Ubuntu-Touch=true in the desktop file? [13:35] alan_g: i don't see x-ubuntu-touch in any of the 2 supertux2 desktop files [13:36] /usr/share/app-install/desktop/supertux:supertux2.desktop [13:36] /usr/share/applications/supertux2.desktop [13:38] Then I would guess that ubuntu-app-launch defaults to using an Xmir server. And we know that works (for a suitable value of "works"). [13:38] alan_g: i am playing supertux2 [13:39] and killing the Xmir at the same time [13:39] nothing happens [13:39] there is no Xmir running [13:43] thanks XMir for stealing all my input. And thanks kernel for not giving me a usable VT! [13:45] greyback: Bad luck! But why would XMir steal all your input? [13:47] alan_g: am genuinely unsure. I Alt+dragged the XMir window, and from then on compiz refused to let focus switch away from xmir. As if mouse clicks disappeared somewhere [13:47] Xmir or mir-on-x? [13:47] oh [13:47] mir on x [13:47] yes, my bad [13:48] mirX [13:49] That sounds like camako's grabs going wrong. It's been working for me though. [13:50] it was a once-off, usually it's ok [13:50] * camako reads the backlog [13:50] * alan_g remembers "once-off" that waited until after release before becoming "always" [13:53] hmmm, greyback have you filed a bug? [13:53] camako: if I can reliably reproduce it again, I will [13:55] am not managing it now that I try [13:56] greyback, did you alt+drag an app running inside mir-on-x or mir-on-x window itself? [13:57] You shouldn't be able to alt+drag mir-on-x [13:58] alan_g: Xmir [13:58] bash: /usr/bin/Xmir: No such file or directory [13:58] alan_g: and i can still play supertux2 [13:58] camako: alt+drag working for my qtmir-based mir-on-x! It moves the window around my X desktop [13:59] bregma: i've removed Xmir and supertux still starts [14:00] greyback, beats me [14:00] *shrug* [14:02] zone42314: ack [14:03] alan_g: i have to take a brake, see ya guys and thanks for help [14:10] greyback: great news! Can we ship it? ;) [14:13] :) [14:14] * alan_g has CLion "run"ning on Xmir on MirAL shell [14:16] does it have to be so laggy? [14:56] yep, traceback showsupertux crashing in XQueryExtension, which is completely consistent with the glew issue [14:57] zone42314 must be running an X server somewhere else if he's able to launch it and run it successfully [14:58] Agreed === ondra_ is now known as ondra [15:38] greyback: I've just thought that CanonicalWindowManagerPolicy has two roles that ought to be separated. 1. the default WM wiring (which you want) and 2. interpreting events (which you don't). Do you agree? Can you suggest good names? [15:39] alan_g: I do agree [15:39] names... lemme think [15:40] wow, was it something I said? :) [15:40] I'm inclined to leave CanonicalWindowManagerPolicy with 1 and move the event handling into miral-shell [15:40] Were they all in germany? [15:40] mpt isn't [15:40] hm [15:41] err actually, he might be [15:41] alan_g: +1 on your suggestion