Toon posts:

TV Kaart afstandsbediening?

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoe kan ik ervoor zorgen in linux dat als ik op mijn afstandsbediening van mijn tv kaart op het knopje "tv" druk dat hij dan xawtv opstart.
Als ik dit in windows doe dan start hij wintv 2000 van hauppage, zou handig zijn als dit in linux ook zou kunnen :)

alvast bedankt

  • BaRF
  • Registratie: Augustus 2001
  • Laatst online: 10:19

BaRF

bijna kerst

-sorry niet goed gelezen-

The space between is where you'll find me hiding, waiting for you


Verwijderd

Kijk hier eens:

http://www.lirc.org/

  • ny-hardcore
  • Registratie: Maart 2002
  • Laatst online: 06:30
als je lirc al hebt geinstalled
prop je dit in je .lircrc:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
begin
    prog = irexec
    button = F_TV
    config = xawtv &
    config = xawtv-remote quit
    #This section configures the TV button and toggles between switching xawtv
    #on (config=xawtv &) and killing it (config=xawtv-remote quit).
end
begin
    prog = irexec
    button = F_TELETEXT
    config = alevt &
    #This section configures the Teletext button and starts AleVT.
end
begin
    prog = irexec
    button = F_RADIO
    config = xmms &
    #This section configures the Radio button and starts XMMS (for now).
end


alleen knopjes even veranderen naar die van jou remote

cd /pub && more beer


Verwijderd

Topicstarter
hartstikke bedankt ik ga het meteen proberen!

Verwijderd

Topicstarter
maar hoe kom ik erachter hoe die knopjes heten?

  • ny-hardcore
  • Registratie: Maart 2002
  • Laatst online: 06:30
heb je lirc geinstalled? als je lirc correct heb geinstalled heb je ook een lircd.conf in /etc/ staan, in deze file staat welke knopjes je remote heeft en welk signaal deze maken.

heb je nog geen lircd.conf dan moet je in de source dir van lirc zoeken naar de config file die hoort bij jou remote, staat deze er niet bij, dan kun je deze maken. hoe precies staat in de howto van lirc (d8 ik)

cd /pub && more beer


Verwijderd

Topicstarter
ik heb lirc geinstalleerd er staan wel examples en hier eentje van mijn hauppauge:

#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#

begin remote

name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100

one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2

begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes

end remote


Dit moet ik dus in .lircrc zetten in mijn homedir? weet je wat ik ga het even proberen :)

Verwijderd

Topicstarter
wacht het werkt al, ik heb nu precies hetzelfde gedaan wat ik gister ook heb gedaan maar nu eerst het commando "irexec" gestart waardoor hij nu WEL werkt, bedankt!

  • ny-hardcore
  • Registratie: Maart 2002
  • Laatst online: 06:30
oeps ja, snorry, je moet irexec als daemon laten draaien ja .

cd /pub && more beer


Verwijderd

Topicstarter
ok tot nu toe start hij xawtv op als ik op tv druk en xmms als ik op radio klik, maar de rest werkt nu niet meer (CH+ CH-, Mute, 1,2,3 enz..) hoe moet ik dit nu zien te fixen? :(

  • ny-hardcore
  • Registratie: Maart 2002
  • Laatst online: 06:30
heb je die code van mij alleen in je .lircrc staan?

hier mijn hele .lircrc
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
begin
    prog = irmix
    button = 3
    config = inc 5
end
begin
    prog = irmix
    button = 1
    config = dec 5
end

begin
    prog = irexec
    button = F_TV
    config = xawtv &
    config = xawtv-remote quit
    #This section configures the TV button and toggles between switching xawtv
    #on (config=xawtv &) and killing it (config=xawtv-remote quit).
end
begin
    prog = irexec
    button = F_TELETEXT
    config = alevt &
    #This section configures the Teletext button and starts AleVT.
end
begin
    prog = irexec
    button = F_RADIO
    config = xmms &
    #This section configures the Radio button and starts XMMS (for now).
end
#begin
#    prog = irexec
#    button = 1
#    repeat = 1
#   config = aumix -m-25
    #This section configures the Volume/Rewind button. Aumix takes the
    #volume switch (-v) and decreases volume by 10 (-10). Range is from
    #0-100. Repeat=1 will continue to decrease volume when the button is
    #pressed down continuously. Note this is systemwide volume, not
    #specific to an application.
#end
#begin
#    prog = irexec
#    button = 3
#    repeat = 1
#    config = aumix -m+25
#    #This section configures the Volume/FF button. Aumix takes the
#    #volume switch (-v) and increases volume by 10 (+10). Range is from
#    #0-100. Repeat=1 will continue to increase volume when the button is
    #pressed down continuously. Note this is systemwide volume, not
    #specific to an application.
#end
begin
    prog = irexec
    button = Mute
    repeat = 0
    config = aumix -v m
    #This section configures the Mute button. Aumix takes the -v m switch
    #which decreases systemwide volume to 0. This is not ideal as there is
    #no toggle to switch volume back to the pre-mute level. Volume has to
    #be increased with the Volume/FF button.
end
begin
   prog = irexec
   button = Chan-Stop
   repeat = 0
   config = xawtv-remote setstation prev
   #This section configures the Channel Down/Stop button. xawtv-remote
   #sets the previous station
end
begin
   prog = irexec
   button = Chan+Play
   repeat = 0
   config = xawtv-remote setstation next
   #This section configures the Channel Down+Play button. xawtv-remote
   #sets the next station
end
begin
   prog = irexec
   button = Fullscreen
   repeat = 0
   config = xawtv-remote fullscreen
   #Toggles between full screen and normal window
end
begin
   prog = irexec
   button = Power
   repeat = 0
   config = shutdown -h now
   #This is kind of drastic and only works if you're root.
end
#begin
#    prog = irexec
#    button = 1
#    repeat = 1
#    config = xawtv-remote setstation 0
#    #This uses xawtv-remote to switch to the first channel in the .xawtv
#    #config file.
#end
begin
    prog = irexec
    button = 2
    repeat = 1
    config = xawtv-remote setstation 1
end
#begin
#    prog = irexec
#    button = 3
#    repeat = 1
#    config = xawtv-remote setstation 2
#end
begin
    prog = irexec
    button = 4
    repeat = 1
    config = xawtv-remote setstation 3

end
begin
    prog = irexec
    button = 5
    repeat = 1
    config = xawtv-remote setstation 4
end
begin
    prog = irexec
    button = 6
    repeat = 1
    config = xawtv-remote setstation 5
end
begin
    prog = irexec
    button = 7
    repeat = 1
    config = xawtv-remote setstation 6
end
begin
    prog = irexec
    button = 8
    repeat = 1
    config = xawtv-remote setstation 7
end
begin
    prog = irexec
    button = 9
    repeat = 1
    config = xawtv-remote setstation 8
end
begin
    prog = irexec
    button = 0/AV
    repeat = 1
    config = xawtv-remote setinput Composite1
    #This uses xawtv-remote to switch to Composite1. Handy if you have a
    #vcr attachted to the card.
end

begin
    prog = xine
    button = Chan+Play
    repeat = 0
    config = Play
end
begin
    prog = xine
    button = Chan-Stop
    repeat = 0
    config = Pause
end
begin
    prog = xine
    button = Fullscreen
    repeat = 0
    config = ToggleFullscreen
end
begin
    prog = xine
    button = Chan_Last
    repeat = 0
    config = ToggleVisiblity
end
begin
    prog = xine
    button = Preview
    repeat = 0
    config = ToggleAspectRatio
end
begin
    prog = xine
    button = Vol-Rew
    repeat = 0
    config = SeekRelative-60
end
begin
    prog = xine
    button = Vol+FF
    repeat = 0
    config = SeekRelative+60
end
begin
    prog = xmms
    button = Chan+Play
    repeat = 0
    config = PLAY
end
begin
    prog = xmms
    button = Chan-Stop
    repeat = 0
    config = PAUSE
end
begin
    prog = xmms
    button = Vol+FF
    repeat = 0
    config = NEXT
end
begin
    prog = xmms
    button = Vol-Rew
    repeat = 0
    config = PREV
end
#begin
#   prog = xmms
#   button = 1
#   repeat = 2
#   config = VOL_DOWN 10
#end
#begin
#   prog = xmms
#   button = 3
#   repeat = 2
#   config = VOL_UP 10
#end


Het is wel een rommeltje ;) , er staan ook een paar dingen voor ander progsels in, en wat uitgecommente zooi omdat mijn remote maar beperkte knopjes heeft.

irmix http://www.blackfiveservices.co.uk/projects/ OSD style mixer
xine xine.sf.net
alevt http://www.goron.de/~froese/ teletext

cd /pub && more beer


Verwijderd

Topicstarter
bedankt! ik ben alweer een hele stap verder, ik heb nu op de knop:
TV = xawtv
Radio = xmms
CH+ = kanaal hoger
CH- = kanaal lager
mute = mute/unmute
fullscreen = fullscreen / venster
Source = AleVT

Het enige wat me nog niet lukt is om het volume hoger of lager te zetten voor xawtv, wie weet dit wel? ondertussen ga ik even op de xawtv site kijken (man xawtv-remote levert ook geen oplossing op)

Verwijderd

Topicstarter
Alles werkt nu, het volume ook, maar als ik bijvoorbeeld naar channel 12 wil en 1 en 2 snel achter elkaar doe dan werkt dit niet, dan gaat hij eerst naar channel 1 en dan naar channel 2

  • ny-hardcore
  • Registratie: Maart 2002
  • Laatst online: 06:30
geen id, ik gebruik eingenlijk alleen de channel + en channel - knopjes ..
:) lekker zappen op de bank met biertje in de hand :)

cd /pub && more beer


  • Valium
  • Registratie: Oktober 1999
  • Laatst online: 09-05 16:54

Valium

- rustig maar -

je kunt aumix aansturen om je volume harder en zachter te zetten.
"aumix -v +5" zet je main-volume harder. Dat gebruik ik.

Verwijderd

Topicstarter
jep dat had ik al, ik wil nu alleen nog dat als ik 1 en 2 achter elkaar druk dat hij dan naar 12 gaat, maar dit is niet te doen denk ik, ik maak er ook niet zovaak gebruik van maar het zou toch wel handig zijn :)
Pagina: 1