Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79930 - udev, hal, dbus or ivman problem with ejecting dvd movies after playing them
Summary: udev, hal, dbus or ivman problem with ejecting dvd movies after playing them
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 01:58 UTC by Christian Roessner
Modified: 2005-04-28 01:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Roessner 2005-01-29 01:58:40 UTC
I use ivman with all these apps mentioned above as automounter under Gnome. Everything works fine. CDs, DVDs and my USB stick is mounted (and locked!) and I can unmount it as ormal user (users flag in /etc/fstab). But if I insert a DVD movie and use a xine-lib based app like kaffeine, or using mplayer, I can not unmount the DVD anymore as normal user. I get an Input/Output error and I have to su to root and after ejecting the disc, even root gets this error message (although the disc gets ejected).

It seems, the usage of the disc changes from ATAPI commands to SCSI ioctl().

One thing is interesting: If I insert a DVD movie and I only open the disc with nautilus and I open a .inf or something else file with an editor, I still can unmount and eject the disc. But playing the disc, changes the behaviour.

Error message from dmesg:
program eject is using a deprecated SCSI ioctl, please convert it to SG_IO

Regards
Christian

Reproducible: Always
Steps to Reproduce:
1. Insert DVD movie
2. Start kaffeine or any other movie player
3. try pressing the eject button of the drive or using unmount from the context menu

Actual Results:  
Disc does not eject.


Gentoo Base System version 1.6.8
Portage 2.0.51-r15 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.10-cj1 i686)
=================================================================
System uname: 2.6.10-cj1 i686 Intel(R) Pentium(R) M processor 1600MHz
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 12 2004, 18:43:04)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.5, 1.6.3, 1.4_p6, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ALSA_CARDS="intel8x0 intel8x0m"
ANT_HOME="/usr/share/ant-core"
ARCH="x86"
AUTOCLEAN="yes"
AUTO_SYMLINK="no"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CCACHE_SIZE="2G"
CFLAGS="-O1 -march=pentium-m -pipe -fno-merge-constants -fstrength-reduce
-freorder-blocks -fsched-interblock -finline-functions -fweb -fmove-all-movables
-fomit-frame-pointer -finline-limit=500"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXXFLAGS="-O1 -march=pentium-m -pipe -fno-delayed-branch -fcaller-saves
-freorder-blocks -freorder-functions -falign-jumps -finline-functions
-frename-registers -fweb -fomit-frame-pointer -fno-trapping-math
-falign-functions=64"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_DIR="/var/tmp/portage/.distcc"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
FEATURES="autoaddcvs ccache digest distlocks sandbox userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --proxy=on --passive-ftp ${URI} -P ${DISTDIR}"
GCC_SPECS=""
GDK_USE_XFT="1"
GDM_LANG="de_DE.utf8"
GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mir.zyrianes.net/gentoo/"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
G_BROKEN_FILENAMES="1"
HISTCONTROL="ignoredups:erasedups"
HOME="/root"
HOSTNAME="roessi"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info"
JAVAC="/opt/blackdown-jdk-1.4.2.01/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2.01"
JDK_HOME="/opt/blackdown-jdk-1.4.2.01"
KBUILD_OUTPUT_PREFIX=""
KDEDIR="/usr/kde/3.3"
KDEDIRS="/usr"
KDE_MALLOC="1"
LANG="german"
LC_ALL="de_DE.utf8"
LESS="-R"
LESSCHARSET="utf-8"
LESSOPEN="|lesspipe.sh %s"
LIBGL_DRIVERS_PATH="/usr/lib/modules/dri"
LINGUAS="de"
LINUX_PORTAGE_WRITABLE="no"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j4"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man:/usr/share/man::/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos ppc-od
s390 sh sparc x86 x86-fbsd x86-obsd x86-od"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="16119"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentoo-de"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/wine:/usr/lib/valgrind"
PWD="/root"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.4/html"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --proxy=on --passive-ftp ${URI} -P ${DISTDIR}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SANE_CONFIG_DIR="/etc/sane.d"
SGML_CATALOG_FILES="/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-4.3.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="9986"
SSH_AUTH_SOCK="/tmp/ssh-TrvNhC9985/agent.9985"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X X509 a52 acl acpi acpi4linux activefilter alsa apache2 arts
artswrappersuid audiofile avi bash-completion bcmath berkdb bigger-fonts
bitmap-fonts bzip2 bzlib caps cdda cddb cdio cdparanoia cdr chroot client codecs
crypt css ctype cups dbm dhcp directfb divx4linux doc dts dvd dvdread encode
extensions f77 faac faad fame faxonly fbcon ffmpeg font-server foomaticdb
freetype gd gdbm gif gimp gimpprint gnome gpm gtk2 hal hbci icq idea imlib ipv6
java javascript jbig jpeg jpeg2k kde lcd lcms ldap libclamav libg++ libwww
lm_sensors lzo mad maildir mailwrapper mbox md5sum mikmod mime mjpeg mmx mng
motif mpeg mpeg2 mpeg4 mppe-mppc mysql nas ncurses network nls nntp no-old-linux
nptl nptlonly ogg oggvorbis opengl oss pam pcntl pcre pda pdflib perl php pic
png pnp posix ppds python qt quicktime readline rtc scanner sdl session
sftplogging slang slp sockets socks5 sox spell sse sse2 ssl stream svg tcltk
tcpd tetex threads tokenizer truetype truetype-fonts type1-fonts unicode usb
userlocales utf8 vanilla vcd vim-with-x vorbis wifi wxwindows x86 xine xml2 xmms
xosd xprint xsl xv xvid zlib linguas_de"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthxCTh3A"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-01-29 16:04:16 UTC
It would be good if you can work out either each of these programs in using the scsi eject or if it is in some specific library.
Comment 2 Christian Roessner 2005-01-30 00:14:44 UTC
Okay, I try to summarice:

I think udev and dbus are okay.

It might be hal or ivman. I recognized that the configuration of ivman has a great effect to the functionality. If, for example, you forgot to set nolock to false, you won
Comment 3 Christian Roessner 2005-01-30 00:14:44 UTC
Okay, I try to summarice:

I think udev and dbus are okay.

It might be hal or ivman. I recognized that the configuration of ivman has a great effect to the functionality. If, for example, you forgot to set nolock to false, you won´t be able to watch any movie.

But on the other hand, it could be hal, because sometime after having these problems, the 50-fstab-sync file seemed to be read again. I am not sure if hal crahsed before (segfault).

I can not give more information, but I really know that most people do have exactly this problem with this software configuration.

feffi for example has the same problems on his Acer Travelmate (The big Howto on Gentoo forum). And I do have these problems on amd64 and on my laptop ether.

Hope you get any further ideas on this.

Regards
Christian
Comment 4 Christian Roessner 2005-01-30 00:43:46 UTC
I have done a test, but I do not know if it tells us very much:

I stop only ivman. After that I inserted a DVD movie and I mounted the disc as _normal_ user (I wanted to do the automount stuff myself). Then I started kaffeine and watch about 2 minutes. Then exiting kaffeine and I gave eject a try as normal user. No problems. The disc came out.

Maybe it is the way, ivman is mounting a medium. On the other hand, I do not know, what ivman is talking with hal (Can they talk to each other?)

Hope this gives more information to you.
Comment 5 Christian Roessner 2005-01-30 01:34:55 UTC
Okay, once more:

I found a thread at forums.gentoo.org telling about gnome-volume-manager. I never heard of that, but I gave it a try. I stopped ivman and started gnome-volume-manger and everything works perfectly. DVDs play automaticly, CDs, too. My usb stick gets mounted and the best is: I do not have trouble unmounting it.

So, for me gnome-volume-manger is the best workaround. On the other side, ivman might have a bug. I do not know, if gnome-volume-manger got started at login, so maybe ivman and g-v-m had some trouble with each other.

I will test ivman on windowmaker later today. So we can find out, if ivman has a bug or not.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-23 19:36:34 UTC
This doesn't really belong to video, the problem is probably in ivman or other system things, not on specific media apps or libs.

Genstef you are the maintainer of ivman, I hope you can take care of this (or assign it to who is in charge of it).
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-23 23:43:30 UTC
Rohan, do you have any idea for this bug?
Comment 8 Rohan McGovern 2005-04-24 02:01:27 UTC
For the moment, I can offer this workaround:

echo 0 > /proc/sys/dev/cdrom/lock

Do this as root and the tray will, in theory, never be locked.  It should be possible to eject at any time.

I've seen a few problems with CD/DVD drives and Ivman lately (especially a very nasty one where the kernel somehow reads the size of the disc incorrectly, resulting in Input/Output error messages like the one you describe).  Since you say that the problems don't occur with gnome-volume-manager, I might have a look at its source code and see what it's doing differently with respect to optical media drives... 

As a matter of fact, one thing just came to mind - when unlocking the tray of your CD/DVD drive, Ivman calls 'open()' on the device, but never 'close()'... think I'll fix that right now and see if it makes a difference :-)
Comment 9 Rohan McGovern 2005-04-24 02:11:13 UTC
Ahem... OK, that bug where the kernel gets the disc size wrong was indeed caused by not closing the device.  Wow, this bug has been in Ivman since before I started working on it :-)  The fix is now in CVS.

I'm hoping that this will also fix the bug you're experiencing, but I couldn't say for sure... try the CVS version if you like :-)  I want to make another release of Ivman in the not too distant future, so you could wait for that instead - but I can't guarantee it will be soon :-(
Comment 10 Rohan McGovern 2005-04-27 16:04:02 UTC
Ivman 0.5_pre3 is now in portage, does this bug still occur when using it?
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-28 01:30:34 UTC
please reopen if it is not fixed for you.