On 12/18/2014 03:55 PM, Marko Vojinovic wrote:
On Fri, 19 Dec 2014 10:34:54 +1300
Rolf Turner <r.turner(a)auckland.ac.nz> wrote:
> On 19/12/14 08:27, jd1008 wrote:
>> If you do not know the KeyCode, run the program:
>> showkey
>>
>> and press the key in question
>> and it's code will be displayed.
>> You must wait 10 seconds of idle
>> and showkey program will exit;
>> then run the sudo script above.
>>
> This looks very useful to me .... but as usual I fall at the first
> hurdle. When I type showkey or "showkey -k" I get:
>
>> Couldn't get a file descriptor referring to the console
> And that's it. Anything I can do about this? (Please note: I am
> running Fedora 17 --- yes, I know --- and using a Mate desktop; Mate
> 1.6.1 .)
You need to run showkey in a proper virtual terminal, aka ctrl-alt-f3
or such. It was not designed to work under X.
HTH, :-)
Marko
Correct! I forgot about that. I thought the OP was talking
about the console, like /dev/tty...