I’ve got a desktop computer on which openSUSE Tumbleweed system has been running fine for the last few years. But as of a couple weeks ago, the DVD tray gets automatically ejected whenever I wake the computer from suspend. (It doesn’t auto-eject when booting the machine from a completely powered-off state.)
Is it possible that a recent system update introduced this unwanted behaviour? Maybe something in the kernel? I definitely wasn’t seeing it with kernel-default-5.12.9, but I am seeing it currently with kernel-default-5.13.1 and 5.13.2. Unfortunately, I no longer have snapshots old enough to boot into 5.12.9 to test this theory, and this version doesn’t seem to be available from the online repository any more.
Can anyone suggest what the solution might be, or how to track down the cause of the problem?
I cannot confirm or help you directly, but a 5.12 kernel is still available here http://download.opensuse.org/history/20210704/tumbleweed/repo/oss/x86_64/
Thank you. I installed the 5.12 kernel from there and confirmed that the problem is not reproducible with it. So I have opened Bug 1188767 to report this.
The problem also occurs with the 5.14 drm-tip kernel from that repository.
psych0naut:
I’ve got a desktop computer on which openSUSE Tumbleweed system has been running fine for the last few years. But as of a couple weeks ago, the DVD tray gets automatically ejected whenever I wake the computer from suspend. (It doesn’t auto-eject when booting the machine from a completely powered-off state.)
Is it possible that a recent system update introduced this unwanted behaviour? Maybe something in the kernel? I definitely wasn’t seeing it with kernel-default-5.12.9, but I am seeing it currently with kernel-default-5.13.1 and 5.13.2. Unfortunately, I no longer have snapshots old enough to boot into 5.12.9 to test this theory, and this version doesn’t seem to be available from the online repository any more.
Can anyone suggest what the solution might be, or how to track down the cause of the problem?
This system has a built-in DVD drive and suspends/resumes frequently since 2016:
**erlangen:~ #** journalctl _KERNEL_SUBSYSTEM=scsi -g sr0
-- Journal begins at Sat 2021-07-24 19:32:24 CEST, ends at Thu 2021-07-29 07:01:34 CEST. --
Jul 24 19:33:14 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 24 19:33:14 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot 8ccdd5d8c586486daf5a4b3d64daffc0 --**
Jul 25 06:04:05 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 25 06:04:05 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot b05a6265f7b74d99a7e88e490f8d91f0 --**
Jul 26 19:40:19 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 26 19:40:19 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot 0a049159fb8d4af289415dff21bdf09a --**
Jul 26 20:51:15 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 26 20:51:15 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot d5411e237f7146678049586ff8fd1f45 --**
Jul 26 21:32:38 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 26 21:32:38 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot 8a26ce666b224aa7ab05db9060a2f7ea --**
Jul 27 04:13:01 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 04:13:01 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**-- Boot 5be1cbdf312840d6b5daad809c2082bf --**
Jul 28 05:51:47 erlangen kernel: sr 5:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 28 05:51:47 erlangen kernel: sr 5:0:0:0: Attached scsi CD-ROM **sr0**
**erlangen:~ #**
No activity whatsoever since 2016. Run the above command on your machine.
Here’s the output after booting and suspending/resuming with various kernels (one with the bug and one without). Seems the output is identical.
-- Boot 078448c1aaae4cc2816edffd6872c693 --
Jul 17 08:42:41 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 17 08:42:41 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 25a9011a2b054dfb8dc094691750734f --
Jul 21 08:12:09 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 21 08:12:09 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 08f4e933d949430d8cf709dea51f0c5d --
Jul 25 21:13:01 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 25 21:13:01 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot a8962a4ddc0f4a959083bcafb464ecb0 --
Jul 25 21:15:31 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 25 21:15:31 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 1ad5bb1f591b459bac1006db9da4be52 --
Jul 27 22:48:34 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 22:48:34 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot e9218f8d669344ebaf94ed32af3f56f9 --
Jul 27 22:49:40 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 22:49:40 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 5262e8d7506b45a9b679654791ef5863 --
Jul 27 23:01:45 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 23:01:45 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 62b0e78a43c64d9e9e03fe9166e66a4b --
Jul 27 23:02:54 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 23:02:54 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 2089a2a2a701443bab60b0c0873224a7 --
Jul 29 08:41:40 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 29 08:41:40 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot a2a922a29fa1402b8e620820c8541ef7 --
Jul 29 08:43:19 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 29 08:43:19 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
psych0naut:
Here’s the output after booting and suspending/resuming with various kernels (one with the bug and one without). Seems the output is identical.
-- Boot 078448c1aaae4cc2816edffd6872c693 --
Jul 17 08:42:41 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 17 08:42:41 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 25a9011a2b054dfb8dc094691750734f --
Jul 21 08:12:09 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 21 08:12:09 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 08f4e933d949430d8cf709dea51f0c5d --
Jul 25 21:13:01 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 25 21:13:01 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot a8962a4ddc0f4a959083bcafb464ecb0 --
Jul 25 21:15:31 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 25 21:15:31 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 1ad5bb1f591b459bac1006db9da4be52 --
Jul 27 22:48:34 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 22:48:34 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot e9218f8d669344ebaf94ed32af3f56f9 --
Jul 27 22:49:40 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 22:49:40 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 5262e8d7506b45a9b679654791ef5863 --
Jul 27 23:01:45 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 23:01:45 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 62b0e78a43c64d9e9e03fe9166e66a4b --
Jul 27 23:02:54 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 27 23:02:54 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot 2089a2a2a701443bab60b0c0873224a7 --
Jul 29 08:41:40 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 29 08:41:40 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
-- Boot a2a922a29fa1402b8e620820c8541ef7 --
Jul 29 08:43:19 butterfield kernel: sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Jul 29 08:43:19 butterfield kernel: sr 3:0:0:0: Attached scsi CD-ROM sr0
You may enable debug by adding line ‘LogLevel=debug’ (no #!) to /etc/systemd/system.conf. Reboot and browse for messages with ‘journalctl -b’.
In the aforementioned Bugzilla report, the problem seems to have been traced to a particular kernel commit. Reverting this commit fixes the problem. The bug was recently reassigned to the responsible people at (open)SUSE so hopefully they’ll come up with a patch for the openSUSE kernels and submit it upstream as well.
psych0naut:
In the aforementioned Bugzilla report, the problem seems to have been traced to a particular kernel commit. Reverting this commit fixes the problem. The bug was recently reassigned to the responsible people at (open)SUSE so hopefully they’ll come up with a patch for the openSUSE kernels and submit it upstream as well.
With 5.13.4-1-default I don’t see the bug.
But were you seeing it with 5.13.1 or 5.13.2? If not, then the bug never affected your hardware in the first place, and so the fact that you’re not seeing it with 5.13.4 is not really relevant to this discussion.
psych0naut:
But were you seeing it with 5.13.1 or 5.13.2? If not, then the bug never affected your hardware in the first place, and so the fact that you’re not seeing it with 5.13.4 is not really relevant to this discussion.
Can anyone suggest what the solution might be, or how to track down the cause of the problem?
Did you try 5.13.4-1-default?
I didn’t really see the point given that it happens with 5.13.3 and with 5.14. It would be quite a strange bug to skip a version like that.
But yes, having tested just now, it also happens with 5.13.4, and given the comments in the Bugzilla issue, it almost certainly affects 5.13.5 as well. In fact, it will probably continue to affect every version of the kernel until the offending code from commit 7dd753ca59d6c8cc09aa1ed24f7657524803c7f3 is reverted or modified.
Then your hardware is not affected.
Just ran the latest update and it appears to have fixed this issue? After waking my desktop up, the DVD tray did not open.