Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2015, 12:51 AM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try sending that particular file via nautilus to the sd card. Create a dummy file named driveinfo.calibre with some random text in it and use that. Remember to send it to the root of the SD card, which is where calibre tries to send it.

It may be that SD cards require some special setup to work with libmtp that calibre is not doing, but I cannot think of what that may be.
kovidgoyal is offline   Reply With Quote
Old 11-11-2015, 02:16 AM   #17
fireflyr
Junior Member
fireflyr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2015
Device: Sony Reader, Fire
Quote:
Originally Posted by kovidgoyal View Post
Try sending that particular file via nautilus to the sd card. Create a dummy file named driveinfo.calibre with some random text in it and use that. Remember to send it to the root of the SD card, which is where calibre tries to send it.

It may be that SD cards require some special setup to work with libmtp that calibre is not doing, but I cannot think of what that may be.
Yup. Did that first thing. Success via Nautilus. [For what it's worth, the same setup works fine with Calibre for my Sony prs-t1 with a 8gb microsd card; I tried the Fire with the 8gb sd card and same error so it's not tied to the card size].

Last edited by fireflyr; 11-11-2015 at 02:23 AM. Reason: clarifications
fireflyr is offline   Reply With Quote
Advert
Old 11-11-2015, 02:28 AM   #18
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The t1 does not use MTP. If you want to debug it more you'll have to get calibre built from source (as mtp involves a native code module), then insert debugging into this function: https://github.com/kovidgoyal/calibr.../libmtp.c#L464

See where it is failing (during the initial send or during getting the file metadata after the send). Although, I dont really see anything that could possibly go wrong in that function, compare it with the canonical send file example in the libmtp source code: https://github.com/mmalecki/libmtp/b...les/sendfile.c
kovidgoyal is offline   Reply With Quote
Old 11-11-2015, 03:19 AM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, looking through the libmtp source code, I found one possible cause of this issue: try this commit:

https://github.com/kovidgoyal/calibr...79e9ae741360c2
kovidgoyal is offline   Reply With Quote
Old 11-11-2015, 05:13 AM   #20
fireflyr
Junior Member
fireflyr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2015
Device: Sony Reader, Fire
Had trouble with calibre build environment but got libmtp.so to build. The problem is in sendfile not file_metadata.
---
0. NAME driveinfo.calibre, parentid = 0 storageid = 65537 size = 290
1.After SendFile 0
2.file_metadata called and returned 7ff2cc15ee88

0. NAME driveinfo.calibre, parentid = 0 storageid = 131073 size = 288
1.After SendFile -1
Failed to upload file named: driveinfo.calibre to (u'Storage device',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info.
2:Error 2002: PTP: General Error
----

I downloaded the libmtp examples and tried using mtp-connect sendfile but got nowhere. Will try to look at this again this weekend.
-
fireflyr is offline   Reply With Quote
Advert
Old 11-11-2015, 05:17 AM   #21
fireflyr
Junior Member
fireflyr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2015
Device: Sony Reader, Fire
Quote:
Originally Posted by kovidgoyal View Post
Actually, looking through the libmtp source code, I found one possible cause of this issue: try this commit:

https://github.com/kovidgoyal/calibr...79e9ae741360c2
Yes!!! That fixes it.

Last edited by fireflyr; 11-11-2015 at 05:22 AM.
fireflyr is offline   Reply With Quote
Old 11-11-2015, 06:41 AM   #22
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
OOPS!

Last edited by theducks; 11-11-2015 at 06:42 AM. Reason: bad answer
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Does 'Factory Reset' RELIABLY fix WiFi issue? oj829 Kobo Reader 3 06-11-2013 01:07 AM
Calibre does not recognize Kindle Fire HD on Mac Leopard new Devices 23 01-16-2013 09:59 PM
Linux treats my Kindle as an audio player, Calibre doesn't recognize my Kindle treebyriversw Amazon Kindle 7 01-03-2012 08:57 PM


All times are GMT -4. The time now is 08:24 PM.


MobileRead.com is a privately owned, operated and funded community.