Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

lirc and kernel 2.6.22 [SOLVED]

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
techuser
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sat Mar 31, 2007 9:05 pm

lirc and kernel 2.6.22 [SOLVED]

  • Quote

Post by techuser » Thu Aug 30, 2007 9:39 am

Hello;

I cannot make my avermevia infrared to work. I used to work well. But sind the new 2.6.22 kernel is not working:

I used tu setupt lirc as avermedia infrared and:
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc/0"


and loading module lirc_dev and lirc_gpio used to work everything well.

but now I get:

lirc_dev: IR Remote Control driver registered, at major 61
lirc_gpio: Unknown symbol bttv_get_cardinfo
lirc_gpio: Unknown symbol bttv_get_gpio_queue



Looking around I discovered that is a lirc problem, that we must wait to lirc developers to fix it for the new 2.6.22 kernel.

I read more and I saw that is possible to use infrared as an input device "dev/input" .

Then I recompiled lirc with options:
LIRC_DEVICES="devinput"

in make.conf

because I saw that the infrared is '/class/input/input3' :

cat /proc/bus/input/devices
[...]
I: Bus=0001 Vendor=1461 Product=0008 Version=0001
N: Name="bttv IR (card=13)"
P: Phys=pci-0000:02:04.0/ir0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=100003
B: KEY=40fc310 82140000 0 0 0 0 2048000 180 4001 9e0000 0 0 ffc.

The I configured lirc as:

# Options to pass to the lircd process
LIRC_DEVICE="/dev/input/event3"
LIRC_DRIVER="dev/input"



But, when I start lircmd daemon my keyboard stops working, only mouse is working.

lircd.conf and lircmd.conf are configured..

And even with no lirc cmodules or lirc started I can see in shells that the infrared is working, because when I press numbers in the remote control they appear in the shells

any solution, do I must to wait lirc to fix the software for kernel 2.6.22??

any help..?
thanks
Last edited by techuser on Fri Sep 21, 2007 9:26 am, edited 2 times in total.
Top
redpenguin
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Mon May 22, 2006 3:15 pm

  • Quote

Post by redpenguin » Thu Aug 30, 2007 10:09 am

Did you try downgrading to lirc-0.8.1? It helped in my case.
Top
techuser
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sat Mar 31, 2007 9:05 pm

downgrading

  • Quote

Post by techuser » Thu Aug 30, 2007 11:45 am

if I downgrade lirc to 0.8.1 is the same, lirc_gpio does not load, and lircmd makes my keyboard to block.

then I came back to last lirc version, and recompiled with devinput driver.
I noticed that irrecord was working

then I created a new lircd.conf file with irrecord as:

irrecord -H dev/input -d /dev/input/event3 lircd.conf

I copied it to /etc/lircd.conf and started lircd but no answer from xine..

I cannot test LIRC-mouse in xorg.conf because the keyboard problem.

if I start lircmd my keyboard gets broken, with 0.81 and last versions of lirc.


lirc config files:

cat /etc/conf.d/lircd
# Options to pass to the lircd process
LIRC_DEVICE="/dev/input/event3"
LIRC_DRIVER="dev/input"

cat /etc/lircd.conf
[...]
begin remote

name lircd
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 133295
toggle_bit_mask 0x100A8

begin codes
AUTOSCAN 0x00D9
SOURCE 0x0189
NEXT 0x0191
PREVIO 0x018F
TELETEXT 0x0184
FEW 0x0190
REW 0x018E
PLAY/PAUSE 0x0077
STOP 0x0080
PLAY 0x00CF
REC 0x00A7
AUDIO 0x0188
MUTE 0x0071
CHDOWN 0x0193
CHUP 0x0192
VOLDOWN 0x0072
VOLUP 0x0073
FULLSCREEN 0x0174
SNAPSHOT 0x019A
16PREV 0x00D2
R 0x00A8
L 0x0172
TV/FM 0x0179
POWER 0x0074
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
end codes

end remote



.lircrc


##
# xine key bindings.
# Automatically generated by xine-ui version 0.99.5cvs.
##

# start playback
begin
remote = lircd
button = PLAY
prog = xine
repeat = 0
config = Play
end

# playback pause toggle
begin
remote = lircd
button = PLAY/PAUSE
prog = xine
repeat = 0
config = Pause
end

# stop playback
begin
remote = lircd
button = STOP
prog = xine
repeat = 0
config = Stop
end

# take a snapshot
begin
remote = lircd
button = SNAPSHOT
prog = xine
repeat = 0
config = Snapshot
end


# select and play next MRL in the playlist
begin
remote = lircd
button = NEXT
prog = xine
repeat = 0
config = NextMrl
end

# select and play previous MRL in the playlist
begin
remote = lircd
button = PREVIO
prog = xine
repeat = 0
config = PriorMrl
end

# set position to -60 seconds in current stream
begin
remote = lircd
button = REW
prog = xine
repeat = 0
config = SeekRelative-60
end

# set position to +60 seconds in current stream
begin
remote = lircd
button = FEW
prog = xine
repeat = 0
config = SeekRelative+60
end



# set position to 50% of current stream
begin
remote = lircd
button = TELETEXT
prog = xine
repeat = 0
config = SetPosition50%
end


# increment playback speed
begin
remote = lircd
button = CHUP
prog = xine
repeat = 0
config = SpeedFaster
end

# decrement playback speed
begin
remote = lircd
button = CHDOWN
prog = xine
repeat = 0
config = SpeedSlower
end


# increment audio volume
begin
remote = lircd
button = VOLUP
prog = xine
repeat = 1
config = Volume+
end

# decrement audio volume
begin
remote = lircd
button = VOLDOWN
prog = xine
repeat = 1
config = Volume-
end

etc..etc..
Top
techuser
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sat Mar 31, 2007 9:05 pm

news

  • Quote

Post by techuser » Thu Aug 30, 2007 12:02 pm

I just discovered something new:

If I start lircd and xine, wile xine is on my keyboard is blocked, and I think that infrared too, if I close xine my keyboard works well...

is like /dev/inpunt/event3 is blocking the keyboard, but they are different devices in proc:

cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=40001
B: SND=6

I: Bus=0003 Vendor=046d Product=c03e Version=0110
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103


I: Bus=0001 Vendor=1461 Product=0008 Version=0001
N: Name="bttv IR (card=13)"
P: Phys=pci-0000:02:04.0/ir0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=100003
B: KEY=40fc310 82140000 0 0 0 0 2048000 180 4001 9e0000 0 0 ffc
Top
redpenguin
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Mon May 22, 2006 3:15 pm

  • Quote

Post by redpenguin » Thu Aug 30, 2007 12:31 pm

I guess I'm out of ideas then. Downgrading lirc helped with my Pinnacle remote and 2.6.22 kernel :/
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Sat Sep 01, 2007 5:45 pm

I'm having problems with my firefly-mini and found this thread.

These lines:
lirc_dev: IR Remote Control driver registered, at major 61
lirc_gpio: Unknown symbol bttv_get_cardinfo
lirc_gpio: Unknown symbol bttv_get_gpio_queue

imply that you are missing a kernel module which is necessary for lirc to work. Its probably the bttv driver. Try compiling it into the kernel.

Raydude
Some day there will only be free software.
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Sun Sep 02, 2007 4:21 am

whoops
Some day there will only be free software.
Top
techuser
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sat Mar 31, 2007 9:05 pm

  • Quote

Post by techuser » Tue Sep 18, 2007 1:14 pm

no, bttv module is compiled and working.
reading around I discovered that is something with lirc, that we must wait for lirc to make it work with kernel 2.6.22.

letś wait , or if you want you just can patch the bttv module.
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Thu Sep 20, 2007 6:51 pm

techuser wrote:no, bttv module is compiled and working.
reading around I discovered that is something with lirc, that we must wait for lirc to make it work with kernel 2.6.22.

letś wait , or if you want you just can patch the bttv module.
My problem turned out to be a bone headed mistake on my part, my firefly-mini works fine with 2.6.22...

Raydude
Some day there will only be free software.
Top
kicior
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Fri Mar 25, 2005 2:28 pm
Location: Lublin, Poland

  • Quote

Post by kicior » Thu Sep 20, 2007 9:15 pm

I have Aver TVPhone98 and I also had problem with lirc_gpio module. Now I'm using evdev and my remote works again. What I did:

Code: Select all

cat /etc/conf.d/lircd
LIRCD_OPTS="-H dev/input -d /dev/input/event3"

Code: Select all

cat /etc/make.conf|grep LIRC_DEVICES
LIRC_DEVICES="avermedia98 creative devinput inputlirc userspace"

Code: Select all

cat /etc/lircd.conf
begin remote

  name  aver98
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   16
  pre_data       0x8001
  gap          133560
  toggle_bit_mask 0x80010179

      begin codes
          TV/FM                    0x0179
          CD                       0x017F
          TELETEXT                 0x0184
          POWER                    0x0074
          1                        0x0002
          2                        0x0003
          3                        0x0004
          VIDEO                    0x0189
          4                        0x0005
          5                        0x0006
          6                        0x0007
          AUDIO                    0x0188
          7                        0x0008
          8                        0x0009
          9                        0x000A
          FULLSCREEN               0x0174
          0                        0x000B
          DISPLAY                  0x0172
          LOOP                     0x00A8
          PREVIEW                  0x00D2
          AUTOSCAN                 0x00D9
          FREEZE                   0x008E
          CAPTURE                  0x019A
          MUTE                     0x0071
          RECORD                   0x00A7
          PAUSE                    0x0077
          STOP                     0x0080
          PLAY                     0x00CF
          RED                      0x018E
          VOL_DOWN                 0x0072
          VOL_UP                   0x0073
          YELLOW                   0x0190
          GREEN                    0x018F
          CH_DOWN                  0x0193
          CH_UP                    0x0192
          BLUE                     0x0191
      end codes

end remote
Now reemerge lirc if necessary, load bttv and evdev modules and start lircd daemon. Everything should be ok. (I don't know if avertvcapture98 and avertvphone98 remotes are identical - just double check your lircd.conf generated by irrecord. My remote looks like this: my remote)
Pozdrawiam,
Kicior
Top
techuser
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sat Mar 31, 2007 9:05 pm

  • Quote

Post by techuser » Fri Sep 21, 2007 9:25 am

thanks a lot my friend!!

now it is working, with my lircd.conf.
I think the problem was something about this line:

LIRC_DEVICES="avermedia98 creative devinput inputlirc userspace"

thanks!!
Top
Post Reply

11 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic