News for hackers. Stuff that matters.
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by dragontamer on Wednesday March 08, 2023 @07:57PM (#35076984)
CPU -- we all have opinions on uCs. I see that your chosen uC has very low active power consumption, less than 10uA per MHz, suggesting under 1mA full tilt.

Have you run any tests to see if active mode is indeed the mode you're in most of the time? Or is it possible that other uCs that could have better sleep current can beat your uC of choice?

Screen -- I like the Sharp in pixel memory LCD screens, though 4 inches is a bit small. A bigger screen would be what I'd be searching for, but I also know that monitors use a surprising amount of power, and 4 inches is the biggest memory-LCD screen in my area as well.

E-ink, for all of it's faults, does climb to 7+ inches and beyond. But changing eink screens is surprisingly power hungry.

Bluetooth -- lol, there goes the power budget!! This uses what? Probably 10x more power than everything else combined? I/O is a necessity and it's a good feature, but I really do wish* it used less power.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by reerdna on Wednesday March 08, 2023 @08:08PM (#35077083)
Yes, it's nearly always in active mode now. I haven't done much to use the sleep modes at all, only "sleep until next keyboard interrupt" when the program calls (get-key). Measurement, selected portion is while rendering a fractal - so "100% cpu" - at 1.5mA. https://cdn.hackaday.io/images/4389961676068300828.png

I'm sure other uCs could sleep at lower power, but active mode was what I wanted to optimize for.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @08:11PM (#35077106)
This is wonderful information! Thank you! That's 1.49 mA at 3.3 volts?
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by reerdna on Wednesday March 08, 2023 @08:16PM (#35077151)
Yeah, matching pretty well the advertised 5mW. But uLisp is probably not using the CPU very efficiently and so not driving it to the max that could perhaps be seen with something like a well-implemented FFT.
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @08:21PM (#35077194)
Is this at 48 MHz or 96 MHz? I'm so confused about the 96 MHz stuff in the datasheet. There must be some drawback to 96 MHz, because if not, what's so special about 48 MHz?

Is that using the FPU, or are you doing all the fractal math in integer? I have this vague idea that using the FPU might cause it to use more power than integer code will (and might or might not be faster for fractal rendering).

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by reerdna on Wednesday March 08, 2023 @08:33PM (#35077287)
Using the FPU I believe but quite inefficiently, most cycles are probably spent in integer operations and chasing linked lists for the lisp parser. http://forum.ulisp.com/t/barnsley-fern-in-ulisp/1087

48MHz is the most power efficient mode, you can run it at 96Mhz "burst mode" but apparently it uses disproportionately more power, I have not measured how much.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @08:38PM (#35077322)
It's really exciting to see this stuff coming to life!

Does this display have the same nominal 2Mbps speed as the 2.7" one I've been using? I've seen people report that it works well at 6Mbps (and thus 60 Hz) but haven't tried it myself. I'm guessing that it would use more power.

Have you been able to measure how much of the power consumption is the display?

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by reerdna on Wednesday March 08, 2023 @08:56PM (#35077472)
Yes, I'm running the display SPI at 2MHz which is ~25 fps. Overclocking it to twice as fast works just fine but uses significantly more power as expected. I did not try to go further.

Approximately 25%-50% of the total power depending on refresh rate. Worst case seems to be alternating black and white pixels, maximizing the number of transitions?

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @09:06PM (#35077526)
I haven't measured, but the way the power consumption numbers are written in the datasheet (for the 2.7" one) does imply that alternating black and white pixels like that is the worst case.

So the display is about 25% of the 4.9 mW number? That's exciting! How often are you toggling the polarity of the LCD field? I've noticed that when I unplug the display it continues to display the same data for about 30 seconds on what is presumably the screen capacitance, but the datasheet minimum clock for that is IIRC 10 Hz, and as I understand it, never switching the polarity will eventually destroy the liquid crystals.

One of the things I really hate about normal computers is how high the interaction latency is, and one of the really appealing things about these displays to me is the possibility of getting much lower interaction latencies using partial screen updates, down in the submillisecond range (plus 10–20 ms for the crystals to fully change state, but it should be visible before that).

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @09:30PM (#35077692)
Oh, responding to your email, I got this bounce:

    This is the mail system at host adjuvant.canonical.org.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to postmaster.

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

                   The mail system

    <(your email address)>: host mx01.mail.icloud.com[17.42.251.62] said: 554
        5.7.1 [HM08] Message rejected due to local policy. Please visit
        https://support.apple.com/en-us/HT204137 (in reply to end of DATA command)
I removed your email address in case it gets harvested by spambots.
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by qvaetrain on Wednesday March 08, 2023 @08:39PM (#35077340)
I too have been investigating using eink displays, but the biggest issue I've found is refresh rates are often terrible especially with colour displays. Have you found eink displays with refresh rates <1s?
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by reerdna on Wednesday March 08, 2023 @09:03PM (#35077514)
No, I did spend some time reading eink datasheets but in the end it seemed too hard for me to do on my own. There's the Kindle and Freewrite so it seems possible
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @09:15PM (#35077590)
The E-Ink displays also use a lot of power at reasonable reading rates, like one Swindle screen update per minute seems to use about 100 mW. That's about three orders of magnitude more than the 2.7" memory LCD, which I guess is about an order of magnitude less area, so it's about two orders of magnitude more power per area. But the memory LCD updates at nominally 20 Hz and potentially much faster, so it's three orders of magnitude faster, so in some sense it's five orders of magnitude better than E-Ink.

I have seen a Swindle do partial screen updates much faster than 1000 ms. In fact, I originally wrote http://canonical.org/~kragen/sw/inexorable-misc/tetris.html to play in the browser on a Swindle, with update times of more like 100 ms. And I successfully used IRC on it, too.

The E-Ink display does have some good points: it's not glossy, it's available in bigger sizes, its whites are whiter, and it can do grayscale. But, for interactive computing, I think those aren't a good tradeoff for being orders of magnitude worse at power consumption and update times.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by bee_rider on Wednesday March 08, 2023 @08:07PM (#35077078)
I wonder if a combination of eInk and pixel memory LCD could be good? Use them as two monitors, keep vim on the LCD, web browser or other documentation on the bigger eInk.
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Wednesday March 08, 2023 @09:53PM (#35077823)
The Barnes & Noble Nook did this, except that they were using a conventional backlit color active-matrix LCD rather than a memory-in-pixel LCD like this.

There is clearly a crossover point at which this combination would use lower power, because the e-ink display uses zero power when not updating, and the memory-in-pixel LCD uses power even to retain the display. So as the update rate goes low enough, at some point the e-ink display will use less power. My vaguely remembered estimate of this crossover point is that the e-ink display starts using less power than the memory-in-pixel LCD when the update rate is less than about one update per hour.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by rerdavies on Thursday March 09, 2023 @01:26AM (#35078761)
lol
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Thursday March 09, 2023 @04:41PM (#35087128)
to answer hellbanned canadianfella, if you think one per hour is wrong, i'm interested to see your calculations

probably without showing evidence, neither of us will convince the other

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by Firmwarrior on Thursday March 09, 2023 @07:15PM (#35088776)
Presumably someone working on an e-ink device at some point ran the same calculation, and decided to use the e-ink display. Which means that e-ink being more power hungry if you update it more than once per hour wouldn't have been true
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Thursday March 09, 2023 @09:05PM (#35089561)
People building e-paper devices after calculating their power usage definitely doesn't mean that my calculation is wrong. First, they started doing it 16 years ago, and things have changed since then, in ways that have made e-paper less popular; second, power usage is far from the only consideration in product design.

E-paper has some real advantages over memory-in-pixel LCDs: as I said in the other thread, the whites are whiter, it's not glossy, it can do grayscale, some versions can even do color, it's available in larger panel sizes, it existed in 02007 when Amazon launched the Swindle, and it can continue to display Amazon advertising even when the device is entirely powered off.

None of these are true of memory-in-pixel LCDs (though the Playdate does display advertising on its memory-in-pixel screen when it's "off").

Moreover, the computing power budget for the Swindle and similar e-readers is also measured in hundreds of milliwatts, just like the screen. There's not much reason to worry about whether your screen uses 100 microwatts or 100 milliwatts if your CPU is using 200 milliwatts. Reducing your power consumption by 50% or 5% is never a critical factor in the success or failure of your product, because you could just add another 50% in battery weight if it were.

Ambiq didn't even exist until 02010, and didn't sample the Apollo3 until 02018, so to get even a single order of magnitude improvement in CPU power usage, Amazon (or competing vendors) would have had to cut the compute budget for e-readers by an order of magnitude, probably resulting in major increases in space usage, reductions in rendering quality, sluggish interactions, or all three, and certainly increasing development cost. Ambiq's CPUs are fast enough, but you can't just drop them into a new model of Swindle or Kobo and keep the same software; they have tiny onboard RAM, little support for offboard RAM (which would make power consumption balloon anyway), and no MMUs, so they can't run either Linux or any of the other e-reader software that's been developed for existing devices—it needs way too much memory.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by dragontamer on Friday March 10, 2023 @01:50PM (#35099107)
For what its worth, my math was ~1 update per 15-minutes was the crossover point between memory-lcd and eink.

There's a lot of different eink and memory-lcd screens that could explain the difference between your calculation and mine. But all else considered, 15-minutes vs 60-minutes isn't much of a difference at all.

For most applications of updates-per-second (or at worst, a few seconds per update), low-power monochrome seems best served by Sharp's memory-lcd.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Friday March 10, 2023 @04:43PM (#35101523)
Agreed. Also, my figures for eink power consumption are very uncertain; possibly you were able to take measurements or get good datasheets, but I couldn't.

A thing I didn't mention is that there are actually eink applications that have lower update rates than this. Store price tags, for example.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by dragontamer on Friday March 10, 2023 @06:53PM (#35103056)
I decided to try my math again and document it more carefully.

--------

https://www.pervasivedisplays.com/wp-content/uploads/2021/12...

Pervasive Displays has an oscilloscope measurement of 3.75mA on their 5.9-second updates for their 1.54" eink screen. (Page 14). That's 22.125 mCoulombs of electrons.

--------

https://media.digikey.com/pdf/Data%20Sheets/Sharp%20PDFs/LS0...

Sharp 1.2" memory-LCD (a bit smaller) has 12uW to 50uW on static images. Assuming 3.3V, that's 15uA worst case (0.015mA).

-------

22.125 mCoulombs / 0.015mA == 1475 seconds per update break-even point, or ~24 minutes.

So yet another number, but yeah, memory-LCD is just really good. Remember that the 1.2" screen from Sharp is a bit smaller though, so its not a perfect apples-to-apples comparison.

Either way, its a much longer period between updates than I was expecting.

Re:Lisp-Powered Laptop with a Battery Life Measured in Years by kragen on Friday March 10, 2023 @07:13PM (#35103282)
thank you very much! this is great!
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by Firmwarrior on Monday March 13, 2023 @12:15AM (#35130981)
Yeah man, thanks for this clarification, looks like I've been spending too much time tinkering with apps and I've gotten completely out of touch, haha
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by Laaas on Thursday March 09, 2023 @08:34AM (#35080977)
You could theoretically simply buy multiple of these screens and place them in a grid. Would be slightly annoying when you want to split one window across multiple screens, but I imagine it would still be much more useful.
Re:Lisp-Powered Laptop with a Battery Life Measured in Years by dragontamer on Thursday March 09, 2023 @09:02AM (#35081237)
I've played a Japanese arcade game called Jubeat, that's made up of... I think a 4x4 grid of small touch screens.

With the right interface and design, it feels fine. In particular, Jubeat has a different note assigned to each screen so the divisions feel very natural.

First hit from YouTube: https://youtu.be/LSGOAkyFW7I

Or maybe just natural to people who put in a bit of practice, lol. This is an expert level song pattern, it's not so bad at earlier levels. But it still shows off how the 4x4 screen effectively communicates a variety of button press timings to the player, combo counters, life, scrolling and other such details for this game.