Thanks for the lsusb output!
It enabled me to provide a solution.

usb_modeswitch can check for additional attributes beside the USB ID,
precisely *because* of those IDs being re-used for different devices.
The original idea was to have one ID for each device model or at least
for one series of devices which are behaving alike. Manufacturers are
messing this up occasionally though.

Fortunately, the previous devices with the ID 1de1:1101 have a specific
entry for the attribute "iManufacturer". It's "actions" for the Pico Pix
and "action" for the picture frame.

Your device has "AMicro". So for the solution of the problem, the only thing 
that needs to be done is RENAMING usb_modeswitch's configuration file named 
"1de1:1101" to "1de1:1101:uMa=action".
This will make usb_modeswitch work for the previous devices but ignore your 
device.

So this is all the maintainers of the "usb-modeswitch-data" package have to do:
In /usr/share/usb_modeswitch unpack the file "configPack.tar.gz". Rename the 
file "1de1:1101" as described. Repack the file.

I will do the same upstream, but since Ubuntu seems to be a bit slow
with incorporating updated packages of usb-modeswitch-data, maintainers
may want to patch the currently used version.

** Attachment added: "solution.txt"
   
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1878921/+attachment/5372683/+files/solution.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to usb-modeswitch in Ubuntu.
https://bugs.launchpad.net/bugs/1878921

Title:
  USB 3 NVMe SSD dongle doesn't flip

Status in usb-modeswitch package in Ubuntu:
  Confirmed

Bug description:
  I have a AM8180 AMicro adapter. It is an adapter for an M.2 SSD NVMe
  disk to USB 3. It works fine on Windows, but on Ubuntu, when I plug it
  in, the drive shows for a second then disappears. If I try to do fdisk
  or gparted, it seems to lock something and I can't shutdown the laptop
  (it is stuck on the Disk Management Unmounting step.

  My info:
  1) Release:
  Description:  Ubuntu 20.04 LTS
  Release:      20.04

  2) Package version:
  usb-modeswitch:
    Installed: 2.5.2+repack0-2ubuntu3
    Candidate: 2.5.2+repack0-2ubuntu3
    Version table:
   *** 2.5.2+repack0-2ubuntu3 500
          500 http://th.archive.ubuntu.com/ubuntu focal/main amd64 Packages

  3) What I expect to happen:
  I expect the drive to stay mounted

  4) What happened instead:
  The disk is mounted then immediately unmount. Before I create the partitions 
in Windows, nothing mounted but the disk briefly appeared in the Disk Manager.

  
  Attached is my (filtered) syslog when I plug to the USB-C (notice the message 
advising to tell the developers about the model. Maybe it's just vendor info 
missing).

  I have modified 2 flags in /etc/usb_modeswitch.conf:
  - DisableSwitching=0 changed to 1
  - #SetStorageDelay=4 changed to un-commented
  then restarted. That didn't help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1878921/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to