9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Thaddeus Woskowiak <tswoskowiak@gmail.com>
To: 9front <9front@9front.org>
Subject: [9front] [patch] reform/pm to work with standalone keyboard
Date: Sun, 27 Aug 2023 00:59:36 -0400	[thread overview]
Message-ID: <CAG3JMtasMiUPcGMo1SjOTDu56KwfPxUk8KU1KiJ71BHjvcrf5w@mail.gmail.com> (raw)

http://okturing.com/src/16717/body

I have the MNT Reform Standalone Keyboard and wanted to use reform/pm
to display a bitmap on the OLED and read/write keyboard brightness on
amd64. After discussion with sigrid, she set me in the right direction
and I patched pm.c. This should allow setting the Led's on a
hypothetical standalone trackball if one were built.

Status:
Setting keyboard brightness works on amd64.

I can not seem to load an image. I tried using a small image I made in
paint and loading via iconv -u file.bit >/dev/kbdoled but the screen
does not change and no error is printed. I tried with several other
images but nothing appears. Perhaps I am doing it wrong?

Testing on the rpi using arm64 and any writes to /dev/hidUxxxctl
results in the entire usb stack shitting the bed losing every usb
device and I have to reboot the pi. I even tried a simple hello world
test program that works on amd64 with the same result.
http://okturing.com/src/16718/body

Anyone else with a standalone keyboard to test? I do not have a reform
to test so I would appreciate reform testing.

-taw

                 reply	other threads:[~2023-08-27  5:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG3JMtasMiUPcGMo1SjOTDu56KwfPxUk8KU1KiJ71BHjvcrf5w@mail.gmail.com \
    --to=tswoskowiak@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).