Re: Questions about devices and input.

2006-08-14 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: : "Sean Bryant" <[EMAIL PROTECTED]> writes: : > How about when media is loaded. I have a detection routine that'll ask : > for media, but what about when any media is loaded? Is there some kind : > of event

Re: Questions about devices and input.

2006-08-14 Thread Intron
The section 4.11.1 "Removable Media Status Notification feature set" of ATA/ATAPI-7 (http://t13.org/docs2004/d1532v1r4b-ATA-ATAPI-7.pdf) reads, d) Host system periodically checks media status using the GET MEDIA STATUS command to determine if any of the following events occurred: - no media is

Re: Questions about devices and input.

2006-08-14 Thread Sean Bryant
Thanks anyway :( On 8/14/06, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: "Sean Bryant" <[EMAIL PROTECTED]> writes: > How about when media is loaded. I have a detection routine that'll ask > for media, but what about when any media is loaded? Is there some kind > of event or some way I can be n

Re: Questions about devices and input.

2006-08-14 Thread Dag-Erling Smørgrav
"Sean Bryant" <[EMAIL PROTECTED]> writes: > How about when media is loaded. I have a detection routine that'll ask > for media, but what about when any media is loaded? Is there some kind > of event or some way I can be notified. Sorry, no. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED]

Re: Questions about devices and input.

2006-08-14 Thread Sean Bryant
How about when media is loaded. I have a detection routine that'll ask for media, but what about when any media is loaded? Is there some kind of event or some way I can be notified. On 8/14/06, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: "Sean Bryant" <[EMAIL PROTECTED]> writes: > I'm writing

Re: Questions about devices and input.

2006-08-14 Thread Sean Bryant
Thanks. Was just checking. On 8/14/06, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: "Sean Bryant" <[EMAIL PROTECTED]> writes: > I'm writing some cd buring software using burncd as a reference. I was > wondering if its possible to detect opening and closing of the doors. Unfortunately, no. The

Re: Questions about devices and input.

2006-08-14 Thread Intron
Dag-Erling [iso-8859-1] Smo/rgrav wrote: "Intron" <[EMAIL PROTECTED]> writes: "Dag-Erling Smo/rgrav" <[EMAIL PROTECTED]> writes: > How does ridiculing me help Sean? Can your unilateral judgement give real help to Sean? Welcome to my kill file. Enjoy your stay. DES -- Dag-Erling Smo/rgrav -

Re: Questions about devices and input.

2006-08-14 Thread Dag-Erling Smørgrav
"Intron" <[EMAIL PROTECTED]> writes: > "Dag-Erling Smo/rgrav" <[EMAIL PROTECTED]> writes: > > How does ridiculing me help Sean? > Can your unilateral judgement give real help to Sean? Welcome to my kill file. Enjoy your stay. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] __

Re: Questions about devices and input.

2006-08-14 Thread Intron
Dag-Erling [iso-8859-1] Smo/rgrav wrote: "Intron" <[EMAIL PROTECTED]> writes: "Dag-Erling Smo/rgrav" <[EMAIL PROTECTED]> writes: > "Intron" <[EMAIL PROTECTED]> writes: > > However, software can command the drive to open/close its door. > This is not what Sean wants. I want to tell Sean that he

Re: Questions about devices and input.

2006-08-14 Thread Dag-Erling Smørgrav
"Intron" <[EMAIL PROTECTED]> writes: > "Dag-Erling Smørgrav" <[EMAIL PROTECTED]> writes: > > "Intron" <[EMAIL PROTECTED]> writes: > > > However, software can command the drive to open/close its door. > > This is not what Sean wants. > I want to tell Sean that he is not worth spending time in findin

Re: Questions about devices and input.

2006-08-14 Thread Intron
Dag-Erling [iso-8859-1] Smo/rgrav wrote: "Intron" <[EMAIL PROTECTED]> writes: "Dag-Erling Smo/rgrav" <[EMAIL PROTECTED]> writes: > "Sean Bryant" <[EMAIL PROTECTED]> writes: > > I'm writing some cd buring software using burncd as a reference. > > I was wondering if its possible to detect openin

Re: Questions about devices and input.

2006-08-14 Thread Dag-Erling Smørgrav
"Intron" <[EMAIL PROTECTED]> writes: > "Dag-Erling Smørgrav" <[EMAIL PROTECTED]> writes: > > "Sean Bryant" <[EMAIL PROTECTED]> writes: > > > I'm writing some cd buring software using burncd as a reference. > > > I was wondering if its possible to detect opening and closing of > > > the doors. > > U

Re: Questions about devices and input.

2006-08-13 Thread Intron
Dag-Erling [iso-8859-1] Smo/rgrav wrote: "Sean Bryant" <[EMAIL PROTECTED]> writes: I'm writing some cd buring software using burncd as a reference. I was wondering if its possible to detect opening and closing of the doors. Unfortunately, no. The drive may not even have a door. DES -- Dag-

Re: Questions about devices and input.

2006-08-13 Thread Dag-Erling Smørgrav
"Sean Bryant" <[EMAIL PROTECTED]> writes: > I'm writing some cd buring software using burncd as a reference. I was > wondering if its possible to detect opening and closing of the doors. Unfortunately, no. The drive may not even have a door. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] __

Questions about devices and input.

2006-08-13 Thread Sean Bryant
I'm writing some cd buring software using burncd as a reference. I was wondering if its possible to detect opening and closing of the doors. I don't see it very often in unix. i wrote a media detection routine but it'd be nice to detect when the door is opened and when its closed so I'm not polli