LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-13-2007, 04:34 PM   #1
sloteel
Member
 
Registered: Jul 2005
Distribution: Xubuntu 10.11, Mint 10
Posts: 62

Rep: Reputation: 15
Remote infrared control not work


(sorry for the english)

I have tryed make working the infrared remote control bundled with my saa7134 based tv card, a flyvideo 2000 card (a flytv prime 30, in fact); I followed this guide in Italian:

http://osrevolution.wordpress.com/20...ux-kernel-26x/

hope someone could understand it.

my /etc/sysconfig/lircd:

Quote:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-d /dev/input/event2"

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

# Run ?lircd ?driver=help? for a list of supported drivers.
DRIVER="dev/input"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc"
#MODULES="lirc_dev lirc_gpio"

# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lircd.conf"
#LIRCMD_CONF="life-view/lircmd.conf.flyvideo"
MODULES="UNCONFIGURED"
LIRCMD_CONF="UNCONFIGURED"


# Customized setings for lirc daemon

# The hardware driver to use, run lircd --driver=? for a list

#DRIVER=UNCONFIGURED

# Hardware driver module to load
#HWMOD=UNCONFIGURED

# The device node that communicates with the IR device.
# if you are using lirc_serial, set DEVICE to /dev/ttyS[0-9]
# where 0-9 is the serial port your IR receiver is plugged

# with devfs enabled
#DEVICE=/dev/lirc/0
#DEVICE=/dev/lirc/serial

# without devfs
#DEVICE=/dev/lirc

# Serial port for the receiver (for serial driver)
# COM1 (/dev/ttyS0)
#COM_PORT=/dev/ttyS0
#DRIVER_OPTS="irq=4 io=0x3f8"

# COM2 (/dev/ttyS1)
#COM_PORT=/dev/ttyS1
#DRIVER_OPTS="irq=3 io=0x2f8"

# COM3 (/dev/ttyS2)
#COM_PORT=/dev/ttyS2
#DRIVER_OPTS="irq=4 io=0x3e8

# COM4 (/dev/ttyS3)
#COM_PORT=/dev/ttyS3
#DRIVER_OPTS="irq=3 io=0x2e8"
my /etc/lircd.conf

Quote:
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.1(dev/input) on Wed Jun 13 19:09:39 2007
#
# contributed by
#
# brand: /tmp/lirc.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name /tmp/lirc.conf
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 208092
toggle_bit 0


begin codes
Air/catTV 0x0175
Video 0x0189
Audio 0x0188
Power 0x0074
AVSource 0x0182
FullScreen 0x0174
Stereo 0x0170
Mute 0x0071
1 0x0002
2 0x0003
3 0x0004
Vol+ 0x0073
4 0x0005
5 0x0006
6 0x0007
Vol- 0x0072
7 0x0008
8 0x0009
9 0x000A
Ch+ 0x0192
Recall 0x0081
0 0x000B
Enter 0x001C
Ch- 0x0193
end codes

end remote

then the /etc/lircmd.conf

Quote:
#
# This is a placeholder for your configuration file.
# See /usr/share/lirc-remotes for some examples.
# You might need to install lirc-remotes package.
#

# This is an example config file for your LIRC remote. All buttons
# depend on what you have configured in your lircd.conf file. Please
# refer to this and adjust the labels below accordingly.
#
# tvtime is controlled through a separate program called tvtime-command.
# For a list of commands, see 'man tvtime-command'. Key events can
# be 'faked' using the command KEY_EVENT, which allows for mapping a
# single remote control button to both a menu mode command and a normal
# mode command.
#
# begin
# prog = irexec
# button = DISPLAY
# config = tvtime-command DISPLAY_INFO
# end


# This section includes two configs, what this does is that it allows
# you to open tvtime and close tvtime with one button. If your remote
# has seperate buttons for this, then you can break it apart.
begin
prog = irexec
button = Power
config = tvtime &
config = tvtime-command QUIT
end


# The following defines most of the common buttons found on a remote and
# what commads they would map to inside tvtime.
begin
prog = irexec
button = Air/catTV
config = tvtime-command TOGGLE_INPUT
end
begin
prog = irexec
button = Video
config = tvtime-command DISPLAY_INFO
repeat = 1
end
begin
prog = irexec
button = FullScreen
config = tvtime-command TOGGLE_FULLSCREEN
end
begin
prog = irexec
button = AV Source
config = tvtime-command TOGGLE_CC
end

begin
prog = irexec
button = Mute
config = tvtime-command TOGGLE_MUTE
end

# Menu navigation.
begin
prog = irexec
button = Ch+
config = tvtime-command UP
repeat = 1
end
begin
prog = irexec
button = Ch-
config = tvtime-command DOWN
repeat = 1
end
begin
prog = irexec
button = Vol+
config = tvtime-command RIGHT
repeat = 2
end
begin
prog = irexec
button = Vol-
config = tvtime-command LEFT
repeat = 2
end

begin
prog = irexec
button = Recall
config = tvtime-command CHANNEL_JUMP
repeat = 1
end

begin
prog = irexec
button = 1
config = tvtime-command CHANNEL_1
end
begin
prog = irexec
button = 2
config = tvtime-command CHANNEL_2
end
begin
prog = irexec
button = 3
config = tvtime-command CHANNEL_3
end
begin
prog = irexec
button = 4
config = tvtime-command CHANNEL_4
end
begin
prog = irexec
button = 5
config = tvtime-command CHANNEL_5
end
begin
prog = irexec
button = 6
config = tvtime-command CHANNEL_6
end
begin
prog = irexec
button = 7
config = tvtime-command CHANNEL_7
end
begin
prog = irexec
button = 8
config = tvtime-command CHANNEL_8
end
begin
prog = irexec
button = 9
config = tvtime-command CHANNEL_9
end
begin
prog = irexec
button = 0
config = tvtime-command CHANNEL_0
end
begin
prog = irexec
button = Enter
config = tvtime-command ENTER
end
and, last but not least, the /home/user/.lircrc

Quote:
# This is an example config file for your LIRC remote. All buttons
# depend on what you have configured in your lircd.conf file. Please
# refer to this and adjust the labels below accordingly.
#
# tvtime is controlled through a separate program called tvtime-command.
# For a list of commands, see 'man tvtime-command'. Key events can
# be 'faked' using the command KEY_EVENT, which allows for mapping a
# single remote control button to both a menu mode command and a normal
# mode command.
#
# begin
# prog = irexec
# button = DISPLAY
# config = tvtime-command DISPLAY_INFO
# end


# This section includes two configs, what this does is that it allows
# you to open tvtime and close tvtime with one button. If your remote
# has seperate buttons for this, then you can break it apart.
begin
prog = irexec
button = Power
config = tvtime &
config = tvtime-command QUIT
end


# The following defines most of the common buttons found on a remote and
# what commads they would map to inside tvtime.
begin
prog = irexec
button = Air/catTV
config = tvtime-command TOGGLE_INPUT
end
begin
prog = irexec
button = Video
config = tvtime-command DISPLAY_INFO
repeat = 1
end
begin
prog = irexec
button = FullScreen
config = tvtime-command TOGGLE_FULLSCREEN
end
begin
prog = irexec
button = AV Source
config = tvtime-command TOGGLE_CC
end

begin
prog = irexec
button = Mute
config = tvtime-command TOGGLE_MUTE
end

# Menu navigation.
begin
prog = irexec
button = Ch+
config = tvtime-command UP
repeat = 1
end
begin
prog = irexec
button = Ch-
config = tvtime-command DOWN
repeat = 1
end
begin
prog = irexec
button = Vol+
config = tvtime-command RIGHT
repeat = 2
end
begin
prog = irexec
button = Vol-
config = tvtime-command LEFT
repeat = 2
end

begin
prog = irexec
button = Recall
config = tvtime-command CHANNEL_JUMP
repeat = 1
end

begin
prog = irexec
button = 1
config = tvtime-command CHANNEL_1
end
begin
prog = irexec
button = 2
config = tvtime-command CHANNEL_2
end
begin
prog = irexec
button = 3
config = tvtime-command CHANNEL_3
end
begin
prog = irexec
button = 4
config = tvtime-command CHANNEL_4
end
begin
prog = irexec
button = 5
config = tvtime-command CHANNEL_5
end
begin
prog = irexec
button = 6
config = tvtime-command CHANNEL_6
end
begin
prog = irexec
button = 7
config = tvtime-command CHANNEL_7
end
begin
prog = irexec
button = 8
config = tvtime-command CHANNEL_8
end
begin
prog = irexec
button = 9
config = tvtime-command CHANNEL_9
end
begin
prog = irexec
button = 0
config = tvtime-command CHANNEL_0
end
begin
prog = irexec
button = Enter
config = tvtime-command ENTER
end
I've installed from synaptic (pclinuxos 2007):

lirc - dkms_lirc

A strange fact is that channel numbers and Enter works even is lircd is not up, and both "xbindkeys -k" and irrecord detect the button pression, but they don't execute anything (except 1,2,3,4,5,6,7,8,9,0,Enter). The kde control center says that no rc are configured.


Do you see something wrong?

edit: it works if the remote is set with irkick

Last edited by sloteel; 06-05-2008 at 11:09 AM. Reason: Solved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uart driver for infrared remote control ubuntu_amateur Linux - Kernel 4 11-04-2006 02:38 PM
Infrared+remote Control Question jacktheripperis Linux - Hardware 8 08-26-2006 06:45 AM
How I got my TV-tuner's remote control to work (almost...) LazyP Linux - Hardware 0 06-15-2006 07:45 PM
Infrared control - locked out pugsley Linux - Hardware 2 05-29-2006 04:09 AM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 09:47 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration