View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 22 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 08, 2007 8:09 am 
Offline
Joined: Mon Apr 03, 2006 7:03 am
Posts: 17
Location: Perth, Australia
One of the big advantages of using Myth is that I can now rip my son's DVDs to the hard drive and they can be played from there. He used to try to load his own DVDs into the DVD player and they'd end up all scratched and unplayable (he's 3). However, he can still open and close the DVD tray and anyone with kids will know how attractive this is as a platform for Bob the Builder to work on, make biscuits magically disappear and generally stuff up the internal workings on.

When I started ripping DVDs I had problems ejecting them (something to do with them not unmounting properly) which I fixed with help from tips on here. But that got me thinking, can I make it so that the DVD can only be ejected from the menu rather than the wee button on the front? Any ideas guys?

I know I could physically disconnect the eject button, but I'd rather only do that as a last resort.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 8:39 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
leave a disk mounted in the drive?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 8:53 am 
Offline
Joined: Mon Apr 03, 2006 7:03 am
Posts: 17
Location: Perth, Australia
I thought of that, but as well as being kid proof, it needs to be wife friendly. If my wife ever wants to watch a DVD or listen to a CD I don't want her to have to mess around with putting "dummy" disks back in to be mounted.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 11:26 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
that's pretty funny as my wife asks my 9 year old how to get stuff to work. :)

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 12:10 pm 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
You could always hack the eject button on the drive and move it to another location (i.e. back of the device) or disable it (break the connection) and use the remote to eject the tray.

I don't think you can disable the dvd tray with linux. But then again I am linux newcomer.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 9:17 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
A look around with Google turns up some insight, now if someone with a little (lot) of skill can make sense of it.
http://www.linux.com/howtos/SCSI-2.4-HOWTO/sr.shtml
turned up this tid-bit:
cat /proc/sys/dev/cdrom/info
and it will tell you IF your drive can be locked. The trick will be is what command would one use to lock / unlock it and then it could go into a menu.
Mine reports: Can lock tray: 1 but not how :?

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 6:45 am 
Offline
Joined: Mon Apr 03, 2006 7:03 am
Posts: 17
Location: Perth, Australia
Thanks for that. That one looked really promising, but after trying a few variations and doing a bit more searching it looks like changing "/proc/sys/dev/cdrom/lock" to 1 just means that the CD/DVD can be locked when it is mounted rather than actually locking it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 6:57 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
intresting...

Seems the cm206 module has the following internal function:
http://www.gelato.unsw.edu.au/lxr/source/drivers/cdrom/cm206.c#L468
Code:
1200 /* locks or unlocks door lock==1: lock; return 0 upon success */
1201 static int cm206_lock_door(struct cdrom_device_info *cdi, int lock)
1202 {
1203         uch command = (lock) ? c_lock_tray : c_unlock_tray;
1204         type_0_command(command, 1);     /* wait and get dsb */
1205         /* the logic calculates the success, 0 means successful */
1206         return lock ^ ((cd->dsb & dsb_tray_locked) != 0);
1207 }


Now, how to access that?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 6:58 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
intresting...

Seems the cm206 module has the following internal function:
http://www.gelato.unsw.edu.au/lxr/source/drivers/cdrom/cm206.c#L468
Code:
1200 /* locks or unlocks door lock==1: lock; return 0 upon success */
1201 static int cm206_lock_door(struct cdrom_device_info *cdi, int lock)
1202 {
1203         uch command = (lock) ? c_lock_tray : c_unlock_tray;
1204         type_0_command(command, 1);     /* wait and get dsb */
1205         /* the logic calculates the success, 0 means successful */
1206         return lock ^ ((cd->dsb & dsb_tray_locked) != 0);
1207 }


Now, how to access that?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 9:59 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
grd wrote:
I thought of that, but as well as being kid proof, it needs to be wife friendly. If my wife ever wants to watch a DVD or listen to a CD I don't want her to have to mess around with putting "dummy" disks back in to be mounted.
Place the unit out of the child's reach? :wink:

Seriously, I don't believe any of the ioctl functions work without media in the drive. See http://lists.debian.org/debian-user/200 ... 05673.html , perhaps there is a way to get around that but I'm no C programmer...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 11:07 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
A little drop of Gorilla Glue on the button should do. When the kids are older, flick it off with a knife.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 11:18 am 
Offline
Joined: Tue Jan 30, 2007 1:27 am
Posts: 299
New drives aren't that expensive.... just part of the cost of children. We had a player break, and took our time replacing it. The kids learned real quick that there were no movies without a working player. They've been real good about treating the player well since then.

The discs however, that's another story. One of my summer projects is to get all the movies converted to Xvid, and hook up a cheap media player like a PrismIQ to their TV, and be done with the disks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 1:07 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Years ago, parents would have just used a belt. :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 1:42 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
cecil wrote:
Years ago, parents would have just used a belt. :lol:

I was going to recommend a "scat mat". Available at PetSmart.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 2:43 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Quote:
Years ago,
the RS CoCo didn't have a dvd drive.... they hadn't been invented yet :)

Mike


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu