EjecTray is not working
#1
I cant get the eject buttons to work in xbmc as a normal user.

If I try to push the eject button, xbmc logs an EjectTray() and nothing happends.

After spending some hours to solve this problem, i found out that must be a problem with insufficient rights. Because as root user its working well.

So i added my user to all groups which can be the problem (disk, wheel, optical, storage etc..).
With the commandline tools eject and udisks --eject it works.

After some time, i founded out if i use this command before pusing the button in xbmc it works: "eject -i off /dev/sr0". This works one time and i have to do this again.

dev.cdrom.lock=0 is already set, also the kernel option cdrom.lockdoor=0 doesnt help.

How does the function work in xbmc? The Debug Log is not helpfull.
Any hints what can be the problem?
Reply
#2
I solved the problem by starting xbmc with ck-launch-session. The Problem was that i am starting an minimal X-Server Session for XBMC and without ck-launch-session the consolekit and policiykits arent working well.
Reply
#3
same here, using lightdm and a netboot installation. XBMC user is in all groups. Eject doent work. Only command line.

eject -i off /dev/sr0 behaves exactly the same, after this it works
Reply
#4
editing the /lib/dev/ruled.d/60-cdrom_id.rules does the trick:

changed

IMPORT{program}="cdrom_id --lock-media $tempnode"

to

IMPORT{program}="cdrom_id $tempnode"
Reply

Logout Mark Read Team Forum Stats Members Help
EjecTray is not working0