Skip to content

Instantly share code, notes, and snippets.

@ammgws
Last active August 15, 2021 06:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammgws/1075c7e552292af18642db411cb8d18b to your computer and use it in GitHub Desktop.
Save ammgws/1075c7e552292af18642db411cb8d18b to your computer and use it in GitHub Desktop.
getting logitech g110 to work in arch linux

Packages to install from system repo / AUR

sudo pacman -S python2-gconf from AUR: python2-rsvg

Create python2.7 virtualenv to use with gnome15 and install requirements with pip

vf new -p python2.7 gnome15_venv
vf globalpackages  # to allow system packages installed above to be used in this venv

pip install keyring
pip install pillow
pip install dbus-python
pip install pyinotify
pip install lxml
pip install pyxdg
pip install pyusb
pip install python-uinput
pip install python-xlib

Other requirements don't seem to be on pypi, so need to download and install/build manually

  • NOTE: if make fails then make sure that the gnome15_venv virtualenv is still activated

pyinputevent

cd /tmp
git clone https://github.com/ammgws/pyinputevent.git
cd pyinputevent
python setup.py install

python-virtkey

cd /tmp
wget https://launchpad.net/virtkey/0.63/0.63.0/+download/virtkey-0.63.0.tar.gz
tar -xf virtkey-0.63.0.tar.gz
cd virtkey-0.63.0
python setup.py install

Python2 Cairo bindings

cd /tmp
wget https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
tar -xf py2cairo-1.10.0.tar.bz2
cd py2cairo-1.10.0
./waf configure --prefix=/path/to/.virtualenvs/gnome15_venv/
./waf build
sudo ./waf install

pygobject

wget http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.bz2
tar -xf pygobject-2.28.6.tar.bz2
cd pygobject-2.28.6
./configure --prefix=/path/to/.virtualenvs/gnome15_venv/ --disable-introspection
make
make install

pygtk2

cd /tmp
wget http://pypi.python.org/packages/source/P/PyGTK/pygtk-2.24.0.tar.bz2
tar -xf pygtk-2.24.0.tar.bz2
cd pygtk-2.24.0
./configure --prefix=/path/to/.virtualenvs/gnome15_venv/ PKG_CONFIG_PATH=/path/to/.virtualenvs/gnome15_venv/lib/pkgconfig
make
sudo make install

gnome15 AUR is dead, so have to build from source

cd /tmp
git clone https://github.com/Huskynarr/gnome15.git
cd gnome15
autoreconf -i
./configure PYTHON=/path/to/.virtualenvs/gnome15_venv/bin/python
<before running make, edit Makefile as per note below>
make
sudo make install

Note: Running gnome15's make complains that it can't find fftw3, even though fftw3.3.6-1 is installed on my system.. other distros have fftw3-devel/fftw3-dev which apparently may solve the issue, but Arch doesn't. Compiling fftw from source doesn't help either.

  • Solution was to edit the gnome15 Makefile and replace FFTW_LIBS = -lfftw3 with FFTW_LIBS = /usr/lib/libfftw3.so
  • Do this for these Makefiles: gnome15/Makefile, gnome15/src/Makefile, gnome15/src/libimpulse/Makefile
@ammgws
Copy link
Author

ammgws commented Mar 25, 2017

image

@ammgws
Copy link
Author

ammgws commented Mar 25, 2017

image

@ammgws
Copy link
Author

ammgws commented Mar 26, 2017

xdg provided by python2-xdg system package, and pip install xdg are different...
gnome15 needs the former

update: correct package is pyxdg: install using pip install pyxdg if not already installed in system site packages

image

@cybercorey
Copy link

Forgive my noobishness, what is the "vf" command?

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