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!
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?
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Auto-Eject Bluray from DVD Drive?
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.
Re: Auto-Eject Bluray from DVD Drive?
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...
Again, what I'm looking for is a solution that will automatically eject the disk if it is an unrecognized format.
So in theory...
- I place disk in drive
- disk is ingested by PC
- disk is DVD, CD, Blank CD-RW, etc - Nothing Happens
- disk is Bluray, Upside down disk, etc - Drive is ejected
-
- Global Moderator
- Posts: 2679
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 196 times
Re: Auto-Eject Bluray from DVD Drive?
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?
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?
Re: Auto-Eject Bluray from DVD Drive?
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.
-
- Global Moderator
- Posts: 2679
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 196 times
Re: Auto-Eject Bluray from DVD Drive?
Well I have nothing to watch...in a root terminal
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
# watch -n 1 "dmesg | tail -10"
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