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