libera/#maemo/ Sunday, 2019-07-07

MaxdamantusI don't think the resolution is going to have an effect on how long it takes to update.00:31
Maxdamantusunless something about the pixel density makes low-latency refreshes harder.00:32
MaxdamantusI would expect a terminal to update fairly quickly (resulting in ghosting) if it knows that it's scrolling through many lines of text, and when it stops scrolling, it should do a full redraw.00:33
Maxdamantusbut I don't think a full redraw takes 1s on my kobo.00:34
Maxdamantusiirc takes probably less than 0.5s, but don't want to test that atm since I'm trying to get Xorg working00:34
Maxdamantusbtw, rationale for resolution not having an effect on how long it takes to update: two e-ink devices should update in the same amount of time as one e-ink device, and two e-ink devices obviously have twice the number of pixels as one e-ink device.00:39
Maxdamantusso if more resolution means more time, you've just got some vertical scaling issue (eg, need more CPU power), not some issue inherent to e-ink technology.00:40
MaxdamantusDecent demonstration of changes in update frequency: https://youtu.be/6pw-oCItgx8?t=35601:04
MaxdamantusSeems to handle text quite a bit differently to random pixel updates that occur from video: https://drive.google.com/file/d/1SLoa9XsNXRPk1UhxOo5xh3UcTlZyujQI/view03:55
Maxdamantus(that's doing a "partial" update of the entire screen every second)03:55
* Maxdamantus wonders if it's possible to get have more control over the update mechanism.03:59
Maxdamantusthe way the updates work there is you just call some ioctl on /dev/fb0 telling it the region to update, and then presumably something compares the current state of the FB to the previously drawn FB and does some sort of cycling through values of the pixels that have changed.04:01
Maxdamantusdunno if that "something" is in hardware/firmware/kernel.04:02
* Maxdamantus suspects it's in hardware/firmware.04:02
KotCzarnymaxd: fbtft module is intelligent one07:37
KotCzarnyit does partial updates, but that wont help when you scroll whole screen07:37
KotCzarnythats why i suggested writing own terminal, with some kind of circular writing instead of scrolling07:38
Maxdamantus"partial" seems to have multiple meanings here.07:38
Maxdamantusthe update mechanism provided thourg the ioctl lets you specify a region (part of the screen), but "partial" vs. "full" there denotes whether or not it should try hard to reset any pixels in the region.07:39
Maxdamantusso you use "full" updates when you want to avoid leaving ghosting artifacts.07:40
Maxdamantusbut you can always update only a particular region of the screen.07:40
KotCzarnypartial means updating only some pixels07:40
KotCzarnyi can only tell about a13 nolimbook i have07:41
MaxdamantusOkay, so that's not really what "partial" means in this ioctl.07:41
KotCzarnythere is some ioctl that just resets whole screen07:41
KotCzarnywhere you get rid of ghosting07:41
Maxdamantusthough part of the effect of using the "partial" update is that it won't change pixels that haven't changed in the fb since the last update.07:42
KotCzarnyi have in my todo to write some decent ebook reader07:44
KotCzarnybecause stock one is an abomination07:45
KotCzarnywill probably have to write fb one with skipping of the x07:49
KotCzarnyfor refresh and power control07:49
Maxdamantusa 0.1s frequency for updates seems quite natural actually.09:36
Maxdamantusas long as you're not trying to play video.09:36
Maxdamantuscan drag windows around, and obviously you get artifacts, but it's at least understandable what's going on, and the artifacts aren't that bad once you stop moving things.09:37
Maxdamantusmight be better if I make the background white.09:37
KotCzarnyjump scroll is best, not not all terminal apps have it09:38
KotCzarnylol09:39
KotCzarnydid you seriously use white on black on eink?09:39
MaxdamantusYes.09:39
KotCzarnylol.09:39
Maxdamantushm, can't figure out how to get Xorg to not use black.09:39
KotCzarny-rv ?09:39
* Maxdamantus usually just uses xsetroot, but that doesn't seem to be doing anything.09:39
KotCzarnymost x apps support that form09:39
MaxdamantusI mean the background of Xorg.09:40
KotCzarnyadd xsetbg in .xstartup ?09:40
KotCzarnyor check what i has in default startup script in etc09:40
KotCzarny*it09:40
KotCzarny.xresources might help too09:41
KotCzarnyand similar in etc09:41
MaxdamantusI'm not really running anything like that.09:43
MaxdamantusI'm just talking about the root background, which is set by things like `xsetroot` or presumably `xsetbg`09:44
KotCzarnythats xresources thing09:49
MaxdamantusIsn't Xresources read by programs?09:50
Maxdamantusreally, I just mean the background .. if I run `xsetroot -solid white` on my regular system, it sets the background to white, since I'm not running any fancy desktop program (eg, gnome-desktop or whatever) in front of it.09:51
MaxdamantusOh, xfwm4 puts something in front of it.09:54
Maxdamantusah, because it defaults to acting as a compositor.09:55
Maxdamantushttps://maxdamantus.eu.org/inkoff.jpg13:01
MaxdamantusSeems pretty usable as a tablet.13:02
Maxdamantusjust need a better WM.13:02
Maxdamantusthe artifacts aren't even that bad when just doing partial updates.13:02
MaxdamantusCould probably just run some basic program using the X11 damage extension to figure out when to do the full updates, which would probably be something like two seconds since the last update.13:04
Maxdamantusbut completely unnecessary for usability on a terminal or something, just useful in case you want to stop and read the text.13:05
Maxdamantusand need a web browser with a decent mobile UI.13:06
MaxdamantusFirefox crashes for some reason, but Midori seems pretty smooth performance-wise.13:07
Maxdamantusnot sure why you'd need 512 MiB of RAM for reading ebooks.13:08
KotCzarnycaching?13:16
KotCzarnyand high res renders13:16
MaxdamantusCaching what? High res rendering of what?13:19
MaxdamantusWhen the content is by-design mostly static, there's not much you normally need to do of things like maintaining scene graphs or something.13:20
MaxdamantusThe Kobo OS does have a web browser in it as a "beta" feature, so maybe they plan on turning it into something more general purpose, dunno.13:21
Maxdamantus(btw, that photo is of the device after it's turned off)13:23
KotCzarnyyup, prerendering few pages etc13:28
KotCzarnyyup, my nolimbook deepsleeps after 1-2s of activity13:29
KotCzarnyand waking up ever few secs to see if input happened13:29
KotCzarnythe web browser is a very trivial one13:29
KotCzarnyon mine13:29
KotCzarnyalso, mine has 256M13:30

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