![]() |
#16 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#17 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: Sony Reader, Fire
|
Quote:
Last edited by fireflyr; 11-11-2015 at 02:23 AM. Reason: clarifications |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#19 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#20 |
Junior Member
![]() 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. - |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: Sony Reader, Fire
|
Quote:
![]() Last edited by fireflyr; 11-11-2015 at 05:22 AM. |
|
![]() |
![]() |
![]() |
#22 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |