1.Make a copy of the file
60-cdrom_id.rules
$ sudo cp /usr/lib/udev/rules.d/60-cdrom_id.rules /etc/udev/rules.d/
2.Edit this copied version of the file and comment out the line containing the string,
ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
3.Save the file and the change should be noticeable immediately, eject button is not working anymore and automatically ejecting of cd/dvd drive problem is not present anymore.
]]>What desktop environment are you using?
What file mangers have you open?
Anything interesting in the journal or dmesg?
Are you using any music programs that play CD's?
What happens if you mount a cd-rom (NOT a music CD, they don't have normal file systems). With media mounted, does it eject?
Desktop Environment - KDE
File Managers - Dolphin
I use VLC Media Player to play CD's
When I mount my cd-rom, Sometimes the cd gets ejected automatically and sometimes works absolutely fine.
Log of Journalctl
Jul 16 10:48:31 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 34111, resource id: 54525958, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:31 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 34106, resource id: 50331664, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:30 arch kwin_x11[666]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9510, resource id: 48234527, major code: 18 (ChangeProperty), minor code: 0
Jul 16 10:48:28 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 33961, resource id: 48234501, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:26 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 33624, resource id: 50331664, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:26 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 33600, resource id: 50331712, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:26 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 33563, resource id: 46137350, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:26 arch plasmashell[670]: QXcbConnection: XCB error: 2 (BadValue), sequence: 33538, resource id: 54525958, major code: 142 (Unknown), minor code: 3
Jul 16 10:48:24 arch dolphin[1092]: org.kde.baloo: Found removable storage volume for Baloo undocking: "/org/freedesktop/UDisks2/block_devices/sr0"
Jul 16 10:48:24 arch dolphin[1092]: MEDIA CHANGED in "/org/freedesktop/UDisks2/block_devices/sr0" ; size is: 0
Jul 16 10:48:24 arch plasmashell[670]: MEDIA CHANGED in "/org/freedesktop/UDisks2/block_devices/sr0" ; size is: 0
Sounds like a hw problem. Does it do it when you're in the BIOS/UEFI?
Problem not present in BIOS/UEFI mode.
]]>Can anyone please help me or give me some suggestion.
]]>