Obsługa pilota y04g0051 przez Lirc na karcie Leadtek DTV 1800

Karty graficzne, dźwiękowe, tv, monitory etc.
vnu007dl
Piegowaty Guziec
Piegowaty Guziec
Posty: 23
Rejestracja: 03 lis 2010, 19:30
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: KDE Plasma
Architektura: x86
Kontakt:

Obsługa pilota y04g0051 przez Lirc na karcie Leadtek DTV 1800

Post autor: vnu007dl »

Witam

Korzystam z Kubuntu 11.10 ale to buntowy system więc piszę tutaj. Jeśli to zły dział to proszę o przeniesienie posta we właściwe miejsce.

Już, któryś z kolei raz podchodzę do tego, aby uruchomić pilota na moim kompie i mi się nie udaje. Mam kartę hybrydową Winfast Leadtek 1800, do której mam pilota y04g0051. Karta oczywiście poprawnie zainstalowana, działa naziemna TV, jak i cyfrówka DVB-T przez Kaffeine. Lirc zainstalowany, pliki skonfigurowane, tylko jeden problem - to nie działa ! Nie wiem co już robię źle, być może to jakaś pierdoła i dlatego nie chce mi działać. Dlatego potrzebuję waszej pomocy, a zwłaszcza kogoś kto ma obczajone piloty i u niego działa.
Pokazuję poniżej zawartość moich plików konfiguracyjnych:
Plik hardware.conf

Kod: Zaznacz cały

# /etc/lirc/hardware.conf

REMOTE="Leadtek y04g0051"
REMOTE_MODULES=""
REMOTE_DRIVER="dev/input"
REMOTE_DEVICE="/dev/input/event5"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="true"
START_LIRCMD="true"
Plik lircd.conf

Kod: Zaznacz cały

begin remote
  name            Y04G0051
  bits            16
  eps             30
  aeps            100
  one             0 0
  zero            0 0
  gap             263992
  pre_data_bits   16
  pre_data        0x8001

  begin codes
       POWER           0x0074
       TV              0x0179
       FM              0x0181
       DVD             0x0185
       RED             0x018E
       GREEN           0x018F
       YELLOW          0x0190
       BLUE            0x0191
       TELETEXT        0x0184
       SLEEP           0x008E
       MUTE            0x0071
       BOSSKEY         0x0163
       CH+             0x0192
       RECALL          0x00DF
       CH-             0x0193
       ENTER           0x001C
       VOL-            0x0072
       VOL+            0x0073
       FULLSCREEN      0x0174
       MENU            0x008B
       CHSURF          0x016B
       PREVIOUS        0x019C
       NEXT            0x0197
       PLAYPAUSE       0x00A4
       INFO            0x0172
       REWIND          0x00A8
       STOP            0x0080
       FFORWARD        0x00D0
       EPG             0x0189
       LANGUAGE        0x0170
       ONE             0x0002
       TWO             0x0003
       THREE           0x0004
       FOUR            0x0005
       FIVE            0x0006
       SIX             0x0007
       SEVEN           0x0008
       EIGHT           0x0009
       NINE            0x000A
       ZERO            0x000B
       VIDEO           0x0188
       AUDIO           0x0166
       DISPLAY         0x00EA
       SNAPSHOT        0x0169
       TIMESHIFTING    0x00C2
       RECORD          0x00A7
       RECORDSTOP      0x0080
       PIP             0x00E2
       DOT             0x0034
       DELETE          0x0195
       UNUSED1         0x00BF
       UNUSED2         0x00C0

  end codes

end remote
plik .lircrc z /home/user

Kod: Zaznacz cały

 
begin 
    prog = irexec 
    button = FUNCTION 
    button = MUTE 
    mode = sound 
 end 
 begin 
    prog = irexec 
    button = FUNCTION 
    button = POWER 
    mode = tvtime 
 end 
 begin 
    prog = irexec 
    button = RESET 
    button = PLAY 
    mode = mplayer 
 end 
 begin 
    prog = irexec 
    button = FUNCTION 
    button = PLAY 
    mode = player 
 end 
 begin 
    prog = irexec 
    button = FUNCTION 
    button = SOURCE 
    mode = mocp 
 end 
 begin    
    prog = irexec 
    button = RESET 
    button = PLAY 
    mode = audacious 
 end 
 begin 
    prog = irexec 
    button = RESET 
    button = POWER 
    mode = poweroff 
 end 
 ########## 
 # PLAYER # 
 ########## 
 begin player 
 begin 
      button = VOLUMEUP 
      prog = irexec 
      config = amixer sset "Master" 2+ & 
 end 
 begin 
     button = VOLUMEDOWN 
     prog = irexec 
     config = amixer sset "Master" 2- & 
 end 
 begin 
     button = MUTE 
     prog = mplayer 
     config = mute & 
 end 
 begin 
     button = MINIMIZE 
     prog = mplayer 
     config = quit &  
 end 
 begin 
     button = PLAY 
     prog = mplayer 
     config = pause & 
 end 
 begin 
    button = FMSCANUP 
    prog = mplayer 
    config = pt_step 1 & 
 end 
 begin 
    button = FMSCANDOWN 
    prog = mplayer    
    config = pt_step -1 & 
 end 
 begin 
    prog = irexec 
    button = 0 
    config = /home/numer/skrypty/muza/gold_mplayer Main & 
 end 

 begin 
    prog = irexec 
    button = 1 
    config = /home/numer/skrypty/muza/gold_mplayer Smooth & 
 end 
 begin 
    prog = irexec 
    button = 2 
    config = /home/numer/skrypty/muza/gold_mplayer House & 
 end 
 begin 
    prog = irexec 
    button = 3 
    config = /home/numer/skrypty/muza/gold_mplayer Top_40 & 
 end 
 begin 
    prog = irexec 
    button = 4 
    config = /home/numer/skrypty/muza/gold_mplayer Pop & 
 end 
 begin 
    prog = irexec 
    button = 5 
    config = /home/numer/skrypty/muza/gold_mplayer R&B/Soul & 
 end 
 begin 
    prog = irexec 
    button = 6 
    config = /home/numer/skrypty/muza/gold_mplayer Jazz & 
 end 
 begin 
    prog = irexec 
    button = 7 
    config = /home/numer/skrypty/muza/gold_mplayer Trance & 
 end 
 begin 
    prog = irexec 
    button = 8 
    config = /home/numer/skrypty/muza/gold_mplayer Techno & 
 end 
 begin 
    prog = irexec 
    button = 9 
    config = /home/numer/skrypty/muza/gold_mplayer European & 
 end 
 end player 
 ######### 
 # SOUND # 
 ######### 

 begin sound 
 begin 
    prog = irexec 
    button = VOLUMEUP 
    config = amixer sset "Master" 2+ & 
 end 
 begin 
    prog = irexec 
    button = VOLUMEDOWN 
    config =  amixer sset "Master" 2- & 
 end 
 # record microfon 
 begin 
    prog = irexec 
    button = 5 
    config = amixer sset "Mic Boost (+20db)" on & 
 #   config = amixer sset "Mic Boost (+20db)" off & 
 end 
 begin 
    prog = irexec 
    button = 4 
    config = amixer sset "Mic" -3 
 end 
 begin 
    prog = irexec 
    button = 6 
    config = amixer sset "Mic" +3 
 end 
 end sound 
    ########## 
    # TVTIME # 
    ########## 
 begin tvtime 
 begin 
     prog = irexec 
     button = MTS 
     config = tvtime-command DISPLAY_INFO # → osd info 
 end 
 begin 
     prog = irexec 
     button = POWER 
     config = tvtime & 
     config = tvtime-command QUIT # → on/off 
 end 
 begin 
     prog = irexec 
     button = source 
     config = tvtime-command TOGGLE_INPUT # → źródło sygnału 
 end 
 begin 
     prog = irexec 
     button = ZOOM 
     config = tvtime-command TOGGLE_FULLSCREEN # → fullscreen 
 end 
 begin 
     prog = irexec 
     button = CC 
     config = tvtime-command TOGGLE_CC # → dekodowanie 
 end 
 begin 
     prog = irexec 
     button = MUTE 
     config = tvtime-command TOGGLE_MUTE # → wyciszenie 
 end 
 # Menu navigation. 
 begin 
     prog = irexec 
     button = FMSCANUP 
     config = tvtime-command UP # → kanał do przodu 
     repeat = 1 
 end 
 begin 
     prog = irexec 
     button = FMSCANDOWN 
     config = tvtime-command DOWN # → kanał do tyłu 
     repeat = 1 
 end 
 begin 
     prog = irexec 
     button = VOLUMEUP 
     config = amixer sset "Master" 2+ & 
     repeat = 1 
 end 
 begin 
     prog = irexec 
     button = VOLUMEDOWN 
     config = amixer sset "Master" 2- & 
     repeat = 1 
 end 
 begin 
     prog = irexec 
     button = RECALL 
     config = tvtime-command CHANNEL_JUMP # → poprzedni kanał 
     repeat = 1 
 end 
 #begin 
 #    prog = irexec 
 #    button = TUNER 
 #    config = tvtime-command RUN_COMMAND "alevt -charset latin-2" # → zainstaluj #alevt;telegazeta 
 #end 
 begin 
     prog = irexec 
     button = FMFREQUP 
     config = tvtime-command TOGGLE_PAUSE 
     repeat = 40 
 end 
 begin 
     prog = irexec 
     button = FMFREQDOWN 
     config = tvtime-command SET_INPUT 0 
     repeat = 40 
 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 = ENTER 
     config = tvtime-command ENTER 
 end 
 end tvtime 
    ########### 
    # MPLAYER # 
    ########## 
 begin mplayer 
 begin 
      button = VOLUMEUP 
      prog = irexec 
      config = amixer sset "Master" 2+ & 
 end 
 begin 
     button = VOLUMEDOWN 
     prog = irexec 
     config = amixer sset "Master" 2- & 
 end 
 begin 
     button = PLAY 
     prog = mplayer 
     config = pause & 
 end 
 begin 
     button = STOP 
     prog = mplayer 
     config = seek 0 1\npause & 
 end 
 begin 
     button = ZOOM 
     prog = mplayer 
     config = vo_fullscreen & 
 end 
 begin 
    button = FMSCANUP 
    prog = mplayer 
    config = seek_chapter +1 0 & 
 end 
 begin 
    button = FMSCANUP 
    prog = mplayer 
    config = pt_step 1 & 
 end 
 begin 
    button = FMSCANDOWN 
    prog = mplayer    
    config = pt_step -1 & 
 end 
 begin 
    prog = mplayer 
    button = FMFREQUP 
    config = seek +60 & 
 end 
 begin 
     button = MUTE 
     prog = mplayer 
     config = mute & 
 end 
 begin 
     button = MINIMIZE 
     prog = mplayer 
     config = quit &  
 end 
 begin 
     button = FUNCTION 
    button = 5 
     prog = mplayer 
     config = osd & 
 end 
 begin 
     button = MTS 
     prog = mplayer 
     config = menu up & 
    config = menu down & 
 end 
 begin 
     button = PLUS 
     prog = mplayer 
     config = menu ok & 
 end 
 begin 
     button = RECALL 
     prog = mplayer 
     config = menu cancel & 
 end 
 begin 
     button = MTS 
     prog = mplayer 
     config = menu hide & 
     repeat = 40 
 end 
 begin 
     button = 1 
     prog = mplayer 
     config = brightness +1 & 
 end 
 begin 
     button = 4 
     prog = mplayer 
     config = brightness -1 & 
 end 
 begin 
     button = 2 
     prog = mplayer 
     config = contrast +1 & 
 end 
 begin 
     button = 5 
     prog = mplayer 
     config = contrast -1 & 
 end 
 begin 
     button = 3 
     prog = mplayer 
     config = saturation +1 & 
 end 
 begin 
     button = 6 
     prog = mplayer 
     config = saturation -1 & 
 end 
 begin 
     button = 7 
     prog = mplayer 
     config = sub_pos -1 & 
 end 
 begin 
     button = 0 
     prog = mplayer 
     config = sub_pos +1 & 
 end 
 begin 
    button = SNAPSHOT 
    prog = mplayer 
    config = -vf screenshot & 
 end 
 end mplayer 
    ############# 
    # AUDACIOUS # 
    ############# 
 begin audacious 
 begin 
    prog = irexec 
    button = PLAY 
    config = audacious -t &# → play 
 end 
 begin 
    prog = irexec 
    button = STOP 
    config = audacious -s &# → stop 
 end 
 begin 
    prog = irexec 
    button = FMSCANUP 
    config = audacious -f &# → następny utwór 
 end 
 begin 
    prog = irexec 
    button = FMSCANDOWN 
    config = audacious -r &# → poprzedni utwór 
 end 
 begin 
    prog = irexec 
    button = VOLUMEUP 
    config = amixer sset "Master" 2+ & 
 end 
 begin 
    prog = irexec 
    button = VOLUMEDOWN 
    config = amixer sset "Master" 2- & 
 end 
 begin 
    prog = irexec 
    button = MUTE 
    config = aumix -v 0 & 
 end 
 begin 
    prog = irexec 
    button = 1 
    config = audacious -E /home/numer/.gold/Smooth.m3u & 
 end 
 begin 
    prog = irexec 
    button = 2 
    config = audacious -E /home/numer/.gold/Techno.m3u & 
 end 
 begin 
    prog = irexec 
    button = 3 
    config = audacious -E /home/numer/.gold/Trance.m3u & 
 end 
 begin 
    prog = irexec 
    button = 4 
    config = audacious -E /home/numer/.gold/Pop.m3u & 
 end 
 begin 
    prog = irexec 
    button = 5 
    config = audacious -E /home/numer/.gold/Top_40.m3u & 
 end 
 begin 
    prog = irexec 
    button = 6 
    config = audacious -E /home/numer/.gold/Latin.m3u & 
 end 
 begin 
    prog = irexec 
    button = 7 
    config = audacious -E /home/numer/.gold/Classical.m3u & 
 end 
 begin 
    prog = irexec 
    button = 8 
    config = audacious -E /home/numer/.gold/.m3u & 
 end 
 begin 
    prog = irexec 
    button = 9 
    config = audacious -E /home/numer/.gold/m3u   & 
 end 
 begin 
    prog = irexec 
    button = 0 
    config = audacious -E /home/numer/.gold/.m3u & 
 end 
 end audacious 
    ######## 
    # MOCP # 
    ######## 
 begin mocp 
 begin 
    prog = irexec 
    button = PLAY 
    config = mocp --play & 
 end 
 begin 
    prog = irexec 
    button = STOP 
    config = mocp --stop & 
 end 
 begin 
    prog = irexec 
    button = FMSCANUP 
    config = mocp --next & 
 end 
 begin 
    prog = irexec 
    button = FMSCANDOWN 
    config = mocp --previous & 
 end 
 begin 
    prog = irexec 
    button = VOLUMEUP 
    config = mocp --volume +2 & 
 end 
 begin 
    prog = irexec 
    button = VOLUMEDOWN 
    config = mocp --volume -2 & 
 end 
 begin 
    prog = irexec 
    button = POWER 
    config = mocp --exit & 
 end 
 begin 
    prog = irexec 
    button = RECORD 
    config = mocp --toggle-pause ; /home/numer/skrypty/muza/streammocp -s & 
 end 
 begin 
    prog = irexec 
    button = FUNCTION 
    button = RECORD 
    config = mocp --toggle-pause ; /home/numer/skrypty/muza/streammocp -a & 
 end 

 end mocp 
    ############ 
    # POWEROFF # 
    ############ 
 begin poweroff 
 begin 
    prog = irexec 
    button = MUTE 
     config = sudo halt & 
 end 
 begin 
    prog = irexec 
    button = MINIMIZE 
    config = /home/numer/skrypty/różne/dpms -off & 
 end 
 begin 
    prog = irexec 
    button = ZOOM 
    config = /home/numer/skrypty/różne/dpms -on & 
 end 
 end poweroff
Wszystkie 3 pliki znalazłem gdzieś na necie, pliki z etc na stronie Lirc'a. Efekt jest taki, że konfiguracja jest w porządku bo mogę ustawić strowanie daną aplikacją przez ten drak w KDE, wtedy mam ikonę pilota w Trayu i jak naciskam przyciski na pilocie to ona miga, a więc komp widzi mojego pilota i reaguje na wszystkie przyciskane na pilocie przyciski, mało tego mogę tym drakiem ustawić sterowanie np. clementine i działa sterowanie odtwarzaniem itp, ale ten drak jest ubogi i można przypisać jeden przycisk do jednej akcji, więc np przycisk play dziala mi tylko w clementine a w
innch playerach nie, no chyba że można inaczej, ale nie umiem tego ustawić.

Wygląd draka w systemsettings

Obrazek

Dlatego postawiłem na plik konfiguracyjny .lircrc w katalogu domowym, bo chcę całkowicie kontrlować kompa a nie tylko podstawowe funkcje. Tylko, że to w ogóle nie działa. Czy ktoś może mi pomóc znaleźć błąd co robię źle?
ODPOWIEDZ

Wróć do „Multimedia - karty graficzne, dźwiękowe, telewizyjne, drukarki, skanery”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 25 gości