mohamadsaada / logigsk Goto Github PK
View Code? Open in Web Editor NEWA Linux based software package to control led's on Logitech G910, G810, G610 and G410.
License: GNU General Public License v3.0
A Linux based software package to control led's on Logitech G910, G810, G610 and G410.
License: GNU General Public License v3.0
Hi, first of all: thanks for the work!
I'm using Kubuntu 17.04 and the Logitech g910 orion spectrum.
I tried to build my own package and installed it - the program closed immediately after the start.
With the Install script I'm getting so far that the program starts and shows loading but stays there - I'm able to click on "File" but the only thing I can click on is "Exit". When I click on "Edit" the entry "Settings" appears clickable but nothing happens when you click it.
I have a logitech g910 keyboard. I'm running ubuntu 18.04 with kde-plasma and I got the software to install without issue. The keyboard shows up in the GUI but when I press the 'set' button nothing happens. Still stuck on the default rainbow wave effect.
This seems to work fine on Ubuntu, or at least the version I was using did. I had to reinstall my os so I went with Debian. This won't run on Debian. I can run the deb package installer and it installs but it doesn't run. When I try to run the jar file from the terminal with java -jar LogiGSK.jar, I get the following error:
Error: Unable to initialize main class Logi.GSeries.Keyboard.LogiGSK Caused by: java.lang.NoClassDefFoundError: org/usb4java/LibUsbException
There is no instance of a "usb4java" or a "libusb4java" or anything similar in any Debian or Arch repository. I tried compiling usb4java myself but it gives me this error.
fatal error: jni.h: No such file or directory 10 | #include <jni.h>
Anyway, Debian ended up not working on that pc due to nvidia driver issues so I installed Arch instead. Same exact problem and I'm stuck at the same dead end - I can't overcome the missing jni.h problem.
Has anyone figured out how to make it work on Arch (or Debian) yet?
Only US and UK layouts are available, how to add more ?
Its possible to add a script in .bashrc/.bash_profile, to force it @startup because my windows (dualboot) changes the setting after start
Instructions to how to use tihs software on Windows aren't straightforward.
For Linux, there are deb/rpm packages available. But for Windows, the .jar alone requires other files, and the exact list isn't documented.
System: Xubuntu 16.04 LTS
I need some help on getting this working, I've installed it but the service wont start even tho I started it and I got a error saying
Starting the LogiGSK service...
Cannot locate Java Home
The LogiGSK service has started.
tho I did
export JAVA_HOME=/usr/lib/jvm/jre-8-oracle-x64
really wish this was just a install and use instead of this unneeded complications..
Hello Mohamad,
First and foremost, thank you very much for doing what Logitech refuses to do, which is to help us enjoy what should be a great product.
I have the G910, everything works well in windows, I can get the LED setting to stick in Ubuntu if I close Lcore process before rebooting, If I don’t well I get the supra annoying rainbow effect when I want to work in Ubuntu which I use for my work.
I have installed LogiGSK, by downloading .deb, and having Ubuntu software centre install. have the app's Icon in bash. Howevber when I start it, nothing happens, no GUI or anything else, no error message either.
I'm pretty sure the issue is here and not with your software. Any idea of what I could do to at least jam the rainbow and get a minimal backlight working, any color at this point would make me happy!
could I be missing some repository component?
Again, thank you very much for your time and efforts!
Eric Bergeron
After compiling via instructions and installing, I found that the program did not pick up the globally set JAVA_HOME variable. Instead, it seems to be hard coded to /usr/lib/jvm/default-java . I had to create a symbolic link via the following command:
sudo ln -s $JAVA_HOME /usr/lib/jvm/default-java
Can you look into adding support for the G900 mouse that goes with the G910 keyboard??
I just tried to install but it's rather complicated.
It would be cool to have an installation script ...
I test it in VM, if script is not fully tested, make a branch for testing
Hi Mohamad,
thanks for the special tool :)
After the installation I have the problem that the keys Volume, Start, Stop, Last and Next do not work anymore.
Im using Linux Mint 19.1.
Thanks a lot!
Encountered the following error when installing on Pop!_OS
Error:
Error while installing package: installed logigsk package post-installation script subprocess returned error exit status 1
Steps I took to fix this:
I'd suggest performing an OS check in the Post Install Script
Check4Pop=`cat /etc/os-release|grep -m 1 -o "Pop\!_OS"`
if [ "$Check4Pop" == "Pop!_OS" ];
then
USER=`who | grep ':1' | grep -o '^\w*' | head -n1`
else
USER=`who | grep ':0' | grep -o '^\w*' | head -n1`
fi
First of all, thank you for you work.
I installed it through the first method, Ubuntu open correctly LogiGSK, I set the effects without any error message but most do not work.
The keyboard works fine on Windows 7. On Ubuntu 16.04 work only these types of lighting:
-EFFECTS:
fixed colour
breathing
colour cycle
-ZONES
Multimedia
It is still a step forward but I would like to be able to use more features.
I use Ubuntu 16.04 with openjdk 8.
Any suggestions? Can I fix something?
Thanks
Hi,
0
root@lk-ws:/home/sammy/leds/LogiGSK# ./INSTALL
This program requires java but it's not installed. Aborting.
This program requires javac but it's not installed. Aborting.
This program requires jsvc but it's not installed. Aborting.
This program requires ant but it's not installed. Aborting.
compiling the project using Apache Ant
./INSTALL: line 25: ant: command not found
cp: cannot stat '/home/sammy/leds/LogiGSK/dist/LogiGSK.jar': No such file or directory
chmod: cannot access '/usr/share/logigsk/LogiGSK.jar': No such file or directory
cp: cannot stat '/home/sammy/leds/LogiGSK/dist/lib/.jar': No such file or directory
chmod: cannot access '/usr/share/logigsk/lib/.jar': No such file or directory
failed to setup LogiGSK service startup file in autostart, please refere to website for more details.
LogiGSK has been successfully installed
There's something fundamentally wrong with this picture.... specially considering the last line :-)
kemi@HeavyTuned:/usr/share/logigsk$ java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
kemi@HeavyTuned:/usr/share/logigsk$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
kemi@HeavyTuned:/usr/share/logigsk$ ./LogiGSK start
Starting the LogiGSK service...
Cannot find any VM in Java Home /usr/lib/jvm/default-java
The LogiGSK service has started.
I'm trying to do it by myself, but I find some obstacles.
Right now, the lsusb command reports that my keyboard (G810 ES_QWERTY) ID is 046d:c337, which, if I understood well your code, is the same as an G910 Orion Spark UK_QWERTY.
Dear developers, I've successfully installed LogiGSK 1.0, and opened the software. However, whatever I've set in the software does not show anything changed on my keyboard, any ideas?
Hi team,
I'm no expert but it looks like a routine Kubuntu system update included a JRE update and now LogiGSK won't launch. Manual launch attempt:
Starting the LogiGSK service... Cannot find any VM in Java Home /usr/lib/jvm/default-java The LogiGSK service has started.
my apt log
Start-Date: 2018-08-21 17:40:22 Commandline: packagekit role='update-packages' Requested-By: [OBFUSCATED] (1000) Upgrade: libapt-inst2.0:amd64 (1.6.3, 1.6.3ubuntu0.1), apt:amd64 (1.6.3, 1.6.3ubuntu0.1), libapt-pkg5.0:amd64 (1.6.3, 1.6.3ubuntu0.1), openjdk-11-jre-headless:amd64 (10.0.1+10-3ubuntu1, 10.0.2+13-1ubuntu0.18.04.1), openjdk-11-jre:amd64 (10.0.1+10-3ubuntu1, 10.0.2+13-1ubuntu0.18.04.1), wpasupplicant:amd64 (2:2.6-15ubuntu2, 2:2.6-15ubuntu2.1), apt-utils:amd64 (1.6.3, 1.6.3ubuntu0.1) End-Date: 2018-08-21 17:40:30
All the best and thanks for the cool util :)
Hi any chance you could add support for the Logitech Pro 10-keyless Keyboard? Let me know if you need any additional information.
Thanks!
DJ
Hi, I'm using the last dist of Kali linux, I,v tried everything, compile the pkg by myself, donwload the deb and rpm from the repo and installed they etc.. i can install the soft but when i open it nothing happens. I"m using a G610
Hi,
Have you plan to add the french FR_AZERTY Layout.
I've try to make it myself but i'm far away from success :/
Thanks for your work
Hi,
Thanks for putting this together!
However, it does not suit my use case - I do not want yet another daemon running and taking up memory. I have a simple G610 (monochrome) and just want to set LEDs upon X.org starting... like xset does for NumLock, CapsLock and ScrollLock.
Any plans to support that use case?
hello,
as from the title, I'd like to use your software, it works, even if the volume wheel, using the US layout, was deactivated. My keyboard version is german QWERTZ.
Could it be possible to add it to your software?
Thank you
Could you please let me know why am I getting this error?
The most useful effect by far is the pressed key one: with the whole keyboard with one, fixed color, once you press a key, it changes to a selected color, then slowly (adjustable) changes back to its original color.
Rather than looking pretty, this is ideal to realize whether you've hit one or two keys when your aim isn't all there. Or, you can always give me some pointers on how to code an effect, and I'll gladly do it.
Cheers!
first off love this piece of software and thank you for making it. in my browsing I have found a working driver for the g910 macro keys at https://github.com/JSubelj/g910-gkey-macro-support I think it should work with other model keyboards but do not have them to test but it seems like it could be used in logiGSK for gkeys
If you can add Turkish Q keyboard layout it would be awesome.
After upgrading to 18.04 from 17.04 I get this message when trying to start the service:
Starting the LogiGSK service...
Cannot find any VM in Java Home /usr/lib/jvm/default-java
The LogiGSK service has started
I also tried to build the deb again and this line appears to break the build as it now returns nothing:
USER=`who | grep ':0' | grep -o '^\w*' | head -n1`
when this runs the USER
variable remains empty which causes the package build to fail.
Would be really helpful if someone could add this to the AUR, I'm not really sure how to do that.
Most of the installation went okay, however when attempting to launch I am confronted with this error:
Error: Unable to access jarfile /usr/share/logigsk/LogiGSK.jar
I am running as root and im still getting the same error.
Attempting to install on CentOS 7, using the following command:
sudo yum install logigsk-1.0.0.rpm
This is using the .rpm
file provided in the README.
Get the following error:
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file / from install of logigsk-1.0.0-2.noarch conflicts with file from package filesystem-3.2-21.el7.x86_64
file /usr/bin from install of logigsk-1.0.0-2.noarch conflicts with file from package filesystem-3.2-21.el7.x86_64
Error Summary
-------------
It seems that the G-keys for the G910 keyboard are not working on Ubuntu 16.04. The G-Key pane in the application is blank. Output in xev (both sudo and non-sudo) shows no output/input at all from these keys.
The LEDs do control just fine, though!
(also, excellent program! - I was able to build successfully and install.)
Hey, just writing you really quick because I've been waiting for a project like yours since I got this keyboard!
I have the german version of the g910 Orion Spark. In principle, I was going to add my Keyboard as described in your README, but ran into some problems.
First and foremost: There is no clean Image of the german keyboard layout for the g910. The official windows configuration program is simply using the english layout. Now we could probably do that too, but it would be unclean.
The best clean picture of the g910 I found is this one:
http://www.hardbloxx.de/wp-content/uploads/2015/03/Logitech-G910-Orion-Spark-RGB_4.jpg
I will try to edit it, but wanted to hear your opinion. Adding the special keys without providing them clearly in the layout would be a possibility.
Second: what version of Java/IDE settings do you use? I'm using intellij with Java 8 openjdk, but I seem to be getting quite a few errors with your code.
And Last: You mention that I'd have to add the keyboard class to quite a few other classes. In the Star class, it seems I need the amount of keys to iterate over etc. What other properties do I need and how can I obtain them the easiest? If you have some kind of workflow that solves this faster than manual counting, that would probably safe me a lot of time.
For this, it would also be interesting to know if the keycount includes for example G-Keys.
As mentioned above, I will try to complete this and provide a pull request by next week, if you accept an unfinished patch containing only the additional class and declared additional keys, I could provide it sooner. Thank you for your time and this awesome project!
I tried to build the deb again and this line appears to break the build as it now returns nothing:
USER=`who | grep ':0' | grep -o '^\w*' | head -n1`
when this runs the USER
variable remains empty which causes the package build to fail.
I modified mine to just set
USER=<My_UserName>
Which got it to work for me and I was able to install. See issue #28 for help with starting the service in 18.x by the way.
I have Ubuntu 18.04.3 LTS and after I install LogiGSK (and restart my laptop in order to make it work) the media keys from the keyboard no longer work. They do work before I install this, but after that install and restart they no longer do. I also noticed that the G Keys tab it's just an empty page, not sure if the issue is related to this.
I use this at my office and what I do now is to install this tool Monday morning, restart, apply my saved settings, then uninstall, restart and continue to use the keyboard like this until Friday when I shut down the laptop over weekend and the settings are lost so I have to repeat the process next week.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.