Control Remoto Migyca S870 en Linux

url:https://horusint.wordpress.com/2010/06/07/control-remoto-migyca-s870-en-linux/

Este post complementa la nota sobre Como usar nuestro dongle en Linux

Gracias a Hordia podemos usar nuestro control remoto tambien en Linux, para eso debemos importar el si no esta ya en el repositorio Mercurial el patch hg import https://patchwork.kernel.org/patch/102314/raw/ Puede que recibamos un error abort: no username supplied (see "hg help config") En ese caso debemos ir al directorio de configuración de nuestro repositorio cd .hg Allí editamos el archivo de configuración gedit hgrc y agregamos [ui]

username = Firstname Lastname <firstname.lastname@example.net>

Con esto listo ahora si hacemos un commit del cambio

hg commit

Elegimos el editor

Select an editor. To change later, run 'select-editor'.

  1. /bin/ed
  2. /bin/nano <---- easiest
  3. /usr/bin/vim.tiny

Escribimos el motivo del cambio, en este caso “Remote S870″

Y luego recompilamos.

make

Acá les dejo el código, tambien lo pueden copiar a un archivo de texto e importarlo desde allí.

diff -r b576509ea6d2 linux/drivers/media/dvb/dvb-usb/dib0700_core.c --- a/linux/drivers/media/dvb/dvb-usb/dib0700_core.c Wed May 19 19:34:33 2010 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_core.c Wed May 26 19:31:24 2010 -0300 @@ -550,6 +550,16 @@ poll_reply.data_state = 2; break; } + + break; + case 1: + /* Geniatech/MyGica remote protocol / + poll_reply.report_id = buf[0]; + poll_reply.data_state = buf[1]; + poll_reply.system = (buf[4] << 8) | buf[4]; + poll_reply.data = buf[5]; + poll_reply.not_data = buf[4]; / integrity check / + break; default: / RC5 Protocol / diff -r b576509ea6d2 linux/drivers/media/dvb/dvb-usb/dib0700_devices.c --- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Wed May 19 19:34:33 2010 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Wed May 26 19:31:24 2010 -0300 @@ -831,6 +831,46 @@ { 0x4540, KEY_RECORD }, / Font 'Size' for Teletext / { 0x4541, KEY_SCREEN }, / Full screen toggle, 'Hold' for Teletext / { 0x4542, KEY_SELECT }, / Select video input, 'Select' for Teletext / + + + / Key codes for the Geniatech/MyGica SBTVD Stick S870 remote + set dvb_usb_dib0700_ir_proto=1 / + { 0x38c7, KEY_TV }, / TV/AV / + { 0x0cf3, KEY_POWER }, + { 0x0af5, KEY_MUTE }, + { 0x2bd4, KEY_VOLUMEUP }, + { 0x2cd3, KEY_VOLUMEDOWN }, + { 0x12ed, KEY_CHANNELUP }, + { 0x13ec, KEY_CHANNELDOWN }, + { 0x01fe, KEY_1 }, + { 0x02fd, KEY_2 }, + { 0x03fc, KEY_3 }, + { 0x04fb, KEY_4 }, + { 0x05fa, KEY_5 }, + { 0x06f9, KEY_6 }, + { 0x07f8, KEY_7 }, + { 0x08f7, KEY_8 }, + { 0x09f6, KEY_9 }, + { 0x00ff, KEY_0 }, + { 0x16e9, KEY_PAUSE }, + { 0x17e8, KEY_PLAY }, + { 0x0bf4, KEY_STOP }, + { 0x26d9, KEY_REWIND }, + { 0x27d8, KEY_FASTFORWARD }, + { 0x29d6, KEY_ESC }, + { 0x1fe0, KEY_RECORD }, + { 0x20df, KEY_UP }, + { 0x21de, KEY_DOWN }, + { 0x11ee, KEY_LEFT }, + { 0x10ef, KEY_RIGHT }, + { 0x0df2, KEY_OK }, + { 0x1ee1, KEY_PLAYPAUSE }, / Timeshift / + { 0x0ef1, KEY_CAMERA }, / Snapshot / + { 0x25da, KEY_EPG }, / Info KEY_INFO / + { 0x2dd2, KEY_MENU }, / DVD Menu / + { 0x0ff0, KEY_SCREEN }, / Full screen toggle */ + { 0x14eb, KEY_SHUFFLE }, + };

System Message: WARNING/2 (data/control-remote-migyca-s870-en-linux.txt, line 45); backlink

Inline emphasis start-string without end-string.

/* STK7700P: Hauppauge Nova-T Stick, AVerMedia Volar */

System Message: WARNING/2 (data/control-remote-migyca-s870-en-linux.txt, line 114); backlink

Inline emphasis start-string without end-string.

Espero que les sirva

2010
06/07
Categoría
Ubuntu
ETIQUETAS
Ubuntu SATVD SBTVD TDT Migyca S870 Remote

System Message: WARNING/2 (data/control-remote-migyca-s870-en-linux.txt, line 130)

Definition list ends without a blank line; unexpected unindent.

Escribir comentario

  • Escribir comentario
  • RSS de los Comentarios
  • Trackback ( 1 )
  • Comentarios ( 1 )
    • hordia
    • 9/06/10
    • Contestar
    • Cita

    Después de reinstalar el módulo (‘make install’) hay que recargarlo, lo más fácil es desenchufar y enchufar el dongle o con modprobe:

    sudo modprobe -r dvb_usb_dib0700 #remover sudo modprobe dvb_usb_dib0700 #insertar

    Si por casualidad alguien quiere reasignar la tecla OK al ENTER (algo práctico para el XBMC por ejemplo) tiene que cambiar esto en el patch:

    reemplazar: { 0x0df2, KEY_OK },

    por: { 0x0df2, KEY_ENTER },