• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
[LINUX] Asus Pundit P4-P5N9300 Media Center Remote Control and LIRC?
#61
can you give the result of this?

Quote:find /lib/modules/ -iname 'lirc*.ko'
Reply
#62
MP3HiFi Wrote:Hi,

mine isn't working right now.

I downloaded and installed the new lirc. The file /lib/modules/2.6.28-15-server/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko exists.
Any idea?

PHP Code:
root@HTPC:/usr/src/lirc-0.8.6pre1# sudo modprobe lirc_it87
FATALError inserting lirc_it87 (/lib/modules/2.6.28-15-server/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko): No such device or address
root
@HTPC:/usr/src/lirc-0.8.6pre1# mc

root@HTPC:/usr/src/lirc-0.8.6pre1# mc

root@HTPC:/usr/src/lirc-0.8.6pre1# sudo modprobe lirc_it87
FATALError inserting lirc_it87 (/lib/modules/2.6.28-15-server/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko): No such device or address
root
@HTPC:/usr/src/lirc-0.8.6pre1# dmesg |grep lirc
[    9.462955lirc_devIR Remote Control driver registeredmajor 61
[    9.496906lirc_devlirc_register_pluginsample_rate0
[    9.496963lirc_it87no IT8705/12 foundexiting..
[   
13.170037lirc_devlirc_register_pluginsample_rate0
[   13.170096lirc_it87no IT8705/12 foundexiting..
[   
56.464328lirc_devlirc_register_pluginsample_rate0
[   56.464387lirc_it87no IT8705/12 foundexiting..
[  
773.990635lirc_devlirc_register_pluginsample_rate0
[  773.990712lirc_it87no IT8705/12 foundexiting..
1019.134608lirc_devlirc_register_pluginsample_rate0
1019.134684lirc_it87no IT8705/12 foundexiting.. 
PHP Code:
dmesg
[    9.692055lirc_devIR Remote Control driver registeredmajor 61 
[    9.694561lirc_devlirc_register_pluginsample_rate0
[    9.694622lirc_it87no IT8705/12 foundexiting.. 

something is strange here I check my dmesg output and I have
PHP Code:
[    2.419815lirc_devIR Remote Control driver registeredmajor 61 
[    2.422030lirc_devlirc_register_driversample_rate0
[    2.422100lirc_it87found IT8720.
[    
2.422116lirc_it87set default io 0x310
[    2.422131lirc_it87set default irq 0xb
[    2.422166lirc_it87I/O port 0x0310IRQ 11.
[    2.422177lirc_it87Installed

your module tries to find IT8705/12 and normally it's the IT820 Oo
Reply
#63
darkattraction Wrote:can you give the result of this?

Code:
~$ uname -r
2.6.28-15-generic

~$ find /lib/modules/ -iname 'lirc*.ko'    
/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_gpio/lirc_gpio.ko
/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_serial_igor/lirc_serial_igor.ko
/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_imon/lirc_imon.ko              
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_serial.ko                            
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_dev.ko                              
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_mceusb.ko                            
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_ite8709.ko                          
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_mceusb2.ko                          
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_streamzap.ko                        
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_atiusb.ko                            
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_sir.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_i2c.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_sasem.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_igorplugusb.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_bt829.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_cmdir.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_pvr150.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_it87.ko
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_ttusbir.ko
/lib/modules/2.6.28-15-generic/misc/lirc_dev.ko
/lib/modules/2.6.28-15-generic/misc/lirc_it87.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_atiusb/lirc_atiusb.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_serial/lirc_serial.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_bt829/lirc_bt829.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_gpio/lirc_gpio.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_ttusbir/lirc_ttusbir.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_pvr150/lirc_pvr150.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_serial_igor/lirc_serial_igor.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_igorplugusb/lirc_igorplugusb.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_sir/lirc_sir.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_mceusb/lirc_mceusb.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_mceusb2/lirc_mceusb2.ko
/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_sasem/lirc_sasem.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_imon/lirc_imon.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_i2c/lirc_i2c.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_streamzap/lirc_streamzap.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_cmdir/lirc_cmdir.ko
/lib/modules/2.6.28-11-generic/kernel/ubuntu/lirc/lirc_dev/lirc_dev.ko
/lib/modules/2.6.28-14-generic/kernel/ubuntu/lirc/lirc_gpio/lirc_gpio.ko
/lib/modules/2.6.28-14-generic/kernel/ubuntu/lirc/lirc_serial_igor/lirc_serial_igor.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_serial.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_dev.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_imon.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_mceusb.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_ite8709.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_mceusb2.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_streamzap.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_atiusb.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_sir.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_i2c.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_sasem.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_igorplugusb.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_bt829.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_cmdir.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_pvr150.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_it87.ko
/lib/modules/2.6.28-14-generic/updates/dkms/lirc_ttusbir.ko
/lib/modules/2.6.28-14-generic/misc/lirc_dev.ko
/lib/modules/2.6.28-14-generic/misc/lirc_it87.ko

Asle
Reply
#64
aslef Wrote:
Code:
~$ uname -r
2.6.28-15-generic

~$ find /lib/modules/ -iname 'lirc*.ko'    
..
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_dev.ko                              
/lib/modules/2.6.28-15-generic/updates/dkms/lirc_it87.ko
..
/lib/modules/2.6.28-15-generic/misc/lirc_dev.ko
/lib/modules/2.6.28-15-generic/misc/lirc_it87.ko

Asle

as you can notice you have twice lirc_dev and lirc_it87
so when you try to mount these modules, you charge the wrong ones I think ..
copy the old one as lirc_dev.ko.old and lirc_it87.ko.old (you can check the path by doing modprobe -v lirc_it87 for example) and replace them by the new ones (those that are in the other path)

be careful, before doing that unload the previous modules if they are already in memory by doing
Code:
modprobe -r lirc_dev
modprobe -r lirc_it87
I hope I was clear and you will succeed to make your remote working Wink
Reply
#65
Smile 
darkattraction Wrote:as you can notice you have twice lirc_dev and lirc_it87
so when you try to mount these modules, you charge the wrong ones I think ..

I hope I was clear and you will succeed to make your remote working Wink

Code:
:~$ dmesg|grep lirc
[    7.711430] lirc_dev: IR Remote Control driver registered, major 61
[    7.716696] lirc_dev: lirc_register_driver: sample_rate: 0
[    7.716762] lirc_it87: found IT8720.
[    7.716776] lirc_it87: set default io 0x310
[    7.716790] lirc_it87: set default irq 0x7
[    7.716824] lirc_it87: I/O port 0x0310, IRQ 7.
[    7.716834] lirc_it87: Installed.
:~$ ls /dev/lirc
lirc0  lircd

I've gotten a step further. Brilliant!

Asle
Reply
#66
you're welcome Cool
Reply
#67
aslef Wrote:
Code:
:~$ dmesg|grep lirc
[    7.711430] lirc_dev: IR Remote Control driver registered, major 61
[    7.716696] lirc_dev: lirc_register_driver: sample_rate: 0
[    7.716762] lirc_it87: found IT8720.
[    7.716776] lirc_it87: set default io 0x310
[    7.716790] lirc_it87: set default irq 0x7
[    7.716824] lirc_it87: I/O port 0x0310, IRQ 7.
[    7.716834] lirc_it87: Installed.
:~$ ls /dev/lirc
lirc0  lircd

I've gotten a step further. Brilliant!

Asle

I just got to this step, but when doing sudo mode2 -d /dev/lirc0 i do not get anything. I modified the /etc/lirc/hardware.conf also. What did I missed?
Reply
#68
I also see IRQ 11 or 5 in the BIOS, but the dmesg says it's irq 7. How may I change the irq in lirc? or is that correct?
Reply
#69
I've gotten a bit further. The modules are loading properly although reporting IRQ 7 instead of 11 as the BIOS says. I can enter mode2 ("sudo mode2 -d /dev/lirc0") but I get no output when pressing the buttons. (I've checked the battery of the remote too...)

Code:
cat /var/log/daemon.log | grep lirc
Sep 15 13:29:52 myth lircd-0.8.4a[1821]: caught signal
Sep 15 13:47:57 myth lircd-0.8.4a[1814]: caught signal
Sep 15 13:48:05 myth lircd-0.8.4a[4379]: lircd(default) ready
Sep 15 13:49:03 myth lircd-0.8.4a[4379]: caught signal
Sep 15 13:49:21 myth lircd-0.8.4a[4421]: lircd(default) ready
Sep 15 13:49:40 myth lircd-0.8.4a[4421]: caught signal
Sep 15 13:50:06 myth lircd-0.8.4a[4595]: lircd(default) ready
Sep 15 13:51:22 myth lircd-0.8.4a[4595]: caught signal
Sep 15 13:52:58 myth lircd-0.8.4a[4640]: lircd(default) ready
Sep 15 14:01:44 myth lircd-0.8.4a[4640]: accepted new client on /dev/lircd
Sep 15 14:04:54 myth lircd-0.8.4a[4640]: removed client
Sep 15 14:11:12 myth lircd-0.8.4a[4640]: accepted new client on /dev/lircd
Sep 15 14:11:35 myth lircd-0.8.4a[4640]: removed client
Sep 15 14:47:19 myth lircd-0.8.4a[4640]: caught signal

Code:
dmesg |grep lirc
[    7.658125] lirc_dev: IR Remote Control driver registered, major 61
[    7.663241] lirc_dev: lirc_register_driver: sample_rate: 0
[    7.663301] lirc_it87: found IT8720.
[    7.663315] lirc_it87: set default io 0x310
[    7.663329] lirc_it87: set default irq 0x7
[    7.663361] lirc_it87: I/O port 0x0310, IRQ 7.
[    7.663370] lirc_it87: Installed.

Code:
cat /etc/lircd.conf
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Windows Media Center Remotes (new version Philips et al.) remote:
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

Code:
cat /etc/lirc/hardware.conf                                                                
# /etc/lirc/hardware.conf                                                                                
#                                                                                                        
#Chosen Remote Control                                                                                  
REMOTE="Windows Media Center Remotes (new version Philips et al.)"                                      
REMOTE_MODULES="lirc_dev lirc_it87"                                                                      
REMOTE_DRIVER=""                                                                                        
REMOTE_DEVICE="/dev/lirc0"                                                                              
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"                                                            
REMOTE_LIRCD_ARGS=""                                                                                    

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Reply
#70
aslef Wrote:I've gotten a bit further. The modules are loading properly although reporting IRQ 7 instead of 11 as the BIOS says. I can enter mode2 ("sudo mode2 -d /dev/lirc0") but I get no output when pressing the buttons. (I've checked the battery of the remote too...)

I have the same problem. mode2 reports nothing when I press the buttons on my remote control. (The one bundled with Pundit P4). Is there anyone that successfully got that particular remote working and can share the hardware.conf and lircd.conf files with us? I am using lircd 0.8.6 compiled on top of Ubuntu's aptitude version.
Reply
#71
Hi Aslef I'm new to this forum and I have same HW, are using the exact same setup and are experiencing the exact same problem.
After reading the installation notes on lirc site http://www.lirc.org/html/install.html...
did you follow the post installation steps, ie
To allow other than root can connect to lircd
chmod 666 /var/run/lirc/lircd

and update /etc/conf.modules with:
alias char-major-61 lirc_it87
options lirc_it87 irq=11 io=0x310 or options lirc_it87 irq=0xb io=0x310
not sure if this can solve the problem, but I'm not able to test this myself since I'm not at home at the moment and I'm curious if this will solve the problem.
Reply
#72
JS36 Wrote:Ok now i have reinstalled ubuntu jaunty again and haven't touched the synaptic lirc. I added this to /etc/modules
lirc_dev
lirc_it87

This gave me /etc/lirc0 now but still no /dev/lirc or /dev/lircd can i just link them from /usr/local/sbin where i found them?

dmesg |grep lirc
Code:
[  175.590388] lirc_dev: IR Remote Control driver registered, major 61
[  180.828797] lirc_dev: lirc_register_driver: sample_rate: 0
[  180.828862] lirc_it87: found IT8720.
[  180.828876] lirc_it87: set default io 0x310
[  180.828890] lirc_it87: set default irq 0x7
[  180.828922] lirc_it87: I/O port 0x0310, IRQ 7.

Can this be an issue ? In bios my CIR have IRQ11 and it's only possible to choose IRQ 11 or 5. Can i force it to choose IRQ 11 by adding
Code:
options lirc_it87 irq=11 io=0x0310
into /etc/modules?

Sorry for all questions.

Hi I'm experiencing the same problem with Pundit getting the wrong IRQ=7, did you resolve it and in that case how? or was it the "chmod 666 /dev/lircd" that resolved the problem?
I've got a Harmony 525 how did you set up your H555 remote since the shipped remote seems difficult to get working.
Reply
#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
#74
thx for the good job sutsan.

But it would be really nice for you to post a detailed step by step guide from the beginning.

I had my friend over here and he managed to do this for me. But we got stucked here

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

Nothing happens when we pressed buttons at this stage.
Don´t know what else i can do for now.

bra gjort btw Smile
Reply
#75
Hostis Wrote:thx for the good job sutsan.

But it would be really nice for you to post a detailed step by step guide from the beginning.

I had my friend over here and he managed to do this for me. But we got stucked here

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

Nothing happens when we pressed buttons at this stage.
Don´t know what else i can do for now.

bra gjort btw Smile

If the mode2 is echoing the keystrokes on your remote, but you get no echo from irw, I guess you missed this step:

Choose the right remote control by creating the /etc/lirc/lircd.conf file:
sudo cp /usr/src/lirc-0.8.6pre2/remotes/mceusb/lircd.conf.mceusb /etc/lirc/lircd.conf

I am in the process of compiling a step-by-step instruction on how to get the remote working, just hang in there... I will post it on this forum soon.
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7

Logout Mark Read Team Forum Stats Members Help
[LINUX] Asus Pundit P4-P5N9300 Media Center Remote Control and LIRC?2