LinHES Forums http://forum.linhes.org/ |
|
Child proofing the DVD drive http://forum.linhes.org/viewtopic.php?f=11&t=15555 |
Page 1 of 2 |
Author: | grd [ Fri Jun 08, 2007 8:09 am ] |
Post subject: | Child proofing the DVD drive |
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. |
Author: | khrusher [ Fri Jun 08, 2007 8:39 am ] |
Post subject: | |
leave a disk mounted in the drive? |
Author: | grd [ Fri Jun 08, 2007 8:53 am ] |
Post subject: | |
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. |
Author: | khrusher [ Fri Jun 08, 2007 11:26 am ] |
Post subject: | |
that's pretty funny as my wife asks my 9 year old how to get stuff to work. ![]() |
Author: | spideyk21 [ Tue Jun 12, 2007 12:10 pm ] |
Post subject: | |
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. |
Author: | mjl [ Tue Jun 12, 2007 9:17 pm ] |
Post subject: | |
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 |
Author: | grd [ Wed Jun 13, 2007 6:45 am ] |
Post subject: | |
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. |
Author: | khrusher [ Wed Jun 13, 2007 6:57 am ] |
Post subject: | |
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? |
Author: | khrusher [ Wed Jun 13, 2007 6:58 am ] |
Post subject: | |
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? |
Author: | slowtolearn [ Wed Jun 13, 2007 9:59 am ] |
Post subject: | |
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? ![]() 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... |
Author: | thornsoft [ Wed Jun 13, 2007 11:07 am ] |
Post subject: | |
A little drop of Gorilla Glue on the button should do. When the kids are older, flick it off with a knife. |
Author: | mogator88 [ Wed Jun 13, 2007 11:18 am ] |
Post subject: | |
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. |
Author: | cecil [ Wed Jun 13, 2007 1:07 pm ] |
Post subject: | |
Years ago, parents would have just used a belt. ![]() |
Author: | thornsoft [ Wed Jun 13, 2007 1:42 pm ] |
Post subject: | |
cecil wrote: Years ago, parents would have just used a belt.
![]() I was going to recommend a "scat mat". Available at PetSmart. |
Author: | mjl [ Wed Jun 13, 2007 2:43 pm ] |
Post subject: | |
Hi, Quote: Years ago, the RS CoCo didn't have a dvd drive.... they hadn't been invented yet ![]() Mike |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |