4 Attachment(s)
HOWTO: Install basic G15Tools support for the Logitech G15
Major Edit:
I haven't really had time to update this thread to reflect more recent changes. Don't follow the instructions below as they are practically ancient. See here for the latest installation tips and debs(FEISTY)
please scroll down for information on getting amaroK to play nice with the g15 lcd.
My turn to do something back for this community, stuff tagged with * are optional steps possibly required to get this running (most likely they are on 6.06 Dapper)
First off, install libusb-dev* and libdaemon-dev using Synaptic or the terminal
Code:
sudo apt-get install libusb-dev libdaemon-dev
(*I had some kind of weird dependancy problem with xsane and ubuntu desktop with libusb-dev, simply do a search for "libusb-dev debian" and download/install, you'll know it works when it warns you about an older version in the repos)
Then, download the attachment and install libg15, g15daemon, libg15render and g15composer_1.0.1 (in that order)
Code:
Edit: If you want to run the latest version of G15composer (which handles it own pipe) you can get them here
It should be mostly backwards compatible except for the aforementioned pipe handling, remove any mention of (for example) mknod $pipe p from any script you wish to run. In addition, any pipes left behind by other scripts should be removed or it will complain.
next, try running g15daemon
if properly installed it will probably complain:
Code:
g15daemon: error while loading shared libraries: libg15.so.1: cannot open shared object file: No such file or directory
to solve that run:
Code:
sudo gedit /etc/ld.so.conf
and insert at the top of the file. Now run Now lets see if it'll work:
If you now have a gigantic clock showing on your lcd, CONGRATULATIONS!
Of course, many, many thanks to all the developers at http://g15tools.sourceforge.net/ !
I'll be updating this post as I discover more functions, of course all help is greatly appreciated.
Edit:
If you want to have the demon autorun on startup try running (BE CAREFUL) Change the user part and add the following to the end of the file:
Code:
user ALL= NOPASSWD: /usr/local/sbin/g15daemon . *If you use the packages posted later on in this thread it'll be /usr/sbin/g15daemon
and press ctrl+x to exit. Press Y to accept, it will check for syntax mistakes and if it finds one it will ask you "What now?" Simply press E and make the necessary changes.
After this go to System->Preferences->Sessions and add sudo g15daemon to the list
Next, getting some useful data on the screen. To get you all started try typing
Code:
echo 'TL "Hello" "World"' > ~/g15lcd
g15composer ~/g15lcd
Now please SOMEONE, make a decent amarok script with an analizer, track info and progress bar so we have a linux alternative for g15plugin for winamp in windows. :)
Hope this helps someone,
D
Amarok and the Logitech G15
This is surprisingly easy these days after some efforts from guitoo and Anuerysm9 plus the tiniest bit of packing effort on my end. Provided the lcd is fully functioning with a running clock you can download the following scripts:
amarok-g15-dcop_cli.ubuntu.amarokscript.tar.gz
This is Aneurysm9's script, it is a modified version of his original script designed to run without dependancies. It displays artist name plus song info and a wonderful song progress bar. If you are using ubuntu (very likely) make sure to get this version. The change made is adding the word "truetype" in the font location. The original can be found attached to this post below.
or
GentooG15Amarok(fixed).amarokscript.tar.gz
Another no dependancy script made by guitoo, simpler than Aneurysm9's but very reliable , simple and easy on the eyes. Gives a little more track info in the form of track number and album.
Download either script and install it into amarok by opening amarok -> tools -> script manager. Select the option install script, point it to the downloaded *.amarokscript.tar.gz and select ok. It should return a "script installed ok" after which you select the script in the list and press "run". G15Composer should show up and a few moments later (sometimes it takes a track change) the song info should pop up. As long as you leave the script running within amarok/script manager it will automatically turn on and off along with the player itself.
On a sidenote, aneurysm9's original scipt can be found on the next page of this post. It is supposedly more cpu efficient but I have never been able to resolve its dependancies so I cannot offer any advice on installation.
Enjoy!
Troubleshooting:
If you run sudo G15Deamon and it complains about a return value make sure to run People who previously installed G15Lcd will not have this problem.
Big Edit
Turns out I made a mistake and should have been clearer about creating a pipe, not a file, to read data from.
Quote:
Originally Posted by
Aneurysm9
Will everyone who is seeing g15composer eating 100% of their cycles please ensure that they are telling g15composer to read from a pipe and not a regular file. You can create a pipe with "mknod /path/to/pipe p" (replacing /path/to/pipe with whatever you really want, I use /var/run/lcdpipe) and run g15composer with "g15composer /path/to/pipe". If you tell it to read from a regular file it will simply read the file over and over again, eating all of your cycles because there's always something for it to read. With a pipe there's only something to read when you put something there so most of the time it's waiting for something to do.
Re: HOWTO: Install basic G15Tools support for the Logitech G15
I followed the instructions to the t, and I got the following error when I tried to run g15daemon.
Code:
subpar@gargamel:~/tmp$ sudo g15daemon
Something went wrong. Couldnt get return value from daemon process
Also, /etc/lib.so.conf was completely empty when I edited it, but it didn't give me that error until I changed the contents. Any clues on what I did wrong/what's going on?
Re: HOWTO: Install basic G15Tools support for the Logitech G15
Hi, /etc/lib.so.conf is empty when you edit it, did you run sudo ldconfig afterwards? check the .conf for any (spelling) errors. I assume G15Daemon gave the library related error before you edited the .conf and afterwards this new one regarding return values. I've had that return value error but it came with not running sudo... What kind of system are you running?
Edit: umm, /etc/lib.so.conf? hope you meant /etc/ld.so.conf :)
Edit: Dont forget to run (sudo?)
Re: HOWTO: Install basic G15Tools support for the Logitech G15
Double checked everything (yes, I even checked to make sure I edited ld.so.conf instead), and this is everything I tried:
Code:
subpar@gargamel:~$ sudo g15daemon
Something went wrong. Couldnt get return value from daemon process
subpar@gargamel:~$ modprobe uinput
FATAL: Error inserting uinput (/lib/modules/2.6.15-27-386/kernel/drivers/input/misc/uinput.ko): Operation not permitted
subpar@gargamel:~$ sudo modprobe uinput
subpar@gargamel:~$
I'm running i386, and if you need actual hardware specs, they can be found here.
Re: HOWTO: Install basic G15Tools support for the Logitech G15
try running sudo g15daemon again after having run sudo modprobe uinput
Re: HOWTO: Install basic G15Tools support for the Logitech G15
Well, I managed to get it to work, it displays a clock at the moment, but I was wondering, how would I go about binding say the Play/Forward/Rewind/Stop keys to say an application like Amarok?
Re: HOWTO: Install basic G15Tools support for the Logitech G15
You dont need the daemon to do so, simply go into system->preferences->keyboard shortcuts and amarok->settings->global shortcuts and fiddle with them till it works. It takes a little trial and error but as a hint: in gnome settings my stop key has a value of 0x04 and in Amarok it has a value of XF86Audiostop
Actually, these keys working where a major factor in my switch to linux, I was willing to not have an lcd for a while (this is 4 months ago) but I wanted at least the mediakeys, its not a cheap keyboard after all.
So again, just fiddle with it, if you get any feedback from pressing the buttons in gnome settings that means you're close to getting it to work.
Re: HOWTO: Install basic G15Tools support for the Logitech G15
i managed to install it but it should support libgraphlcd does anyone know how to get this working?
Re: HOWTO: Install basic G15Tools support for the Logitech G15
Great, now we need something for the G-Keys :)
Re: HOWTO: Install basic G15Tools support for the Logitech G15
The G-Keys are working just fine, try setting one in keyboard shortcuts. There's a slight bug though, it doesnt capture all keypresses (yet) so you have to hold it for a moment longer than a simple keypress. But I'm pretty sure you can't record G-Keys yet.