Page 1 of 1

Gadget & Virtual USB stuck on 'Loading...' when I try to play video

Posted: Wed Apr 06, 2016 8:14 am
by dusf
Usually around 30 seconds after turning on my UE32H5500 it prompts me that it has found media, and it would like me to select whether to view all, or video, pictures etc., this is my HDD connected to my router shared using Samba. Last night when I turned the TV on this did not happen. I then went into Smart Hub, to where it shows any USB media, and when working 'File-CD Gadget', but this was missing. I tried turning the TV off a few times, and cold rebooting it from several minutes, but still it never gave me the usual prompt after 30 seconds, and Gadget is not visible in Smart hub.

Strangely, when I go into Smart Hub it shows me this screen:

Image

The progress bar never completes, and if I select > and then < to go back, the apps I have sideloaded disappear. If I try to select the sideloaded apps from the favourites menu, the dock along the bottom of the screen when not in Smart Hub, it prompts me to install BBC iPlayer!

I tried cold rebooting the TV but this time with the 2 USB keys I used to root the TV disconnected - I am then able to access the sideloaded apps like BBC iPlayer (without being prompted to reinstall!), but still there is no working Gadget, and if I reconnect the USB keys and reboot the same things happen again.

1. How can I fix Gadget and this strange behaviour of Smart Hub please?

2. Am I correct I should have the 2 USB keys connected to the TV at all times? This is what I used during the root process.

Re: Gadget no longer loads, Smart Hub prompts to reinstall sideloaded apps?

Posted: Thu Apr 07, 2016 3:32 pm
by dusf
To try and fix this:

- reset smart hub
- reset the TV from menu >> support >> self diagnosis
- factory reset from the service menu
- rooted again using the Skype rooting method

After doing this my apps from multiple regions show, even without me having to sideload them.

smb_userdata in /mtd_rwarea already existed, and already had my username and password etc.
04_04_samba.init in /mnt/etc/init.d/ seemed to be a fresh file, so I entered my share, server IP, username, and password.

Previously I had File CD-Gadget, but this seems to have been updated to SamyGo Virt.USB. It does find my Samba server, and it even lets me browse to a video, but when I try to play it it the moving 'loading' message appears top right of the screen for a few seconds before it crashes.

The only thing I can think of is that I have no satelite receiver or aerial cable to connect to the TV this time, so during the root process when I pressed record on the remote, it did format the USB drive, but as their is no input there was nothing for it to record.

Could this be causing this issue, or is there something else I could try? I tried manually copying something to the usb drive for recording from Ubuntu, but I was unable to, and I did not want to go messing with permissions just yet...

Re: Gadget no longer loads, Smart Hub prompts to reinstall sideloaded apps?

Posted: Thu Apr 07, 2016 9:03 pm
by dusf
Can someone please help me?

I have since tried rooting the non-skype way, and the root seems to have been successful. I am still able to browse my Samba server from the TV, but when I try to play any video, loading appears, starts spinning, then freezes a few seconds later and then the TV stops responding :cry:

/mnt/etc/04_04_samba.init
SpoilerShow
#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# Version: SamyGO svn $Id: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#

. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="my-actual-samba-username" #"CHANGE_MEEEEE" #user and password have to be st to SOMETHING :)
PASSWD="my-actual-samba-password" #"CHANGE_MEEEEE"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######


DEST_DIR=$MOUNT_PATH/smb
SERVER="192.168.1.1"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="NAS/Media"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
#M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},iocharset=utf8,noserverino"
NO_PASSWORD_OPTS="$PERM,sec=ntlm,user=,uid=1010,gid=1010,password=,iocharset=utf8,noserverino"

[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata

# Removing. Now we support no password scenario
# if there is a password mounting will fail anyway ;)
#[ -z $USER ] && exit 1
#[ -z $PASSWD ] && exit 1

SERVERS="Don't set me!!"

do_mount()
{
# $(echo -e "[sdh]\nVendor : CifsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)

for i in $S_MOUNTS ; do
i="$(echo -n $i | sed -e 's/SGOspace/ /g')"
#M_POINT="$DEST_DIR/$1/$(echo -n $i | sed -e "s/\//_/g")" #disabled by levi
M_POINT="$DEST_DIR/$1/$(basename $i)" #enabled by levi
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITH password!"
$SYSROOT/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITHOUT password!"
$SYSROOT/bin/busybox2 mount -o "${NO_PASSWORD_OPTS}" -t cifs "//$1/$i" "$M_POINT"
fi
else
echo "$M_POINT is mounted!"
fi

done
}

get_shares()
{
if [ -z "$SHARES" ] ; then
echo "Search Shares"
for i in $SERVERS ; do
echo "on: $i"
S_MOUNTS=$(smbclient -s "$SYSROOT/etc/samba/smb.conf" -U ${USER}%${PASSWD} \
-g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')
# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)
[ -n "$S_MOUNTS" ] && do_mount $i
done
else
echo -n "Fixed Server: "
for i in $SERVERS ; do
echo $i
S_MOUNTS=$SHARES
[ -n "$S_MOUNTS" ] && do_mount $i
done
fi
}

get_servers()
{
if [ -z "$SERVER" ] ; then
# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
else
SERVERS=$SERVER
fi
}

case $1 in
start)
echo " " >> $LOGFILE 2>&1
echo "+++++++++++++++++ SAMBA ++++++++++++++++" >> $LOGFILE 2>&1
echo " " >> $LOGFILE 2>&1

insmod $MOD_DIR/kernel/fs/cifs/cifs.ko || dmesg | tail >> $LOGFILE 2>&1
sync; sleep 2
mkdir -p "$DEST_DIR"
get_servers
get_shares
;;
stop)
# may can fail if device access the mount from content library
# for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
for i in $(cat /proc/mounts | grep cifs | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) cifs .*/\2/') ; do
i="$(echo -n $i | sed -r 's/\\040/ /g')"
$SYSROOT/bin/busybox umount "$i"
done
;;
status)
$SYSROOT/bin/busybox mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
/mtd_rwarea/smb_userdata
SpoilerShow
USER="my-actual-samba-username" #or your login name
PASSWD="my-actual-samba-password" #password
SERVER="192.168.1.1" #IP of your samba server
SHARES="NAS/Media" #your network shares, divided with space
I edited the username and password in both files to make this post.

Re: Gadget & Virtual USB stuck on 'Loading...' when I try to play video

Posted: Thu Apr 07, 2016 9:09 pm
by dusf
if it helps I have watchdogs set to off in the service menu, and in the init.d directory I have renamed all scripts beginning with 99 to have .dis at the end. Other devices can play video from the Samba server fine.

The only issues that I can think of that occurred when rooting is that there was not network_type file in SamyGo dir before applying patch, I tried disconnecting and reconnecting from Wi-Fi and rebooting several times, never connected to LAN - sectroyer said in a post in this thread that this file does not matter though. Also when I tried to run sudo ./patch.sh in Ubuntu terminal output command not found, so I switched to Windows to use the bat file. Skype was also uninstalled several times, factory reset, service menu reset, smart hub reset, support >> diagnosis reset (no reset since non-skype root) when I attempted to re-root during Skype-method root BEFORE I tried this non-skype method.

Please also find screenshots below in case they help: