EjecTray is not working

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bonemasterno1 Offline
Junior Member
Posts: 4
Joined: Jan 2009
Reputation: 0
Post: #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?
find quote
bonemasterno1 Offline
Junior Member
Posts: 4
Joined: Jan 2009
Reputation: 0
Post: #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.
find quote
Krautmaster Offline
Senior Member
Posts: 198
Joined: Jul 2010
Reputation: 1
Post: #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
find quote
Krautmaster Offline
Senior Member
Posts: 198
Joined: Jul 2010
Reputation: 1
Post: #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"
find quote