PDA

View Full Version : [LINUX] Asus Pundit P4-P5N9300 Media Center Remote Control and LIRC?


MP3HiFi
2009-03-28, 22:34
Hi together,

I bought an Asus Pundit with Onboard Nvidia 9300. XBMC is running quite well. Included is a remote that is called CIR.

In Ubuntu with lshal I figured out, that it is the following device.

udi = '/org/freedesktop/Hal/devices/pnp_ITE8713'
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'PnP Device (ITE8713)' (string)
info.subsystem = 'pnp' (string)
info.udi = '/org/freedesktop/Hal/devices/pnp_ITE8713' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'pnp' (string)
linux.sysfs_path = '/sys/devices/pnp0/00:09' (string)
pnp.id = 'ITE8713' (string)

Does anybody know how to integrate it with LIRC.

Thanks
Martin

SpearFish
2009-04-07, 18:58
Hi MP3...

I really do not have any answers to your questions.
However, you seem to at least have the initial setup to be able to solve one of my questions.

I wonder if there are any chances that you could remove the front panel of your P4-P5N9300 unit and photograph each angel of it.

Also, I am not getting any clear answers from Asus Website, about the eventual output possibillity for S-VHS. Can you answer if the unit comes "out of the box" with S-VHS output capabillity or not?

Appreciate your kind help,
SpearFish

MP3HiFi
2009-04-07, 19:40
Hi MP3...

I really do not have any answers to your questions.
However, you seem to at least have the initial setup to be able to solve one of my questions.

I wonder if there are any chances that you could remove the front panel of your P4-P5N9300 unit and photograph each angel of it.

Also, I am not getting any clear answers from Asus Website, about the eventual output possibillity for S-VHS. Can you answer if the unit comes "out of the box" with S-VHS output capabillity or not?

Appreciate your kind help,
SpearFish

Hi Spearfish, concerning to the photos I must say sorry. There is no VHS or SVHS output. Only VGA and HDMI.

Martin

MP3HiFi
2009-04-13, 20:26
Anybody else using the Pundit and have setup the remote.

Bye
Martin

decaturguy
2009-04-17, 21:04
It's not supported by Lirc :( according to comp.hardware.lirc message list it has IT8720F IR-receiver.

More info:
http://article.gmane.org/gmane.comp.hardware.lirc/7928/match=p4+p5n9300
http://search.gmane.org/search.php?group=gmane.comp.hardware.lirc&query=+P4-P5N9300

MP3HiFi
2009-04-17, 22:12
I hope it is supported in future. I have read the post and it seems there is somebody testing it.

If I would be familar with programming in Linux and especially Lirc in combination with hardware programming I would try to make a new driver for Lirc, but it seems to be a hard challenge to archieve that goal.

koscica
2009-06-10, 14:47
I got this barebone as well. Any news regarding lirc support?

nemo81
2009-07-16, 17:00
Soo, is there any news on this?

I have absolutely no clue as to how to set this up myself.

I got the Pundit today, got everything working but it would be nice if the buildt in IR would work aswell..

(im probably gonna get a Logitech DiNovo Mini, and i will have to deal with that when that time comes, but for now id like the remote to work:) )

Thanks for any feedback!

darkattraction
2009-07-27, 00:15
I bought a P4-P5N9300 and I can make lirc working :grin:
you have to use lirc-0.8.6pre1.tar.bz2 (http://www.lirc.org/software/snapshots/lirc-0.8.6pre1.tar.bz2) and choose IT87 device

but now the problem - the remote is a mceusb like (for lircd.conf) and it works with irw or even irexec or irxevent
but it does not work with XBMC :shocked:
I copied Lircmap.xml and remote.xml in good place (log file told me these files are loaded) but nothing works

my specs:
gentoo x86 kernel 2.6.29-r5
XBMC SVN rev 21875

darkattraction
2009-07-27, 22:13
Today I fixed 2 problems:grin:
- lirc: on gentoo, lirc creates a socket /var/run/lirc/lircd (irw read it too) and xbmc tries to read /dev/lircd socket
so I added in /etc/conf.d/lirc the option "-o /dev/lircd"
and I created a symlink /var/run/lirc/lircd to /dev/lircd as to check my remote with irw :cool:
- sound over hdmi: that worked but I can't fade music track (can't open audio device - dmix problem) and the solution is here http://www.xbmc.org/forum/showpost.php?p=259485&postcount=41

so if you want to use a pundit... go go and go :nod:

EDIT: my remote is an harmony 785 :)

preppie
2009-07-31, 20:20
Trying to use this on my Xbmc live pundit but keep getting "dialog not found!
Please read the documentation!!!" when typing ./configure. Need help

JS36
2009-08-04, 02:15
Trying to use this on my Xbmc live pundit but keep getting "dialog not found!
Please read the documentation!!!" when typing ./configure. Need help

Have you installed dialog?

JS36
2009-08-04, 06:13
btw, i can't get mine to work... Modules loaded propertly. I can use mode2 /dev/lirc0 but i dont get any output when using remote. irw doesnt work.
Anyone have a clue about what i can have forgotten? What files should i post? Hope someone can help me get to it workning couse i've tried everything i can think of... :(

TSlackM
2009-08-04, 10:36
Mode2 codes have to match the codes in lircd.conf
if they dont then you get no respons using irw,

so you probably have to find a lircd.conf that matches your remote

JS36
2009-08-05, 01:33
Mode2 codes have to match the codes in lircd.conf
if they dont then you get no response using irw,

so you probably have to find a lircd.conf that matches your remote
I have tried vlsystem blaster, MCE(configured harmony 555 to act like it) and the remote that comes with the barebone and nothing seems to work. Can it be something else? Can it be something wrong with the kernel? Im using Ubuntu jaunty but have built a later kernel in kernelcheck.

I have USB-UIRT IR receiver too that i cant get working either so it must be something with the config i think... cant be all receivers and remote that's the problem =\

The USB UIRT was configured to /dev/ttyUSB0 but the problem there was that lirc doesn't recognize the device as a IR-receiver... I really want this to work and have bought this second IR-receiver and used almost all wake time to try different configurations :(

darkattraction
2009-08-05, 13:05
which version of lirc do you use? as I posted before only the last version (lirc-0.8.6pre1.tar.bz2) recognize the irc chip

SmeagolL
2009-08-05, 16:07
I wonder if you could write up a step-by-step / tutorial for a noob? I got the same machine running in ubuntu. I would be very thankful!

JS36
2009-08-05, 18:49
sudo apt-get install dialog
Download lirc-0.8.6pre1 and move it to /usr/src
sudo su
tar xvfj lirc-0.8.6pre1
cd lirc-0.8.6pre1
sh setup.sh
Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (3) and "save configuration & run configure" in first menu
make
make install

This is my steps i do after remove the older lirc from apt-tree and rm -rf /usr/src/lirc*
I don't have dev/lirc0 or any config-files in /etc/lirc and can't run "sudo /etc/init.d/lircd start" couse it doesn't exist. Maybe i should do it again and look for errors when i compile?

JS36
2009-08-05, 22:13
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
[ 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 options lirc_it87 irq=11 io=0x0310 into /etc/modules?

Sorry for all questions.

JS36
2009-08-06, 01:16
Now i have uninstalled the new version and installed the one from synaptic, after that i compiled and installed the newer one over it.

AND IT'S WORKING FINALLY!

Configured with MCE and then changed the REMOTE_MODULES to IT87. Then i Use harmony 555 to act like the MCE remote.

# /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=""

darkattraction
2009-08-06, 01:23
happy to see it finally works :grin:

for the others:
if you installed from the source - there is no conf files - you have to run :
- "modprobe lirc_it87" that will create /dev/lirc0
- "lircd -d /dev/lirc0 -o /dev/lircd" to launch lirc daemon and create the socket lircd used by xbmc

anyway I'm very happy with the pundit (6s to have xbmc running :grin:), the only "problem" I couldn't resolve is to switch on the pundit with my remote ^^

JS36
2009-08-06, 23:27
I think the easiest way for ubuntu-users is to install lirc first with apt-get and then compile the newer version. If you have more than one kernel make sure the right one is /usr/src/linux couse otherwise the modules will be installed into another kernel.

Anyway i have learned alot with all this problems... And now... when im finally done with lirc my FloppyDTV TV-card doesen't want to work :D
Don't know if it's possible to connect the card from the "firewire 1" on the card to the firewireport..

SmeagolL
2009-08-06, 23:46
I give up. Could someone post a detailed how-to from step one? I can't get it to work :(

darkattraction
2009-08-07, 08:19
I give up. Could someone post a detailed how-to from step one? I can't get it to work :(

which distribution of Linux do you use? if gentoo I can help you but I don't know very well ubuntu - hope someone can help you :nod:

SmeagolL
2009-08-07, 09:16
im using ubuntu jaunty jackalope. Is it that different?

SmeagolL
2009-08-07, 11:30
you can always write one up for gentoo and ill see if i can make it work :)

JS36
2009-08-07, 12:32
you can always write one up for gentoo and ill see if i can make it work :)
I can help you. Don't give up yet, i had to spend around 20-30h to figure out how to do but learned alot so i think i can help. What type of remote do you use?

sudo apt-get install lirc (configure with the remote you want to use, i choose MCEUSB new Philips et al and emulated it with my logitech harmony 555)
sudo apt-get install dialog
sudo su
cd /usr/src
wget http://www.lirc.org/software/snapshots/lirc-0.8.6pre1.tar.bz2
tar xvfj lirc-0.8.6pre1
cd lirc-0.8.6pre1
sh setup.sh
Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (3) and "save configuration & run configure" in first menu
make
make install
nano /etc/modules add lirc_dev and lirc_it87
nano /etc/lirc/hardware.conf change to this REMOTE_MODULES="lirc_dev lirc_it87"
reboot or restart lirc and it should work

otherwise try modprobe lirc_dev && modprobe lirc_it87 and see if you get /dev/lirc0 and try sudo mode2 /dev/lirc0 and press buttons on remote

And just like darkattraction wrote on #10

so I added in /etc/conf.d/lirc the option "-o /dev/lircd"
and I created a symlink /var/run/lirc/lircd to /dev/lircd as to check my remote with irw
To get irw to work you have to do this.

SmeagolL
2009-08-07, 16:05
im trying to get a macbook/mac mini remote to work. I'll try on your instructions :)

SmeagolL
2009-08-07, 22:14
i got /dev/lirc0 but i can't run sudo mode2 /dev/lirc0. And i don't have that /etc/conf.d/lirc (reckon it's a gentoo thing?)

I'm about giving up on ubuntu, i wanted a simple media center but i can't get the remote working and not the spdif sound.

Do you have any problems in gentoo? maybe i should change or simply go to windows x)

JS36
2009-08-08, 00:56
i got /dev/lirc0 but i can't run sudo mode2 /dev/lirc0. And i don't have that /etc/conf.d/lirc (reckon it's a gentoo thing?)

I'm about giving up on ubuntu, i wanted a simple media center but i can't get the remote working and not the spdif sound.

Do you have any problems in gentoo? maybe i should change or simply go to windows x)
We'll get this thing working don't worry.

Have you tried "sudo modprobe lirc_it87" ? Does it load propertly?

What does "cat /var/log/daemon.log | grep lirc" show?

JS36
2009-08-08, 15:41
I just reinstalled ubuntu once again and followed my guide over there and found out it wasn't working(?) BUt then i did
chmod 666 /dev/lircd
mode2 -d /dev/lirc0
To get output from /dev/lirc0 you have to use -d flag and now it's working for me again.

Don't give up when you are so close.

SmeagolL
2009-08-09, 00:01
i restarted the daemon (no errors) and got:
Aug 8 22:55:13 xxx lircd-0.8.4a[1894]: caught signal
Aug 8 22:55:13 xxx lircd-0.8.4a[4532]: lircd(default) ready
in the daemon.log

i tried the chmod and mode2, which works, but i don't get anything when i try clicking the buttons on the remote. Maybe it's because im using a Apple MacBook remote instead of an Apple MacMini remote. I'd really like it if that remote worked but i also got a remote with the computer which says Asus (RC1462803/01B on the back), but i have no idea which one it is and what i should do to test it.

Thanks for all the help. When in ubuntu, did you by chance test the spdif audio?

JS36
2009-08-09, 11:42
i restarted the daemon (no errors) and got:
Aug 8 22:55:13 xxx lircd-0.8.4a[1894]: caught signal
Aug 8 22:55:13 xxx lircd-0.8.4a[4532]: lircd(default) ready
in the daemon.log

i tried the chmod and mode2, which works, but i don't get anything when i try clicking the buttons on the remote. Maybe it's because im using a Apple MacBook remote instead of an Apple MacMini remote. I'd really like it if that remote worked but i also got a remote with the computer which says Asus (RC1462803/01B on the back), but i have no idea which one it is and what i should do to test it.

Thanks for all the help. When in ubuntu, did you by chance test the spdif audio?

I don't know if the Apple remote works, is there more than one apple remote to choose between? Try others in that case. I haven't got the Asus remote to work.

To get my optical sound to work i did the following:

sudo nano /etc/modprobe.d/alsa-base.conf
and add this line last in the file: options snd-hda-intel model=6stack-dig
Reboot and it should work
Otherwise sudo alsamixer and unmute the IEC-devices

SmeagolL
2009-08-09, 21:27
You who have the asus pundit remote and have got it working, how does your hardware.conf look like? Which remote choise did you select?

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="ITE IT8712/IT8705 CIR port"
REMOTE_MODULES="lirc_dev lirc_it87"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF=""
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"

# 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=""

I'm a bit confused, first when i install the real version of lirc i select the remote and when i install the pre1 version i select the irDa receiver?

Thanks a lot with the sound, works perfectly!!

JS36
2009-08-10, 02:54
Ok good the sound works =)

First when i install lirc with "apt-get install" i choose the MCE remote couse when doing that install it creates the config-files configured for that remote. After that i only changed lirc_mceusb to lirc_it87 in REMOTE_MODULES couse i use the it87-reciever and not the MCEUSB and only wanted the config to be automaticaly configured to MCE-remote.

I think you only need to change the REMOTE_LIRCD_CONF=""
Look in http://lirc.sourceforge.net/remotes/apple/ and see if any remote there works, just put them in /usr/share/lirc/remotes/apple and link to them on that line like "apple/[configfile]".

I'm sure it'll work very soon for you. I think you just need a config for the remote.


# /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=""

SmeagolL
2009-08-10, 23:22
what does your lircd.conf look like?

What is the easiest way of reinstalling lirc? so i can get the options where i select the remote etc.

JS36
2009-08-11, 13:12
apt-get purge lirc and stand in the /usr/src/lirc-[version] and do make uninstall. Then you should be able to reinstall again but i don't think it's necessary to do a full reinstall.

#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.$
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

SmeagolL
2009-08-11, 22:58
my hardware.conf and lircd.conf looks exactly like yours' now but still no luck when i do mode2... Might be a stupid question but i don't need to do anything with the transmitter to be sure it is active and waiting for signals? Would be nice to know that thing is working atleast.

JS36
2009-08-12, 06:01
my hardware.conf and lircd.conf looks exactly like yours' now but still no luck when i do mode2... Might be a stupid question but i don't need to do anything with the transmitter to be sure it is active and waiting for signals? Would be nice to know that thing is working atleast.

Im not sure. But you have to do mode2 -d /dev/lirc0 with the -d, i forgot that first. When the config are configured to your remote it'll work. Try the config files from my link. I hope you have configured the remote to be an apple if you have apple ;)

Sorry i have to go now, i'll be back in a week...

bzkt
2009-08-18, 21:44
I can help you. Don't give up yet, i had to spend around 20-30h to figure out how to do but learned alot so i think i can help. What type of remote do you use?

sudo apt-get install lirc (configure with the remote you want to use, i choose MCEUSB new Philips et al and emulated it with my logitech harmony 555)
sudo apt-get install dialog
sudo su
cd /usr/src
wget http://www.lirc.org/software/snapshots/lirc-0.8.6pre1.tar.bz2
tar xvfj lirc-0.8.6pre1
cd lirc-0.8.6pre1
sh setup.sh
Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (3) and "save configuration & run configure" in first menu
make
make install
nano /etc/modules add lirc_dev and lirc_it87
nano /etc/lirc/hardware.conf change to this REMOTE_MODULES="lirc_dev lirc_it87"
reboot or restart lirc and it should work

otherwise try modprobe lirc_dev && modprobe lirc_it87 and see if you get /dev/lirc0 and try sudo mode2 /dev/lirc0 and press buttons on remote
I've tried all this, but I can't load the module lirc_it87. When I try 'modprobe lirc_it87' it says:
FATAL: Error inserting lirc_it87 (/lib/modules/2.6.28-11-generic/misc/lirc_it87.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg returns:
[684.490019] lirc_it87: Unknown symbol lirc_unregister_driver
[684.490126] lirc_it87: Unknown symbol lirc_register_driver

(modprobe lirc_dev works though...)

JS36
2009-08-19, 15:57
I've tried all this, but I can't load the module lirc_it87. When I try 'modprobe lirc_it87' it says:


dmesg returns:


(modprobe lirc_dev works though...)

Are you sure /usr/src/linux is linked to the kernel you are using when you are configuring and compiling the downloaded lirc?
Maybe you have the module lirc_it87 in the wrong kernel-dir? Try this and compile again.

sudo su
cd /usr/src
rm linux
ln -s /usr/src/[the kernel you use] linux

bzkt
2009-08-19, 19:15
Are you sure /usr/src/linux is linked to the kernel you are using when you are configuring and compiling the downloaded lirc?
Maybe you have the module lirc_it87 in the wrong kernel-dir? Try this and compile again.
Thanks. Now it works and I have /dev/lirc0. But when I try 'mode2 -d /dev/lirc0' and press buttons (tried both my Asus-remote and my Harmony 555) nothing happens :(

JS36
2009-08-19, 20:58
Thanks. Now it works and I have /dev/lirc0. But when I try 'mode2 -d /dev/lirc0' and press buttons (tried both my Asus-remote and my Harmony 555) nothing happens :(

You can config the harmony 555 to act like a MCEUSB remote if you want.
I don't know if anyone have got the asus-remote to work. This is my config. Try change it and configure Harmony 555 to act like it. I have harmony 555 working myself.

# /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=""

/etc/lirc/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.$
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

MP3HiFi
2009-08-19, 22:00
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?


root@HTPC:/usr/src/lirc-0.8.6pre1# sudo modprobe lirc_it87
FATAL: Error 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
FATAL: Error 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.462955] lirc_dev: IR Remote Control driver registered, major 61
[ 9.496906] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.496963] lirc_it87: no IT8705/12 found, exiting..
[ 13.170037] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 13.170096] lirc_it87: no IT8705/12 found, exiting..
[ 56.464328] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 56.464387] lirc_it87: no IT8705/12 found, exiting..
[ 773.990635] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 773.990712] lirc_it87: no IT8705/12 found, exiting..
[ 1019.134608] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 1019.134684] lirc_it87: no IT8705/12 found, exiting..




dmesg
[ 9.692055] lirc_dev: IR Remote Control driver registered, major 61
[ 9.694561] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.694622] lirc_it87: no IT8705/12 found, exiting..

MP3HiFi
2009-08-20, 18:58
Hello, no solution for the above problem?

JS36
2009-08-21, 00:35
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?


root@HTPC:/usr/src/lirc-0.8.6pre1# sudo modprobe lirc_it87
FATAL: Error 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
FATAL: Error 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.462955] lirc_dev: IR Remote Control driver registered, major 61
[ 9.496906] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.496963] lirc_it87: no IT8705/12 found, exiting..
[ 13.170037] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 13.170096] lirc_it87: no IT8705/12 found, exiting..
[ 56.464328] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 56.464387] lirc_it87: no IT8705/12 found, exiting..
[ 773.990635] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 773.990712] lirc_it87: no IT8705/12 found, exiting..
[ 1019.134608] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 1019.134684] lirc_it87: no IT8705/12 found, exiting..




dmesg
[ 9.692055] lirc_dev: IR Remote Control driver registered, major 61
[ 9.694561] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.694622] lirc_it87: no IT8705/12 found, exiting..


I think i had that error too once... Think i reinstalled and it worked... Are you sure you configured with right module before compiling?

kalimero
2009-08-30, 23:24
I am using the Pundit P4-P5N9300 with Ubuntu 9.04 and XBMC and would like to get the built-in IR receiver and remote control working. I have read through the tread, but I don't understand the instructions. Can anyone please write some detailed instructions on how to get the remote working with this setup?

For instance, be detailed on how to configure Lirc. I have not found any executable for Lirc. What are the config files that should be updated, and what parameters should be configured?
I have activated the IR in BIOS and installed Lirc 0.8.4 and Lirc-module-source from the package manager. But I cannot get it configured and I don't know how to install Lirc 0.8.6 on top of my installation.

JS36
2009-08-31, 00:35
I am using the Pundit P4-P5N9300 with Ubuntu 9.04 and XBMC and would like to get the built-in IR receiver and remote control working. I have read through the tread, but I don't understand the instructions. Can anyone please write some detailed instructions on how to get the remote working with this setup?

For instance, be detailed on how to configure Lirc. I have not found any executable for Lirc. What are the config files that should be updated, and what parameters should be configured?
I have activated the IR in BIOS and installed Lirc 0.8.4 and Lirc-module-source from the package manager. But I cannot get it configured and I don't know how to install Lirc 0.8.6 on top of my installation.

sudo apt-get install lirc (configure with the remote you want to use, i choose MCEUSB new Philips et al and emulated it with my logitech harmony 555) The remote that comes with the Asus Pundit is a MCEUSB compatible remote too.

sudo apt-get install dialog
sudo su
cd /usr/src
wget http://www.lirc.org/software/snapshots/lirc-0.8.6pre2.tar.bz2
tar xvfj lirc-0.8.6pre2
cd lirc-0.8.6pre2
sh setup.sh
Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (3) and "save configuration & run configure" in first menu
make
make install
nano /etc/modules add lirc_dev and lirc_it87
nano /etc/lirc/hardware.conf change to this REMOTE_MODULES="lirc_dev lirc_it87"
reboot and test with "sudo mode2 -d /dev/lirc0" and press buttons.

otherwise try modprobe lirc_dev && modprobe lirc_it87 and see if you get /dev/lirc0 and try sudo mode2 -d /dev/lirc0 and press buttons on remote.

To get it to work with xbmc you need to create and specify actions for the buttons in /usr/share/xbmc/system/Lircmap.xml

kalimero
2009-09-04, 22:12
sudo apt-get install lirc (configure with the remote you want to use, i choose MCEUSB new Philips et al and emulated it with my logitech harmony 555) The remote that comes with the Asus Pundit is a MCEUSB compatible remote too.

sudo apt-get install dialog
sudo su
cd /usr/src
wget http://www.lirc.org/software/snapshots/lirc-0.8.6pre2.tar.bz2
tar xvfj lirc-0.8.6pre2
cd lirc-0.8.6pre2
sh setup.sh
Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (3) and "save configuration & run configure" in first menu
make
make install
nano /etc/modules add lirc_dev and lirc_it87
nano /etc/lirc/hardware.conf change to this REMOTE_MODULES="lirc_dev lirc_it87"
reboot and test with "sudo mode2 -d /dev/lirc0" and press buttons.

otherwise try modprobe lirc_dev && modprobe lirc_it87 and see if you get /dev/lirc0 and try sudo mode2 -d /dev/lirc0 and press buttons on remote.

To get it to work with xbmc you need to create and specify actions for the buttons in /usr/share/xbmc/system/Lircmap.xml

I have no /dev/lirc0, so I cannot run mode2 -d /dev/lirc0. The only thing resembling lirc0 is /dev lircd.

When I run modprobe lirc_it87 I get
FATAL: Error inserting it_87 (/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko):Operation not permitted.

Any clues as to what may be wrong?

JS36
2009-09-06, 23:32
I have no /dev/lirc0, so I cannot run mode2 -d /dev/lirc0. The only thing resembling lirc0 is /dev lircd.

When I run modprobe lirc_it87 I get
FATAL: Error inserting it_87 (/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko):Operation not permitted.

Any clues as to what may be wrong?

Run like this couse you need to be root.
"sudo modprobe lirc_dev"
"sudo modprobe lirc_it87"

kalimero
2009-09-08, 22:28
Run like this couse you need to be root.
"sudo modprobe lirc_dev"
"sudo modprobe lirc_it87"

I have tried to run with sudo as well.
kalimero@HTPC:~$ sudo modprobe lirc_dev
[sudo] password for kalimero:
kalimero@HTPC:~$ sudo modprobe lirc_it87
FATAL: Error inserting lirc_it87 (/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko): No such device or address

So for the first command nothing happens (and no process seems to be started). For the second command I get the same error as other people in this thread have been getting.
Any ideas? I am grateful for all the help I can get as I really want to get the remote working for my HTPC.

JS36
2009-09-09, 11:01
Do you have any /usr/src/linux? Does it point to the kernel you are using?

kalimero
2009-09-09, 11:46
Do you have any /usr/src/linux? Does it point to the kernel you are using?

No, I don't have any /usr/src/linux pointer. I checked on another computer that is also running on Ubuntu 9.04 32-bit and it is missing there also. Should there always be a pointer to the kernel in /usr/src/linux ?
How can I set it up?

aslef
2009-09-09, 12:40
I have tried to run with sudo as well.
kalimero@HTPC:~$ sudo modprobe lirc_dev
[sudo] password for kalimero:
kalimero@HTPC:~$ sudo modprobe lirc_it87
FATAL: Error inserting lirc_it87 (/lib/modules/2.6.28-15-generic/kernel/ubuntu/lirc/lirc_it87/lirc_it87.ko): No such device or address

So for the first command nothing happens (and no process seems to be started). For the second command I get the same error as other people in this thread have been getting.

Sorry to say I have the same problem. I have the pointer to my linux kernel:
diff@erence:~$ ls -l /usr/src/
lrwxrwxrwx 1 root src 41 2009-09-09 09:43 linux -> /usr/src/linux-headers-2.6.28-15-generic/

diff@erence:~$ uname -r
2.6.28-15-generic

tail -f /var/log/messages;
Sep 9 10:56:13 myth kernel: [ 5565.588511] lirc_dev: lirc_register_plugin: sample_rate: 0
Sep 9 10:56:13 myth kernel: [ 5565.588596] lirc_it87: no IT8705/12 found, exiting..

I have compiled lirc a number of times and made all edits to config files.

However, I notice that the default IRQ channel for lirc is 4. Mine is set to 11 / 310. Can this be the cause of my problems and how do I go about to resolve it?

Thanks! (Awsome thread for fresh Pundit owners)

Asle

darkattraction
2009-09-09, 17:42
for all who have problems with

modprobe lirc_it87

do you have enable irc in the bios?

JS36
2009-09-09, 18:24
I didn't had to force to use some specific IRC-adress even if i tested it. Does the compilation works fine without errors?
I'm not sure if you must have a /usr/src/linux but i think the install uses that when installing the modules? Someone else might know that better.

sudo ln -s /usr/src/[kernel you are using] /usr/src/linux

aslef
2009-09-09, 22:34
for all who have problems with

modprobe lirc_it87

do you have enable irc in the bios?

I cannot find any irc setting in the BIOS. Am I missing something here?. I have enabled CIR port 310 and CIR IRQ 11.

Asle

darkattraction
2009-09-10, 12:22
I cannot find any irc setting in the BIOS. Am I missing something here?. I have enabled CIR port 310 and CIR IRQ 11.

Asle

No, it's okay
sorry to ask you the question but are you sure you downloaded the right version of lirc http://www.lirc.org/software/snapshots/lirc-0.8.6pre2.tar.bz2?

aslef
2009-09-10, 13:27
No, it's okay
sorry to ask you the question but are you sure you downloaded the right version of lirc http://www.lirc.org/software/snapshots/lirc-0.8.6pre2.tar.bz2?

Yes. That's the one. Compiles without any errors. Some warnings but nothing major.

Asle

kalimero
2009-09-10, 20:01
I have added the /usr/src linux pointer to the kernel. But just like aslef I am still getting the same error when trying sudo modprobe lirc_it87.

I have recompiled, but still with the same result...

darkattraction
2009-09-10, 20:50
can you give the result of this?

find /lib/modules/ -iname 'lirc*.ko'

darkattraction
2009-09-10, 20:55
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?


root@HTPC:/usr/src/lirc-0.8.6pre1# sudo modprobe lirc_it87
FATAL: Error 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
FATAL: Error 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.462955] lirc_dev: IR Remote Control driver registered, major 61
[ 9.496906] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.496963] lirc_it87: no IT8705/12 found, exiting..
[ 13.170037] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 13.170096] lirc_it87: no IT8705/12 found, exiting..
[ 56.464328] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 56.464387] lirc_it87: no IT8705/12 found, exiting..
[ 773.990635] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 773.990712] lirc_it87: no IT8705/12 found, exiting..
[ 1019.134608] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 1019.134684] lirc_it87: no IT8705/12 found, exiting..




dmesg
[ 9.692055] lirc_dev: IR Remote Control driver registered, major 61
[ 9.694561] lirc_dev: lirc_register_plugin: sample_rate: 0
[ 9.694622] lirc_it87: no IT8705/12 found, exiting..


something is strange here I check my dmesg output and I have
[ 2.419815] lirc_dev: IR Remote Control driver registered, major 61
[ 2.422030] lirc_dev: lirc_register_driver: sample_rate: 0
[ 2.422100] lirc_it87: found IT8720.
[ 2.422116] lirc_it87: set default io 0x310
[ 2.422131] lirc_it87: set default irq 0xb
[ 2.422166] lirc_it87: I/O port 0x0310, IRQ 11.
[ 2.422177] lirc_it87: Installed.


your module tries to find IT8705/12 and normally it's the IT820 :oo:

aslef
2009-09-10, 22:12
can you give the result of this?


~$ 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

darkattraction
2009-09-11, 00:53
~$ 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

modprobe -r lirc_dev
modprobe -r lirc_it87

I hope I was clear and you will succeed to make your remote working :;):

aslef
2009-09-11, 13:59
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 :;):

:~$ 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

darkattraction
2009-09-11, 18:12
you're welcome :cool:

davebv
2009-09-13, 17:13
:~$ 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?

davebv
2009-09-13, 18:06
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?

aslef
2009-09-17, 12:30
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...)

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

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.

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"

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=""

km__
2009-09-20, 14:36
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.

sutsan
2009-09-25, 21:26
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.

sutsan
2009-09-25, 22:07
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
[ 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 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.

sutsan
2009-10-03, 12:38
I managed to get Lirc working :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 :grin:

Thanks all for you input especially to darkattraction and JS36.

Hostis
2009-10-06, 01:03
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 :)

kalimero
2009-10-06, 11:03
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 :)

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.

kalimero
2009-10-06, 11:52
For all of you out there who bought a Pundit P4 and want use the built in IR receiver and shipped remote (or other generic MCEUSB remote) in Linux. The following solution has been tested and verified on Ubuntu 9.04 32-bit.

Thanks to Sutsan and other friends for finding and testing the solution!

Most of the commands in the following instructions must be run with root privileges.
Therefore, remember to do one of the following:
1) sudo su - will run all following commands in the terminal window as root (the prompt will look like: root@[computerName]:~#)
2) use sudo before each command you run that requires root privileges.

------------Pre-installation steps -----------
Enable your IR in BIOS:
Advanced → Onboard Device Configuration → CIR Port Adress=[310], CIR Port ICQ =[11]

link to the kernel you use
Make sure /usr/src/linux is linked to the kernel you are using, the following command gives the kernel you use:
uname -r

list linux which should be linked to the kernel you use:
ls -l /usr/src/linux

1) if it is linked to wrong kernel you need to remove the link and recreate it by:
cd /usr/src
rm linux
ln -s /usr/src/[the kernel you use] linux

2) or if linux link does not exist you need to create it by:
cd /usr/src
ln -s /usr/src/[the kernel you use] linux (example if kernel you use is 2.6.28-15-generic: ln -s /usr/src/linux-headers-2.6.28-15-generic/ linux)

Now the link should exist and should be correct.

-----------------------Installation of LIRC-----------------

apt-get install lirc (configure with the remote you want to use, i choose Windows Media Center / MCEUSB new Philips et al and emulated it with my logitech harmony 555) The remote that comes with the Asus Pundit is a MCEUSB compatible remote too.

-------------Lirc upgrade/installation to latest version of LIRC---------------

apt-get install dialog
cd /usr/src
wget http://lirc.org/software/snapshots/lirc-0.8.6pre2.tar.bz2
tar xvfj lirc-0.8.6pre2.tar.bz2
cd lirc-0.8.6pre2
sh setup.sh

Driver configuration(1) > IrDa/CIR hardware(6) > ITE IT8712/IT8705/IT8720 CIR port (5) and "save configuration & run configure" in first menu

make
make install
nano /etc/lirc/hardware.conf change to REMOTE_MODULES="lirc_dev lirc_it87" and REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb". (Exit with ctrl-x)

hardware.conf should look like this:
# /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=""


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

Test if /etc/lircd.conf exist and is linked to /etc/lirc/lircd.conf
If not, create a link to /etc/lirc/lircd.conf :
sudo ln -s /etc/lirc/lircd.conf /etc/lircd.conf

----------Post installation steps--------------------

Move/link the new modules to the right location:
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 above, do this:

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 you are not getting the above output lirc_it87:installed on correct port and irq, then you need to debug why the module is not loaded successfully. (Did I really follow all steps above?)

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.

A known issue is if you press suspend you will loose the remote's connection. Workaround is to restart the computer.

If for some reason you are upgrading your kernel you need to recompile and reinstall your modules again.

----------Customize the remote for XBMC--------------------
Copy the keymap and lircmap xml files for customization

cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata
cp /usr/share/xbmc/system/Keymap.xml ~/.xbmc/userdata

Edit the files if you want to customize the keymappings in XBMC .

km__
2009-10-11, 13:36
Now my remote is working perfect, thank you all for your extensive work in getting a complete list of steps available :)

aslef
2009-10-12, 20:50
For all of you out there who bought a Pundit P4 and want use the built in IR receiver and shipped remote (or other generic MCEUSB remote) in Linux. The following solution has been tested and verified on Ubuntu 9.04 32-bit.

YES! Thank you!

Asle

MrDVD
2009-10-31, 01:43
Hallo, is it possible to power on the pc with the remote ?

davebv
2009-10-31, 18:41
YES!!! thanks a lot, really. It works now!!

Jefman
2009-11-10, 11:02
Hi,

I have got it to work thanks to above instructions, but have anyone got it to work with the built in IR and Harmony 5xx remote ?

Sipowitz
2009-11-13, 15:48
Hi,

Many thanks to all who have contributed to this thread. Thanks to the instructions provided by kalimero I have been able to get as far as making my remote echo in mode2. So the IR reciever is definitley working. However when I try it with irw I get no response. I have redone the following commands as suggested by kalimero-

sudo cp /usr/src/lirc-0.8.6pre2/remotes/mceusb/lircd.conf.mceusb /etc/lirc/lircd.conf

and the problem is still not fixed. Does anyone have any advice where I should go from here?

Thanks