Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] ATI Remote Wonder II: mode2 works, but not irw
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Sun Aug 26, 2007 6:32 pm    Post subject: [Solved] ATI Remote Wonder II: mode2 works, but not irw Reply with quote

So, using the lirc_atiusb module, the lirc utility mode2 works:
Code:
code: 0x000209
code: 0x000209
code: 0x000206
code: 0x000206
code: 0x000205
code: 0x000205
code: 0x000204
code: 0x000204
But irw never gives output, it just hangs. My /etc/lircd.conf comes from the Gentoo wiki and the codes given by mode2 match up with those in the config. I do have the lircd daemon running. :)

So while irkick does list my remote control, it doesn't actually work. Which isn't surprising.
_________________
Amarok - Rediscover your Music


Last edited by eean on Wed Aug 29, 2007 4:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Sun Aug 26, 2007 7:21 pm    Post subject: Reply with quote

What's the ATI part # on the back of the remote? I also have a Remote Wonder II. Maybe I can share my generated configs (the premade ones I found didn't work for mine.)

What's the contents of /etc/lircd.conf and /etc/lircmd.conf?

My ATI part number is 5000024400.

One other thing: IRKick doesn't do anything by itself - did you associate some actions with it?


Last edited by danomac on Mon Aug 27, 2007 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Sun Aug 26, 2007 11:38 pm    Post subject: Reply with quote

Just looked, I have 5000024400, which is the same as on the wiki, which is what I use. So hmph.

I did associate some actions with irkick.

I almost feel like writing a ruby script to monitor mode2 output, I could get what I need in about an hour of work. :P Ultimately using lircd would be nicer though...
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Mon Aug 27, 2007 3:04 am    Post subject: Reply with quote

When I tried the one on the wiki my remote wouldn't work, which is why I made my own.

I also didn't use the module available in the kernel. I built it with the lirc package.

Oh, I do have the same remote as you (5000024400) but apparently I need to learn how to type. 8)

I can post my configs if you want.

Does /dev/lircd exist?
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Mon Aug 27, 2007 3:16 am    Post subject: Reply with quote

Yes I want it and yes it does exist.

I'm also [trying to] use the lirc_atiusb module.
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Mon Aug 27, 2007 3:41 am    Post subject: Reply with quote

Here's my lircd.conf:

Code:

begin remote

  name  ATI Remote Wonder II
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   8
  pre_data       0x0
  gap          204002
  toggle_bit      0


      begin codes
          button_a                 0x0278
          button_b                 0x0279
          power                    0x020C
          dvd                      0x0238
          tv                       0x0239
          help                     0x02BE
          min_max                  0x02D5
          drag                     0x02D0
          mouse_rclick             0x02AA
          mouse_lclick             0x02A9
          mouse_north              0x01FF
          mouse_northwest          0x21FF
          mouse_west               0x20FF
          mouse_southwest          0x22FF
          mouse_south              0x02FF
          mouse_southeast          0x12FF
          mouse_east               0x10FF
          mouse_northeast          0x11FF
          vol_up                   0x0210
          vol_down                 0x0211
          vol_mute                 0x020D
          ch_down                  0x0221
          ch_up                    0x0220
          numpad_1                 0x0201
          numpad_2                 0x0202
          numpad_3                 0x0203
          numpad_4                 0x0204
          numpad_5                 0x0205
          numpad_6                 0x0206
          numpad_7                 0x0207
          numpad_8                 0x0208
          numpad_9                 0x0209
          numpad_0                 0x0200
          contextmenu              0x0254
          setup                    0x0282
          ondemand                 0x0296
          info                     0x02F9
          ok                       0x025C
          up                       0x0258
          left                     0x025A
          down                     0x0259
          right                    0x025B
          button_c                 0x027A
          button_d                 0x027B
          button_e                 0x027C
          button_f                 0x027D
          play                     0x022C
          rewind                   0x0229
          forward                  0x0228
          record                   0x0237
          pause                    0x0230
          stop                     0x0231
      end codes

end remote


And my lircmd.conf:

Code:

#
# lircmd config file
#

# protocol to use
PROTOCOL IMPS/2

# ACCELERATOR start max multiplier
ACCELERATOR 1 30 1

# this button activates/deactivates mouse mode
# in this case it is the 'drag' (below power) button
# commenting out keeps it on
#ACTIVATE * drag
TOGGLE_ACTIVATE * drag

MOVE_N  * mouse_north
MOVE_NE * mouse_northeast
MOVE_E  * mouse_east
MOVE_SE * mouse_southeast
MOVE_S  * mouse_south
MOVE_SW * mouse_southwest
MOVE_W  * mouse_west
MOVE_NW * mouse_northwest
MOVE_IN * up
MOVE_OUT * down

BUTTON1_CLICK * mouse_lclick
BUTTON2_CLICK * mouse_rclick


Did you have anything in /var/log/messages or dmesg regarding lircd? Maybe it thinks something is missing.
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Mon Aug 27, 2007 3:39 pm    Post subject: Reply with quote

I tried your lircd.conf and restarted lircd and its the same situation. :/

Dmesg doesn't really say anything notable, and its working fine on the basic level anyways (since mode2 works).
Code:
lirc_dev: IR Remote Control driver registered, at major 61

lirc_atiusb: USB remote driver for LIRC $Revision: 1.61 $
lirc_atiusb: Paul Miller <pmiller9@users.sourceforge.net>
lirc_dev: lirc_register_plugin: sample_rate: 0
lirc_atiusb[4]:  on usb2:4
usbcore: registered new interface driver lirc_atiusb

_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Mon Aug 27, 2007 6:18 pm    Post subject: Reply with quote

What's the output of lsmod?

It could be that something needed is missing from the kernel... I think I had that problem once.

Also, what's the output of `dmesg | grep i2c` ?
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Mon Aug 27, 2007 7:52 pm    Post subject: Reply with quote

Code:
$ lsmod
Module                  Size  Used by
tun                     5568  2
lirc_atiusb            11376  0
lirc_dev               10232  1 lirc_atiusb
snd_emu10k1_synth       4544  0
snd_emux_synth         23168  1 snd_emu10k1_synth
snd_seq_virmidi         3264  1 snd_emux_synth
snd_seq_midi_emul       4032  1 snd_emux_synth
snd_seq_midi            3968  0
snd_pcm_oss            30656  0
snd_mixer_oss          10944  1 snd_pcm_oss
snd_seq_dummy           1540  0
snd_seq_oss            20352  0
snd_seq_midi_event      4032  3 snd_seq_virmidi,snd_seq_midi,snd_seq_oss
snd_seq                32544  9 snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
ipv6                  198440  34
ipt_REJECT              2752  2
xt_tcpudp               2624  2
iptable_filter          1664  1
ipt_MASQUERADE          1792  1
iptable_nat             4164  1
nf_nat                 11308  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4       9104  2 iptable_nat
nf_conntrack           35356  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nfnetlink               2696  3 nf_nat,nf_conntrack_ipv4,nf_conntrack
ip_tables              12520  2 iptable_filter,iptable_nat
x_tables                8136  5 ipt_REJECT,xt_tcpudp,ipt_MASQUERADE,iptable_nat,ip_tables
af_packet              12428  2
wacom                  12096  0
nvidiafb               32740  0
vgastate                6912  1 nvidiafb
nvidia               7566200  24
sk98lin               119072  0
snd_emu10k1           103648  2 snd_emu10k1_synth
firmware_class          4992  1 snd_emu10k1
snd_ac97_codec         83352  1 snd_emu10k1
ac97_bus                1984  1 snd_ac97_codec
snd_pcm                51272  3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_timer              13128  3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc          4752  2 snd_emu10k1,snd_pcm
snd_util_mem            2048  2 snd_emux_synth,snd_emu10k1
snd_hwdep               4552  2 snd_emux_synth,snd_emu10k1
k8temp                  3392  0
snd_mpu401              5288  0
snd_mpu401_uart         4160  1 snd_mpu401
snd_rawmidi            12928  4 snd_seq_virmidi,snd_seq_midi,snd_emu10k1,snd_mpu401_uart
snd_seq_device          4052  8 snd_emu10k1_synth,snd_emux_synth,snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd                    33896  17 snd_emux_synth,snd_seq_virmidi,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_emu10k1,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep,snd_mpu401,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               3936  1 snd
hwmon                   1672  1 k8temp
skge                   28368  0
pcspkr                  1984  0
floppy                 46568  0
forcedeth              32840  0
rtc                     7664  0
sg                     20904  0
analog                  6944  0
gameport                6864  1 analog
tg3                    88132  0
e1000                  93376  0
nfs                   168144  0
lockd                  45552  1 nfs
sunrpc                115080  2 nfs,lockd
reiserfs              176960  0
dm_mirror              13120  0
dm_mod                 33008  1 dm_mirror
scsi_wait_scan          1152  0
pdc_adma                4740  0
sata_mv                12616  0
ata_piix                8260  0
ahci                   13316  0
sata_qstor              4932  0
sata_vsc                4036  0
sata_uli                3076  0
sata_sis                4356  0
pata_sis                8196  1 sata_sis
sata_sx4                7940  0
sata_nv                11076  5
sata_via                5764  0
sata_svw                3844  0
sata_sil24              8132  0
sata_sil                5832  0
sata_promise            7236  0
libata                 73232  16 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,pata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
sbp2                   15240  0
ohci1394               24264  0
ieee1394               55184  2 sbp2,ohci1394
sl811_hcd               8704  0
usbhid                 17344  0
ohci_hcd               14596  0
uhci_hcd               16792  0
usb_storage            60544  0
ehci_hcd               21900  0
usbcore                85296  9 lirc_atiusb,wacom,sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd


dmesg | grep i2c doesn't output anything, though it appears that I did a dmesg -c at some point. I'll restart later and post it.
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Mon Aug 27, 2007 9:24 pm    Post subject: Reply with quote

Maybe I'm blind, but I don't see any i2c support built into the kernel or as a module - that and the module lirc_i2c is missing or not loaded. I'm away from my PC now, but I'm pretty sure lirc_i2c has to be loaded - and it might not load until you build i2c support into the kernel or as a module and load it.

I might be mixing the ati remote with my other IR remote, so I won't be able to confirm until later tonight.
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Mon Aug 27, 2007 11:46 pm    Post subject: Reply with quote

Ignore that last post - I'm pretty sure that was my other remote.

What version of lirc are you running? 0.8.2-r1 here.

Also, what's the output of `ls -l /dev/li*` ? And what's in /etc/conf.d/lircd ? Maybe the daemon is looking in the wrong place.
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Tue Aug 28, 2007 1:13 pm    Post subject: Reply with quote

Code:

ian@wasabi ~ $ ls /dev/li*
/dev/lircd  /dev/lircm

/dev/lirc:
0
ian@wasabi ~ $ cat /etc/conf.d/lircd
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc/0"


That all looks good too. :/
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Tue Aug 28, 2007 2:58 pm    Post subject: Reply with quote

Have you tried downgrading to the not-so-latest version? You didn't specify the version of lirc that you're running.

And yes, I'm getting pretty much out of ideas here! :(
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Tue Aug 28, 2007 8:20 pm    Post subject: Reply with quote

I restarted and now irw works. :S When I was setting it up it must have put lircd or the kernel in some sort of weird state.

Anyways thanks!

However the mouse cursor does not work. I copied your lircmd.conf and started lircmd and it doesn't do anything. Perhaps I should restart. ;) irw does show the cardinal directions when I press use the directional pad. I've commented and uncommented the toggle things and pressed the 'drag' key (aka the hand) and it doesn't move the cursor.

Also, is it possible to use the mode buttons (AUX 1, AUX 2 etc)?
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Tue Aug 28, 2007 10:53 pm    Post subject: Reply with quote

Unfortunately the AUX1 etc buttons won't work the way you think - they get treated like an ordinary button. I thought it'd be cool to program my tv in it too... but I gave up on that.

You need to setup xorg to use the mouse with the remote - xorg doesn't know it exists right now.

Add this InputDevice to your xorg.conf:

Code:

Section "InputDevice"
        Identifier  "LIRC-Mouse"
        Driver      "mouse"
        Option      "Device" "/dev/lircm"
        Option      "Protocol" "IMPS/2"
        Option      "SendCoreEvents"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "4 5"
EndSection


and modify your ServerLayout section, adding this line:

Code:

        InputDevice    "LIRC-Mouse"


If xorg acts weird with your existing mouse and the IR remote, change your Mouse device in the ServerLayout section to "AlwaysCore" e.g.

Code:

        InputDevice    "Mouse0" "AlwaysCore"  # THIS LINE IS AN EXAMPLE, edit your existing config, don't copy and paste!
        InputDevice    "LIRC-Mouse"


That mouse layout uses the Up and Down button as the mouse wheel when the mouse is active. :)
Back to top
View user's profile Send private message
eean
Guru
Guru


Joined: 10 Jun 2002
Posts: 355
Location: Kirksville, MO USA

PostPosted: Wed Aug 29, 2007 1:54 am    Post subject: Reply with quote

Thanks, that works great as well.

I find the AUX button's don't work as a normal button. Nothing happens in even mode2 when I press them. Probably lirc_atiusb doesn't implement the modes.

If they would work as a normal button that would be cool, irkick already has good mode switching support. Currently I switch to "Amarok mode" by pressing the A key.

Anyways, thanks again. Lirc is a lot better then ati_remote2's mapping everything to the keyboard, even if its a bit harder to setup. :)
_________________
Amarok - Rediscover your Music
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Wed Aug 29, 2007 6:06 am    Post subject: Reply with quote

No problem.

And yeah, the mouse thing is so much easier. I used to always drag my keyboard over to the couch, but with the remote I don't bother! You might want to add [solved] to the thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum