Page 1 of 4 123 ... LastLast
Results 1 to 10 of 480

Thread: HOWTO: Install basic G15Tools support for the Logitech G15

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Beans
    80

    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
    Code:
    /usr/local/lib
    at the top of the file. Now run
    Code:
    sudo ldconfig
    Now lets see if it'll work:

    Code:
    sudo g15daemon
    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)
    Code:
    sudo visudo
    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
    Code:
    modprobe uinput
    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 View Post
    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.
    Attached Files Attached Files
    Last edited by drdnl; June 17th, 2007 at 10:30 PM.

  2. #2
    Join Date
    Aug 2006
    Beans
    28

    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?

  3. #3
    Join Date
    Oct 2005
    Beans
    80

    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?)
    Code:
    modprobe uinput
    Last edited by drdnl; September 29th, 2006 at 11:23 AM.

  4. #4
    Join Date
    Aug 2006
    Beans
    28

    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.

  5. #5
    Join Date
    Oct 2005
    Beans
    80

    Re: HOWTO: Install basic G15Tools support for the Logitech G15

    try running sudo g15daemon again after having run sudo modprobe uinput

  6. #6
    Join Date
    Apr 2005
    Beans
    11

    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?

  7. #7
    Join Date
    Oct 2006
    Beans
    3

    Re: HOWTO: Install basic G15Tools support for the Logitech G15

    How to install XMMS plug-in for Ubuntu and G15Daemon?
    I found the sources from sourceforge, but after installing g15tools from .deb files they don't seem to work...

  8. #8
    Join Date
    Apr 2006
    Beans
    118

    Re: HOWTO: Install basic G15Tools support for the Logitech G15

    Quote Originally Posted by Nappateemu View Post
    How to install XMMS plug-in for Ubuntu and G15Daemon?
    I found the sources from sourceforge, but after installing g15tools from .deb files they don't seem to work...
    The XMMS plugin isn't handled by the Makefile from g15daemon, you need to first install g15daemon (including libg15daemon-client-dev if you're using the debs) and then build the XMMS plugin from the source.

  9. #9
    Join Date
    Oct 2006
    Beans
    3

    Re: HOWTO: Install basic G15Tools support for the Logitech G15

    Quote Originally Posted by Aneurysm9 View Post
    The XMMS plugin isn't handled by the Makefile from g15daemon, you need to first install g15daemon (including libg15daemon-client-dev if you're using the debs) and then build the XMMS plugin from the source.
    Ok... I think I'm just going to stick with Amarok. I didn't quite understand the Amarok plug-in installation either, any help?

  10. #10
    Join Date
    Apr 2006
    Beans
    118

    Re: HOWTO: Install basic G15Tools support for the Logitech G15

    Quote Originally Posted by Nappateemu View Post
    Ok... I think I'm just going to stick with Amarok. I didn't quite understand the Amarok plug-in installation either, any help?
    First you'll need to install DCOP::Amarok:layer, which you can get with cpan or by downloading the sources for DCOP, DCOP::Amarok, and DCOP::Amarok:layer and installing them in order. Then you install the script from the Amarok script manager, just point it to the tarball that I attached to an earlier post. If you don't have g15composer reading from /var/run/lcdpipe, right click on the script in the script manager and select edit and change the location of $PIPE to wherever g15composer is reading from. Change the font as well if you need to, I think it may be in a different location on Breezy, that script was written on a Gentoo system. Then start the script from the script manager and you're good to go.

    Edit:

    The font is indeed in a different location, add /truetype/ after /usr/share/fonts and before ttf-bitstream....
    Last edited by Aneurysm9; October 3rd, 2006 at 07:28 PM.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •