/srv/irclogs.ubuntu.com/2014/04/06/#ubuntu-mir.txt

dansufkgunn: Hi, I discovered something interesting. When I launch mir server demo shell and then "turn off" the display by clicking power button then launch some of the client demos it doesn't have this genlock error20:10
dansufkgunn: I forgot to say that it normally renders everything after turning on the display20:11
kgunndansuf: that's interesting....i wouldn't have thot that...20:11
dansufI still don't know how to turn off the display on unity820:11
kgunnso you turn the display off with pressing the pwr button, but then it "comes back on" upon mir demo rendering ?20:11
dansufno, i turn it off then launch demo then turn on20:12
dansufand it also worked when i turned off then on when an app is running but I'm not sure it always works20:12
kgunndansuf: are you looking for a way to control the display ?...if you are...then check this out20:12
kgunnhttps://wiki.ubuntu.com/powerd20:12
kgunnyou can simply (from another terminal) get on the device shell (adb shell)...and then run those cli commands20:13
kgunndansuf: i would say that the display interaction is really kind of undefined20:14
kgunnwe're controlling display state with unity-system-compositor20:14
kgunnwell...20:15
kgunnmaybe it is that mir is at least turning on in the render case...so not completely undefined20:15
dansufkgunn: I'm trying to figure out how to turn off the display with these commands. On the other hand pressing pwr in demo just makes the screen blank, not powered off completely and with genlock error only first frame is shown with 1 FPS20:20
kgunndansuf: sorry, what is your goal of "turning off" the display ?20:28
dansufkgunn: with mir launched (which is giving me genlock error) I wanted to turn the creen off then on with hope it will magically work20:29
dansufkgunn: running unity8 with --offscreen seems to run fine20:34
dansufso it's definitely sth with the display20:35
kgunndansuf: problem is, if the display is off then you won't have a vsync...which you need to "consume buffers", and pump the rendering20:36
kgunnunless you configure mir to ignore vsycn (swapinterval 0)20:37
dansufkgunn: I'm afraid my hardware drivers doesn't support vsync20:38
kgunndansuf: even if its not a "real" vsynch...it must be providing some sort of heartbeat or swapping buffer scenario20:39
kgunne.g. even if your display is "command mode"20:39
dansufkgunn: So how can I configure mir to set swapinterval to 0?20:41
kgunndansuf: which i guess is _exactly_ what you're trying to tell me :)....you get a genlock error...but the genlock is exactly the thing mimicking vsync20:42
kgunnactually...right after i typed swapinterval 0...i'm thinking we don't have that functinoality in our mobile(android) platform...only mesa20:42
kgunndansuf: plus, i guess the real answer is to determine what might be the issue with genlock to begin20:43
kgunndansuf: https://github.com/lgics/cm_device_lge_p350/issues/220:46
kgunnmight check the post from RonGokhale about a year ago20:46
kgunnonly a guess...but kind of sounds like what you're experiencing20:47
dansufkgunn: my error is different if it does count20:52
dansufE/qdgenlock( 1612): perform_lock_unlock_operation: GENLOCK_IOC_DREADLOCK failed (lockType0x1,err=Connection timed out fd=73)20:52
dansufif not, I can try applying the patches20:52
dansufkgunn: I will leave the chat soon, thank you for your help, I'll try to find the problem either in genlock or in mir or maybe do some hacks in mir20:56
kgunnack20:57

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