LinHES Forums
http://forums.linhes.org/

help getting ATI remote wonder working
http://forums.linhes.org/viewtopic.php?f=1&t=559
Page 1 of 2

Author:  graysky [ Wed Jan 21, 2004 3:27 pm ]
Post subject:  help getting ATI remote wonder working

Quote:
billytwowilly said in a locked thread:

I'd like to see drivers for tha ati rf remote included in R5 of knoppmyth.
I think the inclusion of those drivers would be beneficial because the ati remote is probably one of the nicest remotes I've come in contact with and a fair amount of mythtv users own one.
The drivers can be found at http://gatos.sourceforge.net/ati_remote.php
and a handy little patch that changes the keymappings to something more useful to mythtv can be found at:http://homepage.mac.com/johnsflowers/FreeplayTV/Documentation.html
right near the bottom.
As far as I'm aware of there are no dependencies for this module, or than the input.o, mousedev.o, keybdev.o, and hid.o kernel modules, which are fairly standard and are already included in knoppmyth (I think).


Thanks for the info billytwowilly. I just got a remote wonder. Did a clean install of Knoppmyth R4 on a new PC. I got the files and read the instructions from the 2 links you talked about, but I still can't get any remote functions to work Here's what I did:

Got these 2 files:

ati_remote-2.1.1.tgz
ati_remote.diff

(In /home/mythtv/)
$ tar zxvf ati_remote-2.1.1.tgz
$ cp ati_remove.diff ./ati_remote
$ cd ati_remote

mythtv@mythtv-bedroom:~/ati_remote $ patch -p 0 < ati_remote.diff
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch:

I entered:

File to patch: /home/mythtv/ati_remote/ati_remote.c
I: No such file or directory
Skip this patch? [y]

mythtv@mythtv-bedroom:~/ati_remote $ make
gcc -m486 -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common -DMODULE -D__KERNEL__ -DLINUX -I/usr/src/linux/include -c ati_remote.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.

(Guess that worked.)

mythtv@mythtv-bedroom:~/ati_remote $ make test
sync
insmod ./ati_remote.o
./ati_remote.o: unresolved symbol input_register_device
./ati_remote.o: unresolved symbol input_unregister_device
./ati_remote.o: unresolved symbol input_event
make: *** [test] Error 1
mythtv@mythtv-bedroom:~/ati_remote $

What am I doing wrong?

Thanks!

Author:  billytwowilly [ Wed Jan 21, 2004 3:45 pm ]
Post subject: 

mythtv@mythtv-bedroom:~/ati_remote $ patch -p 0 < ati_remote.diff
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch:

That tells you that it can't find the file to patch. The question is then "Is ati_remote.c in the directory with the patch file?" because I would tend to think no... the other possibility is that the patch no longer works with a newer release of the ati_remote code.. I don't think that is the case though..

Author:  billytwowilly [ Wed Jan 21, 2004 3:46 pm ]
Post subject: 

Oh yah,
That unresolved symbol stuff is usually ok. It doesn't seem to affect the workings of the program.

Author:  graysky [ Wed Jan 21, 2004 4:02 pm ]
Post subject: 

hmm... after doing the steps I wrote about in the post, I restarted gdm, but still have no remote functionality.

The README says
Quote:
ATI USB Remote Control driver

This is an experimental driver.. who knows what it'll do ?

To use:

* turn on USB and "input" support in the kernel
* make
* make test
* configure X to use /devfs/input/mice as a mouse
* start X - enjoy !

loading module like this:

insmod ati_remote channel_mask=16


But this site you referenced says:

Quote:
The remote works without modifying /etc/X11/XFConfig, but you can get rid of the mouse & only use the remote by changing the 'mouse' device to /dev/input/mice.


The only other thing I can figure is doing the insmod command:

mythtv@mythtv-bedroom:~/ati_remote $ insmod ati_remote channel_mask=16
Using /lib/modules/2.4.21-xfs/misc/ati_remote.o
/lib/modules/2.4.21-xfs/misc/ati_remote.o: unresolved symbol input_register_device
/lib/modules/2.4.21-xfs/misc/ati_remote.o: unresolved symbol input_unregister_device
/lib/modules/2.4.21-xfs/misc/ati_remote.o: unresolved symbol input_event

Is there something else I need to do to get this to work?

Thanks!

Author:  billytwowilly [ Wed Jan 21, 2004 4:05 pm ]
Post subject: 

you have to modprobe the module after you make install it.. and if it isn't patched then you won't have very much functionality anyway because the keys are bound to fairly useless keys in the default configuration... you should also set the module up to be loaded at boot..

Author:  graysky [ Wed Jan 21, 2004 4:13 pm ]
Post subject: 

Thanks for the quick reply :)

Is this correct (you're dealing with a LINUX newbie here)

root@mythtv-bedroom:/home/mythtv# modprobe ati_remote
Note: /etc/modules.conf is more recent than /lib/modules/extra/modules.dep
modprobe: Can't locate module ati_remote

Also, how does one get a module to load up at boot?

Thanks man!

Author:  billytwowilly [ Wed Jan 21, 2004 4:15 pm ]
Post subject: 

If you get this in the next ten minutes just go on #knoppmyth.. this is kind of tedious;) If you go there and I'm not around just post another message here and I will be alerted and respond to this question on here.

Author:  graysky [ Wed Jan 21, 2004 4:20 pm ]
Post subject: 

I'm there dude... once we get this working. I'll write a howto based on what we do so others can use the info also.

Author:  graysky [ Wed Jan 21, 2004 4:22 pm ]
Post subject: 

Hey, regarding the patch:

root@mythtv-bedroom:/home/mythtv/ati_remote# patch -p 0 < ati_remote.diff
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch: /home/mythtv/ati_remote/ati_remote.c
patching file /home/mythtv/ati_remote/ati_remote.c
root@mythtv-bedroom:/home/mythtv/ati_remote#

seems like it worked :)

Author:  graysky [ Wed Jan 21, 2004 7:16 pm ]
Post subject: 

OK! It's working!

h0leman and billytwowilly get the credit for this. I (with help) will make a script to do what it takes to get this to work for others. And, I'll post it in the howto area when it's finished!

Author:  graysky [ Wed Jan 21, 2004 8:09 pm ]
Post subject: 

Quote:
<billytwowilly> I think I just put it in with /etc/modules or something.
<billytwowilly> input
<billytwowilly> mousedev
<billytwowilly> keybdev
<billytwowilly> hid
<billytwowilly> ati_remote
<billytwowilly> put each of those lines in /etc/modules
<billytwowilly> and they'll load at boot
<billytwowilly> in that order
<billytwowilly> sorry dude, I forgot about that.
<billytwowilly> I haven't had to install ati remote since shortly after r4 was released.


What is the correct syntax for this? Can you paste your /etc/modules.conf in this thread?

Thanks again for the help!

Author:  Xsecrets [ Wed Jan 21, 2004 9:03 pm ]
Post subject: 

note that if you put it directly in modules.conf it is VERY likely to dissapear. you should put it in a file in /etc/modutils/

then run update-modules

Author:  billytwowilly [ Wed Jan 21, 2004 9:47 pm ]
Post subject: 

I just put those words into /etc/modules in the order that I pasted them into the channel.
ie, I added this to the end of /etc/modules:
input
mousedev
keybdev
hid
ati_remote

It has worked without issue since I installed R4 shortly after its release. I think xsecrets suggestion is a much cleaner way to do things however.

Author:  graysky [ Thu Jan 22, 2004 2:40 pm ]
Post subject: 

Sounds great man.. I'll tryiit later today. Thanks for the info!

Author:  kolemieux [ Sun Feb 01, 2004 10:33 am ]
Post subject:  ATI Remote Wonder HOW-TO?

I saw a ton of great work in this thread, is there a HOW-TO for newbie's on how to get this working.... I'd LOVE TO USE IT....

Please advise and thanks.... :?:

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/