Page 4 of 5

Re: Connected Hard Drives - Power Settings

PostPosted: Sun Sep 23, 2012 10:26 pm
by mad_ady
The correct command is "umount", not "unmount" (why, you ask? http://unix.stackexchange.com/questions/9832/why-is-umount-not-spelled-unmount)

As far as I know, if your USB contains media and you run linksheets on it, it will be prevented from being powered off. So it ignores USB_POWER_OFF for that drive. The eject command will not work if umount fails (because the drive is still in use). This is why you see the drive when you wake up from standby.

If you feel adventurous, there is a patch available which should fix the issue, but it's currently under testing: http://forum.wdlxtv.com/viewtopic.php?f=31&t=6110&p=61717#p61717

Re: Connected Hard Drives - Power Settings

PostPosted: Thu Oct 22, 2015 1:18 am
by BURNIN AMBITION
hi there. i am on the latest firmware in my wd live, and i run this command in telnet
echo 'system down' | tee /proc/led &
my usb stick wasnt shut down whan i turned wd off, and after the command the light of the usb stick, not only is it open, but now it blinks constantly as if wd is not turned off and it constantly reads from it.
ps. i also tried to use the command in the web frontend from my browser
i navigated to powwer events and went to power down actions and copy pasted the command. didnt do anything, so i erased the command.
this entr is still showing though with an empty value.
Power Down Actions
Name Description Value
POWER_DOWN_ACTION50 Commands executed when WDTV goes into standby

perhaps i did something really stupid? any easy way to tyrn off usb sticks when wd is turned off? and to still be able to turn back on the device with my remote? cheers

Re: Connected Hard Drives - Power Settings

PostPosted: Thu Oct 22, 2015 1:37 am
by mad_ady
In order to make sure USB power off works, you'll need to make sure the USB drive isn't running any app.bins, or rtorrent or anything that would prevent it from going to sleep. If you run the usb.power.off command from shell you should get an output telling you that the disk was stopped or not. You shouldn't need to add power event scripts for this.

Re: Connected Hard Drives - Power Settings

PostPosted: Thu Oct 22, 2015 10:28 am
by BURNIN AMBITION
mad_ady wrote:In order to make sure USB power off works, you'll need to make sure the USB drive isn't running any app.bins, or rtorrent or anything that would prevent it from going to sleep. If you run the usb.power.off command from shell you should get an output telling you that the disk was stopped or not. You shouldn't need to add power event scripts for this.
ok i think i must be a bit stupid. just to be sure i have reinstalled latest firmware and have tested the following with 2 different usb sticks.same outcome

i telnet in wd
i copy paste the command usb.power.off
i have made sure no usb stick was connected in wd
i see the message that about stopping etc.
i reboot. i put a usb stick in wd. i shut wodn wd. still usb stick lights...

i really cant guess what is wrong... no bin files etc in usb stick. only films. the other one was formated

Re: Connected Hard Drives - Power Settings

PostPosted: Thu Oct 22, 2015 9:38 pm
by mad_ady
Boot the WDTV with the stick connected. Then run the usb.power.off command and see if it complains about anything (you get extra logs in /tmp/messages.txt).

Re: Connected Hard Drives - Power Settings

PostPosted: Sat Oct 24, 2015 4:34 pm
by BURNIN AMBITION
mad_ady wrote:Boot the WDTV with the stick connected. Then run the usb.power.off command and see if it complains about anything (you get extra logs in /tmp/messages.txt).

sorry for replying so late in this thread, busy day at work...
just did that, no errors. still when i turn off wd, each and every time, usb stick has the light on... btw neither in my usb stick or in my pc's temp folder is there a messages.txt file... sorry for being such a noob again... i come to think that my 4tb hdd problem not showing up and this problem, perhaps they are related?
Code: Select all
# usb.power.off
usb.power.off: Warning: if you don't 'eject' the officially mounted devices before turning your media player 'off', then the OSD will not mount another device in that slot upon power 'on' and you will have to reboot.
usb.power.off: %DEVICESTOEJECT devices to eject)
usb.power.off: USB bus 5V power shutdown initialization
usb.power.off: sleeping 3s...
S97samba: stopping Samba
shutdown: Executing simple shutdown
shutdown: Saving config...
write to block file OK.

write to block file OK.

shutdown: umount usb based /tmp/media/usb/* & /tmp/media/usb/USB*/*
shutdown: umount /tmp/mnt/*
shutdown: Unmounting all remaining attached devices...
shutdown: Flushing all disk writes...
shutdown: Stopping / spinning down all attached devices...
    /dev/sda: JetFlash  Transcend 16GB    1100
usb.power.off: turning off USB 5V power
force usb power off
#

Re: Connected Hard Drives - Power Settings

PostPosted: Sun Oct 25, 2015 11:57 pm
by mad_ady
The messages.txt file is located on the WDTV in /tmp/messages.txt. You need either FTP or WinSCP to get it. So, after running this command your USB drive was not turned off? Does it have any LEDs to indicate activity? Could you still access content from it after running the command? From the output it seems the command worked.

There's something else you can try to enable: USB_OSD_EJECT_BEFORE_POWER_OFF

Re: Connected Hard Drives - Power Settings

PostPosted: Mon Oct 26, 2015 2:48 pm
by BURNIN AMBITION
ok to be honest ill give up on this. i am tiring you my friend and i am sure you have more serious things to do.
yes my stick ha alight on and it never goes off.
i tried the command you mentioned but no luck
Code: Select all
# USB_OSD_EJECT_BEFORE_POWER_OFF
-sh: USB_OSD_EJECT_BEFORE_POWER_OFF: not found

perhaps i should reapply firmware...
ps. i couldnt get in ftp. i tried
wdlxtv
wdlxtv

and root with no password with no luck
thank you for all your help

Re: Connected Hard Drives - Power Settings

PostPosted: Tue Oct 27, 2015 12:01 am
by mad_ady
The USB_OSD_EJECT_BEFORE_POWER_OFF is not a command, but a configuration setting. Look for it in the webend.

Re: Connected Hard Drives - Power Settings

PostPosted: Wed Nov 11, 2015 2:05 pm
by BURNIN AMBITION
sorry for not replying for so long. i had no time to check what you asked.
well i just reflashed wd. i used the usb power off command in a formatted usb. it succesfully disconnected from the wd. (its light turned off). but once i turn on wd and then turn it off, it doesnt unmount. again the usb stick light is on.
i tried to find the usb osd eject command in the configuration settings but i couldnt find it. it simply wasnt there.
and at this point i do not wish to spend any more time in this (and also waste your precious time as well). this thing should have worked by default. (at least imo). and it doesnt. nothing to do with my wd nothing to do with the usb stick. in the previous firmware i used (custom firmware that i got from this site 2-3 years ago), when i turned western digital off, usb stick disconnected. so it doesnt work. ill accept that. thank you for all your help and apologies for being a noob