libera/#maemo-leste/ Friday, 2022-01-14

tmlindfreemangordon: i don't have any current chromeos device, maybe the file is available for download somewhere though06:36
tmlindfreemangordon: for tearing effect, looks like we may have some signaling misconfiguration in mainline, te triggers fine but only for some seconds to minutes with just your panel-dsi-cm changes06:38
tmlindthen it hangs and we get the timeout errors and that's why the te got disabled earlier for the panel06:39
tmlindwell te probably did not work at all earlier as it was missing some configuration looking at your patch06:41
tmlindafter adding some trace_printk, looks like on framedone interrupt with te enabled the VC_TE counter is almost always 0 or very close to 0, so it seems like with te enabled, and the pending patch generating vsync on framedone, we should avoid tearing06:44
tmlindfreemangordon: to me looks like the dsi related changes in your patch are not needed as omapdrm already configured te to set the VC_TE counter06:46
tmlindi guess i need to dump out the android dsi1 regs and diff the values to try to figure out if there's some signaling configuration issue06:46
tmlindhmm looks even with current setup without te enabled, on framedone VC_TE is mostly empty, not sure what the signal in the te case for transfer complete is really supposed to be if there's no gpio line07:21
tmlindit seems that TE_TRIGGER_IRQ signals that the lcd module has started transferring after bus tunaround.. so maybe there's some bta interrupt after transfer complete after another bus turnaround?07:23
tmlindoh there's also ACK_TRIGGER_IRQ with te enabled after framedone, that's probably what signals transfer completed from the panel07:35
rafael2khi there, I'm rebasing the pp patches to latest 5.10.13, hope to finish in the weekend11:46
Wizzuprafael2k: hmm, we don't want 5.15?11:51
rafael2ksorry11:57
rafael2k5.15.1311:57
Wizzup:)12:01
Wizzupdid you figure out what we want built in?12:01
_inkyrafael2k: yay12:16
rafael2khi there!12:27
rafael2kWizzup: no time yet12:28
rafael2kmy keyboard was shipped12:28
rafael2kso my time is running over12:28
rafael2k:P12:28
Wizzupok14:59
Wizzupuvos: I'll do the volume applet today :)14:59
jessicantis it possible to get the pinephone keyboard working with this yet?16:57
Wizzupjessicant: I think it should17:47
Wizzupjessicant: we haven't been able to test it yet17:47
Wizzupjessicant: does it slide somehow, or is it just always attached?17:47
jessicantwell it doesn't work out of the box17:47
jessicantit's always attached17:47
Wizzupjessicant: ah, you have one?17:47
jessicantyeah17:48
Wizzupjessicant: great, we have a new kernel and some other stuff to push out, it might work with that17:48
WizzupI don't know what it required (a special driver?)17:48
Wizzuprafael2ks is active with the pine kernel now, and he also ordered the keyboard17:48
jessicanthttps://xnux.eu/pinephone-keyboard/faq.html17:48
jessicantthere's a userspace and a kernel space driver17:48
Wizzupright so we don't have the kernel one then I guess17:50
WizzupI'll ask rafaek to pull these in17:51
Wizzupfreemangordon: ping18:03
Wizzupfreemangordon: I am seeing the display not turning on problems more frequently now (it happened again today), X is still running, anything I can do to provide a way to debug this?18:05
Wizzupfreemangordon: it must be a recent change in kernel we did, or something the ddx, because I wasn't seeing this before I think18:06
Wizzupmaybe it is somehow the fbdev emulation?18:07
WizzupI think I see this every day now on the d418:24
Wizzupit loks like X keeps retrying a thing in kernel drm that fails18:25
uvosWizzup: ping22:13
uvosWizzup: http://uvos.xyz/maserati/patches/0001-power-supply-cpcap-battery-Provide-battery-state-bas.patch22:14
Wizzupuvos: hi22:24
Wizzupuvos: I'll apply that to beowulf-devel kernel for d4/n900 ?22:24
Wizzupuvos: do you get have any problems with screens not coming on again?22:29
WizzupI am not sure what is causing it, but I am wondering if perhaps somehow the fbdev patch prevented it22:30
Wizzupuvos: shall I add this back in for now? "drm/omap: get fbdev working for manually updated display"22:31
uvosWizzup: no i have not22:32
uvosWizzup: if you like, but i doubt this is the problem22:33
uvosWizzup: you did update the ddx on the device where this is hanging right?22:33
uvosWizzup: since there was sutch a rpoblem that fmg did fix22:34
Wizzupthe problem is in the kernel drm ioctl22:36
Wizzupuvos: so when I check X it is stuck retrying the ioctl22:36
Wizzupand the kernel also fails and keeps retrying (because Xor requests it) the mode change22:36
Wizzupdrm.debug=0xff shows this22:36
uvosok22:36
uvosno never seen this22:36
Wizzuphttps://dpaste.com/2SSKGP2ZB22:37
Wizzupthis is a part of the trace (it's also in our logs):22:37
Wizzup17:40 < Wizzup> #0  0xb6a33f06 in ioctl () at ../sysdeps/unix/syscall-template.S:7822:37
Wizzup17:40 < Wizzup> #1  0xb6d24c76 in drmIoctl () at /usr/lib/arm-linux-gnueabihf/libdrm.so.222:37
Wizzup17:40 < Wizzup> #2  0xb6d2923a in drmModeConnectorSetProperty () at /usr/lib/arm-linux-gnueabihf/libdrm.so.222:37
Wizzup17:40 < Wizzup> #3  0xb66c3f12 in drmmode_output_dpms (output=<optimized out>, mode=0) at drmmode_display.c:79722:37
Wizzupin any case this is a very recent problem22:42
Wizzupand not that much has changed in the kernel, so I thought maybe it was this22:42
WizzupI think I'm going to add the fbdev thing back in for now and see if it helps22:43
Wizzupuvos: btw you wrote: "Note that this plus the input device locking behavior of mce (even on fremantle) makes tklock (as opposed to vtklock) totally obsolete and redundant, it no longer serves any function."22:50
Wizzupuvos: how about showing notification counts, doesn't tklock do that?22:50
uvosyour thinking about _vtklock)22:50
uvostklock is the contraption that locks the device ts and keypad when its locked and the screen is off (also one click mode)22:51
uvosvtklock is the thing with the slider22:51
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/maemo-statusmenu-volume/pull/1 (This pr makes this applet work on leste)22:51
uvosthese are seperate systemui modules22:52
uvostklock was allways pretty mutch redundant, except the dbus interface for the volume keys and kinda one click mode, but really that was in mce too22:52
uvosmce just used to avoid applying one click mode itself when tklock was active22:53
Wizzupah, I see22:55
Wizzupthanks for the explanation22:56
uvosoh btw on code i removed, i dident remove any functional code22:57
uvosso there are 2 things i "removed"22:58
uvos1 the volume slider used to check with pa about what the default stream was and set default_sink_name22:58
uvosand dident do anything at all with that22:58
uvosand 2 the slider dident set the volume immiately22:59
uvosinstead 500ms where waited after the user last moved the slider22:59
uvosand then the volume was set22:59
uvosthere is a bug in n900 hw that causes chaging the volume to result in auidble clicks22:59
uvosand this is was a hack around this23:00
uvoswell noten entirley23:00
uvosthere still is one click you can clearly hear in fremantle once it finaly sets the volume23:00
uvosbut this hack tried to mitigate it23:00
uvosotherwise its just porting the interfaces23:00
WizzupI thought the tick was part of the sound changing, like something that was played23:00
uvosnah its hw bug23:01
Wizzupright, but afaik there are ways for the applet to set the/track the volume on separate streams, because that did work somehow on the n90023:01
Wizzuphmmm I think I also hear it on the d423:01
uvosyes this works23:01
Wizzup(will need to check later)23:01
uvosit tracks exactly 2 streams23:01
uvosin call and normal audio23:01
uvosthis is unchainged23:01
uvosnot really tracks, sets rather23:01
uvoshonestly this is bad23:02
uvos(the whole applet)23:02
Wizzupso what I still don't understand is how it works the way it does in fremantle23:02
Wizzupwhere unplugging/plugging causes it to track the right speaker/hp sink23:02
Wizzupmaybe it's one of the pulseaudio plugins or OHM23:02
uvosthis is done below it23:02
uvosit just sets one proparty for media auido volume23:02
uvosits not a stream volume at all23:02
uvosits a stream proparty on the media streme23:03
uvosthat something else needs to apply as volume23:03
Wizzupright, so that's probably ohm or pa23:03
uvosanyhow this is all pretty bad23:03
Wizzupthe streams concept I am not sure is bad, but even so the media stream still differents in volume between hp/speaker23:03
uvosyeah but the streams apear to have been faked23:04
Wizzupthis is also visible in how it renders the volume bar, it can be in completely different states23:04
uvosthe volume applet makes it look liker there is only one stream23:04
Wizzupso it probably also fetches the current state somehow23:04
uvosand its role is changed23:04
uvosthis is really a hack to how its supposed to work in pa23:04
uvoswith different roles/profiles having own streams23:04
uvoswe probubly just want n seperate streams23:05
uvosfor different "roles"23:05
Wizzuphttps://web.archive.org/web/20200815080328/https://wiki.merproject.org/wiki/Nemo/Audio isn't that what is being done here?23:05
uvosand have the volume applet allow you to set any one of those at any time23:05
uvosthe way the android one works, really23:05
Wizzupoh the orig website is back up23:05
Wizzuphttps://wiki.merproject.org/wiki/Nemo/Audio23:05
uvosWizzup: no idea how meego audio works, ill read that again later. im just reporting on the volume slider23:06
uvosWizzup: wich understands only one stream23:06
uvosbesides call audio23:06
Wizzupcheck23:12
uvosoh and recveving events from xorg for the volume keys was also removed23:13
uvossince the ex-tklock dbus interface is sufficant23:14
uvosim not sure why they thought it nessecary to implement the input side of things twice23:15
uvosi think this is because the dbus interface also dident do key repeat, like mce, and they dident want key repeat moving the volume to full blast in the users pocket (android also behaves like this)23:15
uvosbut i havent checked on fremantle if thats to23:15
uvosimplementing the input frontend twich is an absurd way to provide this feature anyhow :P23:16
uvos*twice23:16
Wizzupmakes sense, going afk for a bit :)23:18

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!