Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Auto-Eject Bluray from DVD Drive?

Need help with peripherals or devices?
Post Reply
Message
Author
mneimeyer
Posts: 3
Joined: 2021-08-08 11:15

Auto-Eject Bluray from DVD Drive?

#1 Post by mneimeyer »

I just installed Debian 10 last night and when I finished I wanted to watch a DVD. I accidentally inserted the Bluray version into my DVD drive and sat there for WAY too long while nothing happened.

Is there a way that I could auto-eject a Bluray (or any unrecognized disc?) from my DVD Drive? I feel like a udev rule of some sort should be able to do it but my Google Foo / Searches have failed me.

Thanks in advance!

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Auto-Eject Bluray from DVD Drive?

#2 Post by arochester »

Have you noticed a small hole in your DVD drive? If you can push the end of a paperclip in the hole it should open manually.

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Auto-Eject Bluray from DVD Drive?

#3 Post by CwF »

Code: Select all

man eject

mneimeyer
Posts: 3
Joined: 2021-08-08 11:15

Re: Auto-Eject Bluray from DVD Drive?

#4 Post by mneimeyer »

Those are both manual solutions. The pin hole assumes I can't eject the disk at all, I can, and the eject command is really no different than pressing the button on the front of the drive.

Again, what I'm looking for is a solution that will automatically eject the disk if it is an unrecognized format.

So in theory...
  1. I place disk in drive
  2. disk is ingested by PC
  3. disk is DVD, CD, Blank CD-RW, etc - Nothing Happens
  4. disk is Bluray, Upside down disk, etc - Drive is ejected
Thanks though!

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Auto-Eject Bluray from DVD Drive?

#5 Post by CwF »

I think a catch 22.
I thought this was the job of the drives firmware. Mine ejected invalid disc that can't be read after a few tries as I remember..
What would the rule look for?

mneimeyer
Posts: 3
Joined: 2021-08-08 11:15

Re: Auto-Eject Bluray from DVD Drive?

#6 Post by mneimeyer »

CwF wrote: 2021-08-08 22:23 I think a catch 22.
I thought this was the job of the drives firmware. Mine ejected invalid disc that can't be read after a few tries as I remember..
What would the rule look for?
That's what I'm not 100% certain. I was hoping that the position of the tray (closed vs open) and if there's SOMETHING in the drive could be detected and used to do something.

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Auto-Eject Bluray from DVD Drive?

#7 Post by CwF »

Well I have nothing to watch...in a root terminal

Code: Select all

# watch -n 1 "dmesg | tail -10"
it may spit out something useful? If it does, use different types of media and compare...
look for something unique to the bluray

I get something powering down a disk for example;

Code: Select all

[395729.446825] ata1.00: detaching (SCSI 0:0:0:0)
[395729.447880] sd 0:0:0:0: [sde] Synchronizing SCSI cache
[395729.447918] sd 0:0:0:0: [sde] Synchronize Cache(10) failed: Result: hostbyte
=DID_BAD_TARGET driverbyte=DRIVER_OK
[395729.447920] sd 0:0:0:0: [sde] Stopping disk
[395729.447928] sd 0:0:0:0: [sde] Start/Stop Unit failed: Result: hostbyte=DID_B
AD_TARGET driverbyte=DRIVER_OK

Post Reply