BMWRaspControl - Forum

Normale Version: Changing UDEV rules in LibreELEC
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Here had an issue where the IBus interface and TPMS interface are /dev/ttyUSB0 and /dev/ttyUSB1

Every other new boot time the two devices would switch making the IBus interface not work.

Here is the fix so it boots up correctly every time.

Note you cannot change system files in LibreELEC as they are read only under root.

First found the device ID typing

Code:
udevadm info --name=/dev/ttyUSB0 --attribute-walk

Typically on Linux you create a file called /etc/udev/rules.d/99-usb-serial.rules

which is:

KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", SYMLINK+="IBUS"

Call the symlink anything you want.

The rule though resides here:

BMW-LibreELEC:/dev # cd /storage/.config

BMW-LibreELEC:~/.config # ls
aacs                modules-load.d      sysctl.d
boot.status          procps              system.d
hosts.conf          pulse                timesyncd.conf.d
htop                pulse-daemon.conf.d  tmpfiles.d
hwdb.d              rc_keymaps          udev.rules.d
iptables            rc_maps.cfg.sample  wireguard
logind.conf.d        samba.conf.sample
modprobe.d          sleep.conf.d

BMW-LibreELEC:~/.config # cd udev.rules.d
BMW-LibreELEC:~/.config/udev.rules.d # ls
99-usb-serial.rules  README


This file is the RW configuration file.  Reboot and check to see the symlink under /dev

Then configure the Kodi IBus interface to the symlink.

Tested all to be fine now.

I also purchased a commercial 12VDC style USB hub mostly to power all of the devices on the USB bus.

Might not need it now.

1 - IBus interface
2 - TPMS interface
3 - active USB extension
4 - Logitech WLAN stick
5 - TP-Link Microrouter
thx for this