/srv/irclogs.ubuntu.com/2016/02/10/#ubuntu-mir.txt

zzarrhello duflu :-) I'm back07:56
dufluzzar: Hello07:59
dufluzzarr: What happened when you started Mir? You only mentioned one log message yesterday. Was that the end?08:00
zzarrduflu, how do I start Mir? is it the sudo mir_proving_server you mean?08:04
dufluzzarr: Yes that08:11
zzarrduflu, if it is that command, I just ran it again, and it says that "gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)"08:13
zzarrgbm also complains about not being able to open /usr/lib/dri/rockchip_dri.so08:14
dufluzzarr: Yeah that's the failure I expected all along. You either need some Mali driver for Mesa, or some new Mir driver for Mali.08:14
dufluOoh, maybe rockchip_dri.so exists somewhere08:14
zzarrduflu, I'm scanning the internet08:15
zzarrduflu, is that driver a kernel driver or user driver?08:16
dufluzzarr: It's the user driver Mesa needs for hardware acceleration08:16
dufluzzarr: You might get around it with env LIBGL_ALWAYS_SOFTWARE=108:17
zzarrduflu, ohh... in that case there might be way to find it (I think others have done it)08:18
dufluI can't see any evidence that rockchip_dri.so exists yet. But environment variable LIBGL_ALWAYS_SOFTWARE=1 should skip the need for it08:18
zzarrduflu, okey, I know that people have gotten 3D acceleration to work with X, are the rockchip_dri.so they used specific for X?08:21
dufluzzarr: That's just a file Mesa needs to implement OpenGL. If they got X working it might have been without any OpenGL08:22
zzarrduflu, okey, I tried sudo mir_proving_server after setting LIBGL_ALWAYS_SOFTWARE to 1, butI got the same error messages08:24
zzarr(from gbm)08:24
dufluzzarr: Yeah I just tested it and Mir weirdly ignores that common variable, still tries hardware acceleration or nothing. Sounds like a bug08:24
zzarrduflu, I agree08:25
zzarrduflu, a little off topic, do I need to add netdev to the lightdm user in order to login to a WiFi from lightdm?08:26
dufluzzarr: No idea. You will have to ask in ubuntu-desktop or some other channel08:31
zzarrduflu, I'll do08:31
dufluzzarr: You can follow this: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/154395208:31
ubot5`Launchpad bug 1543952 in mesa (Ubuntu) "Mir binaries ignore Mesa setting LIBGL_ALWAYS_SOFTWARE=1 and only ever try hardware acceleration" [Undecided,New]08:31
zzarrduflu, there it is08:32
dufluIt is now anyway08:32
zzarryea08:34
anpok_duflu: if there is no drm driver there is nothing to post buffers to08:41
dufluanpok_: I know. But there is one or two (sw) and Mesa won't let us use them08:42
dufluWhich is odd. In regular Ubuntu, Unity7 relies on LIBGL_ALWAYS_SOFTWARE as a failsafe fallback08:43
dufluAnd it works08:43
dufluMaybe egl-platform-mir is forcefully choosing hardware drivers only...08:44
anpok_mir doesnt care what driver mesa uses. we just dont build mesa with the fbdev platform... so mesa may only work on top of x11, wl, mir and drm08:44
anpok_so if the kernel does not include drm-next patches it will be missing the rockchip drm driver that is currently being integrated08:44
dufluanpok_: Also doesn't matter. He has working DRM with the mali/rockchip GPU08:44
dufluanpok_: Also he built his own kernel with the required DRM.08:45
anpok_oh so then things should work just like within08:45
anpok_kvm08:45
anpok_where we use the software backend of mesa08:45
dufluYeah but Mesa insists looking for rockchip_dri.so which may not even exist08:45
dufluAnd Mesa still insists even if you try to force it to use the software driver08:46
dufluWhen I do so on desktop it still gets Intel DRI08:47
anpok_hm is there a kms_swrast_dri.so?08:47
dufluanpok_: On my machine yes08:47
anpok_hm there is a good chance the respective env variable inside gbm/egl is different08:47
anpok_thats the one it should fall back to,,08:48
zzarrinteresting08:54
zzarrduflu, would a fbdev user driver help?09:16
dufluzzarr: No, that would probably be worse. Looks like you're waiting on a Mesa/Mir fix09:19
zzarrduflu, do you mean for sw acceleration?09:21
dufluYes (which is much easier than hw)09:22
zzarrduflu, would I be able to use an X11 hw driver with XMir?09:23
dufluYou're probably making it more complicated and harder again09:23
zzarrduflu, sorry, it's a bad habit ;-)09:24
zzarrduflu, what about the android driver?09:24
dufluzzarr: Again, that's worse09:24
zzarrduflu, if I got my hands on the fbdev or X11 drivers source, how much work and is there a guide to write my own Mir driver? (please, it's not your monitors fault, it my fault the text is in front of you)09:27
dufluzzarr: alf_ is already working on fbdev (or some alternative) in theory. I suggest your best bet is to figure out the bug with the env var09:28
dufluWhich would help us too09:29
zzarrduflu, okey09:29
zzarrduflu, at the moment I will try the X11 drivers09:30
zzarrduflu, but I will try to figure out what's up with the SW variable, where's the code that's related to the variable?09:32
dufluzzarr: Mesa :)09:32
zzarrduflu, okey, thanks alot for your help :-)09:32
dufluzzarr: No problem09:33
zzarrduflu, another OT question, how do I find out why Unity(7) don't appear for me even with the drivers in place?09:34
zzarr(the X11 drivers)09:34
dufluzzarr: #ubuntu-unity I think09:35
duflucould be wrong09:35
zzarrokey, thanks duflu09:35
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
zzarralf_, hello! I have to ask out of curiosity, how far along with the frame buffer support for Mir are you?14:05
zzarralf_, I mean the fb driver support14:05
alf_zzarr: Hi! Just a proof of concept (and only for software buffers). I haven't touched the code in a long time now.14:09
alf_zzarr: (which isn't published anywhere at the moment)14:10
zzarralf_, okey, will there be hw fb support in the future?14:11
alf_zzarr: What do you mean by hw fb support? The PoC code used the fbdev interface, by "software buffers" I mean the buffers posted by the client need to be software buffers (i.e. their pixels need to be directly accessible, contrast to accelerated/hw buffers used e.g. for GL rendering on the GPU)14:15
zzarralf_, I'll tell the hole story, I have a Chromebook with a mali GPU and wish to get Mir running on it14:24
zzarralf_, I only have a fbdev driver and a X11 driver14:27
zzarralf_, I have the ASUS Chromebook Flip you see, and the way Unity8/Mir handles touch it's perfect :-)14:36
mcphailalan_g: Do you mind if I ask if that gcc bug is looking to be the culprit for the screen crashing on calls on the phone? I've be holding off updating my phone because of this, and it would be good to know if there has been a lead15:00
alan_gmcphail: maybe. In any case it is something we need to eliminate. Last I heard we've still not been able to reproduce the problem under controlled conditions but have stack traces pointing to that area.15:03
mcphailalan_g: thanks. I think it is fascinating that this could be the cause. Amazing detective work you're doing15:04
alf_alan_g: mcphail: FYI, our current understanding of that crash is that input and compositor threads deadlock during compositor startup, causing the compositor to throw an exception because it times out waiting for its threads to start, leading to a crash. We we will ship a fix for this in 0.19.2.15:47
pete-woodsgreyback: hey, did your MR to libqtdbustest help at all?15:48
greybackpete-woods: not got around to checking tbh15:48
greybackwas gonna land it, and then see. I can't emulate what the jenkaas instance is doing15:48
pete-woodsgreyback: okay, no worries, was just wondering if it needed putting in a silo15:49
greybackpete-woods: it does. I was going to do that for next unity8 landing, but that might be a while away yet15:49
pete-woodsgreyback: sure, wasn't pressing you to do it now or anything, was more an offer to land it for you, but I'll hold off if you don't know it helps15:50
greybackpete-woods: fair. We'll stick it in our silo and see if it helps. No point landing if it doesn't15:51
mcphailalf_: brilliant. thanks for the info and teh hard work :)15:52
=== dandrader is now known as dandrader|lunch
=== dandrader|lunch is now known as dandrader
=== alan_g is now known as alan_g|EOD
=== DalekSec_ is now known as DalekSec
=== mariogrip_ is now known as mariogrip

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