[udev] Scanner rule not applied during boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 █



<<attachment: journal.zip>>

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux