You are not logged in.

#1 2011-09-25 17:35:41

Haxxor
Member
Registered: 2011-09-25
Posts: 4

Binding keys to console commands

Hey guys, so i have linux, and the eject button on my macbook pro wont work. I found out that if i type 'eject' in the console, the disc ejects. so, how would i bind my eject key to the 'eject' command?

Offline

#2 2011-09-25 17:50:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Binding keys to console commands

Did it use to work? There's a bug related to a "dead" eject hardware button https://bugs.archlinux.org/task/25609

Offline

#3 2011-09-25 17:51:10

Haxxor
Member
Registered: 2011-09-25
Posts: 4

Re: Binding keys to console commands

karol wrote:

Did it use to work? There's a bug related to a "dead" eject hardware button https://bugs.archlinux.org/task/25609


It works on Mac OSX, but not linux

Offline

#4 2011-09-25 17:52:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Binding keys to console commands

From the bug report:

Tom Gundersen (tomegun) wrote:

As a temporary workaround, I suggest adding

echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs

to your rc.local.

Does it work for you?

Offline

#5 2011-09-25 18:04:10

Haxxor
Member
Registered: 2011-09-25
Posts: 4

Re: Binding keys to console commands

karol wrote:

From the bug report:

Tom Gundersen (tomegun) wrote:

As a temporary workaround, I suggest adding

echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs

to your rc.local.

Does it work for you?


I just want to bind a key.......

Offline

#6 2011-09-25 18:29:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Binding keys to console commands

You didn't answer my question.
This command works for me: when I press the 'eject' button, the disc is ejected - isn't this what you want?

I have no idea if it works for Apple hardware too, but I don't know how to do what you want, so I offer a workaround. Trying it out will take you a minute - just edit one file and reboot.

Offline

#7 2011-09-25 19:07:57

Haxxor
Member
Registered: 2011-09-25
Posts: 4

Re: Binding keys to console commands

I just have unity ubuntu linux i dont know how to replace the file

Offline

#8 2011-09-25 19:40:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Binding keys to console commands

This is an Arch Linux forum: ask on the Ubuntu boards...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2011-09-25 20:13:36

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Binding keys to console commands

jasonwryan wrote:

This is an Arch Linux forum: ask on the Ubuntu boards...

So it is. Closing.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB