Re: [Freevo-users] F-keys and mplayer

2008-04-17 Thread Francisco Eduardo Álvarez Solano
2008/4/15, Chris <[EMAIL PROTECTED]>:
>
> Hi,
> I was configuring freevo to fit some mediacenter-pc i bought. It came
> with a remote controle which sends keycodes.
>
> Unfortunately some of the keys are mapped to f1-f12, which is no problem
> in freevo itself, but when mplayer is running all keypresses on these
> keys are ignored. Is there any way to change this?


You can redefine the keycodes your remote sends with the command
'input-kbd'.
 For example:

/usr/bin/input-kbd  remote-bindings 2

Where 'remote-bindings' is the file with the bindings and '2' is the index
of the input device to use (your remote would be /dev/input/event2 in this
case).

This is my remote-bindings file:

0x =   1  # KEY_POWER   -> Esc
0x0020 = 102  # KEY_LIST (source)-> Inicio
0x0010 =  62  # KEY_TEXT-> F4
0x002e =  59  # KEY_RED -> F1
0x0021 =  60  # KEY_GREEN   -> F2
0x000e =  61  # KEY_YELLOW  -> F3
0x0001 =  62  # KEY_BLUE-> F4
0x0004 =  30  # KEY_AUDIO   -> a
0x0006 =  16  # KEY_ZOOM-> q
0x0008 =  32  # KEY_INFO (preview)-> d
0x003e =  50  # KEY_VOLUMEUP-> m
0x001e =  49  # KEY_VOLUMEDOWN  -> n
0x000a =  48  # KEY_MUTE-> b
0x000c =  25  # KEY_PLAY-> p
0x001c =  22  # KEY_PAUSE   -> u
0x001a =   4  # KEY_FASTFORWARD -> 3
0x002a =   2  # KEY_REWIND  -> 1
0x0031 =  46  # KEY_CHANNELDOWN -> c
0x0011 =  47  # KEY_CHANNELUP   -> v
0x0022 =   2  # KEY_1

You can use the program 'input-events' to see what code sends your remote
for each key.

Hope this helps

Eduardo
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] F-keys and mplayer

2008-04-16 Thread Duncan Webb
Chris wrote:
> Hi,
> I was configuring freevo to fit some mediacenter-pc i bought. It came 
> with a remote controle which sends keycodes.
> 
> Unfortunately some of the keys are mapped to f1-f12, which is no problem 
> in freevo itself, but when mplayer is running all keypresses on these 
> keys are ignored. Is there any way to change this?

Depends what you want to do, use these keys to send commands to mplayer? 
If so then you can with local_conf.py lines like:

EVENTS['video']['1'] = \
   Event(VIDEO_SEND_MPLAYER_CMD, arg='contrast -100')

> Other keys are e.g. the arrow-keys on the numblock, for which 
> pygame.locals doesnt have support. Any chance getting this to run wthout 
> hacking pygame?

Are you sure that pygame does not see the key codes? You can check by 
printing the pygame events, this code in src/osd.py will do this, you 
should see mouse, keyboard, joystick events.

_debug_('pygame event=%s' % (event), 2)
print 'pygame event=%s' % (event)

I guess that you need to use the event_dev modules in freevo and 
configure it for the input device or use lirc with input/dev (or 
dev/input) driver.

Duncan

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] F-keys and mplayer

2008-04-16 Thread Andreas Dick
using the remote as keyboard can be good if it fits, but is very
unflexible if not... on the other hand you would have full control over
the key mapping using lirc (lirc.org)

Anderas

> Hi,
> I was configuring freevo to fit some mediacenter-pc i bought. It came
> with a remote controle which sends keycodes.
>
> Unfortunately some of the keys are mapped to f1-f12, which is no problem
> in freevo itself, but when mplayer is running all keypresses on these
> keys are ignored. Is there any way to change this?
>
> Other keys are e.g. the arrow-keys on the numblock, for which
> pygame.locals doesnt have support. Any chance getting this to run wthout
> hacking pygame?
>
> Thank you in advance
> -Chris-
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] F-keys and mplayer

2008-04-15 Thread Chris
Hi,
I was configuring freevo to fit some mediacenter-pc i bought. It came 
with a remote controle which sends keycodes.

Unfortunately some of the keys are mapped to f1-f12, which is no problem 
in freevo itself, but when mplayer is running all keypresses on these 
keys are ignored. Is there any way to change this?

Other keys are e.g. the arrow-keys on the numblock, for which 
pygame.locals doesnt have support. Any chance getting this to run wthout 
hacking pygame?

Thank you in advance
-Chris-

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users