[LINUX] Asus Pundit P4-P5N9300 Media Center Remote Control and LIRC?
#73
Smile 
I managed to get Lirc working Big Grin on my Pundit P4 by doing the steps described by JS36 post#27 in this forum and the following steps:

For some reason ubuntu 9.04 is shipped with the modules lirc_dev and lirc_it87 and these old modules need to be replaced by the new/freshly complied ones that we created according to steps described by JS36 post#27.

make sure correct modules are loaded by:
find /lib/modules/ -iname 'lirc*.ko'
check the output: if the modules lirc_dev and lirc_it87 are listed twice for the same kernel you are using then you need to replace the old module with the new ones; you can check the path by doing: modprobe -v lirc_dev and modprobe -v lirc_it87, replace with new modules

Remeber which kernel version you are using and replace 2.6.28-11-generic below with the kernel version you are using.
uname -r gives you the kernel version you are using.

the new modules are installed in /lib/modules/2.6.28-11-generic/misc/

Rename old modules:
mv /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko.old
mv /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_dev/lirc_dev.ko /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_dev/lirc_dev.ko.old

Create symbolic links to the new modules:
ln -s /lib/modules/2.6.28-11-generic/misc/lirc_dev.ko /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_dev/lirc_dev.ko
ln -s /lib/modules/2.6.28-11-generic/misc/lirc_it87.ko /lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko


Create file lirc.conf
nano /etc/modprobe.d/lirc.conf
copy and paste the following 2 rows below:
alias char-major-61 lirc_dev
options lirc_it87 irq=11 io=0x310
Ctrl+X - Save and exit

Reboot system

---------Test installation--------------------

dmesg | grep lirc

you should get the following output:
root@htpc:~$ dmesg | grep lirc
[ 10.646498] lirc_dev: IR Remote Control driver registered, major 61
[ 10.652555] lirc_dev: lirc_register_driver: sample_rate: 0
[ 10.652615] lirc_it87: found IT8720.
[ 10.652629] lirc_it87: set default io 0x310
[ 10.652643] lirc_it87: set default irq 0xb
[ 10.652674] lirc_it87: I/O port 0x0310, IRQ 11.
[ 10.652686] lirc_it87: Installed.

If modules are loaded successfully then test remote by:
mode2 -d /dev/lirc0 and press buttons on remote (shipped Asus remote works perfectly)
you should get an output similar to the following in the terminal window when pressing the buttons on the remote:
space 34
pulse 174
space 42834
pulse 174
space 40786
pulse 174
space 42834
pulse 254
space 42754
pulse 182
space 42826
pulse 174
space 40786
pulse 2414
space 802
pulse 438
space 386
pulse 374

Ctrl+c to end test

Test irw - are the signals decoded correctly by lircd
irw /dev/lircd and start pressing buttons on the remote

you should get an output similar to the following:
000000037ff07bf2 00 Home mceusb
000000037ff07bf2 00 Home mceusb
000000037ff07bde 00 Right mceusb
000000037ff07bde 01 Right mceusb
000000037ff07bdf 00 Left mceusb
000000037ff07bdf 01 Left mceusb

Ctrl+c to end test

Start xbmc and test the remote control.
And it should work as it worked for me Big Grin

Thanks all for you input especially to darkattraction and JS36.
Reply


Messages In This Thread
A request.... - by SpearFish - 2009-04-07, 17:58
[No subject] - by MP3HiFi - 2009-04-07, 18:40
[No subject] - by MP3HiFi - 2009-04-13, 19:26
[No subject] - by decaturguy - 2009-04-17, 20:04
[No subject] - by MP3HiFi - 2009-04-17, 21:12
[No subject] - by koscica - 2009-06-10, 13:47
[No subject] - by nemo81 - 2009-07-16, 16:00
[No subject] - by darkattraction - 2009-07-26, 23:15
[No subject] - by darkattraction - 2009-07-27, 21:13
[No subject] - by preppie - 2009-07-31, 19:20
[No subject] - by JS36 - 2009-08-04, 01:15
[No subject] - by JS36 - 2009-08-04, 05:13
[No subject] - by TSlackM - 2009-08-04, 09:36
[No subject] - by JS36 - 2009-08-05, 00:33
[No subject] - by darkattraction - 2009-08-05, 12:05
n00b - by SmeagolL - 2009-08-05, 15:07
[No subject] - by JS36 - 2009-08-05, 17:49
[No subject] - by JS36 - 2009-08-05, 21:13
[No subject] - by JS36 - 2009-08-06, 00:16
[No subject] - by darkattraction - 2009-08-06, 00:23
[No subject] - by JS36 - 2009-08-06, 22:27
[No subject] - by SmeagolL - 2009-08-06, 22:46
[No subject] - by darkattraction - 2009-08-07, 07:19
[No subject] - by SmeagolL - 2009-08-07, 08:16
[No subject] - by SmeagolL - 2009-08-07, 10:30
[No subject] - by JS36 - 2009-08-07, 11:32
[No subject] - by SmeagolL - 2009-08-07, 15:05
[No subject] - by SmeagolL - 2009-08-07, 21:14
[No subject] - by JS36 - 2009-08-07, 23:56
[No subject] - by JS36 - 2009-08-08, 14:41
[No subject] - by SmeagolL - 2009-08-08, 23:01
[No subject] - by JS36 - 2009-08-09, 10:42
[No subject] - by SmeagolL - 2009-08-09, 20:27
[No subject] - by JS36 - 2009-08-10, 01:54
[No subject] - by SmeagolL - 2009-08-10, 22:22
[No subject] - by JS36 - 2009-08-11, 12:12
[No subject] - by SmeagolL - 2009-08-11, 21:58
[No subject] - by JS36 - 2009-08-12, 05:01
[No subject] - by bzkt - 2009-08-18, 20:44
[No subject] - by JS36 - 2009-08-19, 14:57
[No subject] - by bzkt - 2009-08-19, 18:15
[No subject] - by JS36 - 2009-08-19, 19:58
[No subject] - by MP3HiFi - 2009-08-19, 21:00
[No subject] - by MP3HiFi - 2009-08-20, 17:58
[No subject] - by JS36 - 2009-08-20, 23:35
[No subject] - by User 53076 - 2009-08-30, 22:24
[No subject] - by JS36 - 2009-08-30, 23:35
[No subject] - by User 53076 - 2009-09-04, 21:12
[No subject] - by JS36 - 2009-09-06, 22:32
[No subject] - by User 53076 - 2009-09-08, 21:28
[No subject] - by JS36 - 2009-09-09, 10:01
[No subject] - by User 53076 - 2009-09-09, 10:46
[No subject] - by aslef - 2009-09-09, 11:40
[No subject] - by darkattraction - 2009-09-09, 16:42
[No subject] - by JS36 - 2009-09-09, 17:24
[No subject] - by aslef - 2009-09-09, 21:34
[No subject] - by darkattraction - 2009-09-10, 11:22
[No subject] - by aslef - 2009-09-10, 12:27
[No subject] - by User 53076 - 2009-09-10, 19:01
[No subject] - by darkattraction - 2009-09-10, 19:50
[No subject] - by darkattraction - 2009-09-10, 19:55
[No subject] - by aslef - 2009-09-10, 21:12
[No subject] - by darkattraction - 2009-09-10, 23:53
[No subject] - by aslef - 2009-09-11, 12:59
[No subject] - by darkattraction - 2009-09-11, 17:12
[No subject] - by davebv - 2009-09-13, 16:13
[No subject] - by davebv - 2009-09-13, 17:06
Still no luck - by aslef - 2009-09-17, 11:30
[No subject] - by km__ - 2009-09-20, 13:36
[No subject] - by sutsan - 2009-09-25, 20:26
Same IRQ problem with Pundit - by sutsan - 2009-09-25, 21:07
LIRC Remote on Pundit P4 Working Finally! - by sutsan - 2009-10-03, 11:38
[No subject] - by Hostis - 2009-10-06, 00:03
[No subject] - by User 53076 - 2009-10-06, 10:03
Great work - by km__ - 2009-10-11, 12:36
[No subject] - by aslef - 2009-10-12, 19:50
[No subject] - by MrDVD - 2009-10-31, 00:43
[No subject] - by davebv - 2009-10-31, 17:41
[No subject] - by Jefman - 2009-11-10, 11:02
[No subject] - by Sipowitz - 2009-11-13, 15:48
[No subject] - by [Knuckles] - 2009-11-30, 15:42
[No subject] - by [Knuckles] - 2009-11-30, 15:44
[No subject] - by MP3HiFi - 2009-12-19, 00:41
[No subject] - by kreischweide - 2010-01-18, 16:25
[No subject] - by [Knuckles] - 2010-01-23, 13:05
[No subject] - by kreischweide - 2010-01-25, 16:29
[No subject] - by anmo6 - 2010-01-27, 23:31
[No subject] - by call-151 - 2010-01-29, 00:06
[No subject] - by nu1mlock - 2010-04-28, 10:13
[No subject] - by [Knuckles] - 2010-04-28, 13:41
help - by koscica - 2010-10-24, 02:06
yaVDR 0.3 and no success - by aslef - 2010-12-08, 21:11
[No subject] - by MP3HiFi - 2011-01-07, 23:54
Logout Mark Read Team Forum Stats Members Help
[LINUX] Asus Pundit P4-P5N9300 Media Center Remote Control and LIRC?2