plerohero n00b
Joined: 19 Feb 2009 Posts: 6
|
Posted: Thu Sep 27, 2018 9:42 pm Post subject: SDDM cannot start unless hid-g15 is rebinded |
|
|
Hello,
I have a logitech G15 old keayboard. In the past I have used g15daemon and later on gnome15.
Unfortunately both of these programs seems almost abandoned...
I removed successfully g1daemon and gnome15 but I cannot uninstall sys-kernel/lg4l-kernel-module.
If I remove the modules or do not execute 'lg4l-rebind.start', SDDM refuses to start!
No systemd errors. When I execute 'lg4l-rebind.start' sddm starts immediately.
Somewhere there is a configuration file for sddm that requires this device to be configured.
I checked udev and keyboard exists before lg4l script execution.
startx as root works fine.
Any idea how can I debug this?
Code: |
#!/bin/bash
SFS_HID_DEVICES="/sys/bus/hid/devices"
SFS_HID_DRIVERS="/sys/bus/hid/drivers"
SFS_HID_GENERIC="$SFS_HID_DRIVERS/hid-generic"
# kernels before 3.5.0 use generic-usb, while newer ones have hid-generic
[[ -d "$SFS_HID_DRIVERS/generic-usb" ]] && SFS_HID_GENERIC="$SFS_HID_DRIVERS/generic-usb"
[[ -d "$SFS_HID_DRIVERS/hid-generic" ]] && SFS_HID_GENERIC="$SFS_HID_DRIVERS/hid-generic"
rebind()
{
# assume device is unbound if CONFIG_HID or CONFIG_HID_GENERIC are not enabled
if [[ -n "$SFS_HID_GENERIC" ]] ; then
for dev in $(ls $SFS_HID_GENERIC | egrep $1) ; do
# echo "Unbinding $dev from hid_generic"
echo -n $dev > $SFS_HID_GENERIC/unbind
done
fi
for dev in $(ls $SFS_HID_DEVICES | egrep $1) ; do
if [[ ! -e "$SFS_HID_DRIVERS/$2/$dev" ]] ; then
# echo "Binding $dev to $2"
echo -n $dev > $SFS_HID_DRIVERS/$2/bind
fi
done
}
rebind 046D:C21C hid-g13
rebind 046D:C222 hid-g15
rebind 046D:C227 hid-g15v2
rebind 046D:C229 hid-g19
rebind 046D:C22B hid-g110
# TODO: the previous version used to unbind C22D and C22E as well, though it did not bind it to anything
|
_________________ Placed on this isthmus of a middle state,
A being darkly wise and rudely great:
Born but to die, and reas'ning but to err; |
|