Sep 302012
 

English is not my natural language, i accept all your corrections and will modify the texts as soon as possible.

1. English version

Update 7th October 2012 : adding the power off function for the remote.

1. Introduction

Xtreamer ultra is an HTPC (mini computer) using GNU/Linux operating system, providing a wonderful media center.

shipped with Ubuntu 10.10 (maverick merkaat code name). this release is no more supported by the development company (Canonical) so we can not have updates anymore.

I’ve seen a lot of users searching how to make Xtreamer work on Ubuntu 12.04, I hope this guide will help some people.

Xtreamer Ultra & Xtreamer Ultra2 are approximatively the same product as you can see at : www.xtreamer.net/ultra/  & www.xtreamer.net/ultra2/

I only have Xtreamer Ultra so I can’t test these configurations on Ultra2

2. What does not work without manual configuration

The NVidia driver does  not compile properly after the last upgrade, nothing difficult but some debutants certainly need help.

Audio over HDMI does not work because the new Ubuntu release use pulseaudio instead of ALSA.

The remote command does not work because LIRC no more handle the now kernel  integrated driver.

3. Remote connection

To be connected and run command to your Xtreamer please use SSH, the login is « ultra » and the password is the same thing.

if you need to be root, from the « ultra » login you need to run the command « sudo -i », yet with the same password.

4. Before every actions

DO A BACKUP !!!

If you have a GNU/Linux computer, plug the Xtreamer disk into it, directly or with an USB adapter.

finally, use DD to make a backup.

once it is done, use the « fdisk -l » command to identify it, this command will list all your disks and you’ll be able to get its path.

mine is a 64Go SSD disk and the path is /dev/sdg :

# Disk /dev/sdg: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a28c3

Device Boot      Start         End      Blocks   Id  System
/dev/sdg1              63     8000369     4000153+  82  Linux swap / Solaris
/dev/sdg2         8000370   125032447    58516039   83  Linux

to get an image of this disk into /data/disk_xtreamer.disk :

dd if=/dev/sdg of=/data/disk_xtreamer.disk

to read the backup, you need the  correct block (with parted) :

# parted /data/disk_xtreamer.disk unit B print
Modèle:  (file)
Disque /data/xtreamer.img : 64023257088B
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos

Numéro  Début        Fin           Taille        Type     Système de fichiers  Fanions
1      32256B       4096189439B   4096157184B   primary  linux-swap(v1)
2      4096189440B  64016613375B  59920423936B  primary  ext2</pre>
# mount -o loop,offset=4096189440 xtreamer.img /mnt/ 

do not forget to remove the B character when you mount the image.

and now, to restore the disk, still use DD but be carfeful, triple check you will write to the correct disk:

# dd if=/data/disk_xtreamer.disk of=/dev/sdg

5. Ubuntu upgrades

You’ll need to do three times the upgrade, first from the release 10.10 to 11.04, then 11.10 then 12.04.

as root, run the following command : do-release-upgrade

answer the questions.

6. Graphical driver update

# jockey-text --update-db
# jockey-text --list
# jockey-text --auto-install 

If these actions still not work, use « aptitude search nvidia » then delete every nvidia installed drivers (first column is the « i » character in this case) with « aptitude remove nvidia… »

then try to reinstall with « jockey-text -h ».

7. Audio over HDMI

you need to configure pulseaudio.

you need the hardware numbers, you can get them with the « aplay -L » command, excerpt :

# aplay -L
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample snooping device

we can try the 3, 7, 8 and 9  numbers, on the NVidia card (0 or 1).

to test your speakers from the command line, it’s easy, try every combinations and if you eard nothing after 5 seconds, try antother combination

# speaker-test -c 2 -r 48000 -D hw:0,9
speaker-test -c 2 -r 48000 -D hw:1,9
speaker-test -c 2 -r 48000 -D hw:0,7
speaker-test -c 2 -r 48000 -D hw:1,7 

for me, the nvidia audio card is on the slot « 1,7 ».

enter this configuration into the /etc/pulse/default.pa file :

# echo 'load-module module-alsa-sink device=hw:1,7' >> /etc/pulse/default.pa

restart your operating system and once you are on the gnome screen, click on the audio configuration (gnome-sound-applet) and go the the settings.
Now, the HDMI devide has appeared and is selectionable as a output audio device.

8. remote command configuration

remove every LIRC packages but liblircclient0.

# aptitude search lirc
# aptitude remove lirc ...

reinstall it with inputlirc :

# aptitude install lirc inputlirc

Now, you need to get the INPUT device number, in my case, it is the input4 so the path is /dev/input/event4:

# cat /proc/bus/input/devices
I: Bus=0019 Vendor=1050 Product=00c3 Version=0033
N: Name="Nuvoton w836x7hg Infrared Remote Transceiver"
P: Phys=nuvoton/cir0
S: Sysfs=/devices/pnp0/00:09/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 200 108fc32e 2376051 0 0 0 7 158000 4192 4001 8e9680 0 0 10000000
B: MSC=10 

you need informations on this device, to create a special access file

#  udevadm info -a -p $(udevadm info -q path -n /dev/input/event4)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/pnp0/00:09/rc/rc0/input4/event4':
KERNEL=="event4"
SUBSYSTEM=="input"
DRIVER==""

looking at parent device '/devices/pnp0/00:09/rc/rc0/input4':
KERNELS=="input4"
SUBSYSTEMS=="input"
DRIVERS==""
ATTRS{name}=="Nuvoton w836x7hg Infrared Remote Transceiver"
ATTRS{phys}=="nuvoton/cir0"
ATTRS{uniq}==""
ATTRS{properties}=="0"

looking at parent device '/devices/pnp0/00:09/rc/rc0':
KERNELS=="rc0"
SUBSYSTEMS=="rc"
DRIVERS==""
ATTRS{protocols}=="rc-5 nec [rc-6] jvc sony mce_kbd lirc"

looking at parent device '/devices/pnp0/00:09':
KERNELS=="00:09"
SUBSYSTEMS=="pnp"
DRIVERS=="nuvoton-cir"
ATTRS{options}=="
ATTRS{id}=="NTN0530"

looking at parent device '/devices/pnp0':
KERNELS=="pnp0"
SUBSYSTEMS=="
DRIVERS=="

with these information we are going  to ceate the file : /etc/udev/rules.d/10-persistent-ir.rules

# echo 'KERNEL=="event*",ATTRS{id}=="NTN0530",SYMLINK="input/xtreamer2"' > /etc/udev/rules.d/10-persistent-ir.rules

to test :

# /etc/init.d/udev stop
# /etc/init.d/udev start
# udevadm trigger
# ls /dev/input/
by-id  by-path  event0  event1  event10  event11  event2  event3  event4  event5  event6  event7  event8  event9  mice  mouse0  mouse1  xtreamer2

BINGO, the  xtreamer2 special file is here.

inputlirc configuration

# cat /etc/default/inputlirc
# Options to be passed to inputlirc.
EVENTS="/dev/input/xtreamer2"
OPTIONS="-g -m 0 -c"

inputlirc restart

# /etc/init.d/inputlirc stop
# /etc/init.d/inputlirc start

it’s not all, you now need to add this remote command into XBMC.

copy the XBMC configuration into the personal directory :

# cp /usr/share/xbmc/system/Lircmap.xml /home/ultra/.xbmc/userdata/Lircmap.xml
# chown ultra:ultra /home/ultra/.xbmc/userdata/Lircmap.xml

we will modify this file to add the remote name as an alternative name.

Edit the /home/ultra/.xbmc/userdata/Lircmap.xml file and add the following line after <remote device= »linux-input-layer »> : <altname>/dev/input/xtreamer2</altname>

here is the final block:

   &lt;remote device=&quot;linux-input-layer&quot;&gt;
   &lt;altname&gt;cx23885_remote&lt;/altname&gt;
   &lt;altname&gt;devinput&lt;/altname&gt;
   &lt;altname&gt;/dev/input/xtreamer2&lt;/altname&gt;
      &lt;left&gt;KEY_LEFT&lt;/left&gt;
      &lt;right&gt;KEY_RIGHT&lt;/right&gt;
      &lt;up&gt;KEY_UP&lt;/up&gt;
      &lt;down&gt;KEY_DOWN&lt;/down&gt;
      &lt;select&gt;KEY_ENTER&lt;/select&gt;
      &lt;start&gt;KEY_SELECT&lt;/start&gt;
      &lt;back&gt;KEY_EXIT&lt;/back&gt;
      &lt;record&gt;KEY_RECORD&lt;/record&gt;
      &lt;play&gt;KEY_PLAY&lt;/play&gt;
      &lt;pause&gt;KEY_PAUSE&lt;/pause&gt;
      &lt;stop&gt;KEY_STOP&lt;/stop&gt;
      &lt;forward&gt;KEY_FASTFORWARD&lt;/forward&gt;
      &lt;reverse&gt;KEY_REWIND&lt;/reverse&gt;
      &lt;volumeplus&gt;KEY_VOLUMEUP&lt;/volumeplus&gt;
      &lt;volumeminus&gt;KEY_VOLUMEDOWN&lt;/volumeminus&gt;
      &lt;channelplus&gt;KEY_CHANNELUP&lt;/channelplus&gt;
      &lt;channelminus&gt;KEY_CHANNELDOWN&lt;/channelminus&gt;
      &lt;skipplus&gt;KEY_NEXTSONG&lt;/skipplus&gt;
      &lt;skipminus&gt;KEY_PREVIOUSSONG&lt;/skipminus&gt;
      &lt;title&gt;KEY_TEXT&lt;/title&gt;
      &lt;subtitle&gt;KEY_SUBTITLE&lt;/subtitle&gt;
      &lt;mute&gt;KEY_MUTE&lt;/mute&gt;
      &lt;power&gt;KEY_POWER&lt;/power&gt;
      &lt;myvideo&gt;KEY_VIDEO&lt;/myvideo&gt;
      &lt;mymusic&gt;KEY_AUDIO&lt;/mymusic&gt;
      &lt;mypictures&gt;KEY_MHP&lt;/mypictures&gt;
      &lt;mytv&gt;KEY_TV&lt;/mytv&gt;
      &lt;one&gt;KEY_1&lt;/one&gt;
      &lt;two&gt;KEY_2&lt;/two&gt;
      &lt;three&gt;KEY_3&lt;/three&gt;
      &lt;four&gt;KEY_4&lt;/four&gt;
      &lt;five&gt;KEY_5&lt;/five&gt;
      &lt;six&gt;KEY_6&lt;/six&gt;
      &lt;seven&gt;KEY_7&lt;/seven&gt;
      &lt;eight&gt;KEY_8&lt;/eight&gt;
      &lt;nine&gt;KEY_9&lt;/nine&gt;
      &lt;zero&gt;KEY_0&lt;/zero&gt;
      &lt;red&gt;KEY_RED&lt;/red&gt;
      &lt;green&gt;KEY_GREEN&lt;/green&gt;
      &lt;yellow&gt;KEY_YELLOW&lt;/yellow&gt;
      &lt;blue&gt;KEY_BLUE&lt;/blue&gt;
   &lt;/remote&gt;

1) UPDATE:

to handle the power_off function you need to add a device from inputlirc
you have to configure the /etc/default/inputlirc file with this command line :

OPTIONS=&quot;-m 0 -c -d /var/run/lirc/lircd&quot;

also you need to configure the LIRC service to be started after inputlirc

# update-rc.d -n -f lirc remove
Removing any system startup links for /etc/init.d/lirc ...
/etc/rc0.d/K19lirc
/etc/rc1.d/K19lirc
/etc/rc2.d/S19lirc
/etc/rc3.d/S19lirc
/etc/rc4.d/S19lirc
/etc/rc5.d/S19lirc
/etc/rc6.d/K19lirc
# update-rc.d -f lirc defaults 79 21
Adding system startup for /etc/init.d/lirc ...
/etc/rc0.d/K21lirc -&gt; ../init.d/lirc
/etc/rc1.d/K21lirc -&gt; ../init.d/lirc
/etc/rc6.d/K21lirc -&gt; ../init.d/lirc
/etc/rc2.d/S79lirc -&gt; ../init.d/lirc
/etc/rc3.d/S79lirc -&gt; ../init.d/lirc
/etc/rc4.d/S79lirc -&gt; ../init.d/lirc
/etc/rc5.d/S79lirc -&gt; ../init.d/lirc

If you do not do this, inputlirc will kill the irexec program.

configure the /home/ultra/.lircrc file as below :

begin
prog = irexec
button = KEY_SLEEP
config = /usr/bin/sudo /home/ultra/bin/shutdown.sh
end

Restart XBMC, your remote command is now working as before.

for information, irexec reads the /etc/lirc/lircrc file to run local scripts when a key is pressed.

this file includes the /home/ultra/.lircrc file which contains the shutdown command.

2. Version Française

mise à jour du 17 Octobre 2012 : ajout de la prise en charge de l’arrêt via la télécommande.

1. Introduction

Xtreamer ultra est un HTPC (mini ordinateur) utilisant le système d’exploitation GNU/Linux et fournissant entre autre le rôle de centre multimédia.

Fourni à la base avec une version Ubuntu 10.10 (nom de code maverick merkaat). cette version n’est plus supportée par sa société de développement (Canonical), on ne peut donc plus bénéficier de mises à jour.

après avoir parcouru certains forums j’ai repéré pas mal d’utilisateurs n’arrivant pas à faire fonctionner correctement la nouvelle version Ubuntu avec ce produit, je vais donc vous présenter ma méthode agrémentée des quelques bonus.

Xtreamer Ultra & Xtreamer Ultra2 sont approximativement identiques comme vous pouvez le voir ici : www.xtreamer.net/ultra/  & www.xtreamer.net/ultra2/

Je possède seuleemnt le Xtreamer Ultra, je ne peux donc pas tester ces configurations sur un Ultra2.

2. les éléments qui ne fonctionnent pas sans modification

GNU/Linux fonctionne sur énormément de configuration, le Xtreamer n’échappe pas à cette règle mais il y a quelques éléments à prendre en compte car entre deux versions, le comportement peut-être différent.

premièrement le driver graphique (Nvidia), lorsque j’ai mis à jour Ubuntu en 12.04, ne s’était pas compilé, rien de bien difficile mais certains débutants peuvent se sentir déroutés.

ensuite vient le problème de l’audio si l’on souhaite le faire passer par le câble HDMI.

vient après tout cela le problème de la télécommande infrarouge, le système de gestion ayant été intégré dans le noyau.

3. Connexion à distance

Pour vous connecter à votre Xtreamer, utilisez SSH, l’identifiant de connexion est par défaut « ultra », la même chose en mot de passe.

et si vous voulez passer root, la commande magique est « sudo -i », avec toujours le même mot de passe.

4. Avant toute chose

FAIRE UNE SAUVEGARDE !!!

et oui, c’est chiant, ça prend au moins dix minutes mais ça vous fera gagner pas mal d’heures en cas de pépin.

Si vous avez un ordinateur sous Linux le plus simple consiste à extraire le disque dur de votre boîtier Xtreamer et de l’entrer dans votre ordinateur, en USB ou en direct avec un câble SATA.

ensuite, il suffit d’utiliser DD pour faire un backup.

donc, une fois votre disque connecté à votre ordinateur, vous pouvez l’identifier avec la commande « fdisk -l », cela vous listera tous les disques connectés et vous pourrez repérer son chemin.

le mien est un disque de type SSD de 64 Go et son chemin est /dev/sdg, voici la sortie de fdisk:

# Disk /dev/sdg: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a28c3

Device Boot      Start         End      Blocks   Id  System
/dev/sdg1              63     8000369     4000153+  82  Linux swap / Solaris
/dev/sdg2         8000370   125032447    58516039   83  Linux

pour faire une image du disque dans /data/disk_xtreamer.disk :

dd if=/dev/sdg of=/data/disk_xtreamer.disk

pour lire la sauvegarde il vous faut connaître le point de montage (avec parted) et monter l’image à partir de ce point :

# parted /data/disk_xtreamer.disk unit B print
Modèle:  (file)
Disque /data/xtreamer.img : 64023257088B
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos

Numéro  Début        Fin           Taille        Type     Système de fichiers  Fanions
1      32256B       4096189439B   4096157184B   primary  linux-swap(v1)
2      4096189440B  64016613375B  59920423936B  primary  ext2&lt;/pre&gt;
# mount -o loop,offset=4096189440 xtreamer.img /mnt/ 

pensez à supprimer la lettre B de la taille lors du mount.

et enfin pour restaurer votre disque en cas de soucis, faite l’inverse avec dd, mais vérifiez bien que vous écrivez sur le bon disque :

# dd if=/data/disk_xtreamer.disk of=/dev/sdg

5. Mise à jour Ubuntu

cela se fait en plusieurs fois, d’abord la mise à jour de la version 10.10 vers 11.04, puis vers 11.10 puis 12.04.

en root, tapez la commande : do-release-upgrade

et répondez aux questions s’il y en a.

si vous rencontrez des problèmes entre les redémarrages comme le graphique qui ne fonctionne pas par exemple, poursuivez jusqu’à la dernière mise à jour, on règle tout après.

6. Mise à jour du driver graphique

si votre écran ne se lance pas, réinstallez votre pilote nvidia.

# jockey-text --update-db
# jockey-text --list
# jockey-text --auto-install 

si ça ne fonctionne toujours pas, utilisez « aptitude search nvidia » puis supprimez tous les drivers nvidia installé (la première colonne est la lettre « i » en ce cas) avec « aptitude remove nvidia… »

puis essayez de réinstaller avec « jockey-text -h ».

7. utilisez l’audio sur HDMI

tout d’abord pour que Ubuntu puisse voir cette sortie audio, il faut configurer pulseaudio, le nouveau gestionnaire de son (qui était ALSA auparavant).

mais avant, il vous faut connaître les numéros matériels, utiliser la commande « aplay -L » pour cela, extrait de ma configuration:

# aplay -L
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample snooping device

on peut donc tester les numéros 3, 7, 8 et 9. sur la carte NVidia (0 ou 1)

pour tester en ligne de commande, c’est tout simple, essayez chacune des combinaisons et si vous n’entendez rien au bout de 5 secondes, changez de combinaison:

# speaker-test -c 2 -r 48000 -D hw:0,9
speaker-test -c 2 -r 48000 -D hw:1,9
speaker-test -c 2 -r 48000 -D hw:0,7
speaker-test -c 2 -r 48000 -D hw:1,7 

pour moi, la carte audio nvidia est sur le slot « 1 » et sur le port « 7 »

il faut rentrer cette configuration dans le fichier /etc/pulse/default.pa, ajoutez cette ligne avec la commande suivante:

# echo 'load-module module-alsa-sink device=hw:1,7' &gt;&gt; /etc/pulse/default.pa

redémarrez votre système et une fois sur l’écran gnome, cliquez sur la configuration audio (gnome-sound-applet) et allez dans les paramètres, c’est l’icône du son en haut à droite.
maintenant, le port HDMI est visible et sélectionnable en périphérique de sortie audio.

8. configurer sa télécommande

dans l’ancienne version d’Ubuntu, la gestion de la télécommande était faite par le daemon LIRC et LIRC avait besoin d’un driver spécifique pour la gérer.

maintenant, le driver est intégré dans le système et est géré comme un clavier, par le système, LIRC ne fonctionne plus.

Le format des codes de la télécommande a changé est XBMC ne sait plus utiliser correctement les touches appuyées.

si on n’a pas envie de reprogrammer toutes les touches de la télécommande avec ir-keytable, on peut réutiliser LIRC mais pas de la même façon.

tout d’abord, supprimez tous les programmes faisant référence à LIRC excepté liblircclient0.

# aptitude search lirc
# aptitude remove lirc ...

puis installez de nouveau lirc avec en plus inputlirc:

# aptitude install lirc inputlirc

ensuite, il vous faut connaître le numéro de périphérique de type INPUT du récepteur, dans mon cas il s’agit de

# cat /proc/bus/input/devices
I: Bus=0019 Vendor=1050 Product=00c3 Version=0033
N: Name=&quot;Nuvoton w836x7hg Infrared Remote Transceiver&quot;
P: Phys=nuvoton/cir0
S: Sysfs=/devices/pnp0/00:09/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 200 108fc32e 2376051 0 0 0 7 158000 4192 4001 8e9680 0 0 10000000
B: MSC=10 

c’est donc l’input4 qui correspond au chemin /dev/input/event4. (oui, on change input par event)

on va ensuite chercher des informations sur ce matériel, pour pouvoir créer un fichier d’accès plus parlant que /dev/input/event4, on évite ainsi de perdre l’accès au cas ou le numéro change entre deux reboots.

#  udevadm info -a -p $(udevadm info -q path -n /dev/input/event4)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/devices/pnp0/00:09/rc/rc0/input4/event4':
KERNEL==&quot;event4&quot;
SUBSYSTEM==&quot;input&quot;
DRIVER==&quot;&quot;

looking at parent device '/devices/pnp0/00:09/rc/rc0/input4':
KERNELS==&quot;input4&quot;
SUBSYSTEMS==&quot;input&quot;
DRIVERS==&quot;&quot;
ATTRS{name}==&quot;Nuvoton w836x7hg Infrared Remote Transceiver&quot;
ATTRS{phys}==&quot;nuvoton/cir0&quot;
ATTRS{uniq}==&quot;&quot;
ATTRS{properties}==&quot;0&quot;

looking at parent device '/devices/pnp0/00:09/rc/rc0':
KERNELS==&quot;rc0&quot;
SUBSYSTEMS==&quot;rc&quot;
DRIVERS==&quot;&quot;
ATTRS{protocols}==&quot;rc-5 nec [rc-6] jvc sony mce_kbd lirc&quot;

looking at parent device '/devices/pnp0/00:09':
KERNELS==&quot;00:09&quot;
SUBSYSTEMS==&quot;pnp&quot;
DRIVERS==&quot;nuvoton-cir&quot;
ATTRS{options}==&quot;&quot;
ATTRS{id}==&quot;NTN0530&quot;

looking at parent device '/devices/pnp0':
KERNELS==&quot;pnp0&quot;
SUBSYSTEMS==&quot;&quot;
DRIVERS==&quot;&quot;

avec ces informations, on va créer le fichier /etc/udev/rules.d/10-persistent-ir.rules

# echo 'KERNEL==&quot;event*&quot;,ATTRS{id}==&quot;NTN0530&quot;,SYMLINK=&quot;input/xtreamer2&quot;' &gt; /etc/udev/rules.d/10-persistent-ir.rules

pour tester:

# /etc/init.d/udev stop
# /etc/init.d/udev start
# udevadm trigger
# ls /dev/input/
by-id  by-path  event0  event1  event10  event11  event2  event3  event4  event5  event6  event7  event8  event9  mice  mouse0  mouse1  xtreamer2

BINGO, le périphérique xtreamer2 est apparu

configurons inputlirc maintenant

# cat /etc/default/inputlirc
# Options to be passed to inputlirc.
EVENTS=&quot;/dev/input/xtreamer2&quot;
OPTIONS=&quot;-g -m 0 -c&quot;

puis redémarrons inputlirc

# /etc/init.d/inputlirc stop
# /etc/init.d/inputlirc start

ce n’est pas tout, il faut maintenant ajouter le nom de cette télécommande dans XBMC.

allons copier la configuration de XBMC dans notre répertoire de profil:

# cp /usr/share/xbmc/system/Lircmap.xml /home/ultra/.xbmc/userdata/Lircmap.xml
# chown ultra:ultra /home/ultra/.xbmc/userdata/Lircmap.xml

on va modifier le nouveau fichier de mapping de la télécommande en rajoutant le nouveau nom en alternative à l’ancien.

éditez le fichier /home/ultra/.xbmc/userdata/Lircmap.xml et modifiez à partir de la ligne <remote device= »linux-input-layer »> pour ajouter en dessous la ligne : <altname>/dev/input/xtreamer2</altname>

voici le pavé final:

   &lt;remote device=&quot;linux-input-layer&quot;&gt;
   &lt;altname&gt;cx23885_remote&lt;/altname&gt;
   &lt;altname&gt;devinput&lt;/altname&gt;
   &lt;altname&gt;/dev/input/xtreamer2&lt;/altname&gt;
      &lt;left&gt;KEY_LEFT&lt;/left&gt;
      &lt;right&gt;KEY_RIGHT&lt;/right&gt;
      &lt;up&gt;KEY_UP&lt;/up&gt;
      &lt;down&gt;KEY_DOWN&lt;/down&gt;
      &lt;select&gt;KEY_ENTER&lt;/select&gt;
      &lt;start&gt;KEY_SELECT&lt;/start&gt;
      &lt;back&gt;KEY_EXIT&lt;/back&gt;
      &lt;record&gt;KEY_RECORD&lt;/record&gt;
      &lt;play&gt;KEY_PLAY&lt;/play&gt;
      &lt;pause&gt;KEY_PAUSE&lt;/pause&gt;
      &lt;stop&gt;KEY_STOP&lt;/stop&gt;
      &lt;forward&gt;KEY_FASTFORWARD&lt;/forward&gt;
      &lt;reverse&gt;KEY_REWIND&lt;/reverse&gt;
      &lt;volumeplus&gt;KEY_VOLUMEUP&lt;/volumeplus&gt;
      &lt;volumeminus&gt;KEY_VOLUMEDOWN&lt;/volumeminus&gt;
      &lt;channelplus&gt;KEY_CHANNELUP&lt;/channelplus&gt;
      &lt;channelminus&gt;KEY_CHANNELDOWN&lt;/channelminus&gt;
      &lt;skipplus&gt;KEY_NEXTSONG&lt;/skipplus&gt;
      &lt;skipminus&gt;KEY_PREVIOUSSONG&lt;/skipminus&gt;
      &lt;title&gt;KEY_TEXT&lt;/title&gt;
      &lt;subtitle&gt;KEY_SUBTITLE&lt;/subtitle&gt;
      &lt;mute&gt;KEY_MUTE&lt;/mute&gt;
      &lt;power&gt;KEY_POWER&lt;/power&gt;
      &lt;myvideo&gt;KEY_VIDEO&lt;/myvideo&gt;
      &lt;mymusic&gt;KEY_AUDIO&lt;/mymusic&gt;
      &lt;mypictures&gt;KEY_MHP&lt;/mypictures&gt;
      &lt;mytv&gt;KEY_TV&lt;/mytv&gt;
      &lt;one&gt;KEY_1&lt;/one&gt;
      &lt;two&gt;KEY_2&lt;/two&gt;
      &lt;three&gt;KEY_3&lt;/three&gt;
      &lt;four&gt;KEY_4&lt;/four&gt;
      &lt;five&gt;KEY_5&lt;/five&gt;
      &lt;six&gt;KEY_6&lt;/six&gt;
      &lt;seven&gt;KEY_7&lt;/seven&gt;
      &lt;eight&gt;KEY_8&lt;/eight&gt;
      &lt;nine&gt;KEY_9&lt;/nine&gt;
      &lt;zero&gt;KEY_0&lt;/zero&gt;
      &lt;red&gt;KEY_RED&lt;/red&gt;
      &lt;green&gt;KEY_GREEN&lt;/green&gt;
      &lt;yellow&gt;KEY_YELLOW&lt;/yellow&gt;
      &lt;blue&gt;KEY_BLUE&lt;/blue&gt;
   &lt;/remote&gt;

1) MISE à JOUR:

Pour gérer l’arrêt du Xtreamer via la télécommande vous devez ajouter un périphérique depuis inputlirc.
Vous devez configurer le fichier /etc/default/inputlirc avec cette ligne:

OPTIONS=&quot;-m 0 -c -d /var/run/lirc/lircd&quot;

Vous avez aussi besoin de configurer le service LIRC afin qu’il soit lancé après inputlirc:

# update-rc.d -n -f lirc remove
Removing any system startup links for /etc/init.d/lirc ...
/etc/rc0.d/K19lirc
/etc/rc1.d/K19lirc
/etc/rc2.d/S19lirc
/etc/rc3.d/S19lirc
/etc/rc4.d/S19lirc
/etc/rc5.d/S19lirc
/etc/rc6.d/K19lirc
# update-rc.d -f lirc defaults 79 21
Adding system startup for /etc/init.d/lirc ...
/etc/rc0.d/K21lirc -&gt; ../init.d/lirc
/etc/rc1.d/K21lirc -&gt; ../init.d/lirc
/etc/rc6.d/K21lirc -&gt; ../init.d/lirc
/etc/rc2.d/S79lirc -&gt; ../init.d/lirc
/etc/rc3.d/S79lirc -&gt; ../init.d/lirc
/etc/rc4.d/S79lirc -&gt; ../init.d/lirc
/etc/rc5.d/S79lirc -&gt; ../init.d/lirc

Si vous ne faites pas ceci, inputlirc terminera le processus irexec lancé par le service lirc.

configurer le fichier /home/ultra/.lircrc comme suit:

begin
prog = irexec
button = KEY_SLEEP
config = /usr/bin/sudo /home/ultra/bin/shutdown.sh
end

redémarrez XBMC, votre télécommande fonctionne de nouveau, plus besoin de reconfigurer les touches.

Pour information, irexec lit le fichier /etc/lirc/lircrc pour lancer un script local lorsqu’une touche estpressée.

ce fichier inclue le fichier /home/ultra/.lircrc qui contient la commande d’arrêt (un simple shutdwn -h now).

bien sur, libre à vous de rajouter d’autres touches ou de modifier l’existant.

ah oui, pour connaître le code d’une touche, utilisez la commande irw et pressez votre touche, son code apparaîtra dans le terminal.

  29 commentaires à “xtreamer ultra & ubuntu 12.04”

  1. Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is excellent, as well as the content!. Thanks For Your article about xtreamer ultra & ubuntu 12.04 » tech blog .

  2. Thanks like your xtreamer ultra & ubuntu 12.04 » tech blog

  3. Thanks like your xtreamer ultra & ubuntu 12.04 » tech blog

  4. Woah! I’m really loving the template/theme of this blog. It’s simple, yet effective.
    A lot of times it’s hard to get that « perfect balance » between user friendliness and appearance. I must say you have done a amazing job with this. In addition, the blog loads very fast for me on Chrome. Exceptional Blog!

  5. I think this is one of the most significant info for me. And i am glad reading your article. But want to remark on few general things, The website style is ideal, the articles is really excellent : D. Good job, cheers

  6. … [Trackback]…

    […] Read More here: mobidyc.net/2012/09/xtreamer-ultra-ubuntu-12-04/ […]…

  7. When I first saw this title xtreamer ultra & ubuntu 12.04 » tech blog on google I just whent and bookmark it. Excellent publish. Incredibly refreshing offered all of the duplicate material out there. Cheers for doing some thing original.
    IFoleGreenC

  8. Good information. Lucky me I found your blog by chance (stumbleupon). I have saved it for later!

  9. Hi there, just became alert to your blog through Google, and found that it is truly informative.
    I’m going to watch out for brussels. I’ll appreciate if
    you continue this in future. Lots of people will be benefited from your writing.
    Cheers!

  10. I see you don’t monetize mobidyc.net, don’t waste your traffic, you can earn extra cash every month
    with new monetization method. This is the best adsense alternative for
    any type of website (they approve all sites), for more details simply search in gooogle:
    murgrabia’s tools

  11. Hi, I was just on your website and submitted this message via your contact form. The « contact us » page on your site sends you messages like this via email which is the reason you’re reading through my message right now correct? That’s the most important achievement with any type of advertising, getting people to actually READ your advertisement and that’s exactly what I just accomplished with you! If you have an advertisement you would like to promote to millions of websites via their contact forms in the US or anywhere in the world let me know, I can even focus on your required niches and my charges are very low. Send a reply to: Phungcorsi@gmail.com

  12. The state and Best Soccer Betting Agent, One of the
    particular best soccer gambling internet sites operating in the Oriental region, including Indonesia, is Sbobet.
    Known as typically the site that won a couple of awards
    since the best operator, Sbobet have been serving the customers since 2004
    and proceeds to survive because the most well-known and most significant internet gambling internet site in Asia.

  13. Good article! We are linking to this great article on our site.
    Keep up the great writing.

  14. you’re truly a just right webmaster. The website loading velocity is
    incredible. It kind of feels that you’re doing any distinctive trick.
    In addition, The contents are masterwork. you have performed a
    wonderful activity in this subject!

  15. Ion Casino

    Ion casino is a trusted and best on the internet casino site from 2010
    that has dished up millions of gamers in Asia.
    Ion casino or also called Ionclub is the top ranking selection site because this
    provides the greatest experience for online gambling players in Philippines.
    With an official license to operate, this provider guarantees that players help to make bets without risk, credibility and could be
    depended on.

  16. Betberry is one of the best sites in the particular online gambling industry in Indonesia of which provides slots,
    casino, sportsbook, shooting fish, money claws, poker, cockfighting
    and lottery. We have launched seamless technology that provides an easy
    answer for gambling online participants. With only 1 IDENTIFICATION, you can enjoy all the online games from various providers and never have to move funds from
    provider to another. Betberry itself is certified by the Nexus Engine, which means we offer services in order to players for all Indonesian players legally.

  17. Wonderful blog! Do you have any suggestions for aspiring writers?
    I’m planning to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress
    or go for a paid option? There are so many options out there that I’m totally overwhelmed
    .. Any suggestions? Thanks a lot!

  18. Ubobet is an internationally trusted gambling dealer previously 2001 until now.
    By holding certified admission for online gambling sites that provide various
    types of betting games. Games friendly tote up Sportsbook, enliven Casino and Cockfight.
    Ubobet has reached the entire world gambling spread around
    including the Indonesian market. At present, every daylight
    there are more than 100 thousand players who entrust their bets
    in the city of Ubobet.

    Ubobet List Site

    To register an account, players cannot attain it directly on the Ubobet site.
    In additional words, prospective players must register through the recognized agent site for Ubobet listings such as Pandora188.
    By using Pandora188 ID the artiste can bet on this city.
    How to register is quite easy, just by filling out the registration form correctly.
    After that create a growth of at least 25 thousand,
    next the artist can bet on Ubobet. all performer who joins as a believer at Pandora188 is entitled to a freebet supplementary and also a daily buildup supplementary without exception.

    Ubobet Login

    After registering, players can log in upon Ubobet in two ways.
    The first is through certified followers who have collaborations such as Pandora188.
    Because the two sites have already formed a partnership, which means that betting upon the Pandora188 site is the thesame as betting on Ubobet directly.
    Or by the second exaggeration you can directly log in to the
    Ubobet site if you already have an account. How to log in Ubobet is quite easy, just enter your
    ID & password correctly.

  19. enthusiastic in playing or maddening to register an account upon an online slot site?
    You have found the right place. Sakura188 is an online slot listing site that can be
    the solution for your search. We foster registration / account introduction online 24 hours once an simple and
    quick process in just 2 minutes. You can visit the
    registration page upon the Sakura188 site or
    question the CS in war to back up make an account.
    We guarantee there is no complicated process here, after you register you can snappishly play.

    Online slot site like the most truth games

    Sakura188 is the most unconditional online slot site in Indonesia today.
    We have at least more than 5000 slot games that you can play.
    all game nearby upon our site has a minimum bet
    that varies but is nevertheless affordable. You
    just have to pick what kind of slot game you in the manner of
    to play. Slots following 5 – 7 reels, slot games considering enlightened and eternal themes and fish shooting slots are here.
    Or reach you with to ham it up slots similar to well along jackpots?

    we as a consequence offer these games.

    The Most Trusted Slot Bookie In Sakura188

    Besides having the most given slot games, at Sakura188 you will be spoiled by
    playing at trusted slot dealers who measure considering us.
    The bookies upon our site are not produce
    a result slot dealers in the manner of further sites. every
    providers here have international welcome licenses as online game
    providers. Here are the trusted slot bookies at Sakura188.

  20. Usernesia
    Usernesia is one of the Greatest Official Gambling online Agents in Indonesia.
    Usernesia is among the best selections for you because Usernesia already posseses an official
    license
    and is particularly registered at the center on the planet
    On-line Betting company. In addition, Usernesia also
    provides products that are complete with technology which has been analyzed by World Betting experts.

    Services Offered by Usernesia
    Usernesia is one of the greatest Online Wagering Official Agents that provide the best service,
    Usernesia provides your facilities to be served immediately by professional and friendly customer service.

    In addition , Usernesia Consumer Service is also in charge of keeping you safe at playing, and not only
    the service provided is fantastic but the events given to members are also fantastic, of course.

    The Benefits of Usernesia’s Site Compared to
    Other Websites
    Usernesia provides a very complete game that
    has passed the test from Planet Gambling experts. Usernesia is also one
    of the firms that has squeezed the best gambling online site reward.

    What is more, the Usernesia Official Web site also has an extremely
    fast transaction service in just under 4 minutes to make deposit and disengagement transactions.

    Usernesia also has a very high stage of security so that it can be reliable, and Usernesia is 1 of the
    Official Sites that has never been struggling and always provides satisfaction to
    Usernesia members.

  21. Alternate Link l69
    L69 is among the official sites that provide the newest alternative link trustworthy online betting sites.
    L69 provides more than one alternative link from each betting site, and we here
    have become the most comprehensive alternative link suppliers and the L69
    web site contains a responsive display of which makes
    it easy for you to access our site from the display of your current gadget or
    laptop. And what you have to know is that we here have only one official link,
    l69. me personally and if there are other websites that supply information or call our website is not the official site.

    Ball gambling and casino gambling are types of games that are extremely
    well-liked by the individuals regarding Indonesia.
    Why l69? Since we’ve been here for even more than five years and have got
    become the trust of the men and women of Philippines as a spot to perform soccer gambling and also online casino gambling.

    Itself has additionally obtained a license from the Asian and European governments last season to become an online gambling betting provider site in Asia
    and Europe. By offering many different types of
    wagering bets that can be played about one ID, it makes typically the members feel happy
    playing in your bookie.
    Advantages of Alternative Links l69
    Nevertheless unfortunately lately there usually are many members
    who knowledge problems and problems any time entering into their Sgd777 game because the Sbobet internet site is frequently blocked and lots of aged sites have been blocked
    by the Indonesian federal government and never a few usually are also influenced with what is
    called the Newsletter Project. The Indonesian government recently is struggling to eradicate links or paths to access sites that smell regarding
    pornography, gambling and there are many other content that is deemed inappropriate.

  22. Depobola
    Are you a fan of online gambling games? Here we
    suggest not to choose a football agent carelessly, because now there are many
    online soccer agents who impersonate recognized agents to request you
    to generate income from you.

    Depobola is surely an online football agent that has passed test from World gambling experts, and already has an official certificate obtained from an official internet gambling
    company in Asia, besides that Depobola is one of the agents
    that provides complete products and products that already have official
    license from the world gambling company.

    Depobola is also one of the sites that provides the best service for
    you, here we provide all services from professional customer support
    who will serve you, our top top priority is the safety of our members’ personal data privacy.
    The reason being the Depobola site is one of the recommended sites from online betting centers as a trusted online gambling site.

    How to Register Depobola
    Right here Depobola will give you instructions for how to register on the Depobola
    website, here there are only 3 steps that you should claim your ID at Depobola.

  23. Are you a lover of online slot gambling games?
    This game has existed for 100s of years but is still one of the favorite games in Usernesia even in luxury gambling
    places like Vegas or Macau, slots are always neatly aligned waiting for followers to
    be able to levers and win jackpots that reach billions of rupiah..

    But , do you know if this game was at first considered a flop game?
    Indeed, at the start of this game created by the creator named Charles August Fey
    in 1894 in the United States, this machine was intended being an programmed
    poker game machine that could be moved using coins.

    After seeking to build his idea into actuality, Fey finally gave up and considered his discovery a failure.
    But who would have thought that this machine turned out to be one
    of the most widely used video games in the world.
    Not only in slot gambling video games provided by wagering houses but also the concept utilised by various games as a « bonus game ».

    This is where the game involving the RNG or
    Random Number Generator was initiated, where the machine will give random values ​​that
    will determine what you will get each and every
    round of the overall game. Not only slots but in addition games
    like virtual sports activities or bonus online games like gacha also use this kind of concept.

  24. 24-hour online slot site and online on line casino – JudiUsernesia
    JudiUsernesia is a site for playing online slot gambling and online casino
    that has 24-hour service. All online betting games on the JudiUsernesia site can certainly be utilized
    anytime and everywhere. The JudiUsernesia site is also the best online
    betting agent in the country because it is fully
    commited to serving Indonesian online gambling members.
    We, as the best online slot machine game and casino game providers, will also continue to provide up-dates on the latest betting games every week.

    Online Slot Gambling Agent with a Deposit of 25 Thousand
    With regard to lovers of online slot gambling video games throughout Indonesia, you could have faced
    a similar problem where you want to play the slot betting you want but are forced to maintain back
    because you don’t have an enough budget to play it.

    If that is the situation that has been bothering you all this time, then JudiUsernesia brings good news to all of you.Today
    you no lengthier need to think about big funds to be able to play online gambling, with only twenty
    five thousand rupiahs, you can immediately play the game you want.
    The video games available here are also not human judgements games
    because they come from well-known providers such as Habanero Systems, Sensible Play, Microgaming,
    and many more.

  25. gratifying and thank you for visiting online casino
    agents for Indonesia. Here we are here to find the money
    for entrance for fans of sbobet casino who want to colleague
    the international agent site Promosbobet.

    The products offered are completely diverse and are totally the best
    choice. Derived from providers that have credibility and have been proven to have the best predicate in serving their customers.
    Providers behind Sbobet, Maxbet and many more.

    As the best online casino and soccer gambling site in Indonesia.
    We have the funds for maximum encourage with customer
    preserve that works online 24 full hours all day. hence members can work whenever and wherever without fearing to turn the possibility of difficulties or confusion.

  26. Panduanjudi Login

    Panduanjudi is a trusted and ascribed poker site from PKV
    games server. We come up with the money for 9 types
    of forward-looking games that can be played using just one
    ID. The games we have enough money include poker, domino99, bandarq, aduq,
    sakong, bandar66 and next capsa susun. In accessory to having a large
    variety of games, http://www.Panduanjudi.com in addition to has several handsome promos
    that can be enjoyed directly after living thing registered as a
    member. like unconditional weekly cashback promos that are calculated from the total turnover, both winning
    and losing. besides Panduanjudi in point of fact appreciate if there are members who invite associates or associates to ham
    it up upon our site by giving a referral added of 10%
    to 20% of the number of turnover downline invited to play.

    To be the best poker site, Panduanjudi is always bothersome to affix our facilities to be clever to
    offer the best experience in playing poker at our place.
    One of the ways is the Gambling lead provides a means of payment that reaches all elements of Indonesian society.
    By full of zip in imitation of leading banks and willing to
    help Simpati and XL tally deposits. As competently as which players
    can make deposits using E-wallets such as GoPay, OVO and Funds.
    additional than those mentioned above, of course there are yet advantages in Panduanjudi to suffer to become the best
    poker sites such as:

  27. What’s up, I desire to subscribe for this web site to take latest updates, thus where can i do
    it please help out.

  28. For those of you who have just joined the planet of online betting, you should
    know that to play online gambling in Indonesia it is necessary to opt for
    the best internet gambling site. The Agenusernesia site acts since a portal
    of which connects you since a player with a really good games
    provided by simply Indonesia’s best on the internet gambling site.

    1 of the on the internet gambling agents of which provides
    access to the very best online betting games in Dalam negri is Usernesia.
    By means of its website from http://www.agenusernesia.com, you will find different types of popular online gambling games this kind of as soccer
    wagering, casino, online slots and so about and play these people with just
    one single enrollment.

    Since it premoere appearance, the Usernesia online gambling agent site has been able to supply the best support for
    its clients with international regular games and specialist service.
    Apart through that, there are several other features that will give you many benefits.
    Consequently , register your self now.

    The Most Gacor Online Gambling Internet site
    For professional online gambling players, of course , they already understand that determing the best and most trusted
    internet gambling site is 1 of the total
    requirements to become successful in the online gambling industry.

    Consequently , picking an online wagering site should not be arbitrary.
    Presently there are many points to consider it will be very time consuming to find the most
    appropriate internet site.

    The most popular online gambling internet site and provides numerous advantages is Usernesia.
    Through this website an individual will be capable to enjoy different types of the best betting
    games created by well-known providers. In this article are some online gambling games that will you can choose
    and play within Usernesia.

 Laisser un commentaire

Vous pouvez utiliser ces tags et attributs HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(requis)

(requis)

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.