View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Oct 13, 2006 9:07 pm 
Offline
Joined: Fri Oct 13, 2006 3:50 pm
Posts: 26
Location: New Jersey, USA
I bought an "ione" brand Libra Q26. It consists of a 51 key remote
and a USB receiver. R5D1 sees this as a USB keyboard, I don't
think lirc gets involved at all. Pressing "Enter" on the remote is
just like pressing "Enter" on my keyboard, even in a text mode
screen.

Any idea how one makes this play nice with knoppmyth ? Right
now, only a few keys (up, down, left, right, 0-9, and enter) "work"
with mythtv.

Thanks in advance,
Bill


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 4:34 am 
Offline
Joined: Tue Aug 09, 2005 2:09 pm
Posts: 107
I am thining about getting a new remote. Did you ever get this working?

_________________
P4 1.6 GHz
1.2 GB RAM
Nvidia GeForce4 MX 4000
Hauppage PVR 500 MCE
Soundblaster Live
ATI Remote Wonder II


Top
 Profile  
 
PostPosted: Thu Jan 11, 2007 6:57 am 
Offline
Joined: Fri Oct 13, 2006 3:50 pm
Posts: 26
Location: New Jersey, USA
Nope. No replies other than yours, as you can see.
Fortunately, you can at least watch tv and recordings using
the keys that DO work.

Bill


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 7:00 am 
Offline
Joined: Tue Aug 09, 2005 2:09 pm
Posts: 107
Try using xev from a terminal window to see what the key codes are for the keys on the remote. Then use xmodmap to match the keycodes with the hotkeys in mythtv. You can look at the man file for xmodmap but here is a few lines from the file I created.
Code:
!menu = 'list'
keycode 58 = m
!skip to next commercial break marker = 'check'
keycode 31 = z

Next, edit the file /usr/local/bin/KnoppMyth-run.
Locate the line:
Code:
CMD2='exec mythfrontend'

change it to say:
Code:
CMD2='exec xmodmap yourXmodmapFile | exec mythfrontend'

where yourXmodmapFile is the file that you created and you should be able to program the unused keys on your remote. The only thing that I have found that you don't really want to do is change the mapping of a key that is already mapped to something on your remote, like the letter 'l'. If you do that every time you type a letter 'l' on your keyboard the new mapping will take it's place. At one point I did this and I had no way of typing a letter 'l'. If you do some searching you can find a way to create a file to reset your mappings back to the default when you are not in myth.

_________________
P4 1.6 GHz
1.2 GB RAM
Nvidia GeForce4 MX 4000
Hauppage PVR 500 MCE
Soundblaster Live
ATI Remote Wonder II


Top
 Profile  
 
PostPosted: Thu Jan 18, 2007 7:36 pm 
Offline
Joined: Fri Oct 13, 2006 3:50 pm
Posts: 26
Location: New Jersey, USA
I'll try it and let you know how it goes.

Thanks a lot!

Bill


Top
 Profile  
 
PostPosted: Fri Jan 19, 2007 10:28 am 
Offline
Joined: Fri Oct 13, 2006 3:50 pm
Posts: 26
Location: New Jersey, USA
I did as you suggested and used xev and xmodmap to re-map
some of the events from the remote.

Here are my results.

First, a shell script that documents what the remote emits (via the
USB receiver which interprets the IR and makes "keystrokes")
and also invokes xmodmap to patch individual buttons.

Second, an .xmodmaprc file you can use as you suggested when
invoking /usr/local/bin/KnoppMyth-run (though I haven't done that
yet.)

shell script remfix.sh:

# xmodmap patch file for iOne brand Libra Q26 remote + it's USB receiver
# to build .xmodmaprc:
# ./remfix.sh
# xmodmap -pke | grep -v "=$" >.xmodmaprc
# vol up
xmodmap -e 'keycode 176 = bracketright'
# vol down
xmodmap -e 'keycode 174 = bracketleft'
# chan up
xmodmap -e 'keycode 99 = KP_Up'
# chan down
xmodmap -e 'keycode 105 = KP_Down'
# mute = 160
xmodmap -e 'keycode 160 = brokenbar'
# play = 179
xmodmap -e 'keycode 179 = p'
# stop = 164
xmodmap -e 'keycode 164 = Escape'
# pause = 110 = (Pause?)
# record = 177
xmodmap -e 'keycode 177 = r'
# record 152 rewind <<
xmodmap -e 'keycode 152 = less'
# record 180 forward >>
xmodmap -e 'keycode 180 = greater'
# record 144 rewind to beginning |< = skip to previous commercial break marker
xmodmap -e 'keycode 144 = q'
# record 153 forward to end >| = skip to next commercial break marker
xmodmap -e 'keycode 153 = z'
# more info = 134 = "onscreen" menu
xmodmap -e 'keycode 134 = o'
# blue "pictures" = 237
# eHOME = 64 115 108 = Alt_L Super_L KP_Enter
# TELETEXT = 71 = F5 = toggle closed captioning/teletext (hit twice)
xmodmap -e 'keycode 71 = t'
# F1 = 67 = F1
# F2 = 68 = F2 = different on screen menu
xmodmap -e 'keycode 68 = m'
# F3 = 69 = F3
# F4 = 70 = F4
# CLEAR = 9 = Escape

second, .xmodmaprc file:
keycode 9 = Escape
keycode 10 = 1 exclam
keycode 11 = 2 at
keycode 12 = 3 numbersign
keycode 13 = 4 dollar
keycode 14 = 5 percent
keycode 15 = 6 asciicircum
keycode 16 = 7 ampersand
keycode 17 = 8 asterisk
keycode 18 = 9 parenleft
keycode 19 = 0 parenright
keycode 20 = minus underscore
keycode 21 = equal plus
keycode 22 = BackSpace Terminate_Server
keycode 23 = Tab ISO_Left_Tab
keycode 24 = q Q
keycode 25 = w W
keycode 26 = e E
keycode 27 = r R
keycode 28 = t T
keycode 29 = y Y
keycode 30 = u U
keycode 31 = i I
keycode 32 = o O
keycode 33 = p P
keycode 34 = bracketleft braceleft
keycode 35 = bracketright braceright
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a A
keycode 39 = s S
keycode 40 = d D
keycode 41 = f F
keycode 42 = g G
keycode 43 = h H
keycode 44 = j J
keycode 45 = k K
keycode 46 = l L
keycode 47 = semicolon colon
keycode 48 = apostrophe quotedbl
keycode 49 = grave asciitilde
keycode 50 = Shift_L
keycode 51 = backslash bar
keycode 52 = z Z
keycode 53 = x X
keycode 54 = c C
keycode 55 = v V
keycode 56 = b B
keycode 57 = n N
keycode 58 = m M
keycode 59 = comma less
keycode 60 = period greater
keycode 61 = slash question
keycode 62 = Shift_R
keycode 63 = KP_Multiply XF86_ClearGrab
keycode 64 = Alt_L Meta_L
keycode 65 = space
keycode 66 = Caps_Lock
keycode 67 = F1 XF86_Switch_VT_1
keycode 68 = m
keycode 69 = F3 XF86_Switch_VT_3
keycode 70 = F4 XF86_Switch_VT_4
keycode 71 = t
keycode 72 = F6 XF86_Switch_VT_6
keycode 73 = F7 XF86_Switch_VT_7
keycode 74 = F8 XF86_Switch_VT_8
keycode 75 = F9 XF86_Switch_VT_9
keycode 76 = F10 XF86_Switch_VT_10
keycode 77 = Num_Lock Pointer_EnableKeys
keycode 78 = Scroll_Lock
keycode 79 = KP_Home KP_7
keycode 80 = KP_Up KP_8
keycode 81 = KP_Prior KP_9
keycode 82 = KP_Subtract XF86_Prev_VMode
keycode 83 = KP_Left KP_4
keycode 84 = KP_Begin KP_5
keycode 85 = KP_Right KP_6
keycode 86 = KP_Add XF86_Next_VMode
keycode 87 = KP_End KP_1
keycode 88 = KP_Down KP_2
keycode 89 = KP_Next KP_3
keycode 90 = KP_Insert KP_0
keycode 91 = KP_Delete KP_Decimal
keycode 92 = Print Sys_Req
keycode 93 = Mode_switch
keycode 94 = less greater bar brokenbar bar brokenbar
keycode 95 = F11 XF86_Switch_VT_11
keycode 96 = F12 XF86_Switch_VT_12
keycode 97 = Home
keycode 98 = Up
keycode 99 = KP_Up
keycode 100 = Left
keycode 102 = Right
keycode 103 = End
keycode 104 = Down
keycode 105 = KP_Down
keycode 106 = Insert
keycode 107 = Delete
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 110 = Pause Break
keycode 111 = Print Sys_Req
keycode 112 = KP_Divide XF86_Ungrab
keycode 113 = Alt_R Meta_R
keycode 114 = Pause Break
keycode 115 = Super_L
keycode 116 = Super_R
keycode 117 = Menu
keycode 124 = ISO_Level3_Shift
keycode 125 = NoSymbol Alt_L
keycode 126 = KP_Equal
keycode 127 = NoSymbol Super_L
keycode 128 = NoSymbol Hyper_L
keycode 134 = o
keycode 144 = q
keycode 152 = less
keycode 153 = z
keycode 156 = NoSymbol Meta_L
keycode 160 = brokenbar
keycode 164 = Escape
keycode 174 = bracketleft
keycode 176 = bracketright
keycode 177 = r
keycode 179 = p
keycode 180 = greater

Thanks for all your help. While not optimal, the Q26 is now much more
usable since I can control volume, pause, fastforward, which I couldn't
do before.

Bill


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 3:43 pm 
Offline
Joined: Tue Aug 09, 2005 2:09 pm
Posts: 107
Another tip that I have is that I keep my xmodmap file in a folder in /myth so that when I do a backup before upgrading to the latest release of knoppmyth all I need to do to get the remote working again is edit KnoppMyth-run after the upgrade.

_________________
P4 1.6 GHz
1.2 GB RAM
Nvidia GeForce4 MX 4000
Hauppage PVR 500 MCE
Soundblaster Live
ATI Remote Wonder II


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu