Lurker News
Back to discussion

Comment by erohead

erohead1 reply#
> does that mean that every time you hit a key (after the idle timeout) you have to wait 5 seconds for the pi to boot, wasting 5 more precious joules (a minute of active usage battery life at 100mW)

Yes, that's exactly the plan. Pi zero does not have suspend to ram unfortunately, hence this elaborate work around. Remember, the use case is a weekend chat device. This power management scheme fits the use case perfectly.

kragen1 reply#
well, i agree that your chat message being delayed for 5 seconds is not critical

but waiting 5 seconds for a keystroke to be echoed (sometimes) is appalling. you would not get permission to do a user study from an irb. it would be denied on grounds of needless cruelty to experimental subjects
it would fit the use case perfectly if you had a low-power microcontroller that updated the screen in response to keystrokes, but what you're describing is a user interface design botched for no good reason
even the rp2040 would work for that at the weekend level
this is not quite a 'solar freakin' roadways' level of mistake because you could fix it with relatively minor tweaks to the design, but if you don't, you'll be left with a design that's unusable on battery, either because of battery life or responsiveness
fwiw i don't think restarting a computer in response to a keystroke is an elaborate workaround at all; that part of the design is perfectly reasonable
check out how mosh predicts keystroke effects for 'speculative local echo' and think about how you could do that on the rp2040 (or ideally an esp32 or apollo3 or something) while you're waiting on the giant linux behemoth to awaken from its slumber and restart gomuks or vim or whatever

erohead1 reply#
I think you are misunderstanding the plan. The device will stay on until you turn it off, or 5 mins after last keystroke.
kragen2 replies#
you say 'I think you are misunderstanding the plan. The device will stay on until you turn it off, or 5 mins after last keystroke.'

that's the plan i described yesterday in https://news.ycombinator.com/item?id=35983387
that's the plan i think will give you three hours of battery life: 2 amp hours times 3.7 volts divided by 2.5 watts gives 3 hours of use. 36 5-minute timeouts. do you have a different estimate? did i miscalculate?
that's not a weekend
in that comment i also explained an approach that would beat that by two orders of magnitude if you applied it with the same components (though there i supposed the hardware would use an esp32)
btw my grandparent comment https://news.ycombinator.com/item?id=35984332 is upvoted to 11 at the moment so evidently even if you think it's stupid your customers don't

Continue this thread — 2 replies