|
From: <fov...@ya...> - 2008-02-26 21:38:27
|
I wanted to script some operations for Creative Touch 40Gb, and mtp-detect (indeed, all the libmtp command line tools) cannot find the device.
Attempting to connect device(s)
Detect: No Devices have been found
I make sure that nothing else is using the device (gnomad2 is shut down, a lsof does not show any processes having *any* usb devices open), and have run the command line tools as root.
gnomad2 can access the Touch just fine, and it uses libmtp, I believe (lsof shows the gnomad2 as having the libmtp library open when it's running, and libmtp is a prerequisite for gnomad2 on ubuntu 7.10)
I am running Ubuntu 7.10, using the ubuntu packaged libmtp6 and mtp-tools (and gnomad2). They seem to be at libmtp 0.21.
I want to upgrade libmtp only as a last resort, because I don't want to have to start self-compiling libmtp and gnomad2...
I do an 'strace mtp-detect', and can see mtp-detect try to do stuff with the mp3 player...
any ideas why gnomad2 can see my device, but the command line tools cannot?
--
execve("/usr/bin/mtp-detect", ["mtp-detect"], [/* 39 vars */]) = 0
brk(0) = 0x804b000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd9000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=64878, ...}) = 0
mmap2(NULL, 64878, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libmtp.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200[\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=150052, ...}) = 0
mmap2(NULL, 148800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fa4000
mmap2(0xb7fc6000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7fc6000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libusb-0.1.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\21\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=28376, ...}) = 0
mmap2(NULL, 31320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f9c000
mmap2(0xb7fa2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7fa2000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260a\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1339816, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9b000
mmap2(NULL, 1349136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e51000
mmap2(0xb7f95000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143) = 0xb7f95000
mmap2(0xb7f98000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f98000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e50000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e506b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f95000, 4096, PROT_READ) = 0
munmap(0xb7fc9000, 64878) = 0
brk(0) = 0x804b000
brk(0x806c000) = 0x806c000
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd8000
write(1, "libmtp version: 0.2.1\n", 22libmtp version: 0.2.1
) = 22
write(1, "\n", 1
) = 1
write(1, "Attempting to connect device(s)\n", 32Attempting to connect device(s)
) = 32
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=140, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 7 entries */, 4096) = 120
close(3) = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=140, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 7 entries */, 4096) = 120
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 3 entries */, 4096) = 48
open("/dev/bus/usb/003/001", O_RDWR) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfa53744) = 0
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8) = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4) = 0
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/dev/bus/usb/003/001", O_RDWR) = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa556dc) = 3
close(3) = 0
open("/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 4 entries */, 4096) = 64
open("/dev/bus/usb/002/007", O_RDWR) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfa53744) = 0
read(4, "\22\1\0\2\377\377\377@\36\4\33A\1\0\1\2\3\1", 18) = 18
read(4, "\t\2 \0\1\1\4\300", 8) = 8
read(4, "\334\t\4\0\0\2\377\377\377\5\7\5\1\2@\0\0\7\5\202\2@\0"..., 24) = 24
close(4) = 0
open("/dev/bus/usb/002/001", O_RDWR) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfa53744) = 0
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8) = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4) = 0
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/dev/bus/usb/002/007", O_RDWR) = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa556dc) = -1 ENOTTY (Inappropriate ioctl for device)
close(3) = 0
open("/dev/bus/usb/002/001", O_RDWR) = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa556dc) = 3
close(3) = 0
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 3 entries */, 4096) = 48
open("/dev/bus/usb/001/001", O_RDWR) = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfa53744) = 0
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8) = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4) = 0
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/dev/bus/usb/001/001", O_RDWR) = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa556dc) = 3
close(3) = 0
open("/dev/bus/usb/002/007", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0xbfa5530c) = -1 EPIPE (Broken pipe)
close(3) = 0
write(1, "Detect: No Devices have been fou"..., 35Detect: No Devices have been found
) = 35
exit_group(0) = ?
|