/srv/irclogs.ubuntu.com/2015/09/01/#ubuntu-mir.txt

dufluRAOF: Hmm X things as well as the console fail a lot in this DP 1.2 mode. Is that well known?01:30
RAOFWhat sort of things? Is that MST mode?01:30
dufluRAOF: Yeah MST (although only one monitor plugged in)01:30
RAOFAh, yah.01:30
RAOFYeah, that's in-progress-ish, from memory.01:31
dufluThe console is never native resolution and X randomly fails to start.01:31
dufluMir is fine though01:31
RAOFairlied has done a bunch of work on it, but I'm not sure if any of the X drivers do the fiddling required to make it appear as a single monitor.01:31
dufluThat's fine. Mir works perfectly with it. Better hurry up and replace X01:38
RAOFI'm a bit surprised that Mir works. What do we do with the two distinct outputs?01:42
dufluRAOF: I only have one monitor on each physical output. And each monitor provides a second DP but I don't use those yet01:45
dufluStill one monitor per stream01:46
dufluRAOF: Mir just reports (when the two monitors are plugged in) that I now have 4 DPs and 2 are used01:47
dufluwhich sounds correct01:47
dufluAlthough there's still the old i915 bug of reporting my DVI converter as HDMI01:48
dufluLast I checked that was a kernel bug01:48
RAOFAh, right.01:49
RAOFDP 1.2 has enough bandwidth to drive your 4K monitor as a single panel.01:49
RAOF4K@60Hz01:49
dufluRAOF: Not 4K just FHD01:49
dufluor 1920x120001:49
RAOFOh. I thought we were talking about monitors that need to appear as 2 distinct outputs in order to drive all the pixels.01:50
RAOFI've got no idea why that wouldn't work with X at the moment.01:50
dufluRAOF: No, just a standard monitor that provides a DisplayPort "hub"01:50
duflu4K would be fun. But my choice of monitors was motivated by cost (and that they still provide deep colour)01:52
dufluAlthough I suspect deep colour just means true colour plus temporal dithering01:53
dufluThat's an improvement for me anyway01:53
dufluNot that Linux can output deep colour to them right now.01:53
dufluRAOF: Actually you do need to store the scaling factor. Because during resizing you need to know if the client wants to stretch, or is just lagging (and so should be clamped instead). Accidentally scaling during resize would be an ugly regression. We've been there before03:58
dufluRAOF: Actually I posed an algorithm for that yesterday... https://code.launchpad.net/~vanvugt/qtmir/unstretch/+merge/26872404:01
RAOFOur whole resizing logic is pretty bad, yeah.04:20
RAOFBut that's actually pretty easy - when we resize, we proportionately resize the attached buffer stream.04:20
dufluRAOF: I mean we still need clamping logic, a hybrid with scaling as in the above branch04:23
RAOFOh, right. Yeah, I see your point.04:24
RAOFThat's an issue because we do resizing in roughly the worst possible way, though.04:24
dufluRAOF: Actually it's the best. And the same way all other desktop OS's do it04:26
dufluJust the event delivery needs work04:26
RAOFAnd the “when has the client actually resized” bit.04:26
dufluRAOF: Yeah that's a bug. It's well documented now04:27
dufluAs of Friday04:27
RAOFSo ignoring all the ways that resizing is terrible, it's the best possible :)04:27
dufluRAOF: There are two open bugs. But the theory of doing it asynchronously is ideal04:28
dufluUnity8 resizing was pretty terrible last I checked. But it's catching up04:29
RAOFI think synchronous resizing would be better in most cases, but that's a matter of tradeoffs.04:30
dufluRAOF: Definitely not. Even if it's working well, you'd have the window edge lagging behind the mouse. Which is much worse than the window contents lagging behind the edge04:32
RAOFThat is a value judgement, not an objective truth.04:33
RAOFAs I say, tradeoffs.04:34
dufluRAOF: Try it by all means. And you will find out why no OS does it that way. The user experience is better when the thing you're moving keeps up with the mouse pointer (moreso)04:40
RAOFBy “no OS” you mean “no OS but Ubuntu”, right?04:41
dufluAlso keep in mind most of our resize lag is triple buffers. The problem is halved with double. And eliminated with swap interval zero.04:41
dufluRAOF: Including Ubuntu they all do it the same04:41
dufluAlthough you can try to drop frames, that also looks ugly. Anything that animates on the swap interval will jump during resizing04:43
dufluSadly I think that's where QtMir is right now. Haven't checked04:43
dufluNo, QtMir can't drop. That's OK then04:57
=== chihchun_afk is now known as chihchun
RAOFstep07:24
duflubt07:30
duflugreyback: So when do you expect to start landing the large change to lp:qtmir?08:13
greybackduflu: next couple of days, this is the culprit: https://code.launchpad.net/~gerboland/qtmir/multimonitor-spike/+merge/26360208:13
duflugreyback: OK. I expect flux but if you guys are using big hammers I'll avoid the project for a while.08:14
dufluMir has similar problems... you can't just *fix* a bug because the code in question is always about to be rewritten by somebody08:15
greybackduflu: I'll let you know when it lands then08:17
duflugreyback: Still got a couple of trivial MPs to qtmir up in the mean time08:18
greybackgo for it08:18
* duflu wishes for mildly stable code that doesn't get rewritten so often08:20
duflustable meaning unchanging08:20
alan_gYou mean hardware?08:31
mcphailRAOF: Is your "Mir-on-X" project the appropriate thing to use if I'm developing an app (for the phone, using libmirclient) but building and testing on a standard Unity7 Ubuntu desktop?08:41
duflumcphail: Mir runs on the Ubuntu Phone Emulator so you could use that.08:46
mcphailduflu: I'll try it, but I've found graphics things very slow on the emulator (even non-arm emulators)08:47
guest42315the emulator experience is really really really bad08:47
duflumcphail: Yeah, although running phone code on a desktop you can't easily test touch, unless you have a touchscreen laptop08:47
mcphailduflu: True08:48
* mcphail will have another look at the emulator later08:48
mcphailCheers08:48
duflumcphail: You can install mir-demos, in which there are three demo servers. All of them understand "--vt 1" to run on a separate VT and you can switch back and forth with X using Ctrl+Alt+Fn08:48
mcphailduflu: I'm running proprietary drivers, though. Will they work?08:49
duflumcphail: Oh, no it won't08:49
mcphailduflu: I'd tried Unity8 with open source drivers but just got a black screen/flashing cursor so went back to the dark side08:50
duflumcphail: Yeah I'm not talking about Unity8. Just the mir_* demos in the mir-demos package08:50
guest42315wily is currently broken on nvidia, i get a black screen08:50
guest42315with nouveau08:50
dufluHmm, I wonder if any of ~mir-team has tested the latest wily nouveau08:51
mcphailThis is why "Mir-on-X" sounds like an exciting project! :)08:51
guest42315nobody cares about nvidia :)) they all have intel08:51
duflumcphail: It has some conditions still. Like only works with some X drivers (not intel yet). And also lag is higher08:51
dufluHmm, I should check that too08:52
duflumcphail: Correction it works with intel now08:55
mcphailduflu: does mir-on-x work with proprietary nvidia?08:56
duflumcphail: Not sure, but you can try easily:    sudo env DISPLAY=:0 bin/mir_proving_server08:56
dufluI mean:    sudo env DISPLAY=:0 mir_proving_server08:56
mcphailduflu: OK, I'll try this when I get home08:57
alan_gduflu: you shouldn't need sudo to connect to X08:57
dufluTrue08:57
dufluIt works inside X08:57
duflualan_g: Actually you do. Otherwise no mouse access08:57
alan_g--platform-input-lib=lib/server-modules/server-mesa-x11.so.408:58
dufluIt's so obvious08:59
alan_gcamako: is working on automatically selecting the right input stack08:59
mcphailThat gives me something to work with. Cheers guys09:01
dufluOh dear. Even --vt doesn't work like it used to09:01
dufluI need to relearn the options09:01
alan_gYep, there is either too much or too little intelligence in the platform selection - but not the right amount.09:07
alan_gyet.09:08
alf_alan_g: ^^ Tue Sep 01 2015, the day mir platform selection turns into skynet :)09:17
alan_g/sigh I nearly missed it09:18
alan_gBTW alf_  thanks for sorting lp:1489806, I was looking it totally the wrong place.09:19
alf_alan_g: yw09:20
* duflu wonders what changed from intel not working at all to suddenly working without effort10:06
dufluMust have been a kernel change they were waiting on10:07
alan_gduflu: Mir-on-X?10:11
duflualan_g: Yeah10:11
alan_gan extension that camako was using landed in the driver10:11
duflualan_g: Any ETA on the double cursor issue?10:12
dufluOr no discussion yet?10:12
alan_gI've not heard anything10:13
dufluBah, it's a simple matter of X function calls10:15
alan_gSure, there's a whole lot "X function calls" needed for it to work right and camako is MPing each thing he get working. But I don't know the order or timescale.10:20
=== chihchun is now known as chihchun_afk
=== alan_g is now known as alan_g|lunch
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== alan_g is now known as alan_g|EOD
=== dandrader is now known as dandrader|lunch
=== dandrader|lunch is now known as dandrader

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