Skip to content

Instantly share code, notes, and snippets.

@ammgws
Last active August 25, 2017 09:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammgws/8d124185ad6590681ba6629222c21921 to your computer and use it in GitHub Desktop.
Save ammgws/8d124185ad6590681ba6629222c21921 to your computer and use it in GitHub Desktop.
logitech g110 on archlinux - try2

download patched files for G110

cd /tmp
git clone https://github.com/Leproide/Linux-G15-Daemon-Logitech-G110-.git
cd Linux-G15-Daemon-Logitech-G110--master

install patched libusb

cd libusb1-1.4.1
./configure
make
sudo make install

install libg15render (Pacman won't install it since we installed libusb manually)

need prfix=/usr/local or it will complain about not being able to load fonts

cd /tmp
wget http://mirror.netcologne.de/ubuntu/pool/universe/libg/libg15render/libg15render_1.3.0~svn316.orig.tar.gz
tar -xf libg15render_1.3.0~svn316.orig.tar.gz
cd libg15render_1.3.0~svn316.orig
autoreconf -i
./configure --prefix=/usr/local
make
sudo make install

install g15daemon (Pacman won't install it since we installed libusb manually)

cd g15daemon-1.9.5.3
./configure
make
sudo make install

install g15macro

cd g15macro-1.0.3
./configure
make
sudo make install

usage with gmacro

sudo g15daemon -d 2
gmacro

press M1, M2 or M3 button
press MR
G15Macro terminal should show 'G15Macro: Recording Enabled'
enter the keystrokes for your macro (eg. ctrl + f9)
press the G key you want to register it to
G15Macro terminal should show 'Recording Complete For key Gx' where x is the key you chose

usage with xmodmap

keycodes for the Gkeys are 175 to 186 (G1 to G12)
to set G12 to 'a': xmodmap -e "keycode 186 = a"
however the responsiveness is pretty bad.. multiple presses do nothing until suddenly they all come out at the same time
keystrokes being buffered up for some reason?

note 1

may or may not be necessary: localectl set-x11-keymap us logitech_g15

note 2

error when running g15daemon
g15daemon: error while loading shared libraries: libg15.so.1: cannot open shared object file: No such file or directory

solve by sudo nano /etc/ld.so.conf and add /usr/local/lib to the file.
update using sudo ldconfig

@ammgws
Copy link
Author

ammgws commented Mar 26, 2017

g15daemon seems to be working (sudo g15daemon -d)
image

the script to change colour doesn't seem to work
image

https://bbs.archlinux.org/viewtopic.php?pid=1421825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment