Closed pnelego closed 1 year ago
Update: It turns out the uinput package for fedora is no longer maintained, but in order to not completely break user space, they kept the old package. I'll submit a PR for the old package to fix the issue.
I have forked uinput-python and fixed the bug. GKeys works as expected.
Hi all, I've installed the driver based on the instructions on the README, and while trying to start the service, it fails with the following:
File "/usr/local/bin/g910-gkeys", line 33, in <module> sys.exit(load_entry_point('g910-gkeys==0.2.5', 'console_scripts', 'g910-gkeys')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/g910-gkeys", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 198, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/local/lib/python3.11/site-packages/g910_gkeys-0.2.5-py3.11.egg/cli_entry_point.py", line 5, in <module> File "/usr/local/lib/python3.11/site-packages/g910_gkeys-0.2.5-py3.11.egg/lib/g910_gkey_mapper.py", line 9, in <module> File "/usr/local/lib/python3.11/site-packages/g910_gkeys-0.2.5-py3.11.egg/lib/functionalities/gkey_functionality.py", line 5, in <module> File "/usr/local/lib/python3.11/site-packages/g910_gkeys-0.2.5-py3.11.egg/lib/data_mappers/config_reader.py", line 4, in <module> File "/usr/local/lib/python3.11/site-packages/g910_gkeys-0.2.5-py3.11.egg/lib/data_mappers/char_uinput_mapper.py", line 4, in <module> File "/usr/local/lib/python3.11/site-packages/python_uinput-0.11.2-py3.11-linux-x86_64.egg/uinput/__init__.py", line 86, in <module> _libsuinput_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "_libsuinput" + sysconfig.get_config_var("SO")))
To me, this seemed like an issue with Uinput, so, i redid the uinput modprobe, and verified installation of the python-uinput package. All is normal here.My fedora instance is set up on X11 (Nvidia) and not Wayland. which takes any weird wayland issues out of the equation.. g810-led is also installed and working as expected, doesn't seem to be something wrong with HDAPI.
Any help would be greatly appreciated.