Friday, February 8, 2013

g13.sh - using a g13 daemon and load presets

Getting g13 to work on Linux is more challenging then it should be. Unfortunately I've yet to get the g15daemon to fully work on the g13 pad (key binding issues). This way relies on ecraven's g13 app: https://github.com/ecraven/g13


  1. Download it by: `git clone https://github.com/ecraven/g13`
  2. Go into the downloaded directory and `make`
  3. Copy the g13, pbm2lpbm, clock.sh (if you desire) to a bin directory like `/usr/local/bin`

You should now be able to run `g13` and get the default functionality.

You can use the following `g13.sh` script to make a nice start up script for this g13 app and have all your saved features. It can change the RGB led color of the text, the led color of the MR buttons, apply bindings, and display a startup lcd image.  You can also download it : http://pastebin.com/prrCSAbY




This script relies on two config files.

/etc/conf.d/g13.conf (http://pastebin.com/AG66eDJ5)


/etc/conf.d/g13-binder.conf (http://pastebin.com/NGtMTRqA)


Follow the notes and modify the files as you see fit. The g13-binder.conf is optional - there is a default binding in the g13 daemon, this is just if you want to customize any key mapping.

Afterwards a simple `g13.sh --start` and `g13.sh --stop` should give you the desired results.

Note: If you copied over the clock.sh, running it will keep a somewhat accurate running clock on the lcd screen, much like the default for g15daemon.

Another neat g13 app on Linux is : http://code.google.com/p/linux-g13-driver/
It certainly makes the bindings easy with a Java UI and I believe uses the same ecraven g13 daemon. However it doesn't have the other functionality easily accessible - at least I haven't played around with it enough to discover.

Check out the g13lcd.sh script, gives a simplistic way to output text or images  to the g13 lcd screen. http://customlinux.blogspot.com/2013/02/g13lcdsh-simple-app-to-load-text-or.html

No comments:

Post a Comment