kiauh icon indicating copy to clipboard operation
kiauh copied to clipboard

Support of no id micro-controllers

Open skarasov opened this issue 1 year ago • 5 comments

Support of no id micro-controllers and let user choose them (appropriate USB) for flashing. Example, my Debian/Anycubic i3 have no files in /dev/serial/by-id, but it does in /dev/serial/by-path.

(https://www.klipper3d.org/FAQ.html#wheres-my-serial-port)

skarasov avatar Jul 07 '23 16:07 skarasov

Previous was on Debian 11.7/ after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id

skarasov avatar Aug 14 '23 13:08 skarasov

Does this mean this PR is obsolete?

dw-0 avatar Aug 14 '23 19:08 dw-0

No. I think we should support the old soft/hardware.

skarasov avatar Aug 14 '23 20:08 skarasov

Previous was on Debian 11.7/ after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id

This effect is due to a bug in udev in Debian 11 that has been resolved in Debian 12. It would make more sense to detect Debian 11 environments and either patch the faulty udev rules or offer to install a fixed udev from the Debian backports (IMO the preferable way). Also see https://klipper.discourse.group/t/debian-bullseye-bug-causing-klipper-to-no-longer-find-the-printer-board/8231/8

Sineos avatar Sep 03 '23 12:09 Sineos

I have setup a shell script to check and remedy the faulty Debian 11 Udev version. If you want, feel free to integrate it. https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/fix_debian_udev.sh

It will:

  • Check if it is executed on Debian 11
  • Check if the installed udev contains the buggy version string
  • Check if run as root or under root rights
  • Update the system to the latest versions via apt update and apt upgrade
  • If Debian 11 AND buggy udev AND root is found, it will:
    • Check if the Debian 11 backports repository is already present --> If not, download the repository signing key and install the repository
    • Install the fixed udev from the backports repository

Sineos avatar Sep 13 '23 19:09 Sineos