cd/dvd tray opens and closes during boot after kernel update [Solved]

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
kyphi
Level 9
Level 9
Posts: 2735
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: cd/dvd tray opens and closes during boot after kernel update

Post by kyphi »

A fix posted on https://bugzilla.kernel.org/show_bug.cgi?id=213759, Comment 7 by limanyi works for me.

He advises to modify the following line in /lib/udev/rules.d/60-cdrom_id.rules
ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
to
# ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"

Save the modified file and then reboot.
Linux Mint 21.3 Cinnamon
gittiest personITW
Level 12
Level 12
Posts: 4286
Joined: Tue May 28, 2019 4:27 pm

Re: cd/dvd tray opens and closes during boot after kernel update

Post by gittiest personITW »

I tried the patch # out that line but it didn't work for me.
Rolling back again again. (back to 4.15.0-154)
Post back with your results as it would be interesting to know.
User avatar
kyphi
Level 9
Level 9
Posts: 2735
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: cd/dvd tray opens and closes during boot after kernel update

Post by kyphi »

I was using kernel 5.4.0-81 without any problems. An update to kernel 5.4.0-84 introduced one of my optical drive trays opening after a key stroke to wake from suspend. Reverting to the previously used kernel 5.4.0-81 stopped that occurring.

In order to use the updated kernel 5.4.0-84, I used the fix posted by limanyi. This has to be executed as root.

Addendum: Today's updates negated that fix and we are back to square one. The file in udev/rules had to be amended again to avoid the gratuitous opening of the optical drive tray on wake from suspend.
Linux Mint 21.3 Cinnamon
asciiman
Level 3
Level 3
Posts: 116
Joined: Sun Sep 15, 2013 10:24 pm

Re: cd/dvd tray opens and closes during boot after kernel update

Post by asciiman »

kyphi wrote: Tue Sep 14, 2021 8:19 pm I was using kernel 5.4.0-81 without any problems. An update to kernel 5.4.0-84 introduced one of my optical drive trays opening after a key stroke to wake from suspend. Reverting to the previously used kernel 5.4.0-81 stopped that occurring.

In order to use the updated kernel 5.4.0-84, I used the fix posted by limanyi. This has to be executed as root.

Addendum: Today's updates negated that fix and we are back to square one. The file in udev/rules had to be amended again to avoid the gratuitous opening of the optical drive tray on wake from suspend.

Can confirm same behavior here on 5.4.0-84 in Mint 19.3. Did not have this issue in the previous 0-81 kernel.
John_B
Level 2
Level 2
Posts: 76
Joined: Sun Jun 01, 2014 12:16 pm
Location: Earth

Re: cd/dvd tray opens and closes during boot after kernel update

Post by John_B »

The issue re the CD/DVD tray opening and closing during a cold boot has been resolved on my hardware by upgrading to the following unsupported kernel...

Code: Select all

john@john:~$ uname -srv
Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021
john@john:~$
... via:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

Afterwards, I disabled the C.K.T. ppa in Software Sources.

My hardware:

Code: Select all

john@john:~$ inxi -Fxzd
System:
  Kernel: 5.4.0-85-lowlatency x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASUSTeK model: SABERTOOTH 990FX R2.0 v: Rev 1.xx 
  serial: <filter> BIOS: American Megatrends v: 2901 date: 05/04/2016 
CPU:
  Topology: 8-Core model: AMD FX-8370 bits: 64 type: MCP arch: Bulldozer 
  L2 cache: 2048 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 64220 
  Speed: 4008 MHz min/max: N/A Core speeds (MHz): 1: 4008 2: 4006 3: 4011 
  4: 4009 5: 3961 6: 4006 7: 4008 8: 4006 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: ASUSTeK driver: nvidia 
  v: 470.63.01 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  resolution: 1920x1080~60Hz, 2560x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 00:14.2 
  Device-2: NVIDIA GM206 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.4.0-85-lowlatency 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: d000 
  bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 7.71 TiB used: 4.20 TiB (54.4%) 
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB 
  ID-3: /dev/sdc vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-4: /dev/sdd vendor: Kingston model: SUV500480G size: 447.13 GiB 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24B1ST j rev: 1.01 
  dev-links: cdrom,cdrw,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / size: 39.12 GiB used: 17.83 GiB (45.6%) fs: ext4 dev: /dev/sda4 
  ID-2: /home size: 548.75 GiB used: 256.00 GiB (46.7%) fs: ext4 
  dev: /dev/sda5 
  ID-3: swap-1 size: 33.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: 27.0 C gpu: nvidia temp: 44 C 
  Fan Speeds (RPM): cpu: 2368 case-1: 1036 case-2: 809 gpu: nvidia fan: 15% 
  Voltages: 12v: 11.45 5v: 4.67 3.3v: 3.02 vbat: 3.34 
Info:
  Processes: 333 Uptime: 7h 40m Memory: 31.34 GiB used: 4.00 GiB (12.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
john@john:~$ 
LM 21 Cinnamon | Dell Latitude E4310 (A15) | Core i5 560m | Mobile Intel QS57 Express | 8 GB RAM | CT2000MX500SSD1 | ST2000LM003 HN-M201RAD in an S251SMU33EP | Intel AC 7260 | ECUSB3S11 (NEC / Renasis 720202) 34mm ExpressCard
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: cd/dvd tray opens and closes during boot after kernel update

Post by MikeNovember »

John_B wrote: Thu Sep 16, 2021 11:17 pm The issue re the CD/DVD tray opening and closing during a cold boot has been resolved on my hardware by upgrading to the following unsupported kernel...

Code: Select all

john@john:~$ uname -srv
Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021
john@john:~$
... via:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

Afterwards, I disabled the C.K.T. ppa in Software Sources.
Hi, this means the problem will be solved when the 5.4.0-85 kernel (or > version) will be published.

Meanwhile, is it prudent to use a kernel from "PPA : Canonical Kernel Team"? the first things you read on the web page are "This ppa is used for building pre-release and test kernels. It IS NOT RECOMMENDED that you subscribe to this PPA".

Moreover, if the kernel if officially released with the "5.4.0-85.95" reference, will it be proposed to you by the update manager or will you stay with the PPA version?

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
John_B
Level 2
Level 2
Posts: 76
Joined: Sun Jun 01, 2014 12:16 pm
Location: Earth

Re: cd/dvd tray opens and closes during boot after kernel update

Post by John_B »

MikeNovember wrote: Fri Sep 17, 2021 7:24 am
John_B wrote: Thu Sep 16, 2021 11:17 pm The issue re the CD/DVD tray opening and closing during a cold boot has been resolved on my hardware by upgrading to the following unsupported kernel...

Code: Select all

john@john:~$ uname -srv
Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021
john@john:~$
... via:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

Afterwards, I disabled the C.K.T. ppa in Software Sources.
Hi, this means the problem will be solved when the 5.4.0-85 kernel (or > version) will be published.

Meanwhile, is it prudent to use a kernel from "PPA : Canonical Kernel Team"? the first things you read on the web page are "This ppa is used for building pre-release and test kernels. It IS NOT RECOMMENDED that you subscribe to this PPA".

Moreover, if the kernel if officially released with the "5.4.0-85.95" reference, will it be proposed to you by the update manager or will you stay with the PPA version?

Regards,

MN
Their warning is what it is.

I chose to install that kernel on a home PC as an experiment which has worked out for me. The prudent use of TimeShift makes such minor experimentation reversible and therefore feasible.

As for how a future kernel update via mintupdate would go? I have no idea, beyond if said kernel update has a higher version number then it''ll replace the unsupported Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021. Otherwise, the kernel I installed via the Canonical Kernel Team works fine on my system.
LM 21 Cinnamon | Dell Latitude E4310 (A15) | Core i5 560m | Mobile Intel QS57 Express | 8 GB RAM | CT2000MX500SSD1 | ST2000LM003 HN-M201RAD in an S251SMU33EP | Intel AC 7260 | ECUSB3S11 (NEC / Renasis 720202) 34mm ExpressCard
User avatar
chuckster
Level 1
Level 1
Posts: 10
Joined: Tue Dec 27, 2011 11:17 am

Re: cd/dvd tray opens and closes during boot after kernel update

Post by chuckster »

FYI. Optical drive open/close has also recently been happening to me running kernel 5.11.0-34 on Linux Mint 20.2 Cinnamon. It is not just affecting the 5.4 series kernels.
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: cd/dvd tray opens and closes during boot after kernel update

Post by JerryF »

Our Gateway desktop was having the same problem. I booted with the available lower-numbered 5.4.0-81 kernel and then removed 5.4.0-84 and then in tagged it (don't remember if I did that in Update Manager or Synaptic Package Manager) so that the Gateway wouldn't received that kernel update.

Problem solved for that computer.
jsb
Level 3
Level 3
Posts: 166
Joined: Sat Feb 11, 2017 11:20 am

Re: cd/dvd tray opens and closes during boot after kernel update

Post by jsb »

vimes666 wrote: Fri Sep 10, 2021 9:28 am
Right click the update in Update Manager and select 'ignore the current update for this package
You better set it to 'ignore forever' and comes a time, remove it from the blacklist when there is a solution.
I did that, but when I looked at the blacklist, rather than looking like it would ignore just Kernel 4.15.0-156.163, it seemed that it would ignore all Kernal updates and I did not think that was what I wanted?

I tried to undo it, but when I highlighted the item and clicked "-", it disappeared from the blacklist but it did not reappear as an available update :?: . I don't remember ever adding anything to the blacklist before, but it also has linux-meta listed, should I unblacklist that also?
jsb
Level 3
Level 3
Posts: 166
Joined: Sat Feb 11, 2017 11:20 am

Re: cd/dvd tray opens and closes during boot after kernel update

Post by jsb »

jsb wrote: Mon Sep 20, 2021 7:56 am
vimes666 wrote: Fri Sep 10, 2021 9:28 am
Right click the update in Update Manager and select 'ignore the current update for this package
You better set it to 'ignore forever' and comes a time, remove it from the blacklist when there is a solution.
I did that, but when I looked at the blacklist, rather than looking like it would ignore just Kernel 4.15.0-156.163, it seemed that it would ignore all Kernal updates and I did not think that was what I wanted?

I tried to undo it, but when I highlighted the item and clicked "-", it disappeared from the blacklist but it did not reappear as an available update :?: . I don't remember ever adding anything to the blacklist before, but it also has linux-meta listed, should I unblacklist that also?
I found the answer, which is that "linux-meta" apparently is the kernal packages. From another posting, I learned that the blacklist is per user. Since there is a second profile, I was able to go to that one and choose the 'ignore the current update...' option for the problem kernal. This puts linux-meta=4.15.0.156.145 on the blacklist.

I only want to block that kernal, not all future updates, on the assumption/hope that the next one will fix the issue. If it doesn't, it's easy enough to revert again.

(Not sure what the other thing was that I unblacklisted, must've been something ancient and no longer applicable, that I had forgotten about putting there.)
John_B
Level 2
Level 2
Posts: 76
Joined: Sun Jun 01, 2014 12:16 pm
Location: Earth

Re: cd/dvd tray opens and closes during boot after kernel update

Post by John_B »

John_B wrote: Thu Sep 16, 2021 11:17 pm The issue re the CD/DVD tray opening and closing during a cold boot has been resolved on my hardware by upgrading to the following unsupported kernel...

Code: Select all

john@john:~$ uname -srv
Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021
john@john:~$
... via:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

Afterwards, I disabled the C.K.T. ppa in Software Sources.

My hardware:

Code: Select all

john@john:~$ inxi -Fxzd
System:
  Kernel: 5.4.0-85-lowlatency x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASUSTeK model: SABERTOOTH 990FX R2.0 v: Rev 1.xx 
  serial: <filter> BIOS: American Megatrends v: 2901 date: 05/04/2016 
CPU:
  Topology: 8-Core model: AMD FX-8370 bits: 64 type: MCP arch: Bulldozer 
  L2 cache: 2048 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 64220 
  Speed: 4008 MHz min/max: N/A Core speeds (MHz): 1: 4008 2: 4006 3: 4011 
  4: 4009 5: 3961 6: 4006 7: 4008 8: 4006 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: ASUSTeK driver: nvidia 
  v: 470.63.01 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  resolution: 1920x1080~60Hz, 2560x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 00:14.2 
  Device-2: NVIDIA GM206 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.4.0-85-lowlatency 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: d000 
  bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 7.71 TiB used: 4.20 TiB (54.4%) 
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB 
  ID-3: /dev/sdc vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-4: /dev/sdd vendor: Kingston model: SUV500480G size: 447.13 GiB 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24B1ST j rev: 1.01 
  dev-links: cdrom,cdrw,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / size: 39.12 GiB used: 17.83 GiB (45.6%) fs: ext4 dev: /dev/sda4 
  ID-2: /home size: 548.75 GiB used: 256.00 GiB (46.7%) fs: ext4 
  dev: /dev/sda5 
  ID-3: swap-1 size: 33.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: 27.0 C gpu: nvidia temp: 44 C 
  Fan Speeds (RPM): cpu: 2368 case-1: 1036 case-2: 809 gpu: nvidia fan: 15% 
  Voltages: 12v: 11.45 5v: 4.67 3.3v: 3.02 vbat: 3.34 
Info:
  Processes: 333 Uptime: 7h 40m Memory: 31.34 GiB used: 4.00 GiB (12.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
john@john:~$ 
mintupdate now offers a new kernel update:

Linux 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021
Linux 5.4.0-86-lowlatency #97-Ubuntu SMP PREEMPT Fri Sep 17 20:21:31 UTC 2021

Both of the above kernels retain the CD/DVD drive tray opening and then closing issue upon a cold boot on the hardware I indicated earlier.

There are currently no 5.4.x series kernels newer than Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021 on offer from:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

I've black-listed Linux 5.4.0-86-lowlatency #97-Ubuntu SMP PREEMPT Fri Sep 17 20:21:31 UTC 2021 in mintupdate and then retreated back to unsupported Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021 via TimeShift as it does not cause my PC to misbehave in any way.

--

Accessed via Synaptic Package Manager (augmented with apt-xapian-index):

Code: Select all

linux-meta (5.4.0.86.90) focal; urgency=medium

  * Bump ABI 5.4.0-86

  * Packaging resync (LP: #1786013)
    - [Packaging] resync debian/dkms-versions from main package

 -- Thadeu Lima de Souza Cascardo <cascardo@canonical.com>  Fri, 17 Sep 2021 15:38:46 -0300

linux-meta (5.4.0.85.89) focal; urgency=medium

  * Bump ABI 5.4.0-85

  * Packaging resync (LP: #1786013)
    - [Packaging] resync debian/dkms-versions from main package

 -- Kleber Sacilotto de Souza <kleber.souza@canonical.com>  Fri, 03 Sep 2021 17:08:40 +0200

linux-meta (5.4.0.84.88) focal; urgency=medium

  * Bump ABI 5.4.0-84

 -- Kelsey Skunberg <kelsey.skunberg@canonical.com>  Thu, 26 Aug 2021 12:54:05 -0600

linux-meta (5.4.0.83.87) focal; urgency=medium

  * Bump ABI 5.4.0-83

 -- Stefan Bader <stefan.bader@canonical.com>  Tue, 17 Aug 2021 11:40:03 +0200

<snip>
LM 21 Cinnamon | Dell Latitude E4310 (A15) | Core i5 560m | Mobile Intel QS57 Express | 8 GB RAM | CT2000MX500SSD1 | ST2000LM003 HN-M201RAD in an S251SMU33EP | Intel AC 7260 | ECUSB3S11 (NEC / Renasis 720202) 34mm ExpressCard
User avatar
Night Wing
Level 4
Level 4
Posts: 474
Joined: Wed Dec 25, 2013 10:21 pm
Location: Piney Woods of Southeast Texas

Re: cd/dvd tray opens and closes during boot after kernel update

Post by Night Wing »

Just thought I'd give an update.

I got a kernel update for 5.4.0-86.97 and installed that since I reverted back to the 81 series because of the DVD tray sliding out and then back in on a cold start or a reboot on my two desktop tower computers with the 84 kernel series.

Well, the the 5.4.0-86.97 kernel still has the DVD tray sliding out and then back in with the "newest" 5.4.0-86.97 kernel upon a cold start or a reboot. I had to uninstall the 86.97 kernel update, went back to the 81 series and then had to block the 86.97 kernel when it came back as an update. With the 81 series back in business for me, everything is running smooth again.

I'm guessing whoever is working on/with the 5.4.0 kernel does not work with a desktop tower computer with DVD drives installed in them.
Linux Mint 21.3 (Virginia) Xfce
MX Linux 23.2 (Libretto) Xfce
Linux Debian 12.5 (Bookworm) Xfce
exXP
Level 1
Level 1
Posts: 3
Joined: Tue Apr 15, 2014 2:16 pm
Location: Among the Cacti

Re: cd/dvd tray opens and closes during boot after kernel update

Post by exXP »

Just received an update for new kernals. Installed, rebooted, and cd tray stays where it belongs

I may have spoken too soon. Just woke computer up from standby, and the cd door opened.
ThaCrip
Level 5
Level 5
Posts: 988
Joined: Sat Dec 07, 2019 12:13 pm

Re: cd/dvd tray opens and closes during boot after kernel update

Post by ThaCrip »

Code: Select all

System:
  Kernel: 5.11.0-36-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.0.5 wm: muffin 5.0.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8H61-M LX PLUS v: Rev x.0x 
  serial: <filter> UEFI: American Megatrends v: 4601 date: 09/18/2013 
CPU:
  Topology: Quad Core model: Intel Core i5-3550 bits: 64 type: MCP 
  arch: Ivy Bridge rev: 9 L2 cache: 6144 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 26338 
  Speed: 1648 MHz min/max: 1600/3700 MHz Core speeds (MHz): 1: 1610 2: 1747 
  3: 1596 4: 1623 
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: eVga.com. 
  driver: nvidia v: 470.63.01 bus ID: 01:00.0 chip ID: 10de:1c82 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA GP107GL High Definition Audio vendor: eVga.com. 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
  Device-2: C-Media Audio Adapter (Unitek Y-247A) type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 2-1.3:5 
  chip ID: 0d8c:0014 
  Sound Server: ALSA v: k5.11.0-36-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK P8P67 and other motherboards driver: r8169 v: kernel 
  port: d000 bus ID: 04:00.0 chip ID: 10ec:8168 
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IF-ID-1: virbr0 state: down mac: <filter> 
  IF-ID-2: virbr0-nic state: down mac: <filter> 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 30 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 30% 
Info:
  Processes: 254 Uptime: 1h 20m Memory: 15.60 GiB used: 2.50 GiB (16.0%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
On my desktop computer with two DVD drives... only one of them has the drive tray eject problem. I am on the 5.11 kernel series as it only acts up on a COLD BOOT. but rebooting the computer is fine as there is no issue then. even the newest kernel just offered hours ago now (5.11.0-36) still has the drive tray eject issue.

p.s. on my old ASUS A8N32-SLI board (which is 2005 technology (I had it since March 2006)), which is on Mint v20.2-Cinnamon with 5.4.0-86 kernel does not have this drive tray eject issue. both drives on that are IDE (one CD burner (Liteon 24102b) and a DVD burner(Liteon 1673s)).
exXP wrote: Tue Sep 21, 2021 5:22 pm Just received an update for new kernals. Installed, rebooted, and cd tray stays where it belongs
On my system it only acts up on 'cold boots', not 'reboots'.

so that's probably why it did not act up for you ;)
MainPC: i5-3550 (undervolted by -0.120v (CPU runs 12c cooler) /w stock i3-2120 hs/fan) | 1050 Ti 4GB | 16GB (2x 8GB) DDR3 1600Mhz RAM | Backups: AMD E-300 CPU (8GB RAM) / Athlon X2 3600+ CPU (@2.3GHz@1.35v) (4GB RAM) | All /w Mint 21.x-Xfce
momo608
Level 1
Level 1
Posts: 17
Joined: Wed Sep 08, 2021 9:13 pm

Re: cd/dvd tray opens and closes during boot after kernel update

Post by momo608 »

After the hassle of doing the time shift to get rid of the bad update along comes another today that's causing the exact same problem, W_T_F
jsb
Level 3
Level 3
Posts: 166
Joined: Sat Feb 11, 2017 11:20 am

Re: cd/dvd tray opens and closes during boot after kernel update

Post by jsb »

momo608 wrote: Wed Sep 22, 2021 7:48 am After the hassle of doing the time shift to get rid of the bad update along comes another today that's causing the exact same problem, W_T_F
Just change back to the old kernal using "advanced boot options" which you access using shift key during boot, you don't have to timeshift.

After booting to the old kernal, use update manager to delete the new kernal.
jsb
Level 3
Level 3
Posts: 166
Joined: Sat Feb 11, 2017 11:20 am

Re: cd/dvd tray opens and closes during boot after kernel update

Post by jsb »

ThaCrip wrote: Wed Sep 22, 2021 7:19 amOn my desktop computer with two DVD drives... only one of them has the drive tray eject problem. I am on the 5.11 kernel series as it only acts up on a COLD BOOT. but rebooting the computer is fine as there is no issue then. even the newest kernel just offered hours ago now (5.11.0-36) still has the drive tray eject issue.

p.s. on my old ASUS A8N32-SLI board (which is 2005 technology (I had it since March 2006)), which is on Mint v20.2-Cinnamon with 5.4.0-86 kernel does not have this drive tray eject issue. both drives on that are IDE (one CD burner (Liteon 24102b) and a DVD burner(Liteon 1673s)).
exXP wrote: Tue Sep 21, 2021 5:22 pm Just received an update for new kernals. Installed, rebooted, and cd tray stays where it belongs
On my system it only acts up on 'cold boots', not 'reboots'.

so that's probably why it did not act up for you ;)
Or it's migrated to only opening when it wakes from standby? That's the only issue mine has had, never had it opening on boot. Happens with both 4.15.0-156 and 158, but not 4.15.0-154 and earlier.
ThaCrip
Level 5
Level 5
Posts: 988
Joined: Sat Dec 07, 2019 12:13 pm

Re: cd/dvd tray opens and closes during boot after kernel update

Post by ThaCrip »

jsb wrote: Wed Sep 22, 2021 8:00 am Or it's migrated to only opening when it wakes from standby? That's the only issue mine has had, never had it opening on boot. Happens with both 4.15.0-156 and 158, but not 4.15.0-154 and earlier.
I can't comment about the 'standby' mode since I don't use that on my desktop (it's always active (I basically leave my computer on all of the time) besides monitor powering off after 30min of inactivity). but I do know mine is consistent with the 'cold boot' (i.e. always has tray eject/close issue on one of my two SATA DVD drives) vs 'reboot' (i.e. no issues, everything appears to be normal).

this happens with the newest kernel just offered in a very recent kernel update (as in the last day or so tops) on Mint v20.2-Cinnamon which is '5.11.0-36'. NOTE: apparently people say that with the 5.11 series kernel that 5.11.0-27 was the last known working version without the bug based on comments in here, which now makes there being two kernels released since... 5.11.0-27 (supposedly no bug here) to 5.11.0-34 to the current 5.11.0-36. but given what you say it must be similar on 4.15 kernel series with the two most recent having the DVD tray issue.

so I guess at this point we pretty much got to sit back and wait. or just opt for the potential temporary fix by 'limanyi'(?) or just don't install the newer kernels with the bug is about all we can do.

but on a personal level... I generally leave my computer on all of the time and typically reboot and don't cold boot all that much, which the bug does not effect me as it's only when I 'cold boot' is when the drive tray issue acts up, and like another user here, it's a bit annoying because my desktop case has a door on it in front of the DVD drive tray so when that's closed, which it generally will be, the drive tray jams into the door and I got to open the door so the drive tray can finish coming out and go back in and then close the case door again like usual.

p.s. but apparently given what you say it's effecting Mint v19 series and Mint v20 series since I know the 4.15 kernel is installed by default on Mint v19.0-19.2.
MainPC: i5-3550 (undervolted by -0.120v (CPU runs 12c cooler) /w stock i3-2120 hs/fan) | 1050 Ti 4GB | 16GB (2x 8GB) DDR3 1600Mhz RAM | Backups: AMD E-300 CPU (8GB RAM) / Athlon X2 3600+ CPU (@2.3GHz@1.35v) (4GB RAM) | All /w Mint 21.x-Xfce
John_B
Level 2
Level 2
Posts: 76
Joined: Sun Jun 01, 2014 12:16 pm
Location: Earth

Re: cd/dvd tray opens and closes during boot after kernel update

Post by John_B »

John_B wrote: Tue Sep 21, 2021 4:45 pm
John_B wrote: Thu Sep 16, 2021 11:17 pm The issue re the CD/DVD tray opening and closing during a cold boot has been resolved on my hardware by upgrading to the following unsupported kernel...

Code: Select all

john@john:~$ uname -srv
Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021
john@john:~$
... via:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

Afterwards, I disabled the C.K.T. ppa in Software Sources.

My hardware:

Code: Select all

john@john:~$ inxi -Fxzd
System:
  Kernel: 5.4.0-85-lowlatency x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASUSTeK model: SABERTOOTH 990FX R2.0 v: Rev 1.xx 
  serial: <filter> BIOS: American Megatrends v: 2901 date: 05/04/2016 
CPU:
  Topology: 8-Core model: AMD FX-8370 bits: 64 type: MCP arch: Bulldozer 
  L2 cache: 2048 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 64220 
  Speed: 4008 MHz min/max: N/A Core speeds (MHz): 1: 4008 2: 4006 3: 4011 
  4: 4009 5: 3961 6: 4006 7: 4008 8: 4006 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: ASUSTeK driver: nvidia 
  v: 470.63.01 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  resolution: 1920x1080~60Hz, 2560x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 00:14.2 
  Device-2: NVIDIA GM206 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.4.0-85-lowlatency 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: d000 
  bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 7.71 TiB used: 4.20 TiB (54.4%) 
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB 
  ID-3: /dev/sdc vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-4: /dev/sdd vendor: Kingston model: SUV500480G size: 447.13 GiB 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24B1ST j rev: 1.01 
  dev-links: cdrom,cdrw,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / size: 39.12 GiB used: 17.83 GiB (45.6%) fs: ext4 dev: /dev/sda4 
  ID-2: /home size: 548.75 GiB used: 256.00 GiB (46.7%) fs: ext4 
  dev: /dev/sda5 
  ID-3: swap-1 size: 33.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: 27.0 C gpu: nvidia temp: 44 C 
  Fan Speeds (RPM): cpu: 2368 case-1: 1036 case-2: 809 gpu: nvidia fan: 15% 
  Voltages: 12v: 11.45 5v: 4.67 3.3v: 3.02 vbat: 3.34 
Info:
  Processes: 333 Uptime: 7h 40m Memory: 31.34 GiB used: 4.00 GiB (12.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
john@john:~$ 
mintupdate now offers a new kernel update:

Linux 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021
Linux 5.4.0-86-lowlatency #97-Ubuntu SMP PREEMPT Fri Sep 17 20:21:31 UTC 2021

Both of the above kernels retain the CD/DVD drive tray opening and then closing issue upon a cold boot on the hardware I indicated earlier.

There are currently no 5.4.x series kernels newer than Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021 on offer from:

UbuntuUpdates - PPA: Canonical Kernel Team
https://ubuntuupdates.org/ppa/canonical_kernel_team

I've black-listed Linux 5.4.0-86-lowlatency #97-Ubuntu SMP PREEMPT Fri Sep 17 20:21:31 UTC 2021 in mintupdate and then retreated back to unsupported Linux 5.4.0-85-lowlatency #95-Ubuntu SMP PREEMPT Fri Sep 3 17:26:22 UTC 2021 via TimeShift as it does not cause my PC to misbehave in any way.

--

Accessed via Synaptic Package Manager (augmented with apt-xapian-index):

Code: Select all

linux-meta (5.4.0.86.90) focal; urgency=medium

  * Bump ABI 5.4.0-86

  * Packaging resync (LP: #1786013)
    - [Packaging] resync debian/dkms-versions from main package

 -- Thadeu Lima de Souza Cascardo <cascardo@canonical.com>  Fri, 17 Sep 2021 15:38:46 -0300

linux-meta (5.4.0.85.89) focal; urgency=medium

  * Bump ABI 5.4.0-85

  * Packaging resync (LP: #1786013)
    - [Packaging] resync debian/dkms-versions from main package

 -- Kleber Sacilotto de Souza <kleber.souza@canonical.com>  Fri, 03 Sep 2021 17:08:40 +0200

linux-meta (5.4.0.84.88) focal; urgency=medium

  * Bump ABI 5.4.0-84

 -- Kelsey Skunberg <kelsey.skunberg@canonical.com>  Thu, 26 Aug 2021 12:54:05 -0600

linux-meta (5.4.0.83.87) focal; urgency=medium

  * Bump ABI 5.4.0-83

 -- Stefan Bader <stefan.bader@canonical.com>  Tue, 17 Aug 2021 11:40:03 +0200

<snip>
Neither of the following kernels (both unsupported, from the Canonical Kernel Team ppa) exhibits the CD/DVD tray open & close behaviour upon a cold boot nor during resume from suspend:

Linux 5.4.0-87-generic #98-Ubuntu SMP Mon Sep 20 20:19:03 UTC 2021
Linux 5.4.0-87-lowlatency #98-Ubuntu SMP PREEMPT Mon Sep 20 21:21:54 UTC 2021

--

Linux 5.11.0-36-generic #40~20.04.1-Ubuntu SMP Sat Sep 18 02:14:19 UTC 2021 (from the Ubuntu repos) does exhibit the CD/DVD tray open & close behaviour upon a cold boot, along with the following error messages in dmesg:

Code: Select all

[    1.705629] gpio gpiochip0: (gpio_aaeon): tried to insert a GPIO chip with zero lines
[    1.705639] fbcon: Taking over console
[    1.705641] gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to register, -22

<snip>

[    6.998010] gpio gpiochip0: (gpio_aaeon): tried to insert a GPIO chip with zero lines
[    6.998145] gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to register, -22
Includes a detailed explanation of the above gpio error messages:

What gpio gpiochip0 kernel error means and how to solve? - Unix & Linux Stack Exchange
https://unix.stackexchange.com/question ... w-to-solve

Tue, 31 Aug 2021 06:41:10 -0700
[Kernel-packages] [Bug 1937897] Re: GPIO error logs in start and dmesg after update of kernel
https://www.mail-archive.com/kernel-pac ... 57005.html

--

Interestingly, neither of the following kernels (both unsupported and available to Linux Mint 20.2 only from the Canonical Kernel Team ppa) exhibits the CD/DVD tray open & close behaviour upon a cold boot nor during resume from suspend nor the gpio related error messages:

Linux 5.13.0-16-generic #16~20.04.1-Ubuntu SMP Fri Sep 17 07:06:37 UTC 2021
Linux 5.13.0-16-lowlatency #16~20.04.1-Ubuntu SMP PREEMPT Fri Sep 17 11:31:35 UTC 2021

It's also worth mentioning that the above 5.13 kernels installed correctly in the presence of nvidia-graphics-drivers-470 (470.63.01-0ubuntu0.20.04.2) focal.

Code: Select all

john@john:~$ inxi -Fxzd
System:
  Kernel: 5.13.0-16-lowlatency x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASUSTeK model: SABERTOOTH 990FX R2.0 v: Rev 1.xx 
  serial: <filter> BIOS: American Megatrends v: 2901 date: 05/04/2016 
CPU:
  Topology: 8-Core model: AMD FX-8370 bits: 64 type: MCP arch: Bulldozer 
  L2 cache: 2048 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 64215 
  Speed: 4013 MHz min/max: N/A Core speeds (MHz): 1: 4013 2: 4013 3: 4012 
  4: 4013 5: 4013 6: 4013 7: 4013 8: 4013 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: ASUSTeK driver: nvidia 
  v: 470.63.01 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  resolution: 1920x1080~60Hz, 2560x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 00:14.2 
  Device-2: NVIDIA GM206 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.13.0-16-lowlatency 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: d000 
  bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 7.71 TiB used: 312.65 GiB (4.0%) 
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST6000NE0023-2EX110 size: 5.46 TiB 
  ID-3: /dev/sdc vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
  ID-4: /dev/sdd vendor: Kingston model: SUV500480G size: 447.13 GiB 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24B1ST j rev: 1.01 
  dev-links: cdrom,cdrw,dvd,dvdrw 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / size: 39.12 GiB used: 20.98 GiB (53.6%) fs: ext4 dev: /dev/sda4 
  ID-2: /home size: 548.75 GiB used: 264.52 GiB (48.2%) fs: ext4 
  dev: /dev/sda5 
  ID-3: swap-1 size: 33.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: 28.0 C gpu: nvidia temp: 41 C 
  Fan Speeds (RPM): cpu: 2027 case-1: 814 case-2: 803 gpu: nvidia fan: 10% 
  Voltages: 12v: 11.45 5v: 4.65 3.3v: 3.02 vbat: 3.34 
Info:
  Processes: 323 Uptime: 27m Memory: 31.28 GiB used: 1.69 GiB (5.4%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
john@john:~$ 
LM 21 Cinnamon | Dell Latitude E4310 (A15) | Core i5 560m | Mobile Intel QS57 Express | 8 GB RAM | CT2000MX500SSD1 | ST2000LM003 HN-M201RAD in an S251SMU33EP | Intel AC 7260 | ECUSB3S11 (NEC / Renasis 720202) 34mm ExpressCard
Locked

Return to “Software & Applications”