Commit Graph

8 Commits

Author SHA1 Message Date
June Tate-Gans
3830426302 etc: Add two bitmaps we can use to verify encodings with
The trick with the LPBM format is that it's actually just the native LCD format
used by the G13. Each byte of the buffer corresponds to a vertical strip of 8
pixels, all monochrome. This stretches across the screen, for a full buffer of
960 bytes.
2021-05-02 12:42:35 -05:00
June Tate-Gans
70e77c2b3b udev: Actually set the right group
Forgot to set the group for the nodes to input so that the user can manage it if
needed.
2021-04-25 14:01:53 -05:00
June Tate-Gans
6ea11f3d58 cmake: Install udev and systemd services 2021-04-25 12:20:19 -05:00
June Tate-Gans
b04a8d6152 udev: Match attributes correctly and trigger systemd unit
This starts to make g13d more automatic. Instead of requiring manual
intervention or automatic starts on system start, this will allow udevd to
automatically trigger g13d when a g13 is plugged in.

There's still a bug in g13d where if the device falls off the USB chain g13d
won't exit, though, but this is a good start.
2021-04-25 12:18:07 -05:00
June Tate-Gans
eba5f77a88 g13d.service: Fix the fifo locations
Apparently /var/run is the old, deprecated pathname for /run these days.
2021-04-25 12:17:28 -05:00
June Tate-Gans
fa73ed6212 udev: Fix the mode and group
The g13 should only be accessible by users in the input group to tighten up
security a bit.
2021-04-25 01:21:58 -05:00
June Tate-Gans
04cb5d9c12 build: Start migration to cmake
This preps us for proper system installs to distributions, finding depending
libraries, and allowing us to build the foundation for the GUI and support
tooling next.

The plan is to run g13d as a system daemon managed by systemd. We'll use the
system-wide input group to control access to the daemon.

  - Add a CMakeLists for etc so we can install the udev rules.
  - Move the src dir to g13d to disambiguate a bit.
  - Update the toplevel Makefile so we can still build the old way (for now).
2021-04-25 01:19:06 -05:00
June Tate-Gans
b490dd9fff cleanups: Migrate source files to appropriate dirs and fix names
This cleans things up significantly in the source tree and makes this easier to
manage longer term. In the next few commits, we'll migrate the build to CMake in
prep for packaging support.

  - Move bindings into bindings
  - Move system configs and misc files into etc
  - Move LCD apps into contrib/
  - Move all source files into srcs
  - Rename helper extensions to match GNU extension naming, fix the #includes as
    well
  - Adjust Makefile to be less verbose and more programmatic
2021-04-25 00:34:49 -05:00