WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How do I get rid of udev messages during boot?  (Read 1637 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11132
Re: How do I get rid of udev messages during boot?
« Reply #15 on: August 02, 2023, 07:04:23 AM »
Hi nurbles
... I will look for that file and try to remove the rules that should never have been included ...
I would remove the whole file. Here is why.
The first 6 rules simply exit the rules file:
Code: [Select]
# udev rules for libwacom supported devices

ACTION=="remove", GOTO="libwacom_end"
KERNEL!="event[0-9]*", GOTO="libwacom_end"

# HUION and GAOMON consumer and system control devices are not tablets.
ATTRS{name}=="* Consumer Control", GOTO="libwacom_end"
ATTRS{name}=="* System Control", GOTO="libwacom_end"

# Match all serial wacom tablets with a serial ID starting with WACf
ENV{ID_BUS}=="tty|pnp", ATTRS{id}=="WACf*", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", GOTO="libwacom_end"
ENV{ID_BUS}=="tty|pnp", ATTRS{id}=="FUJ*", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", GOTO="libwacom_end"

The next rule is the source of the errors:
Code: [Select]
# use the /sys/class/input/eventXXX/device/modalias as lookup key, prefixed
# by libwacom:<device name>:
# This lookup key is a contract between the udev rules and the hwdb entries.
# It is not considered public API and may change.
KERNELS=="input*", IMPORT{builtin}="hwdb --subsystem=input '--lookup-prefix=libwacom:name:$attr{name}:'"

This rule relies on the previous rule setting a variable, which never runs:
Code: [Select]
# We can't unset properties through the hwdb but we can set them to zero.
# So let's have a rule that converts the 0 properties to unset ones.

This is where the first 6 rules jump to to exit:
Code: [Select]
So aside from generating some error messages, the file does nothing.

To remove the file:
Code: [Select]
tce-load -wil squashfs-tools.tcz
mkdir libwacom
cd libwacom
cp /etc/sysconfig/tcedir/optional/libwacom.tcz .
unsquashfs libwacom.tcz
rm -f squashfs-root/usr/local/share/libwacom/files/65-libwacom.rules
mksquashfs squashfs-root libwacom.tcz -noappend
mv libwacom.tcz /etc/sysconfig/tcedir/optional/
rm -f /etc/sysconfig/tcedir/optional/libwacom.tcz.md5.txt
cd ..
rm -rf libwacom

The md5 file gets removed so the modified libwacom.tcz can't get
replaced if update apps is run.

Offline nurbles

  • Newbie
  • *
  • Posts: 43
Re: How do I get rid of udev messages during boot?
« Reply #16 on: August 02, 2023, 07:31:56 AM »
Wow!  Thanks Rich!  Those instructions worked perfectly and saved hours of searching (and hand wringing while I debated whether my interpretations of what I found was correct!)   :)