Can't update on debian gnu/linux: Trying serial port at /dev/ttyACM0

Hi,

I can’t update Flipper using GNU/Linux. The last successful update was firmware version 0.82.3, using qFlipper version 1.3.0 commit 01fcfec9 2023-03-27T11:51:38.

Now I only get the error Trying serial port at /dev/ttyACM0 in the terminal and finally Permission Denied in the GUI and Device initialization failed: Failed to find a suitable serial port in the terminal.

Some further information:

$ cat /etc/debian_version
11.7
$ lsmod | grep -i acm
cdc_acm                45056  0
usbcore               331776  5 xhci_hcd,cdc_acm,uvcvideo,btusb,xhci_pci
$ grep -i acm /boot/config-$(uname -r)|grep -v "^#"
CONFIG_USB_ACM=m
CONFIG_USB_F_ACM=m
CONFIG_USB_CONFIGFS_ACM=y
$ ./qFlipper-x86_64-1.3.0.AppImage rules install
The rules have already been installed. Bye!
$ ls /etc/udev/rules.d/*flipper* 
/etc/udev/rules.d/42-flipperzero.rules
$ groups|grep -o dialout
dialout

Flipper is seen in /var/log/messages when I connect it.

usb 1-2: new full-speed USB device number 12 using xhci_hcd
usb 1-2: New USB device found, idVendor=0483, idProduct=5740, bcdDevice= 1.00
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=[...]
usb 1-2: Product: Flipper [...]
usb 1-2: Manufacturer: Flipper Devices Inc.
usb 1-2: SerialNumber: flip_[...]

What could be the cause and what can I do to update my Flipper again?

Could You show “cat /etc/udev/rules.d/42-flipperzero.rules”?

1 Like
$ cat /etc/udev/rules.d/42-flipperzero.rules
#Flipper Zero serial port
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ATTRS{manufacturer}=="Flipper Devices Inc.", TAG+="uaccess", GROUP="dialout"
#Flipper Zero DFU
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ATTRS{manufacturer}=="STMicroelectronics", TAG+="uaccess", GROUP="dialout"

Is your user belongs to “dialout” group?
I.e. “id $(whoami)”.

Hi,

yes:

$ id $(whoami)|grep -o dialout
dialout

Does sudo screen /dev/ttyACM0 get you into Flipper CLI?

2 Likes

Hi,

Yes, that works.

[...]
Welcome to Flipper Zero Command Line Interface!
Read Manual https://docs.flipperzero.one

Firmware version: 0.82.3 0.82.3 (b7f406d4 built on 27-04-2023)
2 Likes

Possible workaround is to chown /dev/ttyACM0 to your user. It won’t last, but should allow you to update. As for proper fix, no idea.

2 Likes

Unfortunately, that did not help :frowning_face:

I tried the newly released qFlipper version x86_64-1.3.1. The problem still occurs.

Argh. This was unexpected.
sudo chmod /dev/ttyACM0 666, with same warning?
Manual offline update via SD?

2 Likes

same issue :frowning:

Unable to connect on Fedora Linux · Issue #154 · flipperdevices/qFlipper · GitHub helped.

to me it seems that there is an issue with qflipper.