[mythtv-users] help with ati remote and mythtv

Dan Man danman at dtconnect.com
Sun Sep 14 19:03:14 EDT 2003


I took the road less traveled and just modified the source to send the
keys that I wanted. A different way to do it, but it works for me...

I'm still working on it, but it's going well...

DM

-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Cedar McKay
Sent: Sunday, September 14, 2003 5:40 PM
To: Discussion about mythtv
Subject: Re: [mythtv-users] help with ati remote and mythtv


On Sunday, September 14, 2003, at 01:50  PM, George Herndon wrote:

> hi,
>
> i've built my pundit based system with a knoppmyth based hard drive 
> install.
>
> my video card is the ati remote wonder ve.  i'm trying to configure 
> the remote and need some help / pointers.
>
> i've installed the ati_remote 2.1.1 drivers from the gatos project and

> see feedback from 'cat /dev/input/mice' so i know my system is 
> receiving commands from the remote. i followed the directions from the

> gatos project on sourceforge.  if you can't tell, i'm new to debian, 
> and don't know where to go from here.
>
you should have both keybdev and mousedev modules loaded. Then the 
remote will behave like two separate devices, a mouse and a keyboard. I 
personally don't use the mouse functionality at all. The 
/dev/input/mice thing was just to test whether the mouse was working. 
Push some of the keys in a term window and hopefully you will get some 
letters showing up.

> my question is, how do i program mythtv to accept input from the 
> remote?  do i use an Xmodmap specific for my mythtv user?  do i create

> an Xmodmap just for the mythtv app?  if yes on either, where can i get

> a pointer on what the file should look like?
>
I used xmodmap for the whole mythtv user, but I would be interested to 
hear if someone has gotten just mythtv to respond with the modified 
keymap. As is if I drop into a terminal window it is tough to type 
anything!


The way I got the remote setup is I ran "xev" while x11 was running. On 
gentoo the is would be at /usr/X11R6/bin/xev. Then press keys on the 
remote. That will show you both the keycode (e.g. 108) and the key 
press that that maps to (e.g KP_Enter). Now press keys on the remote. 
Decide for example that you want the red record button at the bottom to 
correspond to "R" for record. Press the red button. Xev should show 
keycode=177. Now press "R" on your real keyboard. That will show you 
what the key press is. (in this case it is simple, just "R"). Now 
create a ~/.xmodmaprc file and  put in:
keycode 177 = R
Rinse, repeat for all your keys. Now get this command to run one way or 
the other on your login:
xmodmap .xmodmaprc
I personally have it in my .bashrc file, but other places will work 
better for you perhaps.  I wanted to have it in my .xinitrc file, but 
that doesn't seem to be honored when you start x11 with kdm rather than 
startx.


Below is my .xmodmaprc. It isn't quite finished, I still have to work 
out how I want some of the extra features implemented, but I'm very 
happy with how the core functionality is laid out.

best,
Cedar




mythtv at localhost mythtv $ less .xmodmaprc
! Enter and Escape
! OK
keycode 36 = KP_Enter

!Pie thingy
keycode 146 = Escape

!Check
keycode 108 = space

! Page
keycode 176 = Escape

!Power
keycode 222 = Escape


!Play ff rew stop pause and record
! Play
keycode 168 = P

! Stop
keycode 232 = Escape

! ff
keycode 233 = Right

! rew
keycode 152 = Left

!Pause
keycode 110 = P

! Record
keycode 177 = D



! Slow and Fast Speed

!A
keycode 38 = J

!B
keycode 56 = U


! Jump Forward Jump Back
! C
keycode 54 = Prior

!D
keycode 40 = Next



!Volume and Mute
! Volume minus
keycode 165 = bracketleft

! Volume plus
keycode 158 = bracketright

! Mute
keycode 166 = F9



!Channel Movement
!Channel minus
keycode 99 = Down

!Channel Plus
keycode 105 = Up



!Commercial Skip
!E
keycode 26 = Q

!F
keycode 41 = Z


!Edit Mode
! Hand
keycode 126 = M



!Info
!Square
keycode 106 = I


!Browse Mode
!TV
keycode 153 = O



!Go to Program Guide
!Open Book
keycode 230 = M


!Transcode
!DVD
keycode 144 = X




More information about the mythtv-users mailing list