Hi fabek,
The drivers were downloaded from Github, since logitech does not provide linux drivers for its keyboard with the additional buttons. The keyboard itself works fine except for the additional programmable buttons and LCD which need the G15daemon to function.
The service file was created manually. The drivers installation does not include the service on start-up.
Previously I had a 3D mouse installed and added the service file based on instruction from a forum which had other users installing the mouse. The content of the service file is similar to the one i pasted above. It works fine for the mouse. So i use the same method to create the service file for the g15daemon and enable the service after creating the service file.
The reason why i did not create a script in init.d because in my system (KDE) the init scripts have been replaced with systemd service files. There is a README file in the /etc/init.d folder:
You are looking for the traditional init scripts in /etc/rc.d/init.d,
and they are gone?
Here’s an explanation on what’s going on:
You are running a systemd-based OS where traditional init scripts have
been replaced by native systemd services files. Service files provide
very similar functionality to init scripts. To make use of service
files simply invoke “systemctl”, which will output a list of all
currently running services (and other units). Use “systemctl
list-unit-files” to get a listing of all known unit files, including
stopped, disabled and masked ones. Use “systemctl start
foobar.service” and “systemctl stop foobar.service” to start or stop a
service, respectively. For further details, please refer to
systemctl(1).
Note that traditional init scripts continue to function on a systemd
system. An init script / etc/rc.d/init.d/foobar is implicitly mapped
into a service unit foobar.service during system initialization.
Thank you!
Further reading:
man:systemctl(1)
man:systemd(1)
** SOME LINKS WHICH I HAVE REMOVED DUE TO NEW USERS NOT ALLOWED TO POST LINKS**
I added the line in the [Service] section. And here are the journal debug logs:
Oct 14 10:32:14 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:15 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 14 10:32:15 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:15 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:17 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 14 10:32:17 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:17 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:18 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 14 10:32:18 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:18 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:19 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 14 10:32:19 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:19 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:20 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 14 10:32:20 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:20 lnx1762-064 systemd[1]: start request repeated too quickly for G15daemon_Logitech.service
Oct 14 10:32:20 lnx1762-064 systemd[1]: Failed to start Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 14 10:32:20 lnx1762-064 systemd[1]: Unit G15daemon_Logitech.service entered failed state.
Oct 14 10:32:20 lnx1762-064 systemd[1]: G15daemon_Logitech.service failed