You are not logged in.
I tried disabling "sr_mod" and "cdrom" modules but still it's opening. I tried seeing the forums but none of them worked for me, so I'm not able to figure out whether it software or hardware problem.
Can anyone please help me or give me some suggestion.
Last edited by ravievr (2017-07-15 11:20:54)
Offline
Sounds like a hw problem. Does it do it when you're in the BIOS/UEFI?
Personal spot :: https://www.smirky.net/ :: Try not to get lost!
Offline
If there's a disk, remove it.
Otherwise check whether if fully closes.
When they turn old, the tray tends to displace. Pass it a manual extra-push when it's supposed to be closed and see whether this stops.
Offline
I'm not trying to insult your intelligence, but make sure you aren't pushing on the eject button as your trying to close the drive. Happened to me (I know, fail...) so I just wanted to mention this to you.
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
Sounds like a hw problem. Does it do it when you're in the BIOS/UEFI?
Problem not present in BIOS/UEFI mode.
Offline
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?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Do you have udisks2 enabled via systemctl enable udisks2? Could it be your setup at fault?
Arch + GNOME
------
Please post back your results to help others.
Offline
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
Last edited by ravievr (2017-07-16 11:45:57)
Offline
I found a workaround from stackexchange by completely disabling the eject button function by editing the udev rules file
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.
Last edited by ravievr (2017-07-17 17:04:28)
Offline