Package Details: g910-gkeys-git 0.3.0.r19.g4b1f05e-2

Git Clone URL: https://aur.archlinux.org/g910-gkeys-git.git (read-only, click to copy)
Package Base: g910-gkeys-git
Description: GKey support for Logitech G910 Keyboard on GNU/Linux
Upstream URL: https://github.com/JSubelj/g910-gkey-macro-support
Keywords: daemon g910 gkey-support gkeys hotkeys logitech macros
Licenses: GPL3
Submitter: cleptes
Maintainer: jlaunay
Last Packager: jlaunay
Votes: 2
Popularity: 0.001231
First Submitted: 2019-02-26 16:58 (UTC)
Last Updated: 2023-10-07 12:08 (UTC)

Latest Comments

profiluefter commented on 2023-10-07 12:23 (UTC)

Thank you, it works without issues now!

jlaunay commented on 2023-10-07 12:10 (UTC)

@Profiluefter I took time to check and pushed an update. It should be ok now.

profiluefter commented on 2023-10-06 14:07 (UTC)

@jlaunay I completely uninstalled the package and rebuilt it from the AUR and get the exact same output as you show in your code snippet. However, it shows that the conf file still gets installed into /etc/modules-load.d/uinput-g910-gkeys.conf/uinput-g910-gkeys.conf.

If I reboot while the file is in that subdirectory I get an error message during the boot process for some systemd service. If I manually move that file outside the directory and rename it so that is has the same name again (after deleting the directory) it works again. Does it work for you in the subdirectory configuration?

jlaunay commented on 2023-10-03 12:09 (UTC)

Hi, I don't think so. Maybe you should first uninstall to delete the uinput-g910-gkeys.conf folder.

# pacman -Qlp g910-gkeys-git-0.3.0.r19.g4b1f05e-1-any.pkg.tar.zst | grep uinput-g910-gkeys.conf
g910-gkeys-git /etc/modules-load.d/uinput-g910-gkeys.conf/
g910-gkeys-git /etc/modules-load.d/uinput-g910-gkeys.conf/uinput-g910-gkeys.conf
# paru -Ql g910-gkeys-git | grep uinput-g910-gkeys.conf
g910-gkeys-git /etc/modules-load.d/uinput-g910-gkeys.conf/
g910-gkeys-git /etc/modules-load.d/uinput-g910-gkeys.conf/uinput-g910-gkeys.conf

profiluefter commented on 2023-10-03 11:39 (UTC)

Hi, I think there's still the issue that the kernel module gets installed into /etc/modules-load.d/uinput-g910-gkeys.conf/uinput-g910-gkeys.conf

ararhoo commented on 2023-09-13 16:51 (UTC) (edited on 2023-09-13 16:51 (UTC) by ararhoo)

@jlaunay, the fool has only to blame themselves.

Just as I wanted to amend my recent posting, I saw that you have already replied. Whoops. Now it's too late. Thank you for your fast reply! :-)

The media keys are working again. Yay!

So, yes, somethings else needed to have been the issue, even though I did reboot yesterday, before writing my post.. hmmn.

Sorry to have accused anybody related to this package of anything, I was clearly in the wrong.

Also, what I can report is that lsmod | grep uinput does not return anything, it's missing from the listing.

There is some pending issue here, yes, looks like it, but it's only a me-problem. I think, it can be summmerized that as the module is not loaded, surely nothing can be found. Thus, the error.

So all is well and solved.

Thank you very much for pitching in, cheers to you!

jlaunay commented on 2023-09-13 09:19 (UTC)

@ararhoo no problem here, Is the uinput driver module loaded?

lsmod | grep uinput

I think g910-gkeys doesn't control multimedia keys but only GKey

ararhoo commented on 2023-09-12 19:31 (UTC)

Hey there, sadly I have to tell you that it seems like this is not working as expected anymore.

I cannot use the media keys anymore, which is quite sad. G1-G5 are still working as expected, though. Weird.

It changed around the recent update of the package to v0.3.0.

I get an error for the service now:

Sep 12 20:53:48 pc systemd[1]: Started Support for Logitech g910 keyboard gkeys.
░░ Subject: A start job for unit g910-gkeys.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit g910-gkeys.service has finished successfully.
░░ 
░░ The job identifier is 3459.
Sep 12 20:53:49 pc env[28998]: Traceback (most recent call last):
Sep 12 20:53:49 pc env[28998]:   File "/usr/bin/g910-gkeys", line 33, in <module>
Sep 12 20:53:49 pc env[28998]:     sys.exit(load_entry_point('g910-gkeys==0.3.0', 'console_scripts', 'g910-gkeys')())
Sep 12 20:53:49 pc env[28998]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/cli_entry_point.py", line 28, in main
Sep 12 20:53:49 pc env[28998]:     g910_gkey_mapper.main()
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/lib/g910_gkey_mapper.py", line 65, in main
Sep 12 20:53:49 pc env[28998]:     keyboard = Keyboard(config)
Sep 12 20:53:49 pc env[28998]:                ^^^^^^^^^^^^^^^^
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/lib/keyboard.py", line 27, in __init__
Sep 12 20:53:49 pc env[28998]:     self.device = uinput.Device(uinput_all_keys)
Sep 12 20:53:49 pc env[28998]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/uinput/__init__.py", line 178, in __init__
Sep 12 20:53:49 pc env[28998]:     self.__uinput_fd = fd or fdopen()
Sep 12 20:53:49 pc env[28998]:                              ^^^^^^^^
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/uinput/__init__.py", line 84, in fdopen
Sep 12 20:53:49 pc env[28998]:     return _libsuinput.suinput_open()
Sep 12 20:53:49 pc env[28998]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 12 20:53:49 pc env[28998]:   File "/usr/lib/python3.11/site-packages/uinput/__init__.py", line 70, in _open_error_handler
Sep 12 20:53:49 pc env[28998]:     raise OSError(code, msg)
Sep 12 20:53:49 pc env[28998]: OSError: [Errno 19] Failed to open the uinput device: No such device
Sep 12 20:53:49 pc systemd[1]: g910-gkeys.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit g910-gkeys.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 12 20:53:49 pc systemd[1]: g910-gkeys.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit g910-gkeys.service has entered the 'failed' state with result 'exit-code'.

Hopefully this log gives you already a hint to what is happening here.

If there is anything else I could do to provide helpful feedback in fixing the issue, please let me know.

Python 3.11.5-2 is installed and the listed dependencies are up to date.

The log file (/var/log/g910-gkeys.log) also doesn't say anything useful (to me at least):

2023-09-12 21:11:03,724 [INFO] {lib.g910_gkey_mapper} - --------------------------------------------------------------------------------
2023-09-12 21:11:03,724 [INFO] {lib.g910_gkey_mapper} - ----------------------STARTED g910-keys-pid:42373------------------------------
2023-09-12 21:11:03,724 [INFO] {lib.g910_gkey_mapper} - --------------------------------------------------------------------------------
2023-09-12 21:11:03,938 [INFO] {lib.usb_device} - Keyboard Logitech G910 Orion Spark found.
2023-09-12 21:11:03,939 [INFO] {lib.misc.config} - Reading config from /etc/g910-gkeys/config.json
2023-09-12 21:11:04,439 [INFO] {lib.usb_device} - Trying to disable f-key to g-key binding

Thank you very much in advance :)

ISSOtm commented on 2022-06-15 21:22 (UTC)

The source must be changed from git:// to git+https://, as the clone otherwise fails. (I think GitHub removed support for that protocol.)