Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2015, 07:19 AM   #16
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by Ripplinger View Post
Nope, my phone connects as a media device (Samsung Galaxy S4)
Oh, right. There was that option.

I prefer real USB mass storage devices, though.

Quote:
Originally Posted by boriar View Post
It make appear the usb message without connect it actually
Ah, okay. I guess that would be the opposite of what the OP wanted, though.

Quote:
Originally Posted by davidfor View Post
I assume Google Drive on Kobo Touch does it.
Okay. I already knew it could be done for the external SD card, but not everyone uses one. Now that mod has the gall of emulating a virtual external SD card in that case. Wow. Only I don't see how it works when actually using a real card. Oh well.

It probably won't update for changes on the internal memory though. Just plugging in an SD card does not seem to do that for me...

Last edited by frostschutz; 03-08-2015 at 07:29 AM.
frostschutz is offline   Reply With Quote
Old 03-08-2015, 03:34 PM   #17
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
Ah, okay. I guess that would be the opposite of what the OP wanted, though.
Right, but it seems that is what you asked for.
Quote:
Originally Posted by frostschutz View Post
It's possible to upload files through wifi, if you have a FTP server running. Unfortunately the Kobo does not know about those uploads and does not update its database.
tshering is offline   Reply With Quote
Advert
Old 03-08-2015, 03:43 PM   #18
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Yes - but only if you upload them to the ext. SD card.

Of course you could just... make the internal SD card the virtual external one, and the real external one a subdir of the virtual external one. But that'd kind of put a cramp into things.
frostschutz is offline   Reply With Quote
Old 03-08-2015, 03:50 PM   #19
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
Yes - but only if you upload them to the ext. SD card.
No, nickel behaves the same way as if the device would actually be disconnected from a pc: it scans the internal sd for newly added files. The script is:
Code:
echo usb plug add >> /tmp/nickel-hardware-status
sleep 5
echo usb plug remove >> /tmp/nickel-hardware-status
tshering is offline   Reply With Quote
Old 03-08-2015, 04:01 PM   #20
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by tshering View Post
Code:
echo usb plug add >> /tmp/nickel-hardware-status
sleep 5
echo usb plug remove >> /tmp/nickel-hardware-status
OK. That pops up the USB connection dialog (which you actually have to confirm). And if you do that the Kobo crashes because the filesystem is unmounted (normally udev handles mounting but without a real usb event it's missing). So you have to do that in your script as well, and at the right time.

the code I was referring to is this

Code:
echo sd add /dev/mmcblk1p1 >> /tmp/nickel-hardware-status
which (probably) makes it rescan the external SD but not the internal one

And I haven't found a nickel-hardware-status event that would just make nickel go update directly, without involving a dialog... and that's the missing link for the feature the OP asked for

Anyhow... probably too much effort for such a minute detail hehe
frostschutz is offline   Reply With Quote
Advert
Old 03-08-2015, 04:15 PM   #21
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
OK. That pops up the USB connection dialog (which you actually have to confirm). And if you do that the Kobo crashes because the filesystem is unmounted (normally udev handles mounting but without a real usb event it's missing). So you have to do that in your script as well, and at the right time.
Why does it crash at that moment? Wouldn't this only happen if there is writing or reading form the file system?

Last edited by tshering; 03-08-2015 at 04:25 PM.
tshering is offline   Reply With Quote
Old 03-08-2015, 04:23 PM   #22
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
The dialog (if you confirm it) umounts it. And it's not [automatically] remounted afterwards, since the real USB event that triggers this (outside of nickel, through udev scripts) is missing. So you have to extend the script to make the mounts work.
frostschutz is offline   Reply With Quote
Old 03-08-2015, 04:31 PM   #23
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
The dialog (if you confirm it) umounts it. And it's not [automatically] remounted afterwards, since the real USB event that triggers this (outside of nickel, through udev scripts) is missing. So you have to extend the script to make the mounts work.
Sorry, while you were answering, I changed my post. However, as I see it,

Code:
echo usb plug remove >> /tmp/nickel-hardware-status
triggers the remount.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Freezing unless USB plugged in. St3ve Kobo Reader 4 05-21-2014 10:30 PM
Glo Getting into trouble: Providing the Glo OS partitions for USB mounting Ginnder Kobo Developer's Corner 1 10-18-2012 03:32 PM
Using kindle while USB is plugged into computer jermyzy Amazon Kindle 14 10-23-2011 11:56 AM
Edge not mounting via mini USB on a Linux system. kenjennings enTourage Archive 5 04-09-2010 12:07 PM
USB Mounting on OS X ig88 iRex 4 07-21-2007 12:13 AM


All times are GMT -4. The time now is 12:09 AM.


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