Codice: Seleziona tutto
$ dmesg | grep DVB
[ 9.845980] cx88[0]: subsystem: 17de:08a1, board: KWorld/VStream XPert DVB-T with cx22702 [card=43,autodetected], frontend(s): 1
[ 10.066564] cx88[0]/2: subsystem: 17de:08a1, board: KWorld/VStream XPert DVB-T with cx22702 [card=43]
[ 10.066620] cx88[0]/2: cx2388x based DVB/ATSC card
[ 10.139032] DVB: registering new adapter (cx88[0])
[ 10.139082] DVB: registering adapter 0 frontend 0 (Conexant CX22702 DVB-T)...Codice: Seleziona tutto
$ cat /proc/bus/input/devices
I: Bus=0001 Vendor=17de Product=08a1 Version=0001
N: Name="cx88 IR (KWorld/VStream XPert D"
P: Phys=pci-0000:04:01.0/ir0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=100003
B: KEY=c0904 100048 0 0 0 0 2018000 180 1 9e0000 0 0 90000ffeCodice: Seleziona tutto
# evtest /dev/input/event5Codice: Seleziona tutto
(Power) (List) (Search) (Tuner)
(Mute) 1 2 3
(Zoom) 4 5 6
(Info) 7 8 9
(S) (Esc) 0 (Enter)
(Record) (Stop) (Pause) (Play)
(Rewind) (Fast Forward)
(ChannelUp)
(VolumeDown) (VolumeUp)
(ChannelDown)
(Audio) (Clear)che regola il volume e con il tasto play fà play pausa dei lettori, power fa apparire arresta riavvia, in gedit o nel terminale premendo i numeri appaiono come se digitati dalla tastiera, e il tasto enter fà l'invio. Tutto questo funziona senza lirc installato.
Ora vorrei usare lirc per mappare i tasti con i vari programmi.
Il file lircd.conf per il mio telecomando è (dovrebbe essere) questo
Codice: Seleziona tutto
#
#
# this config file was automatically generated
# using lirc-0.6.6(sa1100) on Sun Feb 23 17:02:27 2003
#
# contributed by Denes Balatoni <pnis at coder.hu>
# Modified by Daniel Foote <freefoote at dview dot net> to
# work with remote that came with DVB-T card.
#
# brand: kworld
# model no. of remote control: ?
# devices being controlled by this remote: tv878r tuner card
#
begin remote
name KWorld_DVB-T
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 8853 4526
one 533 1713
zero 533 589
ptrail 531
repeat 8853 2281
pre_data_bits 16
pre_data 0x61D6
gap 107839
toggle_bit 0
begin codes
ch- 0x0000000000007887
7 0x000000000000E01F
preview 0x00000000000038C7
zoom 0x00000000000018E7
3 0x000000000000C03F
1 0x000000000000807F
epg 0x000000000000D02F
vol+ 0x000000000000D827
vol- 0x000000000000F807
5 0x000000000000A05F
9 0x000000000000906F
reset 0x000000000000A857
turnleft 0x000000000000E817
6 0x000000000000609F
0 0x00000000000050AF
power 0x00000000000048B7
scan 0x00000000000030CF
2 0x00000000000040BF
mute 0x00000000000008F7
snap 0x000000000000C837
4 0x00000000000020DF
turnup 0x00000000000000FF
8 0x00000000000010EF
backward 0x0000000000008877
source 0x000000000000F00F
forward 0x0000000000009867
pip 0x00000000000028D7
ch- 0x000000000000E817
play 0x0000000000006897
ch+ 0x00000000000058A7
stop 0x000000000000B04F
function- 0x00000000000020DF
pause 0x000000000000708F
function+ 0x00000000000030CF
rec 0x000000000000B847
end codes
end remote
Non necessita alcun modulo del kernel visto che è già attivo e funzionante.
Pero lirc non intercetta in alcun modo il telecomando e quindi non è possibile utilizzarlo.
Ho anche tentato come da comandi, a lanciare il demone di lirc sul device del telecomando
Codice: Seleziona tutto
sudo lircd --device=/dev/input/event5Qualche indicazione?
È un paio di giorni che mi frantumo gli zebedei senza risultato.


