You are not logged in.

#1 2012-03-29 17:08:45

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

[SOLVED]Extra keyboard key to eject cd/dvd

Hi,
Every my extra key (what i needed) are working.
Problem is only with ejecting CD.

I have added to my openbox rc.xml file :

 <keybind key="XF86Eject">
      <action name="Execute">
        <execute>sudo eject -r /dev/sr0</execute>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <execute>amixer set Master 5- unmute</execute>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>amixer set Master 5+ unmute</execute>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <execute>amixer set Master toggle</execute>
      </action>
    </keybind>

and only eject doesn't working.

Everybody user can do "eject". So I dont know why key not working.

Last edited by xorgx3 (2012-03-29 18:00:33)

Offline

#2 2012-03-29 17:38:52

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED]Extra keyboard key to eject cd/dvd

Did you configure sudo so that it doesn't ask for a password (for this particalur command)? If not, that's probably the problem. Anyway, I think users in group optical can use eject -- no need for sudo -- and maybe this is what you mean by 'Everybody user can do "eject".'.

Offline

#3 2012-03-29 18:00:21

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: [SOLVED]Extra keyboard key to eject cd/dvd

Eh sorry, thread was needn't.

Offline

#4 2012-04-10 08:48:40

strungoutfan78
Member
Registered: 2008-11-12
Posts: 10

Re: [SOLVED]Extra keyboard key to eject cd/dvd

I would really like to know how you fixed this.  I'm having the same issue on my debian box.  I don't need sudo to eject, however.

Offline

#5 2012-04-10 08:51:01

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: [SOLVED]Extra keyboard key to eject cd/dvd

I just remove sudo from this line:

 <execute>sudo eject -r /dev/sr0</execute>

Now it's look :

 <execute>eject -r /dev/sr0</execute>

Offline

Board footer

Powered by FluxBB