Sign up here and you can log into the forum!

[SOLVED] B-Rad's firmware combined with OSD

General WDLXTV-Live forum

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby topdawg25 » Mon Mar 19, 2012 4:15 pm

dzebrys wrote:glad to that!

if you want custom background then edit startup script /tmp/conf/S99user-script

#!/bin/sh
cp /tmp/media/somePath/YourCustomBackground.jpg /tmp/
mount -o bind /tmp/YourCustomBackground.jpg /osd/images/villa_bg.jpg

you can do this after telnet to box using mc + F4 or nano


Once I login into telnet and type nano (enter) How do I modify the S99user-script, or do I just type the commands and then on exit write to file S99user-script... or is there something else I should do??

Thanks
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby dzebrys » Tue Mar 20, 2012 1:11 am

nano is just editor so you have to point which file you want to edit.
http://www.nano-editor.org/

p.s and next time please think a second before asking. people here are
not to serve you, in most cases we have kids and a lot things to do other
than answering basic questions. it's better to ask when you failed
to find answer using forum search, wiki or google.
User avatar
dzebrys
DLX'er
 
Posts: 130
Joined: Mon Feb 14, 2011 1:49 am
Location: poland

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby topdawg25 » Tue Mar 20, 2012 4:04 am

Sorry about that I will make sure I fully research things before asking from now on.
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: B-Rad's firmware combined with OSD   

Postby topdawg25 » Tue Mar 20, 2012 5:02 am

topdawg25 wrote:
mixmegas wrote:
topdawg25 wrote:Perfect. I am already using custom umount and eject script to disconnect my drive. .


HI CAN I ASK YOU WHERE I CAN FIND something like this?????thank you



Depending on what port you are mounted to use the following

1. USB power settings
Code: Select all
USB_POWER_OFF=1
USB_POWER_OFF_DEEP_SLEEP=0


2. power events (this is my setup)
Code: Select all
POWER_UP_ACTION05='/sbin/reboot'

POWER_DOWN_ACTION05='/bin/umount /dev/sda1'
POWER_DOWN_ACTION10='/bin/umount /dev/sda2'

POWER_DOWN_ACTION15='/usr/bin/eject /dev/sda1'
POWER_DOWN_ACTION20='/usr/bin/eject /dev/sda2'


Power down un mounts drive then ejects it to avoid file corruption

Power up with remote will force a reboot every time.

Hope this helps answer your question.


Correction to the code based on the advice from mad_ady.

1. USB power settings
Code: Select all
USB_POWER_OFF=1
USB_POWER_OFF_DEEP_SLEEP=0


2. power events (this is my setup)
Code: Select all
POWER_DOWN_ACTION05='/bin/umount /dev/sda1'
POWER_DOWN_ACTION10='/bin/umount /dev/sda2'

POWER_DOWN_ACTION15='/usr/bin/eject /dev/sda''


Un mount the partitions and the eject the disk. Reboot on power up NOT needed. mad_ady thank you for the great advice and patience with my requests.

James
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby mad_ady » Tue Mar 20, 2012 5:09 am

Glad it worked, and thanks for testing :D
User avatar
mad_ady
Developer
 
Posts: 3000
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby topdawg25 » Tue Mar 27, 2012 10:45 am

@mad_addy,

The eject function works great but the wdtv still won't pick up the USB drive without a reboot. Worked the first time but not after that so I have reverted back to the /sbin/reboot on power up.

Now if I could only get GrooveShark to work. No responses coming back on the Plugin: GrooveShark thread.
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby mad_ady » Tue Mar 27, 2012 9:32 pm

I suspect the reason it won't work now without a reboot is because it no longer gets unmounted (and ejected). This could be because there are still files in use from the drive - things like app.bins, osd.bins, rtorrent, swap file, etc.
You can try to run the umount/eject commands by hand and see if they report back any errors. Also, lsof will tell you which files are in use.

<offtopic>Regarding Grooveshark - try PMing its creator, although I haven't seen bagira on the forum lately... Most likely Grooveshark changed something in their API/page.</offtopic>
User avatar
mad_ady
Developer
 
Posts: 3000
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby topdawg25 » Wed Mar 28, 2012 7:35 am

mad_ady wrote:I suspect the reason it won't work now without a reboot is because it no longer gets unmounted (and ejected). This could be because there are still files in use from the drive - things like app.bins, osd.bins, rtorrent, swap file, etc.
You can try to run the umount/eject commands by hand and see if they report back any errors. Also, lsof will tell you which files are in use.

<offtopic>Regarding Grooveshark - try PMing its creator, although I haven't seen bagira on the forum lately... Most likely Grooveshark changed something in their API/page.</offtopic>


Really dumb question; what is lsof and how do I use it?
Never mind I found it. Linux command for List Of Files. I'll run it tonight and see what I come up with.

By the way I did PM bagira and am waiting to see if I get a response.

Thanks again!
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby topdawg25 » Wed Mar 28, 2012 4:24 pm

topdawg25 wrote:
mad_ady wrote:I suspect the reason it won't work now without a reboot is because it no longer gets unmounted (and ejected). This could be because there are still files in use from the drive - things like app.bins, osd.bins, rtorrent, swap file, etc.
You can try to run the umount/eject commands by hand and see if they report back any errors. Also, lsof will tell you which files are in use.

<offtopic>Regarding Grooveshark - try PMing its creator, although I haven't seen bagira on the forum lately... Most likely Grooveshark changed something in their API/page.</offtopic>


Really dumb question; what is lsof and how do I use it?
Never mind I found it. Linux command for List Of Files. I'll run it tonight and see what I come up with.

By the way I did PM bagira and am waiting to see if I get a response.

Thanks again!


mad_ady,

Sorry but I can't find the answer to this but I was hoping you could point me in the right direction. lsof generates a large file and I was wondering how to export the contents to a txt or log file.
User avatar
topdawg25
WDTVer
 
Posts: 49
Joined: Thu Jun 17, 2010 7:16 am
Location: Ottawa Canada

Re: [SOLVED] B-Rad's firmware combined with OSD   

Postby mad_ady » Wed Mar 28, 2012 9:29 pm

Well, lsof is best used together with grep to filter out some of the results.
For instance, to look for open files located somewhere under /tmp/media/USB you would do
Code: Select all
lsof | grep /tmp/media/USB

Also, if you run the umount command and there are still opened files, you would get an error message that the filesystem is busy.

Try running the umount/eject commands from telnet to see if they have any errors...
User avatar
mad_ady
Developer
 
Posts: 3000
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

PreviousNext

Return to Discussion

Who is online

Users browsing this forum: No registered users and 3 guests