G19D

G19D is a daemon process that must run as root, and provides low level access to the G19 keyboard for Gnome15 through a local TCP/IP socket. It based on PyLibG19, so check you

Note, G19D is now deprecated. The preferred method is to use the g19direct driver that uses PyLibG19 directly, although requires changing permissions on the USB device files. G19D is left as an option if you do not want to do this (or can’t for some reason).

 

Pre-requisites

You will need all of these to compile or run G19D. If you use a package for your distribution, these will be downloaded for you. If you wish to compile from source, you will have to obtain and install them yourself.

  • Python UINPUT – Python UINPUT bindings. Used to fire multimedia key events. For Ubuntu, there is a PPA available for it here, or you can get it from the Gnome15 PPA.
  • PyLibG19 – Library also available from this site. Again, packages available for Ubuntu in the Gnome15 PPA.

Source

Download the source from the Source Downloads page and follow the usual source package installation procedure.

./configure --prefix=/usr
make
sudo make install

This procedure will not install any init scripts, so if you want to run g19d at boot, you will have to edit the appropriate scripts for your distribution.

Packages

Ubuntu 10.10 and 10.4 packages are available in the Gnome15 PPA.

First, add the PPA to your sources. You may do this in a number of ways (Synaptic etc), or from the command line:-

sudo add-apt-repository ppa:tanktarta/gnome15
sudo apt-get update

Now install g19d.

sudo apt-get install g19d

You will also have to enable the daemon before starting it.

  1. Open /etc/default/g19d in your favourite text editor.
  2. Uncomment the G19D_ENABLED line and ensure it is set to ‘y’
  3. Save the file.
  4. Start the daemon :-
    sudo service g19d start

Usage

Usage: g19daemon [options]

Options:
  -h, --help            show this help message and exit
  -p PORT, --port=PORT  Port to listen on.
  -b FILE, --background=FILE
                        Background image file (320x240)
  -l INFO,DEBUG,WARNING,ERROR,CRITICAL, --log=INFO,DEBUG,WARNING,ERROR,CRITICAL
                        Background image file (320x240)
  -f, --foreground      Run daemon in foreground.
  -r, --reset           Reset device before intialisation.
  -m, --mm              Force enabling of multimedia key support (default to
                        automatic).
  -d, --disablemm       Force disbling of multimedia key support (default to
                        automatic).
  -t, --test            Test whether the hardware exists and exit with 0 if it
                        does, otherwise exit with 1.
  -T, --timeout         Timeout to use for writes to the USB device.

Leave a Reply

%d bloggers like this:
Skip to toolbar