Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
935 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  problème de télécommande PCTV [résolu et SOLUTION!!]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

problème de télécommande PCTV [résolu et SOLUTION!!]

n°384224
jyp
>-<o>-<
Posté le 04-01-2004 à 13:16:39  profilanswer
 

Je n'arrive qu'a faire marcher les fonctions : play, stop, >> et << de Xmms mais rien avec d'autres applications!!
 
Je suis sous Gentoo, j'ai modifié le fichier ebuild de lirc avec les paramètres pour ma télécommande (C'est une pinnacle sur port serie)
 
http://www.hardwareportal.ru/Multimedia/Pctv/Remote.jpg
 

  • J'ai compilé LIRC
  • copié le fichier lircd.conf.pctv dans /etc/lircd.conf
  • en root lancé lirc -n

Il m'affiche : lircd 0.7.0pre2: lircd(pctv) ready

  • en user ce sript :

#!/bin/bash
 
killall irexec
killall irxevent
/usr/bin/irexec > /dev/null 2>&1 &
/usr/bin/irxevent > /dev/null 2>&1 &
 
Il m'affiche :
lircd 0.7.0pre2: accepted new client on /dev/lircd
lircd 0.7.0pre2: accepted new client on /dev/lirc

 

  • je lance irw puis appui sur des touches de la telcommande:

0000000000000031 00 1 PinnacleSysPCTVRemote
0000000000000035 00 5 PinnacleSysPCTVRemote
0000000000000038 00 8 PinnacleSysPCTVRemote
0000000000000039 00 9 PinnacleSysPCTVRemote
000000000000002b 00 Info PinnacleSysPCTVRemote
000000000000001f 00 L PinnacleSysPCTVRemote
000000000000002e 00 Preview PinnacleSysPCTVRemote
000000000000002f 00 Power PinnacleSysPCTVRemote
000000000000003d 00 Vol-Rew PinnacleSysPCTVRemote
0000000000000016 00 undo PinnacleSysPCTVRemote
000000000000000e 00 Rewind PinnacleSysPCTVRemote
0000000000000029 00 F_TELETEXT PinnacleSysPCTVRemote
0000000000000018 00 EPG PinnacleSysPCTVRemote
0000000000000015 00 pause PinnacleSysPCTVRemote
000000000000003e 00 Chan-Stop PinnacleSysPCTVRemote
000000000000001a 00 middle PinnacleSysPCTVRemote
000000000000003f 00 Chan+Play PinnacleSysPCTVRemote
000000000000003f 00 Chan+Play PinnacleSysPCTVRemote
000000000000001a 00 middle PinnacleSysPCTVRemote
000000000000003b 00 Vol+FF PinnacleSysPCTVRemote
000000000000003f 00 Chan+Play PinnacleSysPCTVRemote

 

  • quand je lance xawtv, il me dit : lircd 0.7.0pre2: accepted new client on /dev/lircd

mais ca marche pas!
J'ai testé plusieurs fichiers .lircrc mais ca marche pas...
exemple de fichier .lircrc
1er :
begin xawtv
 begin
  prog = irexec
  button = Power
  repeat = 0
  flags = mode
  config = xawtv-remote quit
 end
 begin
  prog = irexec
  button = Mute
  repeat = 0
  config = aumix -l m
 end
 begin
  prog = irexec
  button = channel-
  repeat = 0
  config = xawtv-remote setstation prev
 end
 begin
  prog = irexec
  button = channel+
  repeat = 0
  config = xawtv-remote setstation next
 end
 begin
  prog = irexec
  button = Fullscreen
  repeat = 0
  config = xawtv-remote fullscreen
 end
 begin
  prog = irexec
  button = 1
  repeat = 1
  config = xawtv-remote setstation 0
 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 = vol-
  repeat = 1
  config = aumix -l-2
 end
 begin
  prog = irexec
  button = vol+
  repeat = 1
  config = aumix -l+2
 end
end xawtv

 
2 eme :
begin
prog = irexec
button = F_RADIO
config = xmms &
mode = xmms
end
 
begin
prog = irexec
button = F_TV
config = xawtv >/dev/null&
mode = xawtv
flags= once
end
 
begin xmms
 
begin
prog = xmms
button = Play
config = PLAY
end
 
begin
prog = xmms
button = Stop
config = STOP
end
 
begin
prog = xmms
button = FForward
config = NEXT
end
 
begin
prog = xmms
button = Rewind
config = PREV
end
 
begin
prog = irexec
button = vol+
config = VOL_UP [5]
repeat = 1
end
 
begin
prog = irexec
button = vol-
config = VOL_DOWN [5]
repeat = 1
end
 
end xmms
 
begin xawtv
 
begin
prog = irxevent
button = VOL-
config = Key KP_Subtract xawtv
end
         
begin
prog = irxevent
button = vol+
config = Key KP_Add xawtv
end
 
begin
prog = irxevent
button = channel+
config = Key Page_Up xawtv
end
 
begin
prog = irxevent
button = channel-
config = Key Page_Down xawtv
end
 
begin
prog = irxevent
button = 1
config = Key KP_1 xawtv
end
 
begin
prog = irxevent
button = 2
config = Key KP_2 xawtv
end
 
begin
prog = irxevent
button = 3
config = Key KP_3 xawtv
end
 
begin
prog = irxevent
button = 4
config = Key KP_4 xawtv
end
 
begin
prog = irxevent
button = 5
config = Key KP_5 xawtv
end
 
begin
prog = irxevent
button = 6
config = Key KP_6 xawtv
end
 
begin
prog = irxevent
button = 7
config = Key KP_7 xawtv
end
 
begin
prog = irxevent
button = 8
config = Key KP_8 xawtv
end
 
begin
prog = irxevent
button = 9
config = Key KP_9 xawtv
end
 
begin
prog = irxevent
button = Mute
config = Key A xawtv
end
 
end xawtv


Message édité par jyp le 01-02-2004 à 14:31:04

---------------
Jyp
mood
Publicité
Posté le 04-01-2004 à 13:16:39  profilanswer
 

n°384241
fl0ups
東京 - パリ - SLP
Posté le 04-01-2004 à 13:45:19  profilanswer
 

bah dans ton lircrc tu as des events (button = ) qui n'ont pas l'air d'etre spécifiés dans ton fichier de config de la télécommande

n°384284
jyp
&gt;-&lt;o&gt;-&lt;
Posté le 04-01-2004 à 14:51:27  profilanswer
 

Il y avait 4 touches de trop dans le fichier /etc/lircd.conf mais ca n'a rien changé au problème!!
 
begin remote
 
  name  PinnacleSysPCTVRemote
  bits            8
  eps             30
  aeps            100
 
  one             0     0
  zero            0     0
  gap             180000
 
  begin codes
    Mute                     0x000000000000003C
    Power                    0x000000000000002F
    Chan+Play                0x000000000000003F
    Chan-Stop                0x000000000000003E
    Vol+FF                   0x000000000000003B
    Vol-Rew                  0x000000000000003D
    1                        0x0000000000000031
    2                        0x0000000000000032
    3                        0x0000000000000033
    4                        0x0000000000000034
    5                        0x0000000000000035
    6                        0x0000000000000036
    7                        0x0000000000000037
    8                        0x0000000000000038
    9                        0x0000000000000039
    Fullscreen               0x000000000000002D
    0/AV                     0x000000000000003A
    I                        0x000000000000002B
    P                        0x000000000000002E
    Record                   0x0000000000000027
    Chan_Last                0x0000000000000025
    F_TV                     0x0000000000000026
    F_TELETEXT               0x0000000000000029
    F_RADIO                  0x000000000000002A
    L                        0x000000000000001F
    vol+                     0x000000000000001B
    vol-                     0x000000000000000F
    channel+                 0x0000000000000017
    channel-                 0x000000000000001C
    middle                   0x000000000000001A
    Menu                     0x000000000000001D
    next                     0x0000000000000019
    undo                     0x0000000000000016
    pause                    0x0000000000000015
    redo                     0x0000000000000013
    Rewind                   0x000000000000000E
    Play                     0x000000000000000D
    Stop                     0x000000000000000B
    FForward                 0x0000000000000007
    EPG                      0x0000000000000018
    Zoom                     0x00000000000000B2
 
  end codes
end remote


Message édité par jyp le 04-01-2004 à 14:52:10

---------------
Jyp
n°385533
jyp
&gt;-&lt;o&gt;-&lt;
Posté le 06-01-2004 à 21:10:07  profilanswer
 

UP

n°386557
jyp
&gt;-&lt;o&gt;-&lt;
Posté le 08-01-2004 à 19:36:45  profilanswer
 

up...


---------------
Jyp
n°387279
the_exorci​st
bouh ?
Posté le 10-01-2004 à 00:30:32  profilanswer
 

tu pourrais pas utiliser girder.....l est impect ce programme...paske moi perso j ai une telecommande ati et j utilise girder pour tout...l est vriament bien :D

n°387742
jyp
&gt;-&lt;o&gt;-&lt;
Posté le 10-01-2004 à 23:28:40  profilanswer
 

girder, c'est pour Windows pas pour Linux?


---------------
Jyp
n°399735
jyp
&gt;-&lt;o&gt;-&lt;
Posté le 01-02-2004 à 14:29:12  profilanswer
 

  • Si vous avez une Gentoo :

LIRC_OPTS="--with-driver=pctv" emerge lirc
 

  • Sinon avec les sources

tar xjvf lirc-0.6.6.tar.bz2
cd lirc-0.6.6
./configure --with-driver=pctv ou ./setup
make
# en root
make install
 
 
P'tite modif du fichier /etc/init.d/lircd sinon le lien symbolique ttyS0 -> lirc est supprimé au redémarrage de lircd


#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
 
depend()
{
        need net
}
 
start()
{
        ebegin "Starting lircd"
        start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- ${LIRCD_OPTS}
        [g]ln -s /dev/ttyS0 /dev/lirc[/g]
        eend $?
}
 
stop()
{
        ebegin "Stopping lircd"
        start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
        eend $?
}
 


 
Pour le mettre au demarrage :
rc-update add lircd default
 
J'ai installé irmix pour avoir la barre de volume à l'écran (http://www.blackfiveservices.co.uk/irmix.shtml)
 
http://www.blackfiveservices.co.uk/gfx/irmix.png
 
Installation de irmix
tar xzvf irmix-0.1.4.tar.gz
cd irmix-0.1.4
# J'ai désactivé le support xft car je ne suis pas sous xft. Par contre j'utilise les drivers Alsa mais si on les désactive pas ça marche pas!
./configure --disable-xft --disable-alsa
make
# en root
make install
 
Dans son répertoire home :
J'ai trouve ce script start_lirc, trouver sur http://shift.free.fr/?ordi_tv
J'y ai rajouté irmix
 

#!/bin/bash
 
killall irexec
killall irxevent
killall irmix
 
/usr/bin/irexec > /dev/null 2>&1 &
/usr/bin/irxevent > /dev/null 2>&1 &
/usr/local/bin/irmix --mixer=/dev/mixer -d


 
Pour le rendre exécutable :
chmod +x start_lirc
 
Puis il faut placer ce fichier dans le fichier .xsession ou dans le répertoire .kde/Autostart/ si vous utilsez KDE
 
A titre d'exemple mon fichier .lircrc (pour Xine, TvTime et Xmms)
 


begin
prog = irexec
button = F_RADIO
config = xmms &
mode = xmms
end
 
begin
prog = irexec
button = F_TV
config = tvtime &
mode = tvtime
#flags= once
end
 
begin                                                                            
prog = irexec                                                                    
button = EPG                                                                
config = xine &
mode = xine
end
 
begin xmms
 
begin
prog = xmms
button = Play
config = PLAY
end
 
begin                                                                            
prog = xmms                                                                      
button = pause                                                                    
config = PAUSE                                                                  
end
 
begin
prog = xmms
button = Stop
config = STOP
end
 
begin
prog = xmms
button = FForward
config = NEXT
end
 
begin
prog = xmms
button = Rewind
config = PREV
end
 
begin
prog = irmix
button = vol+
config = inc 3
repeat = 1
end
 
begin
prog = irmix
button = vol-
config = dec 3
repeat = 1
end
 
end xmms
 
begin tvtime
 
begin                                                                          
prog = irmix                                                                  
button = vol-                                                                  
config = dec 3                                                            
repeat = 1                                                                      
end  
 
begin
prog = irmix
button = vol+
config = inc 3
repeat = 1
end
 
begin
prog = irexec
button = channel+
config = tvtime-command UP
end
 
begin
prog = irexec
button = channel-
config = tvtime-command DOWN
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 = Mute
config = tvtime-command TOGGLE_MUTE
end
 
begin                                                                            
prog = irexec
button = Power
config = tvtime-command QUIT                                              
end
 
begin                                                                            
prog = irexec                                                                    
button = Fullscreen                                                                  
config = tvtime-command TOGGLE_FULLSCREEN                                                    
end
 
begin                                                                            
prog = irexec                                                                    
button = Menu                                                
config = tvtime-command SHOW_MENU                                                
end
 
begin                                                                            
prog = irexec                                                                    
button = Chan+Play                                                  
config = tvtime-command MENU_UP
end
 
begin                                                                            
prog = irexec                                                                    
button = Chan-Stop                                                
config = tvtime-command MENU_DOWN
end
 
begin                                                                            
prog = irexec                                                                    
button = Vol+FF                                              
config = tvtime-command MENU_ENTER
end  
 
begin                                                                            
prog = irexec                                                                    
button = Vol-Rew                                                
config = tvtime-command MENU_BACK
end
 
begin                                                                            
prog = irexec                                                                    
button = middle                                                    
config = tvtime-command ENTER
end  
 
begin                                                                            
prog = irexec                                                                    
button = Chan_Last                                            
config = tvtime-command CHANNEL_JUMP                                                    
end
 
end tvtime
 
begin xine                                                                      
 
begin                                                                            
prog = irmix                                                                    
button = vol-                                                                    
config = dec 3                                                              
repeat = 1                                                                      
end                                                                              
                                                                                 
begin                                                                            
prog = irmix                                                                  
button = vol+                                                                    
config = inc 3                                                            
repeat = 1                                                                      
end
                                                                                 
begin
prog = xine
button = pause
config = Pause
end
 
begin                                                                            
prog = xine                                                                      
button = Fullscreen                                                        
config = ToggleFullscreen                                                                  
end  
 
begin                                                                            
prog = xine                                                                      
button = Power
config = Quit
end
 
begin                                                                            
prog = xine                                                                      
button = Play                                                                  
config = Play                                                                    
end
 
begin                                                                            
prog = xine                                                                      
button = Stop                                                                    
config = Stop
end
 
begin                                                                            
prog = xine                                                                      
button = Mute                                                                    
config = Mute                                                                    
end
 
begin                                                                            
prog = xine                                                                      
button = FForward                                                                
config = NextMrl
end  
 
begin                                                                            
prog = xine                                                                      
button = Rewind                                                                
config = PriorMrl
end  
 
begin                                                                            
prog = xine                                                                      
button = Menu                                                                
config = RootMenu
end  
 
begin                                                                            
prog = xine                                                                      
button = Chan+Play                                                                
config = EventUp
end  
 
begin                                                                            
prog = xine                                                                      
button = Chan-Stop                                                              
config = EventDown                                                                
end
 
begin                                                                            
prog = xine                                                                      
button = Vol-Rew                                                              
config = EventLeft                                                        
end  
 
begin                                                                            
prog = xine                                                                      
button = Vol+FF                                                                
config = EventRight                                                              
end
 
begin                                                                            
prog = xine                                                                      
button = middle                                                                
config = EventSelect                                                              
end
 
begin                                                                            
prog = xine                                                                      
button = P                                                          
config = ScanPlaylistInfo                                                            
end  
 
begin                                                                            
prog = xine                                                                      
button = Chan_Last                                                          
config = ToggleLoopMode                
end
 
end xine


Message édité par jyp le 01-02-2004 à 14:44:57

---------------
Jyp

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  problème de télécommande PCTV [résolu et SOLUTION!!]

 

Sujets relatifs
(*system*) PARSE (bad username) <= Problème avec crontab ss FreeBSDProblème carte TV [Pixelview BT878]
Putty [RESOLU][MDK] pb d'impression avec KDE [RESOLU]
Gros problème Utilitaire de partage boot GURBProbleme de compilation Php 4.3.4
Debian : apt-get dist-upgrade (problème de conflits)Mandrake 9.2 plante à l'installation sur Gericom Masterpiece [Résolu]
[Debian] installation F@st 800 et Sourie USB [RESOLU]Probleme de fenetre avec un programme Motif
Plus de sujets relatifs à : problème de télécommande PCTV [résolu et SOLUTION!!]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR