CommandIR is only used for USB receivers - but if you mention pctvsat and serial, I'm reminded of something like
http://www.mjk-trading.de/bilder/produkte/gross/1962_1.jpg.
If that is the case, you need the "pinsys" userspace driver for lirc (part of the normal lirc packages).
Needed packages: lirc
must not be installed/ purge: setserial
/etc/lirc/hardware.conf:
Code:
Quote:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=false
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="pinsys"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/ttyS0"
MODULES=""
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
/etc/lirc/lircd.conf:
Quote:
# Please make this file available to others
# by sending it to <lirc>
#
# this config file was automatically generated
# using lirc-0.9.0(pinsys) on Tue Jan 24 17:25:42 2012
#
# contributed by
#
# brand: Pinnacle Systems
# model no. of remote control: PCTV Remote
# devices being controlled by this remote: serial/pinsys
#
begin remote
name PinnacleSysPCTVRemote
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 8
pre_data 0xFE
gap 83506
toggle_bit_mask 0x0
begin codes
KEY_1 0x9F31 # 1
KEY_2 0x3D32 # 2
KEY_3 0xEC33 # 3
KEY_POWER 0x2D2F # off
KEY_4 0xA834 # 4
KEY_5 0x7935 # 5
KEY_6 0xDB36 # 6
KEY_EPG 0xFC2E # P
KEY_7 0x0A37 # 7
KEY_8 0x5338 # 8
KEY_9 0x8239 # 9
KEY_TV 0x631F # L
KEY_SUBTITLE 0x5E2D # Fullscreen
KEY_0 0x203A # 0
KEY_ZOOM 0xB21E # Zoom
KEY_INFO 0xCB2B # I
KEY_VOLUMEUP 0x851B # Vol. +
KEY_MUTE 0xB53C # Mute
KEY_PREVIOUS 0x4325 # Ch. last
KEY_CHANNELUP 0x7E17 # Ch. +
KEY_VOLUMEDOWN 0x590F # Vol. -
KEY_UP 0x173F # up
KEY_LEFT 0x643D # left
KEY_OK 0x541A # ok
KEY_RIGHT 0xF13B # right
KEY_MENU 0x101D # Menu
KEY_DOWN 0xC63E # down
KEY_NEXT 0xF619 # next
KEY_BACK 0xAF16 # undo
KEY_RECORD 0x3027 # Rec.
KEY_PAUSE 0x0D15 # pause
KEY_REDO 0x9813 # redo
KEY_REWIND 0x880E # rewind
KEY_PLAY 0x2A0D # play
KEY_STOP 0xBF0B # stop
KEY_FORWARD 0x4407 # fastforward
KEY_RED 0xE126 # TV
KEY_GREEN 0xB829 # Teletext
KEY_YELLOW 0x1A2A # Radio
KEY_BLUE 0x2718 # EPG
end codes
end remote
(be aware that the lowest row (TV, Teletext, Radio, EPG) has been redefined to be used as colour keys (red, green, yellow, blue), with P (EPG), L (TV), I (Info) on the top right taking over).
…or create your own lircd.conf with ("/etc/init.d/lirc stop" first):
Code:
Quote:
irrecord -H pinsys -d /dev/ttyS0 /etc/lirc/lircd.conf
use "irw" (as user) to confirm your key configuration.
(but this would have been better suited for a new thread --> easier to find)