DVD tray won't re-open

11.2/gnome. After playing a video DVD (mplayer or vls), rt-clicking the desktop icon to eject, then closing the tray I can’t open it again by pushing the tray’s button. From terminal, if I login as su, I can restore function with eject -T. Kind of a pain, any easy fixes for this? Thanks in advance.

Are you able to establish if this is only an issue in openSUSE (ie; do you also have windows and have tried there) or another Linux distro and it’s OK there?
I saw a post about this the other day, guess it had to be you eh?

I am unable to eject my dvd from the drive. How can I eject from the command line or any other method? Help is very much appreciated.

Regards,

adsum01nl wrote:

>
> I am unable to eject my dvd from the drive. How can I eject from the
> command line or any other method? Help is very much appreciated.
>
> Regards,
>
>
The command is simply “eject”. You can also try this with root rights if it
does not work for you as user

sudo eject
or
su -c “eject”

On 2010-08-22 15:06, sbeyerkc wrote:
>
> 11.2/gnome. After playing a video DVD (mplayer or vls), rt-clicking the
> desktop icon to eject, then closing the tray I can’t open it again by
> pushing the tray’s button. From terminal, if I login as su, I can
> restore function with eject -T. Kind of a pain, any easy fixes for this?

You have to figure out first what program is holding the device busy so that it will not open. Try
lsof /dev/dvd

At worst, you can create a menu entry or icon to click, that does sudo eject.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

Thanks for your reply. VLS is my default player. lsof /dev/dvd showed the following:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
xdg-scree 26143 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
xdg-scree 26151 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
xprop 26155 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
sleep 26162 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0

My system is a Presario C700 laptop set to dual boot. I have no dvd tray issues on the windows side. I don’t mind creating a launcher icon but “eject” only works as su which means an extra step of providing a password which I don’t want my kids to know. I’m very new to Linux so I don’t know how to get around the password issue.

Works fine under xp (dual boot system), never tried another Linux distro, and I did post under hardware the other day but got no replies.

I’ve had that problem for quite awhile. I solved it by inserting a blank disc into the drive after removing a DVD or CD.

Took the blank out and tried eject from user and got this message

eject: unable to eject, last error: Inappropriate ioctl for device

lsof /dev/dvd returned this

lsof: WARNING: can’t stat() fuse.gvfs-fuse-daemon file system /home/wschw01/.gvfs
Output information may be incomplete.

.gvfs is an empty folder.

Putting the blank disc back in, if I ever ge it to open again.

On 2010-08-23 17:06, rafter22 wrote:

> lsof /dev/dvd returned this
>
> lsof: WARNING: can’t stat() fuse.gvfs-fuse-daemon file system
> /home/wschw01/.gvfs
> Output information may be incomplete.

Forget that message, it is unrelated. It is a pesky message because not even root can look into that
directory, so when searching system wide it pops. A bug of sorts.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

On 2010-08-23 16:36, sbeyerkc wrote:
>
> Carlos E. R.;2210607 Wrote:

> Thanks for your reply. VLS is my default player. lsof /dev/dvd showed
> the following:
>
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> xdg-scree 26143 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
> xdg-scree 26151 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
> xprop 26155 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
> sleep 26162 scott 11r BLK 11,0 0x1512e000 4334 /dev/sr0
>
> My system is a Presario C700 laptop set to dual boot. I have no dvd
> tray issues on the windows side. I don’t mind creating a launcher icon
> but “eject” only works as su which means an extra step of providing a
> password which I don’t want my kids to know. I’m very new to Linux so I
> don’t know how to get around the password issue.

Forget windows, this is a linux software problem, unrelated to the hardware. Some software is doing
something with the drive, and interferes.

I don’t know what those four programs above are doing, and the names are incomplete. You can perhaps
have a look with “ps afx | less -S”

It is possible to configure sudo so that you can use predefined root commands with your own
password, not root’s. That is the recommended configuration for sudo, but not the configuration it
is installed with.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

Ok message forgotten.

I’ll stick with my fix of leaving a blank disc in the DVD drive. :slight_smile:

Have you tried unmounting the drive before trying to eject it?
I do this whenever the drive is locked and I want to eject the disc.

I don’t know if you are replying to me or the OP, but I thought the original question pertained to the DVD tray won’t reopen when empty. If I’m wrong, I’m sorry for even posting in this thread.

What is there to unmount?

I have no problems ejecting or opening the DVD tray when there is a disc, only when empty. My fix is to insert a blank disc. Works for me. :wink:

Carlos - Thanks. I didn’t know how to configure sudo (or that you could) but found a How-To at How to configure sudo and delegate authority in openSUSE | SUSE & openSUSE that showed me the light. It didn’t match 11.2 exactly but close enough to get the job done. I gave the default user permission to run “eject” from terminal without requiring a password and created a lancher icon to perform the task. Not a definative solution to my problem, but a very acceptable workaround.

Thanks again - Scott

On 2010-08-25 18:06, sbeyerkc wrote:
>
> Carlos - Thanks. I didn’t know how to configure sudo (or that you
> could) but found a How-To at ‘How to configure sudo and delegate
> authority in openSUSE | SUSE & openSUSE’ (http://tinyurl.com/y8ewjxv)

I used the man page and the comments in the default configuration file :slight_smile:

What, there is a yast sudo configuration module? Nice! I didn’t know that…

> that showed me the light. It didn’t match 11.2 exactly but close enough
> to get the job done. I gave the default user permission to run “eject”
> from terminal without requiring a password and created a lancher icon to
> perform the task. Not a definative solution to my problem, but a very
> acceptable workaround.

Actually, that’s the proper method to delegate things in linux, from root to users. It can be
tedious if you have to write rules for all tools…


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))