PDA

View Full Version : External DVD Player



speedysteve
04-11-2010, 04:30 AM
Can a external DVD player work, If pluged right into the USB port on the PBO ?
Thank You for your time.

aasoror
04-11-2010, 05:36 AM
can a external dvd player work, if pluged right into the usb port on the pbo ?
Thank you for your time.

no .........

Korbis
04-11-2010, 07:36 AM
no .........
It would work if he flashed it with the unlocked AC Ryan or Xtreamer firmware right?

aasoror
04-11-2010, 08:40 AM
It would work if he flashed it with the unlocked AC Ryan or Xtreamer firmware right?

Yes, but if one would buy the PBO merely to flash it, then better save oneself the trouble and buy AC Ryan or an Xtreamer to start with. ;)

Korbis
04-11-2010, 11:28 AM
Yes, but if one would buy the PBO merely to flash it, then better save oneself the trouble and buy AC Ryan or an Xtreamer to start with. ;)
True but for most of us we are in desperate need to salvage some usefulness from this box as it has proven we just can't rely on Patriot's promises.

outatouch0
04-11-2010, 02:20 PM
Yes, but if one would buy the PBO merely to flash it, then better save oneself the trouble and buy AC Ryan or an Xtreamer to start with. ;)

+1
Ahhh, If I had only known then what I know now....

aasoror
04-11-2010, 04:29 PM
True but for most of us we are in desperate need to salvage some usefulness from this box as it has proven we just can't rely on Patriot's promises.

But that poor guy didn't buy the box yet, why drag him into the mess ?!

Korbis
04-11-2010, 07:49 PM
But that poor guy didn't buy the box yet, why drag him into the mess ?!Hmm he didn't indicate that in his original message. I guess you're right if he hasn't purchased one yet by all means he should look at another product.

However if he did wanted an Xtreamer for example, it would save him a few bucks if he got a PBO(they're dropping in price) or a clone like the Hornettek which would be even cheaper and then flash it with Xtreamer firmware. :D

aasoror
04-11-2010, 07:53 PM
However if he did wanted an Xtreamer for example, it would save him a few bucks if he got a PBO(they're dropping in price) or a clone like the Hornettek which would be even cheaper and then flash it with Xtreamer firmware. :D
Provided that we get the harmony remote control to work with the hacked Xtreamer firmware ;) . Why its not working is something that is still beyond my comprehension.

dabber
04-16-2010, 11:14 AM
I have both the PBO and Asus O!Play...they look to be the same to me as far as hardware and GUI. Some info on getting a DVD to work can be found here...(not sure if I can post a link but wil try) http://vip.asus.com/forum/view.aspx?id=20100404123413515&board_id=19&model=O!Play+HDP-R1&page=1&SLanguage=en-us

Hope that posting that is not a violation of this board. If so I am sorry. :(

outatouch0
04-16-2010, 03:18 PM
I have both the PBO and Asus O!Play...they look to be the same to me as far as hardware and GUI. Some info on getting a DVD to work can be found here...(not sure if I can post a link but wil try) http://vip.asus.com/forum/view.aspx?id=20100404123413515&board_id=19&model=O!Play+HDP-R1&page=1&SLanguage=en-us

Hope that posting that is not a violation of this board. If so I am sorry. :(

Don't worry, no one at Patriot is watching

xsnrg
04-17-2010, 11:38 PM
just wondering...why connect a dvd player? Are you wanting to save your dvd's on the POB to build a librery?

aasoror
04-18-2010, 03:18 AM
just wondering...why connect a dvd player? Are you wanting to save your dvd's on the POB to build a librery?

Well it makes a perfect since to play your already archived files directly from the DVD

audiolord
04-21-2010, 09:33 AM
I just tried some commands I found over at the ASUS forums. I used to telnet to login to the PBO. I then did the following commands and then tried a backup dvd... it worked...


insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

The only problem that I have is now saving the settings so that it will automount an external drive when it is connected. Any help will do!!!! I would like to compile this into the kernel if possible...

audiolord
04-22-2010, 08:57 PM
^Bump^ ^BUMP^

The Globule
04-22-2010, 10:26 PM
I just tried some commands I found over at the ASUS forums. I used to telnet to login to the PBO. I then did the following commands and then tried a backup dvd... it worked...


insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

The only problem that I have is now saving the settings so that it will automount an external drive when it is connected. Any help will do!!!! I would like to compile this into the kernel if possible...

You could try to add this at the end of the rcS file.

audiolord
04-23-2010, 03:41 AM
I'm not that well versed at linux yet. How is this done? I'm willing to take a crack at this because this would solve alot of a fellow members problem on this issue. Where is the file found?:o:o

snappy46
04-23-2010, 04:40 AM
Well, it all depends which firmware you are using I suppose. I am on firmware 02 and the rcS file is located at /usr/local/etc/. Now you will probably find that adding the command you entered manually directly to the rcS file may cause some problem; for some reason a delay needs to be added for things to work properly. I recommend the following procedure:



# cd /usr/local/etc/
# vi dvddrv.script

You are now in vi which is a rudimentary Linux text editor. Now press "i" without the quote
to enter the insert mode and type the following or just cut and paste into vi.

#!/bin/sh
sleep 50
insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

Now to save your work and exit vi: Press the [esc] key, then enter ":wq!" and press enter.
This will get you out of vi and save your script file you just created.

EDIT: Make the dvddrv.script file executable by entering the following: # chmod +x /usr/local/etc/dvddrv.script

Now:

# vi rcS

You entered vi and are inside the rcS file. Now press "i" to enter the insert mode of the vi.
Go to the end of the file and enter the following on a new line:

/usr/local/etc/dvddrv.script &

After; just like before exit vi by pressing the [esc] key, then enter ":wq!" and press enter.


This should work for you if you are using firmware 02; I can not say for sure for any other firmware but if the rcS is located somewhere else just make the proper adjustment for the directory where the rcS is located.

You can now do your mount manually if you wish by entering /usr/local/etc/dvddrv.script at the prompt to see if it work ok before you insert the command in the rcS file or turn off/on you PBO to see if it works automatically. Remember the delay so don't be surprise if the cursor just hang there for approx 50 Sec when you try the script manually. If you are happy with just starting manually you can safely remove the sleep 50 command from the script.

Hope this help

Cheers

aasoror
04-23-2010, 05:08 AM
This should work for you if you are using firmware 02

Yes, this should work, but you need to turn on the DVD player before turning on the PBO.

That said, I am not sure if there is a need for the first mount because its overridden by the second mount command.

audiolord
04-23-2010, 05:26 AM
Why wouldn't I just enter the dvd script:

insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

into the rcs file itself? Would this cause any issues with the device itself?

aasoror
04-23-2010, 05:36 AM
Why wouldn't I just enter the dvd script:

insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

into the rcs file itself? Would this cause any issues with the device itself?

You can certainly do so, snappy's suggestion was just neater and more modular.

audiolord
04-23-2010, 09:48 AM
i just tried the above instructions and still no dice. The PBO still will create a temp drive or whatever on my internal hd with a dvd directory, but the device will no detect the disc. I still have to telnet in and then run this line:

mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

and then the device will recognize the dvd, even though the line is in the script that I created in the rcS and dvddrive.script. All help is appreciated. I feel that this is close, but no cigar...

aasoror
04-23-2010, 09:49 AM
i just tried the above instructions and still no dice.

did you add enough delay between the mkdir and the mount ? (sleep)

audiolord
04-23-2010, 10:28 AM
Oh sh******t, it works now.. external dvd drive enabled after reboot.... YESSSSSSSSSSSSSSSSSSSS!!!!

aasoror
04-23-2010, 10:50 AM
Oh sh******t, it works now.. external dvd drive enabled after reboot.... YESSSSSSSSSSSSSSSSSSSS!!!!

lol, .. congrats .. but you didn't mention what made it work at the end ?!

audiolord
04-23-2010, 11:44 AM
I just followed the instructions and I added the

mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

one more time at the end of the rcs file after the dvddrive script was called.

So here's the setup: on the dvddrive.script file

#!/bin/sh
insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
sleep 15
mkdir /tmp/ramfs/volumes/dvd
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

and the end of the rcS file:
/usr/local/etc/dvddrv.script &
sleep 15
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

Now just make sure that your external dvd drive is on first and an unencrypted dvd or backup dvd media file is in it. Upon the PBO booting, I wait for the green light to flash on the front of my dvd drive (pbo scans the dvd) I then go into the file browser, look under HDD and I see a folder for dvd. If you have an unencrypted dvd movie, it will ask to play folder or if its a media file(s) dvd, it will then access the media and play!!!!:p:p:p:p:p:p:p:p

it works... it just does. You do have to reboot the PBO everytime you change your dvd though.. but it works and that's all that matters.

snappy46
04-23-2010, 12:08 PM
You can certainly do so, snappy's suggestion was just neater and more modular.

Yea! you could certainly do that if I did not forget a pretty important step. I forgot to mention that if you go with using the script "dvddrv.script" you will first have to make it executable. So after you created the dvddrv.script you will need to enter the following command:

# chmod +x /usr/local/etc/dvddrv.script

I will update my previous post to make sure this command is added to the process.

One avantage of using the script instead of entering the commands in the rcS is that it allows you to start the process manually. I also find it easier to troubleshoot since this could be only one of many script you may want to add to your rcS file.

Whatever best suit you go with that.

snappy46
04-23-2010, 12:21 PM
I just followed the instructions and I added the
it works... it just does. You do have to reboot the PBO everytime you change your dvd though.. but it works and that's all that matters.

You should be able to create a simililar script that first umount your dvd then mount it again; that way you will not have to restart the PBO everytime you change DVD's try that:

#!/bin/sh
umount /tmp/ramfs/volumes/dvd
sleep 5
mount -t iso9660 /dev/cdrom0 /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd

Call this script something like "dvdchange.script" or whatever you want.

Replace your DVD then enter the following:

# /usr/local/etc/dvdchange.script

The script should unmount your drive then mount it again without having to reboot the PBO. This could also be achieve in a more fancy method by modifying you original script with a if statement and a little routine that verify if the disk has been replaced but it would be more complicated; I'll see what I do; I am pretty busy these days.

aasoror
04-23-2010, 12:46 PM
You should be able to create a simililar script that first umount your dvd then mount it again; that way you will not have to restart the PBO everytime you change DVD's try that:


True, but you will need to telnet and run the script every time you replace a DVD.

How about the instructions on Asus (http://vip.asus.com/forum/view.aspx?SLanguage=en-us&id=20100404123413515&board_id=19&model=O!Play%20HDP-R1&page=1&count=20) for changing the hotplug ? wouldn't that automatically mount (remount) the DVD everytime power cycle the DVD player ?


So if You have space, do the following on a telnet prompt:


mount -o remount,rw,noatime /

this gives a writeable / partition.

Do the following:


cp /sbin/hotplug /sbin/hotplug_orig
cp /dev/null /sbin/hotplug

Edit the file /sbin/hotplug with vi:


vi /sbin/hotplug

Let the content be:


#!/bin/sh
/sbin/hotplug_orig $*
[ -f /usr/local/etc/hotplug.own ] && . /usr/local/etc/hotplug.own

This will call the original hotplug with exactly the same parameters as it would do by origin.
But would let You put Your own stuff into /usr/local/etc/hotplug.own.
This one resides on an already writeable part of the system.
For Me it looks like:


if [ $PRODUCT=67b/3507/1 ]; then
mkdir -p /tmp/ramfs/volumes/dvd
umount /tmp/ramfs/volumes/dvd
mount -t udf /dev/cdrom0 /tmp/ramfs/volumes/dvd
fi

The condition $PRODUCT=67b/3507/1 depends on Your product, I was doing this because I need only this device to be automounted.
if You'd need all of them to get mounted, use following:

"if [ -b /dev/cdrom0 ]; then" instead of "if [ $PRODUCT=67b/3507/1 ]; then".

This way all Your attached dvds will get automounted into /tmp/ramfs/volumes/dvd
which means an entry in the storage menu.

I don't see the kernel linkage here, but I guess this can always be added to rcS for one time linkage per reboot.
Also if you link both modules you don't need a type argument for mounting

# insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/isofs/isofs.ko
# insmod /lib/modules/2.6.12.6-VENUS/kernel/fs/udf/udf.ko
# mkdir -p /tmp/ramfs/volumes/dvd
# mount /dev/cdrom0 /tmp/ramfs/volumes/dvd


One more thing, if snappy's dvd script wasn't executed yet the mount command worked for audiolord, doesn't that mean the kernel already had the modules linked ?!

snappy46
04-23-2010, 02:28 PM
Good one aasoror;

I am guessing from your post and script that the /sbin/hotplug script is ran anytime something is plug into the USB port? Can you confirm or denied; pretty handy if that's the case. Does it also detect when a DVD is change???

Thanks

aasoror
04-23-2010, 02:41 PM
I am guessing from your post and script that the /sbin/hotplug script is ran anytime something is plug into the USB port? Can you confirm or denied;

Confirmed, not based on actual PBO test though, but thats how Unix work (http://www.bangmoney.org/presentations/hotplug/).


Does it also detect when a DVD is change???

I am not sure it would detect a DVD change, but you can always power cycle the DVD (not the PBO) after the DVD is changed.

snappy46
04-23-2010, 03:30 PM
Confirmed, not based on actual PBO test though, but thats how Unix work (http://www.bangmoney.org/presentations/hotplug/).


I guess a little bit of googling on my part would have answered my question. Hey, some days I am just lazy ;). I am guesssing that the PBO works like you would expect a linux system to.

Thanks.

aasoror
04-23-2010, 04:00 PM
I guess a little bit of googling on my part would have answered my question. Hey, some days I am just lazy ;). I am guesssing that the PBO works like you would expect a linux system to.

Thanks.

Well, busybox is just a stripped down linux, it seems that for busybox all the work is done in the hotplug script and not as distributed (modular) as a full fledged linux.

audiolord
04-27-2010, 04:26 AM
^bump^ ^bump^

wigout
04-27-2010, 07:15 AM
Audiolord-

Just read through this thread and it seems useful, but I can't figure out why you are bumping it. Care to elaborate what is or isn't working for you?

-wigout

aasoror
04-27-2010, 07:50 AM
Audiolord-

Just read through this thread and it seems useful, but I can't figure out why you are bumping it. Care to elaborate what is or isn't working for you?

-wigout

It is working for him, but he has to reboot PBO every time he changes the disc.


it works... it just does. You do have to reboot the PBO everytime you change your dvd though.. but it works and that's all that matters.

If I am not mistaken, he is bumping it so someone can get into the hotplug workaround (as if getting the DVD to mount wasn't enough).

Those PBO users .. they just can't get enough :)

speedysteve
05-09-2010, 07:31 AM
Thank you all for the help, I'm new to the hole Script thing, If someone could Please do a step by step, How do I Telnet in to the PBO, Do I enter line by line or do I make a Text file and name it dvddrv.script And copy
it in to the PBO. Thank you for your time.

aasoror
05-09-2010, 07:48 AM
Thank you all for the help, I'm new to the hole Script thing, If someone could Please do a step by step, How do I Telnet in to the PBO, Do I enter line by line or do I make a Text file and name it dvddrv.script And copy
it in to the PBO. Thank you for your time.

to telnet open a cmd window from you windows machine then type the following

telnet PBO_IP_Address
replace the "PBO_IP_Address" with the PBO IP address (check your networking setting or router to get that address)
when asked for a user name put root then press enter, when asked for password just press enter.
Next follow the directions exactly as given by snappy (http://www.patriotmem.com/forums/showpost.php?p=19483&postcount=18), you can even copy from that post directly inside the telnet window.

speedysteve
05-11-2010, 11:00 AM
Thx that was really helpful, Works Great.........And i don't have to turn it off/on when replacing the disc.

aasoror
05-11-2010, 03:20 PM
Thx that was really helpful, Works Great.........And i don't have to turn it off/on when replacing the disc.

good your figured it out.
Enjoy your PBO. :)