Outils pour utilisateurs

Outils du site


issue123:labolinux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
issue123:labolinux [2017/07/29 10:50] – créée d52frissue123:labolinux [2017/08/03 14:23] (Version actuelle) andre_domenech
Ligne 1: Ligne 1:
-Would it even be possible? That was what I wondered as I tried unsuccessfully to get :+**Would it even be possible? That was what I wondered as I tried unsuccessfully to get :
 • a good quality player • a good quality player
 • with a screen so I could choose the songs • with a screen so I could choose the songs
Ligne 15: Ligne 15:
 sudo apt-get install indicator-cpufreq sudo apt-get install indicator-cpufreq
  
-You run it with “indicator-cpufreq” which will appear in the dashboard, and you click on it to go from Turbo to economical mode. The minimum is 800 MHz in energy-saving mode.+You run it with “indicator-cpufreq” which will appear in the dashboard, and you click on it to go from Turbo to economical mode. The minimum is 800 MHz in energy-saving mode.**
  
-For my audio player, I chose Audacious that is easily installed with:+Comment adapter un EeePC pour en faire un lecteur de salon, maillon d’une chaîne Hi-Fi ? 
 + 
 +C’est la question que je me suis posée, devant mes difficultés à obtenir : 
 +- un lecteur de bonne qualité ; 
 +- muni d’un écran pour sélectionner les chansons ; 
 +- capable de créer une ou plusieurs listes de lectures ; 
 +- doté d’un égaliseur graphique et encore plein d’autres options incontournables ... ; 
 +- et bien sûr, avec une télécommande infrarouge, afin d’avoir le confort d’un lecteur de salon ! 
 + 
 +Je vous propose d’utiliser un EeePC et d’y associer une télécommande infrarouge. 
 + 
 +Mon EeePC fonctionne sous Linux Mint 18–Xfce. 
 + 
 +Cette nouvelle mouture, en Gtk3, est très réactive ; malgré tout l'ordinateur reste un PC portable aux performances limitées, sauf en ce qui concerne la lecture de ma bibliothèque musicale, au format .mp3, où il remplit pleinement son rôle, sans difficultés. 
 + 
 +Le paquet indicator-cpufreq permet de réduire le bruit de son ventirad : sudo apt-get install indicator-cpufreq 
 +Son lanceur est « indicator-cpufreq » qui sera visible sur le tableau de bord. 
 + 
 +On clique dessus pour passer du mode turbo au mode économique, il souffle à minima à 800 Mhz, en mode économie d’énergie. 
 + 
 + 
 +**For my audio player, I chose Audacious that is easily installed with:
  
 sudo add-apt-repository ppa:nilarimogard/webupd8 sudo add-apt-repository ppa:nilarimogard/webupd8
Ligne 36: Ligne 57:
 The amplifier has a 3,5 mm jack socket on the front, and/or one or more RCA input sockets behind, so there are two possible cables that can be connected to the headphone output socket of the EeePC. The amplifier has a 3,5 mm jack socket on the front, and/or one or more RCA input sockets behind, so there are two possible cables that can be connected to the headphone output socket of the EeePC.
  
-With that, you now have a new source of music connected to your stereo system.+With that, you now have a new source of music connected to your stereo system.**
  
-Next, in order to have a real home music system, you've got to add an infrared remote control.+J’ai choisi l’application Audacious comme lecteur audio, que l’on peut installer facilement : 
 + 
 +sudo add-apt-repository ppa:nilarimogard/webupd8 
 + 
 +sudo apt-get update 
 + 
 +sudo apt-get install audacious 
 + 
 +Pour le désinstaller et supprimer le dépôt : 
 + 
 +sudo apt-get remove audacious 
 + 
 +sudo add-apt-repository --remove ppa:nilarimogard/webupd8 
 + 
 + 
 +Il faut maintenant relier l’EeePC à l’amplificateur audio de la chaîne Hi-Fi. 
 + 
 +L’amplificateur possède soit une prise jack 3,5 mm en façade et/ou des entrées Chinch sur sa face arrière. 
 +On a donc le choix entre deux câbles possibles, à brancher sur la sortie casque de l’EeePC. 
 +                          
 +Nous verrons plus loin qu’Audacious fonctionnera avec une télécommande infrarouge, ce qui explique ce choix d’application ! 
 + 
 +Voilà, vous possédez désormais une nouvelle source musicale reliée à votre chaîne Hi-Fi. 
 + 
 +**Next, in order to have a real home music system, you've got to add an infrared remote control.
  
 This equipment, which doesn't cost much and can easily be found on the Internet, has two parts : This equipment, which doesn't cost much and can easily be found on the Internet, has two parts :
Ligne 56: Ligne 101:
 1) the type of receiver plugged into the USB port and its protocol. Top right is what I learned with that command. 1) the type of receiver plugged into the USB port and its protocol. Top right is what I learned with that command.
  
-In other words, my receiver is “rc0” and the accepted and available protocols are “NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other, with Enabled protocols: RC-6 LIRC”. So the receiver is well and truly recognized and ready to work.+In other words, my receiver is “rc0” and the accepted and available protocols are “NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other, with Enabled protocols: RC-6 LIRC”. So the receiver is well and truly recognized and ready to work.**
  
-Of course, everyone will get a different result, depending on the type of receiver that he or she uses.+Il faut maintenant y adjoindre une télécommande infrarouge pour obtenir un véritable lecteur de salon. 
 + 
 +Ce petit équipement, peu cher, qu’on trouve facilement sur Internet, comporte deux éléments : 
 +- une télécommande classique, du genre « Média-center », 
 +- et son récepteur infrarouge associé qu’on branchera sur un port USB. 
 + 
 +Pour savoir s’ils sont bien reconnus par l'EeePC, il faut installer le paquet ir-keytable, soit avec Synaptic, soit dans un terminal :  
 + 
 +sudo apt-get install ir-keytable 
 + 
 +Ensuite on branche le récepteur infrarouge sur un port USB, et on interroge son système : 
 + 
 +sudo ir-keytable 
 + 
 +vous indiquera : 
 + 
 +Le type de récepteur branché en USB et son protocole. En haut à droite vous trouverez ce que j'ai appris avec cette commande. 
 + 
 +Donc mon récepteur est le « rc0 » aux protocoles « NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other, avec les protocoles activés : RC-6 LIRC ».  Le récepteur est donc reconnu et fonctionnel ! 
 + 
 +**Of course, everyone will get a different result, depending on the type of receiver that he or she uses.
  
 2) Does the system recognize the remote control's orders? 2) Does the system recognize the remote control's orders?
Ligne 70: Ligne 135:
 sudo ir-keytable -t --sysdev rc0  sudo ir-keytable -t --sysdev rc0
  
-lists (in a terminal) the scancode that is associated with each key on the remote control, when pressed. Now you can list and copy/paste the scancodes into a personalized configuration file. Every key on the remote generates a scancode, but it's very probable that none generates a keycode (a keyboard shortcut). This problem can be solved by telling your system how the scancode (for example 0x1f32) is matched to a keycode (for example KEY_UP). In order to do so, you have to create your own file that tells you which scancode is generated by each of the keys on the remote. +lists (in a terminal) the scancode that is associated with each key on the remote control, when pressed. Now you can list and copy/paste the scancodes into a personalized configuration file. Every key on the remote generates a scancode, but it's very probable that none generates a keycode (a keyboard shortcut). This problem can be solved by telling your system how the scancode (for example 0x1f32) is matched to a keycode (for example KEY_UP). In order to do so, you have to create your own file that tells you which scancode is generated by each of the keys on the remote.**
  
-3) Create your own configuration file, named “personal_ir”, containing all the scancodes shown in the terminal. +Bien entendu chacun aura une réponse différente, en fonction du type de récepteur utilisé. 
 + 
 +2) Les ordres de la télécommande sont-ils reconnus ? 
 + 
 +sudo ir-keytable -t --sysdev rc0 
 + 
 +Oui (voir ci-dessus), elle est reconnue. (J'ai appuyé sur Ctrl+C pour arrêter le test.) 
 + 
 +La commande : 
 + 
 +sudo ir-keytable -t --sysdev rc0  
 + 
 +permet de visualiser dans le terminal, à chaque pression sur une touche de la télécommande, le scancode qui y est associé. Cela va permettre de lister les scancodes et de les copier/coller dans un fichier de configuration personnalisé. Chaque touche génère un scancode, mais il est très probable que toutes les touches ne génèrent pas un keycode (un raccourci clavier). Il faut donc y remédier en indiquant à son système l’association à faire entre le scancode (par ex. 0x1f32) et le keycode (par ex. KEY_UP). Pour ce faire, il faut créer son propre fichier permettant de connaître le scancode généré par chacune des touches de sa télécommande.  
 + 
 +**3) Create your own configuration file, named “personal_ir”, containing all the scancodes shown in the terminal. 
  
 Here, for example (shown above), is mine. The list of commands depends on the number of keys you have pressed as per your own needs. Here, for example (shown above), is mine. The list of commands depends on the number of keys you have pressed as per your own needs.
Ligne 89: Ligne 168:
 Your system is now configured to recognize, and work with, the infrared remote control. Your system is now configured to recognize, and work with, the infrared remote control.
  
-Reboot and try it out: note that you can increase (or lower) the volume of your computer with the remote control, thus proving that the two are well and truly connected.+Reboot and try it out: note that you can increase (or lower) the volume of your computer with the remote control, thus proving that the two are well and truly connected.**
  
-6) Finally, you need to configure Audacious so that you can control it from the couch:+3-Créez votre propre fichier de configuration, nommé « ir_perso », qui contiendra tous les scancodes affichés dans le terminal. 
 + 
 +Pour exemple (ci-dessus), voici le mien. La liste des commandes dépendra du nombre de touches sur lesquelles vous aurez appuyé, selon vos besoins. 
 + 
 +4) Déplacez le fichier « ir_perso » dans « /lib/udev/rc_keymaps/ » afin qu'il soit associé au récepteur infrarouge à chaque démarrage du système, puis tapez la commande suivante : 
 + 
 +sudo ir-keytable -c -w /lib/udev/rc_keymaps/ir_perso --sysdev rc0 
 + 
 +Read telecommande table (Lire la table de la télécommande). 
 +Old keytable cleared (vieille keytable est effacée). 
 +Wrote 12 keycode(s) to driver (12 raccourcis clavier sont écrits vers le pilote). 
 +Protocols changed to RC-6 (Protocoles changé pour RC-6). 
 + 
 +5-Editer le fichier « rc.local » qui est dans /etc/ et le modifier comme montré en haut à droite. 
 + 
 +Votre système est désormais paramétré pour reconnaître, et accepter de fonctionner avec, votre télécommande infrarouge. 
 + 
 +Redémarrez et faites-en l'essai : vous pouvez augmenter (ou diminuer) le niveau sonore de votre ordinateur en utilisant votre télécommande, ce qui vous prouve que l’appariement est réussi. 
 + 
 +**6) Finally, you need to configure Audacious so that you can control it from the couch:
  
 Open Audacious and go into the menu “Output”, then to “Audio Settings”, then “Plugins”. Click on “Universal Shortcuts,” then on “settings” below left. Choose an action, then click inside the box to the right called “key associations”. Open Audacious and go into the menu “Output”, then to “Audio Settings”, then “Plugins”. Click on “Universal Shortcuts,” then on “settings” below left. Choose an action, then click inside the box to the right called “key associations”.
Ligne 99: Ligne 197:
 Repeat for all the actions that you want to define, then click on the “Define” button below right to save them for good. Only those actions that have already been saved in the “rc.local” file will have any effect! Repeat for all the actions that you want to define, then click on the “Define” button below right to save them for good. Only those actions that have already been saved in the “rc.local” file will have any effect!
  
-All you need to do now is lie back and take advantage of your new home music player!+All you need to do now is lie back and take advantage of your new home music player!** 
 + 
 +6) Enfin, il faut configurer Audacious pour pouvoir le commander depuis votre canapé : 
 + 
 +Ouvrez Audacious et allez dans le Menu « Sortie », puis « Paramètres audio », puis « Greffons ». Cliquez sur « Raccourcis universels », puis sur « paramètres » en bas à gauche. 
 +Choisissez une action, puis cliquez dans le champ de droite « association de touches ». 
 + 
 +par exemple LIRE = XF86AudioPlay et appuyez sur la touche « Play » de votre télécommande. 
 + 
 +Répétez l'opération pour toutes les actions que vous voulez définir puis cliquez sur le bouton « Définir » en bas à droite, pour les enregistrer définitivement. Seules les actions déjà enregistrées dans le fichier « rc.local » auront un effet...
  
 +Et maintenant, il ne vous reste plus qu’à profiter confortablement de votre nouveau lecteur de salon,
 +télécommande en main. 
issue123/labolinux.1501318209.txt.gz · Dernière modification : 2017/07/29 10:50 de d52fr