Web lists-archives.com

Hardware detection issue with debian




I can not do this via bur report because I could not select a valid package. I have researched this and was unable to find a solved case under exact condition. The issue was mostly discussed as an mtp or mounting problem, but I dug a bit farther into the problem. When it comes to a certain model, hardware is not even detected.

Thank you for all your dedicated work,
Mo




Following is the issue

When connecting a "Galaxy S3 mini"  via usb, it is not detected at all; however if connected during installation, it is temporarily detected as a "usb mass storage device" before CDrom is detected.


Here are some general information about the system:

# cat /etc/debian_version
9.6
# gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
# uname -a
Linux dreams 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux




When Galaxy S3 mini is connected via usb:

$ ls -l /dev /dev/mapper | grep
brw-rw---- 1 root disk 254, 0 Dec 15 10:53 dm-0
brw-rw---- 1 root disk 254, 1 Dec 15 10:53 dm-1
brw-rw----  1 root disk    254,   2 Dec 15 10:53 dm-2  
brw-rw----  1 root disk    254,   3 Dec 15 10:53 dm-3  
brw-rw----  1 root disk    254,   4 Dec 15 10:53 dm-4  
brw-rw----  1 root disk    254,   5 Dec 15 10:53 dm-5  
brw-rw----  1 root disk      8,   0 Dec 15 10:53 sda  
brw-rw----  1 root disk      8,   1 Dec 15 10:53 sda1   
brw-rw----  1 root disk      8,   2 Dec 15 10:53 sda2  
brw-rw----  1 root disk      8,   5 Dec 15 10:53 sda5  
brw-rw----+ 1 root cdrom    11,   0 Dec 15 12:39 sr0 l

$ lsblk -o KNAME,TYPE,SIZE,MODEL gives
KNAME TYPE SIZE MODEL sda disk 223.6G CT240BX200SSD1 sda1 part 243M sda2 part 1K sda5 part 223.3G sr0 rom 4.4G DVD+-RW UJ8A2 dm-0 crypt 223.3G dm-1 lvm 23.3G dm-2 lvm 9.3G dm-3 lvm 15.9G dm-4 lvm 1.9G dm-5 lvm 173G

# mtp-detect
libmtp version: 1.1.13

Listing raw device(s)
No raw devices found.

# ls -l /sys/bus/usb/devices/
total 0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-1:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-1.5 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-1.5:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 1-1.5:1.1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.2 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.2:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.5 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.5:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.5:1.1 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.8 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.8:0.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:0.0
lrwxrwxrwx 1 root root 0 Dec 18 11:24 2-1.8:0.1 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:0.1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 usb1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1
lrwxrwxrwx 1 root root 0 Dec 18 11:24 usb2 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2

#lsusb | sort
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 1bcf:2b83 Sunplus Innovation Technology Inc. Laptop Integrated Webcam FHD
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 04f2:0939 Chicony Electronics Co., Ltd
Bus 002 Device 004: ID 8087:07dc Intel Corp.
Bus 002 Device 005: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor


But when an LG is connected:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 1bcf:2b83 Sunplus Innovation Technology Inc. Laptop Integrated Webcam FHD
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 04f2:0939 Chicony Electronics Co., Ltd
Bus 002 Device 004: ID 8087:07dc Intel Corp.
Bus 002 Device 005: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 006: ID 1004:633a LG Electronics, Inc.