You are not logged in.
Pages: 1
I prefer open a new thread even if in long far 2012 https://bbs.archlinux.org/viewtopic.php?id=136711 bagheera said:
I'm building htpc with arch and xbmc. Unfortunatly, xbmc can't eject cdrom tray. It can't be done even outside xbmc. I can't use button on device, even if media present on device is not mounted. Button on device is working just fine, if no media is present.
eject command is working.
[xbmc@mediacenter ~]$ eject -v eject: using default device `sr0' eject: device name is `sr0' eject: expanded name is `/dev/sr0' eject: `/dev/sr0' is not mounted eject: `/dev/sr0' is not a mount point eject: checking if device "/dev/sr0" has a removable or hotpluggable flag eject: `/dev/sr0' is not a multipartition device eject: trying to eject `/dev/sr0' using CD-ROM eject command eject: unlocking tray using CDROM_LOCKDOOR ioctl eject: CD-ROM eject command succeeded [xbmc@mediacenter ~]$
How to configure system to be able to eject cd tray if inserted media is not mounted?
It is unacceptable state for that machine, cuz xbmc supposed to be running only xbmc with rf remote unit.
Hello everybody.
Now I have the same issue of bagheera and I'm not able to sleep from 3 days
My cdrom is /dev/sr0
With eject command I'm able to open tray from root and from standard user. In Kodi the eject botton or Open/Close selection no have success.
I tried to change my udev rules: I created cat /etc/udev/rules.d/60-cdrom_id.rules with this:
ACTION=="remove", GOTO="cdrom_end"
SUBSYSTEM!="block", GOTO="cdrom_end"
KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
# unconditionally tag device as CDROM
KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
# media eject button pressed
ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
# import device and media properties and lock tray to
# enable the receiving of media eject button events
IMPORT{program}="cdrom_id $devnode"
KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
LABEL="cdrom_end"
but never changed.
I tried modify from 1 to 0 this:
echo "0" > /proc/sys/dev/cdrom/lock
but never changed.
I'm looking for others solutions to my issue in internet but I'm very unlucky!!!
Thank you everybody wants to give me some help... to sleep tonight
Offline
I have an update to this issue.
1. I insert a cd in the player
2. I play it
3. I open a terminal and umount /dev/sr0 (root and non-root users can do it)
4. I select open / close tray in kodi and it works like a charm
Why a standard user can umount my device and kodi can't do it?
Offline
Pages: 1