[systemd-devel] [udev] Scanner rule not applied during boot
Marcin Kocur
marcin2006 at gmail.com
Mon Oct 19 19:19:19 UTC 2020
Hello systemd devs and users,
I need an advice regarding USB scanner which rule is not(?) processed at
boot time. When I trigger it manually, the scanner device file gets
proper permissions.
Here's the rule:
cat /usr/lib/udev/rules.d/49-sane.rules |grep -A1 '1200 TA'
# Mustek BearPaw 1200 CS | Mustek BearPaw 1200 TA
ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021e", MODE="0664",
GROUP="scanner", ENV{libsane_matched}="yes"
Here it is how it looks like directly after the boot:
lsusb
Bus 001 Device 003: ID 055f:021e Mustek Systems, Inc. BearPaw 1200 TA/CS
getfacl /dev/bus/usb/001/003
# file: dev/bus/usb/001/007
# owner: root
# group: scanner
user::rw-
group::rw-
other::r--
And this is how it looks after triggering manually:
udevadm trigger -c add /dev/bus/usb/001/003:
getfacl /dev/bus/usb/001/003
# file: dev/bus/usb/001/007
# owner: root
# group: scanner
user::rw-
user:mk:rw- <<<<<<<< NOW MY USER IS HERE
group::rw-
mask::rw-
other::r--
Of course this is the effect I expect to happen directly after boot. It
changed most likely after I upgraded my PC hardware. I tried to
downgrade systemd, kernel and sane without any positive effect. This was
working for me this way for past 12 years ;)
I enabled udev debug level and browsed whole journalctl but haven't
found there anything about my device (except the fact that it's detected
by kernel):
journalctl -b |grep '021e'
Oct 19 20:06:26 linux kernel: usb 1-6: New USB device found,
idVendor=055f, idProduct=021e, bcdDevice= 1.00
I'm attaching the zipped log from systemd-udev.service.
My hardware:
Archlinux
systemd: 246.6-1
linux: 5.8.14.arch1-1
sane: 1.0.31-1
libusb: 1.0.23-2
Motherboard: Gibabyte B550M AORUS PRO (rev. 1.0)
Scanner: Mustek BearPaw 1200 TA
CPU: AMD Ryzen 3 PRO 4350G with Radeon Graphics
Many thanks for every tip I get to resolve this problem!
--
Pozdrawiam / Greetings
Marcin Kocur █
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journal.zip
Type: application/zip
Size: 69966 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20201019/17dc711f/attachment-0001.zip>
More information about the systemd-devel
mailing list