Thursday, October 27, 2016
recover Fionns mobile from badness
recover Fionns mobile from badness
I think Fionns phone has done this a bit before.
If it is low on free memory then it gets very slow + flaky.
Drops calls, resets, ...
Need to free up memory by clearing off photos/videos/messages.
I had copied photos off it a week ago - bluetooth to laptop. But failed to delete them after copying. The delete just timedout. I manually transferred and deleted videos and reset the phone. This gave 2M free instead of about 1M. Then deleting and transferring photos wasnt going fast. Manually I copied a couple of files across but mostly ubuntu konqueror file browser window would hang/pulse for a bit then report error. So I called my bt-sync-mobile.sh script repeatedly and it transferred a few files each time and eventually also deleted all. With a small mod. Yays.
http://gaoithe.blogspot.com/2009/11/bt-sync-mobilesh-script-handle-files.html
Phone seemed much more stable. Took a good while after restart for messages to be readable so I guess message database is quite big and needs indexing/loading into memory.
nokia 3120. Can only access some of file system on bluetooth and we dont have a custom usb/other cable for phone of course. Pain. Bring on the generic (Euro?) standards for data transfer cables / power adaptors / IR TV/DVD/car controls / whatever!
http://gaoithe.blogspot.com/2009/11/bt-sync-mobilesh-script-handle-files.html
$ git diff torture/
diff --git a/torture/bin/bt-sync-mobile.sh b/torture/bin/bt-sync-mobile.sh
index 9a733d7..670999e 100755
--- a/torture/bin/bt-sync-mobile.sh
+++ b/torture/bin/bt-sync-mobile.sh
@@ -170,6 +170,7 @@ function wipe_existing_files_from_list () {
echo for now we check if file exists already and wipe from list
##file list to retrieve by eliminating ones already retrieved
FILESTOGET=
+ FILESTODEL="$FILES"
for F in $FILES ; do
F2=$(echo $F|sed s/_SPACE_/ /g)
if [ "$OPTS_VERBOSE" != "" ] ; then
@@ -238,7 +239,7 @@ function track_the_files () {
# cleanup files matching certain patterns on mobile if they were successfully retrieved
# we could use -G earlier (get and delete)
function clean_the_files () {
- for F in $FILES ; do
+ for F in $FILESTODEL ; do
F=$(echo $F|sed s/_SPACE_/ /g)
###if [[ -f bin/eirkey.pl && ( -n ${FG#wami-2} || -n ${F%gpx} ) ]] ; then echo yep; fi
diff --git a/torture/bin/run-bt-sync-mobile.sh b/torture/bin/run-bt-sync-mobile.sh
index 298ab8b..5e496ab 100755
--- a/torture/bin/run-bt-sync-mobile.sh
+++ b/torture/bin/run-bt-sync-mobile.sh
@@ -5,3 +5,4 @@ bt-sync-mobile.sh -c Pooky "C:/Data/Videos/"
# .amr files
#bt-sync-mobile.sh Pooky "C:/Data/Sounds/Digital/"
+#bt-sync-mobile.sh -c "Nokia 3120 fionnuala" "Images/"
$ meld torture/
$ git commit -m"bt-sync-mobile.sh need to delete already synced files which do not get in FILES (to transfer) var" torture/bin/bt-sync-mobile.sh torture/bin/run-bt-sync-mobile.sh
Created commit 021d6db: bt-sync-mobile.sh need to delete already synced files which do not get in FILES (to transfer) var
2 files changed, 3 insertions(+), 1 deletions(-)
Go to link Download