I don't use the internal DVD drive often, but when I used it last night each time I closed the drawer the drawer opens immediately. I thought the drive might have gone bad, but I exactly the same behavior with an external drive as well.
Note: I tried the external DVD drive on a different machine running Debian and it doesn't exhibit this behavior.
What I've looked at so far:
sudo setcd -s /dev/sr0
Auto close tray: set
Auto open tray: cleared
Use O_NONBLOCK flag: set
Lock tray: set
Check CD type: set
I tried changing the settings using setcd. The only change that seemed to have any effect was
sudo setcd -f0 /dev/sr0
which clears the "Use O_NONBLOCK flag."
Auto close tray: set
Auto open tray: cleared
Use O_NONBLOCK flag: cleared
Lock tray: set
Check CD type: set
When the "Use O_NONBLOCK flag" is set using
sudo setcd -f1 /dev/sr0
the problem resumes.
I tried
sudo udevadm monitor
with the Use O_NONBLOCK flag set, and there was a flood of messages like the ones below. This make me think that something is wrong with the driver or some obscure setting got changed someplace after a software update.
KERNEL[7862.150043] change /devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0 (block)
UDEV [7862.627306] change /devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0 (block)
I'm not quite sure what's going on with the DVD drive, or possibly the driver. I am open to suggestions for a fix.
Thank you!
More info:
With a disk in the drive,
sudo lshw -C disk
Shows this:
*-cdrom
description: DVD-RAM writer
product: BD-ROM BDC-TD02
vendor: PIONEER
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
logical name: /media/someone/somedisk
version: 1.02
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 mount.fstype=iso9660 mount.options=ro,nosuid,nodev,relatime,norock,check=r,map=n,blocksize=2048,uid=1001,gid=1001,dmode=500,fmode=400 state=mounted status=ready
*-medium
physical id: 0
logical name: /dev/cdrom
logical name: /media/someone/somedisk
configuration: mount.fstype=iso9660 mount.options=ro,nosuid,nodev,relatime,norock,check=r,map=n,blocksize=2048,uid=1001,gid=1001,dmode=500,fmode=400 state=mounted