Closed maehne closed 5 years ago
Thanks a lot, I'll check it out and update the rule file when doing the next code update.
Hi Torsten, interestingly my output of cat /proc/bus/input/devices
look quiet different, when the Spotlight device is connected via bluetooth:
[...]
I: Bus=0005 Vendor=046d Product=b503 Version=0032
N: Name="SPOTLIGHT"
P: Phys=C4:8E:8F:FA:37:0E
S: Sysfs=/devices/virtual/misc/uhid/0005:046D:B503.000A/input/input32
U: Uniq=C3:A0:BB:30:C1:7B
H: Handlers=sysrq kbd mouse3 event17
B: PROP=0
B: EV=10001f
B: KEY=3007f 0 0 483ffff17aff32d bf54444600000000 ffff0001 130f938b17c007 ffe77bfad9415fff febeffdfffefffff fffffffffffffffe
B: REL=1c3
B: ABS=100000000
B: MSC=10
In any way your modification is much better as it matches via vendor and product id.
So did your modified version work for you in combination with Projecteur?
Seems like my system (Ubuntu 18.04) registers just one device which handles keyboard and mouse (Handlers=sysrq kbd mouse3 event17
), as with your system each handler gets its own device.
Thanks Jahn for looking into my Spotlight Bluetooth connection issue! Unfortunately, I still have not succeeded to make my Spotlight device work together with Projecteur when it is connected via Bluetooth. It still just behaves like a restricted mouse/keyboard. The change in the UDEV rule does not influence the outcome. By the way, thanks for adopting it anyway. I am not sure why our output of cat /proc/bus/input/devices
looks so differently. Maybe, it is due to a different Linux kernel? Mine on Debian Buster is:
$ uname -a
Linux tp470p-es-i3s 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux
However, looking again at the output of cat /proc/bus/input/devices
, I was finally able to make the connection to the devices under /dev/input
. The corresponding event device is simply listed under Handlers
. I checked the group permissions of the corresponding /dev/input/event26
, /dev/input/event27
, /dev/input/event28
devices. All, still had the original ownership root:input
instead of root:plugdev
. Manually changing the permissions made Projecteur
to find the Spotlight device after a restart. So, it seems that the UDEV rule is still not quite right.
I finally figured out a UDEV rule for changing the permissions of the device files, which works for me when Spotlight is connected via Bluetooth:
SUBSYSTEMS=="input", ATTRS{name}=="SPOTLIGHT*", MODE="660", GROUP="plugdev"
It is close to your original rule, but has an additional *
after SPOTLIGHT
. Also, there is no spurious "
after GROUP="plugdev"
.
To find the rule, I used the output of udevadm info -a <path-to-dev-input-event-file>
as explained in this tutorial.
@jahnf: Thanks for updating the UDEV rule file! It fixes this issue for me.
During my test of Projecteur on the KDE Plasma desktop of Debian Buster (issue #5), I also tried to use Projecteur when Spotlight is connected via Bluetooth. Spotlight pairs without problem with my Debian laptop and is recognized as a mouse and keyboard:
However, the installed udev rule doesn't seem to match the connected device so that none of the input devices gets assigned to the
plugdev
group:When Spotlight is connected using the unifying receiver, 4 device files get associated to the
plugdev
group:I tried it both with the provided udev rules files and a slightly modified one: