I've rewritten DevTerm keyboard & trackball firmware

Thanks for the update here!

I flashed the v0.2 and it was an improvement again on the trackball, but with v0.2 I’d hold the middle button to scroll, and it would send a middle mouse click when I let the button go, so I’d open a lot of extra tabs accidentally.

v0.3 fixed that for me. Thanks!

1 Like

I’ve got my DevTerm, and found that the trackball behaves a bit weird - scrolling to left, right and bottom works just fine, but scrolling up is very janky. It doesn’t always register and is slow.

So I’ve updated the firmware to 0.3 hoping that it’ll help with that. It kinda helped and became a bit more responsive when scrolling up. Still, cursor covers way less distance when scrolling up than bottom.

Is it a software or a hardware problem?

I haven’t been able to get this to work. I’ve got a working ClockworkPi, fully assembled, and I try to do the update but I always get this message no matter what:

pi@clockworkpi:~ $ sudo ./DevTerm_keyboard_firmware_v0.3_utils.sh
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing keyboard_firmware  100%
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Do you wish to flash the devterm keyboard firmware at your own risk?(y|n)y
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: No DFU capable USB device available
Waiting for /dev/ttyACM0 serial...Done
pi@clockworkpi:~ $ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Mar 29 15:58 /dev/ttyACM0

Can anyone provide some clues about what’s going on here? I’d rather not have to disassemble anything if possible, but maybe I have to?

try running it again (twice in a row)

Alas that still doesn’t work, same results as before. The device is there, but the script doesn’t seem to think its usable.

I can attest to having to run the upgrade script twice (with restarts inbetween FWIW), then it did succeed!

Also keyboard+trackball stopped responding the first time, hence the restart, then it was back in order. Don’t panic.

This is very cool! However, I think putting that into the firmware might be a problem; you lose software control of it. I have filed an issue: Hard-coded scroll wheel · Issue #49 · clockworkpi/DevTerm · GitHub

I noticed that the trackball push functioned as a mouse wheel button (middle click). Isn’t it perfect if this is fixed?

As has been discussed elsewhere, it functions as a middle button. You can probably change how it’s bound in the x config.

I just got around to installing this and THANK YOU. It makes everything on the devterm so much better.

Thank you for the extremely simple flashing process!