Hello, I have a little problem with the USB hotplug with my LXC to run mainsail, klipper and moonraker.
I have already created a new entry in /dev using the udev rules.
I created a rule /etc/udev/rules.d/99-usb-serial.rules and I put the idVendore and idProduct that I found with the lsusb command:
Next
I can find my file in /dev:
I followed the information in this Post. It almost works.
so here is what I did:
And the super it works, Klipper sees my USB without problem. I unplug and replug my USB to see if it works. It works when /dev/ender3 points to ttyUSB0 but not when it points to ttyUSB2. It happens from time to time that my printer is connected to the ttyUSB2 port.
Thanks for your help.
I have already created a new entry in /dev using the udev rules.
I created a rule /etc/udev/rules.d/99-usb-serial.rules and I put the idVendore and idProduct that I found with the lsusb command:
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ender3"
Next
udevadm control --reload
udevadm trigger
I can find my file in /dev:
root@proxmox:~# ls /dev/ender3 -al
lrwxrwxrwx 1 root root 7 Aug 30 15:24 /dev/ender3 -> ttyUSB0
I followed the information in this Post. It almost works.
so here is what I did:
mkdir /var/lib/lxc/103/devices
cd /var/lib/lxc/103/devices
mknod-m 660 ender3 c 188 0
chown root:100000 ender3
chmod 777 ender3 (I put the same right as my /dev/ender3 file)
And the super it works, Klipper sees my USB without problem. I unplug and replug my USB to see if it works. It works when /dev/ender3 points to ttyUSB0 but not when it points to ttyUSB2. It happens from time to time that my printer is connected to the ttyUSB2 port.
Thanks for your help.