I made some progress testing the new module for the WPC876xL chipset.
First I uninstalled lirc and removed the lirc folder from /lib/modules/2.6.22-16-generic/ubuntu/media
Code:
sudo apt-get --purge remove lirc
sudo rm -rf /lib/modules/2.6.22-16-generic/ubuntu/media/lirc
Then I logged to the cvs on sourgeforge, downloaded and updated the latest version of lirc
Code:
cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc
cd lirc
cvs update
Finally I compiled lirc while selecting the WPC876L (Acer) in the setup.sh menu only with the X-Windows tools option checked
Code:
./autogen.sh
./setup.sh
make
sudo make install
After the installation I have the following lirc devices listed on /dev/
Code:
ls -l /dev/lirc*
crw-r--r-- 1 root root 61, 0 2009-03-13 21:08 /dev/lirc
prw-r--r-- 1 root root 0 2009-03-13 21:09 /dev/lircd
prw-r--r-- 1 root root 0 2009-03-13 21:09 /dev/lircm
When I load the module lirc_wpc8769l
Code:
sudo modprobe lirc_wpc8769l
the modules lirc_wpc8769l and lirc_dev load normally
Code:
lsmod | grep lirc
lirc_wpc8769l 13200 0
lirc_dev 20296 1 lirc_wpc8769l
and lirc0 is added in the /dev/
Code:
ls -l /dev/lirc*
crw-r--r-- 1 root root 61, 0 2009-03-13 21:08 /dev/lirc
crw-rw---- 1 root root 61, 0 2009-03-13 21:25 /dev/lirc0
prw-r--r-- 1 root root 0 2009-03-13 21:09 /dev/lircd
prw-r--r-- 1 root root 0 2009-03-13 21:09 /dev/lircm
So then I start mode2, press some buttons and I get output
Code:
sudo mode2
pulse 950
space 850
pulse 1850
space 800
pulse 950
space 850
pulse 950
space 850
pulse 900
space 850
pulse 950
space 850
pulse 900
space 900
pulse 900
space 850
pulse 950
space 850
pulse 900
space 850
pulse 950
space 850
pulse 900
space 1750
pulse 950
So far so good. Now I start lirc
Code:
sudo lircd
ps -A | grep lirc
12942 ? 00:00:00 lircd
I don't know why but lirc does not have a folder in /etc/ and has no script in /etc/init.d/ to control it from there. It only has a lircd.conf file in /etc/ which I changed to the one I use on my desktop PC for the same remote.
Then I check with irw the remote
Code:
sudo irw
000000000000102e 00 FULL_SCREEN Hauppauge
0000000000001021 00 CH- Hauppauge
0000000000001020 00 CH+ Hauppauge
0000000000001010 00 VOL+ Hauppauge
0000000000001011 00 VOL- Hauppauge
After a while I cannot run irw. Sometimes I'm able to run it more than once so I cannot tell why this is happening.
Code:
sudo irw
connect: Connection refused
Also I cannot unload the module cause after I run
Code:
sudo modprobe -r lirc_wpc8769l
the command never completes. The system is not affected but when I restart or shutdown, the system closes as if I forced power down manually through the power button.
When that happens before I restart the system I check the modules
Code:
lsmod | grep lirc
lirc_wpc8769l 13200 0
lirc_dev 20296 3 lirc_wpc8769l
the "Used by" column has increased to 3.
It seems some kind of deadlock to me. So in every test the problem starts after I load the lircd.
After a system restart I load the modules again but mode2 cannot start
Code:
sudo mode2
mode2: could not get file information for /dev/lirc
mode2: default_init(): No such file or directory
and the lirc files in /dev/ are
Code:
ls -l /dev/lirc*
crw-rw---- 1 root root 61, 0 2009-03-13 22:39 /dev/lirc0
If I start lircd
the files in /dev/ are
Code:
ls -l /dev/lirc*
crw-rw---- 1 root root 61, 0 2009-03-13 22:39 /dev/lirc0
srw-rw-rw- 1 root root 0 2009-03-13 22:40 /dev/lircd
I tried to create lirc in /dev/ with
Code:
sudo mknod /dev/lirc c 61 0
but still the problem with mode2 continues. Also if I start irw after I started the lirc daemon I don't get any output.
I tried this a couple of times and always I start to have problems after I load the lirc daemon. The "Used by" count in the lsmod output for lirc_wpc8769l is always 3 after the lock of the modules. The only way to make things work again with mode2 is to enter the cvs lirc directory and
Code:
sudo make uninstall
sudo make install
Somehow make creates the correct lirc files in /dev/ and mode2 starts again after I load the modules.
If it helps below is my lircd.conf
Code:
#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#
begin remote
name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100
one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2
begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes
end remote
Bookmarks