HTPC project: projector and remote configurations
By Osma on Thursday 25 August 2005, 10:03 - Permalink
Due to popular demand, I'm posting some pointers for configuring X11 for use with the Sanyo PLV-Z1 projector, and how to use the TechniSat Airstar 2 TV's remote IR dongle with lirc. Read on for details.
The projector has a native resolution of 964x544. As the horizontal resolution is not a multiple of 16, exactly this is not possible to configure with NVidia cards. However, I'm using 960x540 instead, which works just fine. You'll need some fine tuning on the projector as well in order to get rid of flicker caused by slight mis-synchronisation that may happen due to the analog VGA output, but it's easily taken care of in the on-screen menus.
I've experimented with several modelines, each of which is ideal for a particular type of output - 24 fps video is best served with 48 or 72 Hz signal, 29.97 fps NTSC with a 59.94 Hz signal, and so forth. Keep in mind that with an LCD projector like the Sanyo, there's no point at all in trying to maximise the display frequency as would be the case with a CRT display - everything between 50 to 100 Hz will work just fine, and you should aim to use a multiple of the video framerate.
So, choose one of the modelines below - any one should work, and the best one depends on what you want to view.
Section "Monitor"
Identifier "Projector"
VendorName "Sanyo"
ModelName "PLV-Z1"
DisplaySize 480 272
HorizSync 15.0 - 44.0
VertRefresh 50.0 - 100.0
ModeLine "960x540/50" 33.2 960 1024 1128 1184 540 552 561 564 -hsync +vsync
ModeLine "960x544/50" 33.2 960 992 1128 1160 544 555 561 572 -hsync -vsync
ModeLine "960x544/60" 40.3 960 992 1144 1176 544 555 561 572 +hsync
ModeLine "960x544/72" 49.8 960 992 1176 1208 544 554 561 572 +hsync +vsync
ModeLine "960x540/60" 40.0 960 1020 1100 1184 540 550 551 563 +hsync +vsync
EndSection
As for using the remote dongle and remote included with the DVB card, this should work. Note that while I did configure the remote initially, I haven't used it for a long time, having chosen an All-For-One Kameleon instead in order to control the projector and audio receiver/amplifier with the same remote. What's below might not be the ideal config, but it should be good enough to get started with. I'm still using the same IR dongle with the Kameleon, though.
Prior to starting the lircd server, make sure this is executed:
/bin/setserial /dev/ttyS0 uart none
/sbin/modprobe lirc_serial
lircd itself won't require any special options.
The TechniSat remote should work with this lircd.conf:
# this config file was automatically generated
# using lirc-0.6.6(any) on Wed May 19 00:28:01 2004
#
# contributed by Nicolas Huillard
#
# brand: TechniSat
# model no. of remote control: 100TS035
# devices being controlled by this remote: SkyStar 2 TV (DVB PCI card)
#
begin remote
name 100TS035
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 907 885
zero 907 885
plead 954
gap 113935
toggle_bit 2
begin codes
MUTE 0x000000000000128D
EXT 0x00000000000012B8
A/B 0x00000000000012A3
POWER 0x000000000000128C
TV/RADIO 0x0000000000000293
-/-- 0x000000000000128A
1 0x0000000000001281
2 0x0000000000001282
3 0x0000000000001283
4 0x0000000000001284
5 0x0000000000001285
6 0x0000000000001286
7 0x0000000000001287
8 0x0000000000001288
9 0x0000000000001289
0 0x0000000000001280
INFO 0x0000000000000A8F
MENU 0x0000000000000292
EPG 0x00000000000012AF
BACK 0x00000000000012A2
OK 0x0000000000000297
UP 0x00000000000012A0
DOWN 0x00000000000012A1
RIGHT 0x0000000000001290
LEFT 0x0000000000001291
RED 0x00000000000002AB
GREEN 0x00000000000002AC
YELLOW 0x00000000000002AD
BLUE 0x00000000000002AE
CHECK 0x0000000000000AB6
TXT 0x00000000000012BC
STOP 0x00000000000012A9
STOP2 0x0000000000001AA9
HILFE 0x000000000000128F
end codes
end remote
The All-For-One Kameleon 4 can be configured with this:
# this config file was automatically generated
# using lirc-0.7.1(any) on Sun Jul 17 03:16:37 2005
#
# contributed by Osma Ahvenlampi
#
# brand: one for all kameleon
# model no. of remote control: urc8204 with code sat 1206 (topfield)
# devices being controlled by this remote: mythtv using topfield codes
#
# Kameleon 4's default SAT/1206 profile modified for the directional keys
# using the following KEY MAGIC codes: UP:257, DOWN:258, RIGHT:259, LEFT:260
begin remote
name urc8204-sat-1206
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9091 4427
one 646 1601
zero 646 477
ptrail 639
repeat 9092 2176
pre_data_bits 16
pre_data 0x4FB
gap 107982
toggle_bit 0
begin codes
1 0x8877
2 0x48B7
3 0xC837
4 0x28D7
5 0xA857
6 0x6897
7 0xE817
8 0x18E7
9 0x9867
0 0x08F7
info 0xB847
audio 0xA05F
guide 0xD827
stop 0x52AD
ffd 0x12ED
rwd 0xA25D
ffdindx 0x4AB5
rwdindx 0x0AF5
pause 0x609F
rec 0xD22D
fav 0x906F
tv/sat 0x10EF
text 0xE21D
MENU 0x58A7
EXIT 0x38C7
SUBT 0xE01F
MUTE 0x30CF
CH+ 0x00FF
CH- 0x807F
VOL+ 0x40BF
VOL- 0xC03F
OK 0xF807
PLAY 0x629D
UP 0x9966
DOWN 0xF906
LEFT 0x3EC1
RIGHT 0xD926
POWER 0x50AF
red 0xD02F
green 0xB04F
yellow 0x708F
blue 0xF00F
end codes
end remote