View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Wed Jun 13, 2007 3:53 pm 
Offline
Joined: Tue Jan 30, 2007 1:27 am
Posts: 299
cecil wrote:
Years ago, parents would have just used a belt. :lol:


I think our first VCR was close to a months salary. Had a wired remote too. We got yelled at just for looking at it the wrong way! :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 10:27 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
mjl wrote:
the RS CoCo didn't have a dvd drive.... they hadn't been invented yet :)
Either you have a good memory or you are stalking me? Which is it? I wonder what ever happened Tandy's THOR?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 6:18 am 
Offline
Joined: Tue Jan 30, 2007 1:27 am
Posts: 299
cecil wrote:
mjl wrote:
the RS CoCo didn't have a dvd drive.... they hadn't been invented yet :)
Either you have a good memory or you are stalking me? Which is it? I wonder what ever happened Tandy's THOR?


http://en.wikipedia.org/wiki/Thor-CD


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 7:14 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Quote:
Either you have a good memory or you are stalking me? Which is it
Was it a gray or white? :)

Quote:
Tandy's THOR?
Remembered talk about it, but couldn't place it till I refered to google. VaporWare...

Mike


Top
 Profile  
 
PostPosted: Thu Jun 14, 2007 9:33 am 
Offline
Joined: Sat Sep 16, 2006 9:29 pm
Posts: 15
grd wrote:
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.


Well, back in DOS 6.22 (Yes, I really mean DOS) you could actually just do whatever you wanted with any CD drive.

Lock it, unlock it, eject it, etc. All you needed was something called CDTOOLS, which was free (I believe).

So Im pretty sure linux has some sort of utility as well.

Will google it and get back with answers.

EDIT: THERE YOU GO! When you can't find the software you want, build it yourself!

Documentation from: http://www.gelato.unsw.edu.au/lxr/sourc ... /cdrom.txt

So let's build a small C program that locks the desired (hardcoded) drive :

#include <linux/cdrom.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>

int main(void){
int fd = -1;
fd = open("/dev/cdrom", O_RDONLY|O_NONBLOCK, 0);
if (fd > 0) {
ioctl(fd, CDROM_LOCKDOOR, 1);
close(fd);
}
}

Copy-Paste that in you favorite editor, modify "/dev/cdrom" to the device you want to lock, save it as dvd_lock.c and compile it.

You now have a program that locks the DVD drive on demand!

You now need a program that unlocks it, don't you?

#include <linux/cdrom.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>

int main(void){
int fd = -1;
fd = open("/dev/cdrom", O_RDONLY|O_NONBLOCK, 0);
if (fd > 0) {
ioctl(fd, CDROM_LOCKDOOR, 0);
close(fd);
}
}

Again, change the device, save as dvd_unlock.c, compile.

Now place the two compiled programs in /usr/bin/, and find a way to launch them from within the MythFront-End.

Hope this helps!

Alex

PS: Don't forget, unlocking the drive while it's mounted will permit you to open the tray!! NOT GOOD! Use with caution.


Top
 Profile  
 
PostPosted: Thu Jun 14, 2007 12:06 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
antx wrote:
EDIT: THERE YOU GO! When you can't find the software you want, build it yourself!

Documentation from: http://www.gelato.unsw.edu.au/lxr/sourc ... /cdrom.txt
Have you tried the program? It wouldn't work without media in the drive for me.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 1:16 pm 
Offline
Joined: Sat Sep 16, 2006 9:29 pm
Posts: 15
Ah! sorry I didnt read your earlier post.

It actually doesnt work without a disc, you're right.

Then again, it works with a blank CD, so... child-proofing: DONE.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu