Witam
Posiadam laptopa marki Dell z procesorem 650 MHz. Znalazłem dla niego zastosowanie. Postanowiłem przerobić go na cyfrową ramkę według pewnego projektu na który ostatnio się natknąłem. O ile z instalacją systemu nie było problemu to ze sterowaniem z pilota nie potrafię sobie poradzić. W systemie Geexbox do sterowania pilotem zastosowany jest moduł LIRC.
Potrzebuje on 3 plików konfiguracyjnych:
lircd:
LIRC_DRIVER=default
LIRC_DEVICE=/dev/lirc
LIRC_MODULES="lirc_serial"
lircd.conf:
#
# this config file was automatically generated
# using lirc-0.6.5(any) on Wed Aug 28 09:30:43 2002
#
# contributed by Christian von Petery 17knochen(małpa)freenet.de
#
# brand: Kenwood
# model no. of remote control: RC-R0602
# devices being controlled by this remote: tuner, cd, tape, surround
#
begin remote
name Kenwood
bits 24
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9070 4454
one 608 1642
zero 608 516
ptrail 607
repeat 9070 2204
pre_data_bits 8
pre_data 0x1D
gap 108049
toggle_bit 0
begin codes
power 0x0000000000E2B946
pty 0x00000000008039C6
af 0x000000000080B946
display 0x0000000000E21AE5
band 0x0000000000E2F10E
direct 0x0000000000E27986
p_call_down 0x0000000000E231CE
p_call_up 0x0000000000E29966
1 0x0000000000E2817E
2 0x0000000000E241BE
3 0x0000000000E2C13E
4 0x0000000000E221DE
5 0x0000000000E2A15E
6 0x0000000000E2619E
7 0x0000000000E2E11E
8 0x0000000000E211EE
9 0x0000000000E2916E
0 0x0000000000E201FE
+10 0x0000000000E2B04F
disc 0x0000000000E210EF
disc_prev 0x0000000000E2738C
disc_next 0x0000000000E2F30C
disc_stop 0x0000000000E2936C
disc_play 0x0000000000E2D32C
tape_a_left 0x0000000000E20BF4
tape_a_right 0x0000000000E28B74
tape_b_left 0x0000000000E21BE4
tape_b_right 0x0000000000E29B64
tape_a_rew 0x0000000000E24BB4
tape_a_ffw 0x0000000000E2CB34
tape_b_rew 0x0000000000E25BA4
tape_b_ffw 0x0000000000E2DB24
tape2 0x0000000000E2A956
tape_a_stop 0x0000000000E2AB54
tape_b_record 0x0000000000E27B84
tape_b_stop 0x0000000000E2BB44
input 0x00000000008033CC
test_tone 0x0000000000E26A95
surround 0x0000000000E2EB14
mute 0x0000000000E239C6
multi_lvl_up 0x00000000008049B6
rear 0x0000000000E2E31C
center 0x0000000000E2D02F
vol_up 0x0000000000E2D926
multi_lvl_down 0x0000000000808976
delay 0x0000000000E2B24D
vol_down 0x0000000000E259A6
end codes
end remote
lircrc:
begin
prog = mplayer
button = disc
config = pause
end
begin
prog = mplayer
button = disc_stop
config = quit
end
begin
prog = mplayer
button = mute
config = mute
end
begin
prog = mplayer
button = 9
repeat = 1
config = seek -10
end
begin
prog = mplayer
button = 0
repeat = 1
config = seek 10
end
begin
prog = mplayer
button = vol_down
repeat = 1
config = volume -1
end
begin
prog = mplayer
button = vol_up
repeat = 1
config = volume 1
end
begin
prog = mplayer
button = display
config = osd
end
begin
prog = mplayer
button = power
config = quit 166
end
begin
prog = mplayer
button = af
config = menu toggle
end
begin
prog = mplayer
button = band
config = menu ok
end
begin
prog = mplayer
button = direct
repeat = 0
config = menu cancel
end
begin
prog = mplayer
button = p_call_up
config = menu up
end
begin
prog = mplayer
button = p_call_down
config = menu down
end
Powyżej przedstawiam moją konfigurację która niestety nie działa.
Czujka podłączona pod port RS232 podłączona według schematu
![](http://stuff.nekhbet.ro/wp-content/uploads/2006/07/ir_receiver.GIF)
Na pinie 7 nie pojawia napięcie zasilania. Po podłączeniu zasilania zewnętrznego program nadal nie reaguje na polecenia z pilota. Wygląda na to że nie uruchamia się obsługa portu com.