Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev Rules errors systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Prometheus
n00b
n00b


Joined: 15 Jan 2004
Posts: 23
Location: Austria

PostPosted: Thu May 21, 2020 2:21 pm    Post subject: udev Rules errors systemd Reply with quote

Hi,

while analyzing my Bluetooth Problems i recognized some errors testing the Bluetooth devices in the UDEV Rules:

Code:

 udevadm test /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
=== trie on-disk ===
tool version:          245
file size:         8438538 bytes
header size             80 bytes
strings            2152458 bytes
nodes              6286000 bytes
Load module index
Found container virtualization none.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
timestamp of '/lib/udev/rules.d' changed
Reading rules file: /lib/udev/rules.d/10-dm.rules
/lib/udev/rules.d/10-dm.rules:53 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:63 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:64 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:65 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:66 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:67 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:68 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:69 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:70 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:71 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:115 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/10-dm.rules:116 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/11-dm-lvm.rules
/lib/udev/rules.d/11-dm-lvm.rules:21 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/11-dm-lvm.rules:34 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/11-dm-lvm.rules:34 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/13-dm-disk.rules
/lib/udev/rules.d/13-dm-disk.rules:23 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/13-dm-disk.rules:40 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/40-gentoo.rules
Reading rules file: /lib/udev/rules.d/50-udev-default.rules
/lib/udev/rules.d/50-udev-default.rules:11 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/50-udev-default.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/50-udev-default.rules:14 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/50-udev-default.rules:46 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:46 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:72 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:80 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:82 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/50-udev-default.rules:85 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/60-autosuspend-chromiumos.rules
Reading rules file: /lib/udev/rules.d/60-block.rules
/lib/udev/rules.d/60-block.rules:13 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/60-cdrom_id.rules
/lib/udev/rules.d/60-cdrom_id.rules:20 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-cdrom_id.rules:27 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/60-drm.rules
/lib/udev/rules.d/60-drm.rules:3 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-evdev.rules
/lib/udev/rules.d/60-evdev.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:18 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:18 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:23 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-evdev.rules:23 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-fido-id.rules
/lib/udev/rules.d/60-fido-id.rules:5 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-input-id.rules
/lib/udev/rules.d/60-input-id.rules:5 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-input-id.rules:6 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
/lib/udev/rules.d/60-persistent-alsa.rules:7 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-alsa.rules:11 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
/lib/udev/rules.d/60-persistent-input.rules:11 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-input.rules:35 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
/lib/udev/rules.d/60-persistent-storage-tape.rules:10 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage-tape.rules:18 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage-tape.rules:23 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage-tape.rules:25 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage-tape.rules:32 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-persistent-storage.rules
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:54 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:57 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:60 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:63 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:66 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:67 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:92 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:103 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:106 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-storage.rules:109 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-persistent-v4l.rules
/lib/udev/rules.d/60-persistent-v4l.rules:7 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-v4l.rules:9 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-persistent-v4l.rules:16 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-sensor.rules
/lib/udev/rules.d/60-sensor.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-sensor.rules:12 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-sensor.rules:16 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/60-serial.rules
/lib/udev/rules.d/60-serial.rules:7 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-serial.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-serial.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-serial.rules:15 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/60-serial.rules:19 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/61-autosuspend-manual.rules
Reading rules file: /lib/udev/rules.d/64-btrfs.rules
/lib/udev/rules.d/64-btrfs.rules:9 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/65-kvm.rules
/lib/udev/rules.d/65-kvm.rules:2 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/69-btattach-bcm.rules
Reading rules file: /lib/udev/rules.d/69-dm-lvm-metad.rules
/lib/udev/rules.d/69-dm-lvm-metad.rules:25 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/69-dm-lvm-metad.rules:56 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/70-joystick.rules
/lib/udev/rules.d/70-joystick.rules:10 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/70-mouse.rules
/lib/udev/rules.d/70-mouse.rules:10 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/70-mouse.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/70-mouse.rules:16 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/70-power-switch.rules
Reading rules file: /lib/udev/rules.d/70-touchpad.rules
/lib/udev/rules.d/70-touchpad.rules:11 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/70-uaccess.rules
/lib/udev/rules.d/70-uaccess.rules:31 Operator '+=' is specified to OPTIONS key, assuming '='.
/lib/udev/rules.d/70-uaccess.rules:31 Operator '+=' is specified to OPTIONS key, assuming '='.
Reading rules file: /lib/udev/rules.d/71-seat.rules
/lib/udev/rules.d/71-seat.rules:25 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/71-seat.rules:30 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/71-seat.rules:64 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/71-seat.rules:72 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/73-seat-late.rules
/lib/udev/rules.d/73-seat-late.rules:13 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/75-net-description.rules
/lib/udev/rules.d/75-net-description.rules:6 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/75-net-description.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/75-net-description.rules:8 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/75-net-description.rules:12 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/75-probe_mtd.rules
/lib/udev/rules.d/75-probe_mtd.rules:5 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/78-sound-card.rules
/lib/udev/rules.d/78-sound-card.rules:40 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/78-sound-card.rules:41 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/78-sound-card.rules:65 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/80-drivers.rules
Reading rules file: /lib/udev/rules.d/80-libinput-device-groups.rules
/lib/udev/rules.d/80-libinput-device-groups.rules:4 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/80-net-setup-link.rules
/lib/udev/rules.d/80-net-setup-link.rules:5 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/80-net-setup-link.rules:9 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/80-udisks2.rules
/lib/udev/rules.d/80-udisks2.rules:20 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/80-udisks2.rules:22 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/89-alsa-ucm.rules
Reading rules file: /lib/udev/rules.d/90-alsa-restore.rules
Reading rules file: /lib/udev/rules.d/90-libinput-fuzz-override.rules
/lib/udev/rules.d/90-libinput-fuzz-override.rules:20 IMPORT key takes '==' or '!=' operator, assuming '=='.
/lib/udev/rules.d/90-libinput-fuzz-override.rules:25 IMPORT key takes '==' or '!=' operator, assuming '=='.
Reading rules file: /lib/udev/rules.d/90-pulseaudio.rules
Reading rules file: /lib/udev/rules.d/90-vconsole.rules
Reading rules file: /lib/udev/rules.d/95-dm-notify.rules
Reading rules file: /lib/udev/rules.d/96-e2scrub.rules
Reading rules file: /lib/udev/rules.d/97-hid2hci.rules
Reading rules file: /lib/udev/rules.d/99-fuse.rules
Reading rules file: /lib/udev/rules.d/99-nvidia-uvm.rules
Reading rules file: /lib/udev/rules.d/99-nvidia.rules
Reading rules file: /lib/udev/rules.d/99-systemd.rules
hci0: sd-device: Created db file '/run/udev/data/+bluetooth:hci0' for '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0'
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0
DEVTYPE=host
ACTION=add
SUBSYSTEM=bluetooth
TAGS=:systemd:
SYSTEMD_ALIAS=/sys/subsystem/bluetooth/devices/hci0
SYSTEMD_WANTS=bluetooth.target
SYSTEMD_USER_WANTS=bluetooth.target
USEC_INITIALIZED=2452876
Unload module index
Unloaded link configuration context.


i checked one of the files:
Code:

 equery b /lib/udev/rules.d/70-joystick.rules
 * Searching for /lib/udev/rules.d/70-joystick.rules ...
sys-apps/systemd-245-r5 (/lib/udev/rules.d/70-joystick.rules)


it´s provided by systemd itself

Any Idea how to resolve this problems?

Christian

ps.: i realy regret migrate to systemd meanwhile :(
Back to top
View user's profile Send private message
alamahant
Apprentice
Apprentice


Joined: 23 Mar 2019
Posts: 282

PostPosted: Thu May 21, 2020 2:49 pm    Post subject: Reply with quote

HI,

I think there are no errors in the files.

Just udevadm behaving foolishly.

It somehow confuses the assignment operation "=" with the equality operator "==".
Maybe it uses a different bash version.

Are you using /bin bash?
You can find out by running
Code:

echo $SHELL


If not then try to run your command like this:
Code:

sudo /bin/bash udevadm test...................



:D
Back to top
View user's profile Send private message
Prometheus
n00b
n00b


Joined: 15 Jan 2004
Posts: 23
Location: Austria

PostPosted: Thu May 21, 2020 5:53 pm    Post subject: bash is used Reply with quote

Hi,
i use bash.
If i look into an file for example:
Code:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"

the error for this file is gone if i change to:
Code:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}=="usb_id", IMPORT{builtin}=="hwdb --subsystem=usb"

but not sure if it helps or breaks anything....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum