Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 19/12/2006, à 20:40

ersplus

LIRC : les fichiers .lircrc

Loin de moi l'idée de faire un tuto sur LIRC, mais j'ai pensé qu'il serait nécessaire de faire le point pour ceux qui débute sur la configuration de irexec une fois que la télécommande est reconnue.

tout d'abord connaitre le nom de la fonction de la télécommande. Dans un terminal tapez :

irw

Lors de chaque pression sur le bouton le nom apparait dans le terminal.

Les fichiers ci dessous sont ceux d'une télécommande Ati Remote Wonder première génération.

Mes préférences vont sur la télé... Donc freeplayer, Kaffeine pour la tnt, tvtime et totem pour les films.

Le fichier .lircrc

begin
	prog   = irexec
	button = TV
	config = if [ $(ps -eo cmd | grep -c ^tvtime$) -eq 0 ]; then (kaffeine &); fi; gnome-osd-client -f "<message id='lirc'>Mode [Télévision]</message>"
	mode   = tvtime &
end
begin
	prog   = irexec
	button = WEB
	config = if [ $(ps -eo cmd | grep -c ^vlc) -eq 0 ]; then (vlc "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" &); fi; gnome-osd-client -f "<message id='lirc'>Mode [Freebox]</message>"
	mode   = vlc &
end
begin
	prog   = irexec
	button = DVD
	config = if [ $(ps -eo cmd | grep -c ^totem$) -eq 0 ]; then (totem &); fi; gnome-osd-client -f "<message id='lirc'>Mode [Vidéo]</message>"
	mode   = totem &
end
begin
	prog   = irexec
	button = HAND
	config = if [ $(ps -eo cmd | grep -c ^kaffeine$) -eq 0 ]; then (kaffeine -f &); fi; gnome-osd-client -f "<message id='lirc'>Mode [TNT]</message>"
	mode   = kaffeine &
end


include ~/.lircrc.vlc
include ~/.lircrc.totem
include ~/.lircrc.tvtime
include ~/.lircrc.kaffeine

Pour le contrôle de la souris dans X :

sudo gedit /etc/X11/xorg.conf

Section "InputDevice"
        Identifier  "LIRC-Mouse"
        Driver      "mouse"
        Option      "Device" "/dev/lircm"
        Option      "Protocol" "IMPS/2"
        Option      "SendCoreEvents"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "4 5"
EndSection

et ajouter dans Section "ServerLayout"

InputDevice "LIRC-mouse" "CorePointer"

Dernière modification par ersplus (Le 20/12/2006, à 19:13)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#2 Le 19/12/2006, à 20:41

ersplus

Re : LIRC : les fichiers .lircrc

Le fichier pour VLC :

Dans VLC

Paramètres >> Préférences >> Interfaces >> Interfaces de contrôle, cocher la case Interface de contrôle a distance par infrarouge


.lircrc.vlc

## VLC ##
begin
	prog = vlc
	button = PLAY
	config = key-play
	repeat=32
end
begin
	prog = vlc
	button = PAUSE
	config = key-pause
	repeat=32
end
begin
	prog = vlc
	button = STOP
	config = key-stop
	repeat=32
end
begin
	prog = vlc
	button = POWER
	config = key-quit
	repeat=1
end
begin
	prog = vlc
	button = cancel
	config = key-quit
	repeat=32
end
begin
	prog = vlc
	button = CH_UP
	config = key-next
	repeat=32
end
begin
	prog = vlc
	button = CH_DOWN
	config = key-prev
	repeat=32
end
begin
	prog = vlc
	button = MAXIMIZE
	config = key-fullscreen
	repeat=32
end
begin
	prog = vlc
	button = REW
	config = key-slower
	repeat=32
end
begin
	prog = vlc
	button = FFWD
	config = key-faster
	repeat=32
end
#Audio controls
begin
	prog = vlc
	button = VOL_DOWN
	config = key-vol-down
	repeat=0
end
begin
	prog = vlc
	button = VOL_UP
	config = key-vol-up
	repeat=0
end
begin
	prog = vlc
	button = MUTE
	config = key-vol-mute
	repeat=32
end

#For dvd navigation
begin
	prog = vlc
	button = 4
	config = key-nav-left
end
begin
	prog = vlc
	button = 8
	config = key-nav-down
end
begin
	prog = vlc
	button = 2
	config = key-nav-up
end
begin
	prog = vlc
	button = 6
	config = key-nav-right
end
begin
	prog = vlc
	button = 5
	config = key-nav-activate
end
begin
	prog = vlc
	button = source
	config = key-disc-menu
end

Dernière modification par ersplus (Le 09/02/2007, à 07:42)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#3 Le 19/12/2006, à 20:44

ersplus

Re : LIRC : les fichiers .lircrc

Le fichier pour TVTIME

.lircrc.tvtime

## TVTIME ##

begin
	prog = irexec
	button = POWER
	config = tvtime-command QUIT
end
begin
	prog = irexec
	button = E
	config = tvtime-command TOGGLE_INPUT
end
begin
	prog = irexec
	button = launch_setup
	config = tvtime-command DISPLAY_INFO
end
begin
	prog = irexec
	button = MAXIMIZE
	config = tvtime-command TOGGLE_FULLSCREEN
end
begin
	prog = irexec
	button = MUTE
	config = tvtime-command TOGGLE_MUTE
end
begin
	prog = irexec
	button = UP
	config = tvtime-command UP
end
begin
	prog = irexec
	button = DOWN
	config = tvtime-command DOWN
end
begin
	prog = irexec
	button = RIGHT
	config = tvtime-command RIGHT
end
begin
	prog = irexec
	button = LEFT
	config = tvtime-command LEFT
end
begin
	prog = irexec
	button = VOL_UP
	config = tvtime-command MIXER_UP
	repeat = 1
end
begin
	prog = irexec
	button = VOL_DOWN
	config = tvtime-command MIXER_DOWN
	repeat = 1
end
begin
	prog = irexec
	button = CH_UP
	config = tvtime-command CHANNEL_UP
end
begin
	prog = irexec
	button = CH_DOWN
	config = tvtime-command CHANNEL_DOWN
end
begin
	prog = irexec
	button = dvd-root_menu
	config = tvtime-command CHANNEL_JUMP
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 = OK
	config = tvtime-command ENTER
end

Dernière modification par ersplus (Le 20/12/2006, à 18:52)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#4 Le 19/12/2006, à 20:46

ersplus

Re : LIRC : les fichiers .lircrc

Le fichier pour Totem

.lircrc.totem

## Totem ##
begin totem
	begin
		prog   = Totem
		button = POWER
		config = quit
	end
	begin
		prog   = Totem
		button = PLAY
		config = play
	end
	begin
		prog   = Totem
		button = PAUSE
		repeat = 0
		config = pause
	end
	begin
		prog   = Totem
		button = STOP
		config = pause
		repeat = 0
	end
	begin
		prog   = Totem
		button = CH-UP
		config = next
		repeat = 1
	end
	begin
		prog   = Totem
		button = CH-DOWN
		config = seek_previous
		repeat = 1
	end
	begin
		prog   = Totem
		button = FFWD
		config = seek_forward
		repeat = 1
	end
	begin
		prog   = Totem
		button = REW
		config = seek_backward
		repeat = 1
	end
	begin
		prog   = Totem
		button = VOL_UP
		config = volume_up
		repeat = 1
	end
	begin
		prog   = Totem
		button = VOL_DOWN
		config = volume_down
		repeat = 1
	end
	begin
		prog   = Totem
		button = MAXIMIZE
		config = fullscreen
		repeat = 1
	end
end totem

Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#5 Le 19/12/2006, à 20:47

ersplus

Re : LIRC : les fichiers .lircrc

Le fichier pour KAFFEINE et la TNT

.lircrc.kaffeine

## KAFFEINE ##
begin
        prog = irexec
        button = PLAY
        config = dcop kaffeine KaffeineIface playDvb
end

begin
        prog = irexec
        button = PAUSE
        config = dcop kaffeine KaffeineIface pause
end

begin
        prog = irexec
        button = OK
        config = dcop kaffeine KaffeineIface dvbOSD
end

begin
        prog = irexec
        button = STOP
        config = dcop kaffeine KaffeineIface stop
end

begin
        prog = irexec
        button = FFWD
        config = dcop kaffeine KaffeineIface posPlus
end

begin
        prog = irexec
        button = REW
        config = dcop kaffeine KaffeineIface posMinus
end

begin
        prog = irexec
        button = CH_UP
        config = dcop kaffeine KaffeineIface next
end

begin
        prog = irexec
        button = CH_DOWN
        config = dcop kaffeine KaffeineIface previous
end

begin
        prog = irexec
        button = POWER
        config = dcop kaffeine KaffeineIface quit
end

begin
        prog = irexec
        button = VOL_UP
        config = dcop kaffeine KaffeineIface volUp
end

begin
        prog = irexec
        button = MUTE
        config = dcop kaffeine KaffeineIface mute
end

begin
        prog = irexec
        button = VOL_DOWN
        config = dcop kaffeine KaffeineIface volDown
end

begin
        prog = irexec
        button = MAXIMIZE
        config = dcop kaffeine KaffeineIface fullscreen
end

begin
        prog = irexec
        button = UP
        config = dcop kaffeine KaffeineIface zoomIn
end

begin
        prog = irexec
        button = DOWN
        config = dcop kaffeine KaffeineIface zoomOut
end

begin
        prog = irexec
        button = 1
        config = dcop kaffeine KaffeineIface setNumber 1
end

begin
        prog = irexec
        button = 2
        config = dcop kaffeine KaffeineIface setNumber 2
end

begin
        prog = irexec
        button = 3
        config = dcop kaffeine KaffeineIface setNumber 3
end

begin
        prog = irexec
        button = 4
        config = dcop kaffeine KaffeineIface setNumber 4
end

begin
        prog = irexec
        button = 5
        config = dcop kaffeine KaffeineIface setNumber 5
end

begin
        prog = irexec
        button = 6
        config = dcop kaffeine KaffeineIface setNumber 6
end

begin
        prog = irexec
        button = 7
        config = dcop kaffeine KaffeineIface setNumber 7
end

begin
        prog = irexec
        button = 8
        config = dcop kaffeine KaffeineIface setNumber 8
end

begin
        prog = irexec
        button = 9
        config = dcop kaffeine KaffeineIface setNumber 9
end

begin
        prog = irexec
        button = 0
        config = dcop kaffeine KaffeineIface setNumber 0
end

Dernière modification par ersplus (Le 20/12/2006, à 19:14)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#6 Le 19/12/2006, à 21:22

max63

Re : LIRC : les fichiers .lircrc

Pour amarok ca existe aussi?


Tout sur l'actualité frakassante du libre : http://www.frakass.org

Hors ligne

#7 Le 20/12/2006, à 13:27

ersplus

Re : LIRC : les fichiers .lircrc

Pour Amarok

## Amarok ##

begin
        prog = irexec
        button = A
        config = amarok 
end

begin
	prog = irexec
	button = PLAY
	config = dcop amarok player play
end

begin
        prog = irexec
        button = PAUSE
        config = dcop amarok player pause
end

begin
        prog = irexec
        button = STOP
        config = dcop amarok player stop
end

begin
        prog = irexec
        button = FFWD
        config = dcop amarok player seekRelative 15
end

begin
        prog = irexec
	button = REW
        config = dcop amarok player seekRelative -5
end

begin
        prog = irexec
	button = RIGHT
        config = dcop amarok player next
end

begin
        prog = irexec
	button = LEFT
        config = dcop amarok player prev
end

begin
        prog = irexec
        button = VOL_UP
        config = dcop amarok player volumeUp
end

begin
        prog = irexec
        button = MUTE
        config = dcop amarok player mute
end

begin
        prog = irexec
        button = VOL_DOWN
        config = dcop amarok player volumeDown
end

begin
        prog = irexec
        button = LIST
        config = dcop amarok playlist togglePlaylist
end

begin
        prog = irexec
        button = CHECK
        config = toggleRandomAmarok
end

begin
        prog = irexec
        button = MAXIMIZE
        config = dcop amarok player showOSD 
end

begin
        prog = irexec
	button = A
        button = POWER
        config = dcop amarok MainApplication-Interface quit
end

Dernière modification par ersplus (Le 20/12/2006, à 13:28)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#8 Le 02/02/2007, à 11:19

sionib

Re : LIRC : les fichiers .lircrc

Salut,

très intéressant tout ça !

j'arrive bien à faire fonctionner lirc avec ma télécommande pinnacle sur ces différentes applications.

Mais par contre ce qui m'intéresse c'est de savoir comment tu as fais pour installer gnome-osd
j'ai été ici http://packages.debian.org/unstable/gnome/gnome-osd, j'ai télécharger le .deb mais pour le problème c'est qu'il me manque des dépendances !


gnome-osd dépend de python-support (>= 0.2) ; cependant :
  La version de python-support sur le système est 0.1.1ubuntu1.

Donc si ersplus tu pouvais me tuyauter la dessus....;)

Merci.

#9 Le 02/02/2007, à 13:03

ersplus

Re : LIRC : les fichiers .lircrc

Gnome OSD est dans synaptic. cherche gnome-osd ou gnome-osd-client.

Mail moi si tu as un problème : ersplus gmail com

Rappel : il faut adapter ces fichier en fonction desnom de touche de  la télécommande.

@ plus

Dernière modification par ersplus (Le 02/02/2007, à 13:06)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#10 Le 04/02/2007, à 00:04

sionib

Re : LIRC : les fichiers .lircrc

Salut,

t'as quoi dans ton sources.list ?

Voici le miens :

## Dépà´ts officiels
deb http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

## Dépà´ts "source" officiels (supprimer les # pour les activer)
deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

## Dépà´t commercial officiel
# deb http://archive.canonical.com dapper-commercial mai
## autres
# deb http://nicolas.estre.free.fr/ubuntu/dists dapper-main/binary-i386
#Mario's Lirc Repository
deb http://home.eng.iastate.edu/~superm1 edgy lirc
deb-src http://home.eng.iastate.edu/~superm1 edgy lirc

-> Pas de gnome-osd dans synaptic.

Merci d'avance.

#11 Le 05/02/2007, à 16:46

ihp140

Re : LIRC : les fichiers .lircrc

et pour mplayer?

Hors ligne

#12 Le 05/02/2007, à 20:06

ersplus

Re : LIRC : les fichiers .lircrc

Trouvé ca mais pas testé...

# Mplayer
# Info can be found here http://www.mplayerhq.hu/DOCS/HTML/en/control.html#lirc

begin
  button = vol-up
  prog = mplayer
  config = volume 10
  repeat = 5
end
begin
  button = vol-down
  prog = mplayer
  config = volume -10
  repeat = 5
end
begin
  button = mute
  prog = mplayer
  config = mute
end
begin
  button = pause
  prog = mplayer
  config = pause
end
begin
  button = play
  prog = mplayer
  config = pause
end
begin
  button = stop
  prog = mplayer
  config = seek 0 1\npause
end
begin
  button = power
  prog = mplayer
  config = quit
end
begin
  button = f
  prog = mplayer
  config = vo_fullscreen
end
begin
  button = record
  prog = mplayer
  config = osd
end
begin
  button = fast_forward
  prog = mplayer
  config = seek 5
end
begin
  button = rewind
  prog = mplayer
  config = seek -5
end
begin
  button = cursor-right
  prog = mplayer
  config = seek 60
end
begin
  button = cursor-left
  prog = mplayer
  config = seek -60
end
begin
  button = cursor-up
  prog = mplayer
  config = seek 600
end
begin
  button = cursor-down
  prog = mplayer
  config = seek -600
end
begin
  button = chan-up
  prog = mplayer
  config = pt_step 1
end
begin
  button = chan-down
  prog = mplayer
  config = pt_step -1
end
begin
  button = tv_on_demand
  prog = mplayer
  config = sub_delay -0.1
  repeat = 5
end
begin
  button = max_window
  prog = mplayer
  config = sub_delay +0.1
  repeat = 5
end
begin
  button = c
  prog = mplayer
  config = audio_delay 0.100
  repeat = 5
end
begin
  button = d
  prog = mplayer
  config = audio_delay -0.100
  repeat = 5
end
begin
  button = e
  prog = mplayer
  config = panscan +0.1
  repeat = 5
end

Et mon sources.list :

## Dépôts principaux
deb http://fr.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu edgy main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu edgy-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-security main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu edgy-security main restricted

## Dépôts Universe et Multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu edgy universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-updates universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu edgy-updates universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-security universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu edgy-security universe multiverse

## Dépôts Backports
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

## Dépôt Commercial
deb http://archive.canonical.com/ubuntu edgy-commercial main

## Medibuntu - Ubuntu 6.10 "edgy eft"
deb http://medibuntu.sos-sts.com/repo/ edgy free non-free
deb-src http://medibuntu.sos-sts.com/repo/ edgy free non-free

## ASHER : gnormalize nautilus-actions glipper debian-menu-icons
deb http://asher256-repository.tuxfamily.org edgy main dupdate french
deb http://archive.ubuntu.com/ubuntu/ edgy-proposed restricted main multiverse universe
deb http://asher256-repository.tuxfamily.org ubuntu main dupdate french

## Dépot Tvfreeplayer Dapper VLC Freeplayer et Multipostes
deb http://www.tvfreeplayer.com/linux/falcon edgy all

Dernière modification par ersplus (Le 05/02/2007, à 20:10)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#13 Le 05/02/2007, à 21:57

sionib

Re : LIRC : les fichiers .lircrc

Bonsoir,

je suis sous dapper.

J'ai essayé d'installer gnome-osd en remplacent mon sources.list par le tiens, mais le problème c'est que j'ai trop de mises à jours à faire. ce qui, j'avoue me rebute à aller plus loin.

Du coup je change de sujet mais as tu un conseil à me donner pour faire l'update en edgy ?

#14 Le 06/02/2007, à 08:02

ersplus

Re : LIRC : les fichiers .lircrc

J'avais pas vu que tu étais sous dapper, sorry, le paquet gnome-osd est dans universe normalement :

http://mirror.linux.org.mt/mirror/ubuntu/pool/universe/g/gnome-osd/gnome-osd_0.11.2-3ubuntu1_all.deb

http://packages.ubuntulinux.org/feisty/gnome/gnome-osd

Tu dois avoir des dépots manquant...

Essaye ca pour Dapper :

# Automatically generated sources.list
# http://www.ubuntu-nl.org/source-o-matic/
#
# If you get GPG errors with this sources.list, locate the GPG key in this file
# and run these commands (where KEY is replaced with that key)
#
# gpg --keyserver hkp://subkeys.pgp.net --recv-keys KEY
# gpg --export --armor KEY | sudo apt-key add -

# Ubuntu supported packages
# GPG key: 437D05B5
deb http://ch.archive.ubuntu.com/ubuntu dapper main restricted 
deb http://ch.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted

deb-src http://ch.archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

# Ubuntu community supported packages
# GPG key: 437D05B5
deb http://ch.archive.ubuntu.com/ubuntu dapper universe multiverse 
deb http://ch.archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse

deb-src http://ch.archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse

# Ubuntu backports project
# GPG key: 437D05B5
deb http://ch.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse 

deb-src http://ch.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

# Upstream Wine
deb http://wine.budgetdedicated.com/apt dapper main 

deb-src http://wine.budgetdedicated.com/apt dapper main

# Medibuntu multimedia packages
# GPG key: 0C5A2783
deb http://medibuntu.sos-sts.com/repo/ dapper free non-free 

deb-src http://medibuntu.sos-sts.com/repo/ dapper free non-free

# Canonical Commercial packages
# GPG key: 437D05B5
deb http://archive.canonical.com dapper-commercial main 

deb-src http://archive.canonical.com dapper-commercial main

Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#15 Le 07/02/2007, à 12:52

sionib

Re : LIRC : les fichiers .lircrc

Salut,

je viesn de tester et voici ce que j'ai en retour :

Lecture des listes de paquets... Fait
W: GPG error: http://wine.budgetdedicated.com dapper Release: Les signatures suivantes n'ont pas pu être vér ifiées car la clé publique n'est pas disponible : NO_PUBKEY 58403026387EE263
W: Vous pouvez lancer « apt-get update » pour corriger ces problèmes.
angelique@a7v600:~$ sudo apt-get install gnome-osd
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
E: Impossible de trouver le paquet gnome-osd

Une idéee ?

Merci


Ubuntu 10.04 64Bit - AMD X3 8450 2x2Go G-Skill  GS250
Ubuntu 10.04 32Bit - Netbook Samsung N510

-> Tout arrive @  qui sait attendre. <-

Hors ligne

#16 Le 07/02/2007, à 14:03

ersplus

Re : LIRC : les fichiers .lircrc

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Bon le point après un peu de lecture gnome-osd ne passe sur la version 6.06 donc il semble que pour cette fonction un upgrade soit la solution...

ALT + F2
et

gksudo "update-manager -c"

La plupart du temps cela passe sans problème. Mais il peu être nécessaire en cas de plantage de tout réinstaller... Si la partition /home a été crée a part,  c'est un gros gage de sécurité pour tes données. Par contre si /home est sur la racine / alors là en cas de problème, on peut perdre ses données.

Donc avant toute manoeuvre, le sage a dit fait des sauvegardes !

Un peu de doc et de courage :

http://doc.ubuntu-fr.org/installation/migration_dapper_edgy

Dernière modification par ersplus (Le 07/02/2007, à 14:14)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#17 Le 07/02/2007, à 18:37

sionib

Re : LIRC : les fichiers .lircrc

Salut,

pour ma part j'ai toujours pris l'habitude de séparer le système des données, que se soit sous window$ ou sous linux.
Donc pour ce qui est des docs ça devrait aller. Par contre je vais bien étudier ça avant de me lancer dans le passage de dapper à edgy.

Merci en tout cas pour ton aide wink

@+


Ubuntu 10.04 64Bit - AMD X3 8450 2x2Go G-Skill  GS250
Ubuntu 10.04 32Bit - Netbook Samsung N510

-> Tout arrive @  qui sait attendre. <-

Hors ligne

#18 Le 08/02/2007, à 21:10

sionib

Re : LIRC : les fichiers .lircrc

Bonsoir,

c'est ok, la mise à jour s'est faite presque sans soucis... merci encore.

Je reviens sur tes fichiers lircrc,

tous ce qui est en

prog   = irexec

pas de soucis !


mais tous ce qui est en

prog   = vlc

==>(par exemple)

RIEN !
ça fonctionne pas... hmm



une idéee  ?

Dernière modification par sionib (Le 08/02/2007, à 21:13)


Ubuntu 10.04 64Bit - AMD X3 8450 2x2Go G-Skill  GS250
Ubuntu 10.04 32Bit - Netbook Samsung N510

-> Tout arrive @  qui sait attendre. <-

Hors ligne

#19 Le 09/02/2007, à 07:41

ersplus

Re : LIRC : les fichiers .lircrc

Paramètres >> Préférences >> Interfaces >> Interfaces de contrôle, cocher la case Interface de contrôle a distance par infrarouge


Pour la lecture vidéo je suis passé à Mplayer, je n'ai pas résolu certains problème avec VLC notamment Pause Play qui ne fonctionnait pas...

Au cas ou :

La ligne d'appel dans lircrc:

 if [ $(ps -eo cmd | grep -c ^mplayer$) -eq 0 ]; then (mplayer -playlist /media/LACIE/Video/playlist.txt &); fi; gnome-osd-client -f "<message id='lirc'>Mode Vidéo</message>"

et en fin de fichier on rajoute :

include ~/.lircrc.mplayer

Le seul défaut de mplayer est qu'il doit démarrer avec une liste de lecture...

pour la générer simplement :

cd /lerepertoire/des/videos
ls > playlist.txt

Pour que celle ci se génère automatiquement au démarrage, il faudrait faire un truc du genre :

ls /lerepertoire/des/videos > playlist.txt && mplayer -playlist /lerepertoire/des/videos/playlist.txt &

.lircrc.mplayer

# Mplayer
#Pour les infos http://www.mplayerhq.hu/DOCS/HTML/en/control.html#lirc

begin
  button = vol-up
  prog = mplayer
  config = volume 10
  repeat = 5
end
begin
  button = vol-down
  prog = mplayer
  config = volume -10
  repeat = 5
end
begin
  button = mute
  prog = mplayer
  config = mute
end
begin
  button = pause
  prog = mplayer
  config = pause
end
begin
  button = play
  prog = mplayer
  config = pause
end
begin
  button = stop
  prog = mplayer
  config = seek 0 1\npause
end
begin
  button = power
  prog = mplayer
  config = quit
end
begin
  button = max_window
  prog = mplayer
  config = vo_fullscreen
end
begin
  button = record
  prog = mplayer
  config = osd
end
begin
  button = forward
  prog = mplayer
  config = seek 5
end
begin
  button = rewind
  prog = mplayer
  config = seek -5
end
begin
  button = right
  prog = mplayer
  config = seek 60
end
begin
  button = left
  prog = mplayer
  config = seek -60
end
begin
  button = up
  prog = mplayer
  config = seek 600
end
begin
  button = down
  prog = mplayer
  config = seek -600
end
begin
  button = chan-up
  prog = mplayer
  config = pt_step 1
end
begin
  button = chan-down
  prog = mplayer
  config = pt_step -1
end

Fin de ma prise de tête...

Bravo pour Edgy !

Dernière modification par ersplus (Le 09/02/2007, à 08:24)


Voyager 11.10
Config : AMD Phenom II X4, 4 Go Ram, HDD 2 x 1 To
Wifi Netgear WNA1100

Hors ligne

#20 Le 10/02/2007, à 12:43

sionib

Re : LIRC : les fichiers .lircrc

Bonjour,

Je n'ai pas le problème de play pause avec vlc par contre pas moyen de le faire passer en "fullscreen" pour parer à ça j'ai activé le passage automatique en fullscreen à la lecture.

Et voici mes fichiers .lircrc avec la télécommande pinnacle utilisant le driver "pinsys" de lirc.

J'utilise TVTime pour la TV et VLC pour la vidéo.

mon fichier .lircrc :

##Allumage moniteur##
 ## -> si qqun sait comment faire pour avoir allumage/extinction sur le mm bouton ça m'interesse !

begin

        prog= irexec
        repeat=0
        button= Preview
        config= xset dpms force on
end

##Extinction moniteur##

begin

        prog= irexec
        repeat=0
        button= Power
        config= xset dpms force off
end


##Configuration de base## ->emulation clavier avec la télécommande

begin
	prog = irxevent
	button = vol-Rew
	config = Key Left CurrentWindow
	repeat = 1
end 

begin
	prog = irxevent
	button = chan+Play
	config = Key Up  CurrentWindow
	repeat = 1
end 

begin
	prog = irxevent
	button = vol+FF
	config = Key Right  CurrentWindow
	repeat = 1
end 

begin
	prog = irxevent
	button = chan-Stop
	config = Key Down  CurrentWindow
	repeat = 1
end 

begin
	prog = irxevent
	button = middle
	config = Key Return  CurrentWindow
end 

begin
	prog = irxevent
	button = redo
	config = Key Tab  CurrentWindow
end 

begin
	prog = irxevent
	button = undo
	config = Key SHIFT-Tab  CurrentWindow
end 


##Lancement des programmes## -> on quitte les programmes en appuyant de nouveau sur le bouton

begin
	prog   = irexec
	button = F_TV
	config = if tvtime-command quit; then : ; else tvtime on & fi; gnome-osd-client -f "<message id='lirc'>Mode Télévision</message>"
	mode   = tvtime &
end

begin
	prog   = irexec
	button = F_RADIO
	config = if [ $(ps -eo cmd | grep -c vlc$) -eq 0 ]; then (vlc &); else (killall vlc) fi; gnome-osd-client -f "<message id='lirc'>Mode Video</message>"
	mode   = vlc &
end


include ~/.lircrc.vlc

include ~/.lircrc.tvtime

mon fichier .lircrc.tvtime pour telecommande pinnacle :

## TVTIME ##

begin
    prog = irexec
    button = L
    config = tvtime-command TOGGLE_INPUT
end
begin
    prog = irexec
    button = Info
    config = tvtime-command DISPLAY_INFO
end
begin
    prog = irexec
    button = Fullscreen
    config = tvtime-command TOGGLE_FULLSCREEN
end
begin
    prog = irexec
    button = Mute
    config = tvtime-command TOGGLE_MUTE
end
begin
    prog = irexec
    button = Chan+Play
    config = tvtime-command UP
end
begin
    prog = irexec
    button = Chan-Stop
    config = tvtime-command DOWN
end
begin
    prog = irexec
    button = Vol+FF
    config = tvtime-command RIGHT
end
begin
    prog = irexec
    button = Vol-Rew
    config = tvtime-command LEFT
end
begin
    prog = irexec
    button = vol+
    config = tvtime-command MIXER_UP
    repeat = 1
end
begin
    prog = irexec
    button = vol-
    config = tvtime-command MIXER_DOWN
    repeat = 1
end
begin
    prog = irexec
    button = Channel+
    config = tvtime-command CHANNEL_UP
end
begin
    prog = irexec
    button = Channel-
    config = tvtime-command CHANNEL_DOWN
end
begin
    prog = irexec
    button = Chan_Last
    config = tvtime-command CHANNEL_JUMP
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 = middle
    config = tvtime-command ENTER
end

et mon fichier .lircrc.vlc pour télécommande pinnacle :

##VLC##

##Commandes générales##

begin
	prog = irxevent
	button = Next
	config = Key Ctrl-o  CurrentWindow
end 

begin
	prog = vlc
	button = Play
	config = key-play-pause
	repeat= 0
end

begin
	prog = vlc
	button = Stop
	config = key-stop
	repeat = 0
end

begin
	prog = vlc
	button = channel+
	config = key-next
	repeat = 0
end

begin
	prog = vlc
	button = channel-
	config = key-prev
	repeat = 0
end

begin
	prog = vlc
	button = Fullsreen
	config = key-fullscreen
	repeat = 0
end

begin
	prog = vlc
	button = Rewind
	config = key-slower
	repeat = 0
end

begin
	prog = vlc
	button = FForward
	config = key-faster
	repeat = 0
end

##Audio controls##

begin
	prog = vlc
	button = vol-
	config = key-vol-down
	repeat = 1
end

begin
	prog = vlc
	button = vol+
	config = key-vol-up
	repeat = 1
end

begin
	prog = vlc
	button = Mute
	config = key-vol-mute
	repeat = 0
end

##naviquation dvd## Comme j'ai défini dans le .lircrc les flèches et le bouton du milieu en mode "CurrentWindow" il y a juste besoin de la fonction menu.

begin
    prog = vlc
    button = Menu
    config = key-disc-menu
end

Voilà avec cette config on peut basculer de la tv à un film sans bouger de son canapé wink

Un merci à ersplus pour son aide et aussi biensur à la communauté ubuntu... smile

Dernière modification par sionib (Le 22/02/2007, à 23:03)


Ubuntu 10.04 64Bit - AMD X3 8450 2x2Go G-Skill  GS250
Ubuntu 10.04 32Bit - Netbook Samsung N510

-> Tout arrive @  qui sait attendre. <-

Hors ligne

#21 Le 23/05/2008, à 23:02

Tioneb

Re : LIRC : les fichiers .lircrc

Salut,
Je reçois parfaitement les infos de la commande, mon fichier lircd.conf est complet.
Je cherche comment faire pour que les buttons de volumes controlent le son sous Gnome (comme le faisait la télécommande avant sa configuration)

Merci

Up: Personne n'a un lircrc qui contrôle des événements généraux sous Gnome ?
Up': Si des personnes ont un lircrc pour Ryhtmbox je suis preneur

Dernière modification par Tioneb (Le 25/05/2008, à 08:57)

Hors ligne

#22 Le 31/05/2008, à 19:55

Tioneb

Re : LIRC : les fichiers .lircrc

Bonsoir,

lircrc pour rhythmbox trouvé
maintenant j'aurais besoin d'un petit coup de main pour comprendre quelques finesses

je cherche comment quitter rhythmbox par l'intermédiaire de irxevent ou irexec pour l'instant j'ai ça mais ça ne fonctionne pas big_smile

begin rhythmbox
  begin
    prog   = rhythmbox
    button = play
    config = play
  end
  begin
    prog   = rhythmbox
    button = pause
    config = pause
  end
  begin
    prog   = rhythmbox
    button = stop
    config = stop
  end
  begin
    prog   = rhythmbox
    button = next
    config = next
  end
  begin
    prog   = rhythmbox
    button = previous
    config = previous
  end
  begin
    prog   = rhythmbox
    button = backward
    config = seek_backward
  end
  begin
    prog   = rhythmbox
    button = forward
    config = seek_forward
  end
  begin
    prog   = rhythmbox
    button = voldown
    config = volume_down
  end
  begin
    prog   = rhythmbox
    button = volup
    config = volume_up
  end
  begin
    prog   = rhythmbox
    button = mute
    config = mute
  end
  begin
    prog   = irexec
    button = power
    config = rhythmbox-client --quit
  end
  begin
    prog   = irxevent
    button = power
    config = Key ctrl-q rhythmbox
  end
end rhythmbox

merci

Hors ligne

#23 Le 01/06/2008, à 12:59

Tioneb

Re : LIRC : les fichiers .lircrc

up
plus personne ne se sert de lirc? neutral

Hors ligne

#24 Le 03/06/2008, à 09:04

Tioneb

Re : LIRC : les fichiers .lircrc

bah up encore ... smile

Hors ligne

#25 Le 03/06/2008, à 12:41

pmd

Re : LIRC : les fichiers .lircrc

  begin
    prog   = rhythmbox
    button = power
    config = quit # ya pas une fonction pour rhythmbox ? 
  end

ou, a l'arrache :

  begin
    prog   = irexec
    button = power
    config = killall rhythmbox
  end

Hors ligne