|

楼主 |
发表于 2007-12-1 09:59:51
|
显示全部楼层
Post by aloha_cn;1721311
恩,既然好用的话,我有空把遥控器的配置文件贴出来,省得大家各自麻烦了。
最新的kernel已经支持大师3。
关于遥控器的配置:
我使用lirc + irexec。先安装相关软件。配置文件附上。
fedora core的配置方法:
1. lircd.conf 放到/etc
2. .lircrc放到home
3. 修改/etc/X11/xinit/xinitrc_common,找个地方加上irexec -d
文件清单:
################## lircd.conf
# 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 Sun May 6 22:05:14 2007
#
# contributed by
#
# brand: /tmp/my-remote
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name /etc/lircd.conf
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 199977
toggle_bit 0
begin codes
Power 0x0074
Mute 0x0071
Tuner 0x0179
Video 0x0189
Music 0x0188
Photo 0x016F
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
-/-- 0x018B
Recall 0x0195
Start 0x0066
Out 0x00AE
Ch+ 0x0067
Ch- 0x006C
Vol- 0x0069
Vol+ 0x006A
OK 0x001C
Esc 0x0001
Desktop 0x0020
Tab 0x000F
Switch 0x00E3
Menu 0x008B
Zoom 0x0174
Timeshift 0x0167
Videosource 0x0175
Record 0x00A7
Play 0x00CF
Stop 0x0080
Snapshot 0x00D4
Backward 0x00A8
Forward 0x00D0
Prev 0x019C
Next 0x0197
Multiview 0x016C
AudioTrack 0x00D5
Sound 0x0170
Subtitle 0x0184
Timer 0x008E
Stereo 0x0175
SAP 0x0161
Text 0x0094
Red 0x018E
Green 0x018F
Yellow 0x0190
Blue 0x0191
end codes
end remote
##################### end of lircd.conf
##################### .lircrc
# 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 = Tuner
config = tvtime &
config = tvtime-command QUIT
end
begin
prog = irexec
button = Tuner
config = tvtime-command SET_INPUT 0
end
begin
prog = irexec
button = Video
config = tvtime-command SET_INPUT 2
end
begin
prog = irexec
button = Tab
config = tvtime-command TOGGLE_ASPECT
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 = Videosource
config = tvtime-command TOGGLE_INPUT
end
begin
prog = irexec
button = DISPLAY
config = tvtime-command DISPLAY_INFO
repeat = 1
end
begin
prog = irexec
button = Zoom
config = tvtime-command TOGGLE_FULLSCREEN
end
begin
prog = irexec
button = Subtitle
config = tvtime-command TOGGLE_CC
end
begin
prog = irexec
button = Mute
config = tvtime-command TOGGLE_MUTE
end
begin
prog = irexec
button = Start
config = tvtime-command DISPLAY_INFO
end
begin
prog = irexec
button = Timeshift
config = tvtime-command SET_NORM NTSC ; tvtime-command RESTART
config = tvtime-command SET_NORM PAL ; tvtime-command RESTART
end
begin
prog = irexec
button = Menu
config = tvtime-command SHOW_MENU
end
begin
prog = irexec
button = Play
config = tvtime-command TOGGLE_PAUSE
end
begin
prog = irexec
button = AudioTrack
config = tvtime-command SET_AUDIO_MODE "mono"
config = tvtime-command SET_AUDIO_MODE "stereo"
config = tvtime-command SET_AUDIO_MODE "sap"
end
begin
prog = irexec
button = Red
config = tvtime-command TOGGLE_CHROMA_KILL
end
begin
prog = irexec
button = Green
config = tvtime-command TOGGLE_MIRROR
end
begin
prog = irexec
button = Yellow
config = tvtime-command TOGGLE_COLOR_INVERT
end
begin
prog = irexec
button = Blue
config = tvtime-command TOGGLE_BARS
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 = OK
config = tvtime-command ENTER
end
######################### end of .lircrc |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|