BQ Aquaris E 4.5 Ubuntu phone
  • Initial page
  • LANGS
  • Cosas que he aprendido al usar el teléfono BQ Aquaris E4.5, basado en Ubuntu
    • Summary
    • ¿Cómo configurar el acceso por SSH al teléfono a través de Wi-Fi?
    • Using IRC - the weechat application
    • El menú para comprobar el hardware
    • Compiling the MUA mutt and making a click app of it (UNFINISHED)
    • El cliente de correo Dekko
    • Compiling the Telegram client "telegram-cli" in the jail
    • Mandar mensajes SMS desde la línea de comandos (shell)
    • Installing an additional root FS and run 'mutt'
    • Desarrollar aplicaciones y el SDK (no revisado hasta ahora)
    • Instalación del firmware en el teléfono
    • Cambiar las aplicaciones (core-apps) mostradas en scope de aplicaciones
    • Historial del navegador Web
    • Acceso a registro (logs) del dispositivo BQ
    • Enlaces útiles
    • Histórico de llamadas y SMS
    • Cambiar las teclas de control de la aplicación de terminal
    • Importar y exportar contactos
    • Red inalámbrica: Usar el teléfono como punto de acceso (hotspot) a Internet
    • Leer contenido local de HTML con un navegador
    • Eliminar la información privada
    • Configuración en el ordenador(Linux/FreeBSD) usando el móvil conectado a Internet con tethering por
    • Other usefull commands (unsorted)
    • Reiniciar el escritorio Unity
    • Lanzar apps desde la línea de comandos del usuario phablet(shell)
    • Cortafuegos
    • Using ubuntu-device-flash
    • El archivo de configuración del GPRS
    • ssh localhost
    • Grabar la pantalla del teléfono(MIR) para presentaciones, charlas, etcétera hacia un ordenador(X11)
    • Exporting notes from app 'reminder'
    • Tareas de Cron
    • chapter30
    • GPS, maps && apps (uNav)
    • Red por USB: tethering
    • Notas sobre algunos aspectos del hardware
    • Dónde quedan guardados los ficheros (imágenes, documentos, etc.)
  • What I have learned about the Ubuntu mobile phone BQ Aquaris E4.5
    • Exporting notes from app 'reminder'
    • Cron jobs
    • chapter30
    • Summary
    • Using IRC - the weechat application
    • Import and export of Contacts
    • Wireles networking: The BQ as an AccessPoint (hotspot)
    • Some hints for your Linux/FreeBSD netbook using the BQ with USB tethering as a router to Internet
    • Firewall
    • Hardware test menus
    • Capturing the MIR screen for presentation, talks etc. on a X11 desktop
    • Compiling the MUA mutt and making a click app of it (UNFINISHED)
    • The MailUserAgent (MUA) Dekko
    • GPS, maps && apps (uNav)
    • Compiling the Telegram client "telegram-cli" in the jail
    • Sending SMS from shell
    • USB networking: tethering
    • Installing an additional root FS and run 'mutt'
    • Developmen and SDK (completely UNTESTED until now)
    • Notes about some hardware aspects
    • Flashing the device
    • How to alter presented apps in the app scope
    • Where the files (pictures, ...) end up
    • Webbrowser history
    • Access to logs in the device
    • How to get SSH access to the ubuntu-phone via Wifi
    • Usefull links
    • Call and SMS history
    • Reading local HTML content with a browser
    • Sanitisation
    • How to alter presented keyboard's Control keys
    • Other usefull commands (unsorted)
    • Restart the Unity UI
    • How to lauch apps from the phablet's cmd line
    • Using ubuntu-device-flash
    • GPRS config file
    • ssh localhost
Powered by GitBook
On this page

Was this helpful?

  1. Cosas que he aprendido al usar el teléfono BQ Aquaris E4.5, basado en Ubuntu

Grabar la pantalla del teléfono(MIR) para presentaciones, charlas, etcétera hacia un ordenador(X11)

Ubuntu-Touch no corre un servidor gráfico X11 para presentar la información en pantalla, sino un servidor de MIR. Se puede grabar la pantalla(en vídeo), de la siguiente manera(y usar el vídeo en presentaciones, charlas, etcétera).

Creamos un script en el teléfono con el nombre cast.sh y el siguiente contenido:

#!/bin/sh
srcIP=`echo $SSH_CLIENT | cut -f1 -d' '`
port=12345
printf "mirscreencast'ing to %s port %s\n" $srcIP $port

# note about --cap-interval / -n and resulting fps (for mplayer):
# --cap-interval 10 -n 6   gives: 6  frames per sec (use fps=6 in myplayer)
# --cap-interval 1  -n 1   gives: 60 frames per sec (use fps=60 in myplayer)
# the later of course with a high cost of launching 60 time per sec
# the application 'mirscreencast' :-(
# and this only due to a bug in 'mirscreencast'; see:
# https://bugs.launchpad.net/mir/+bug/1439549
#
# the bug was fixed with OTA-4 (r23) in June 2015, we do not need the while loop
# anymore, but who know; we keep it for now

### while true; do
###   mirscreencast -m /run/mir_socket --stdout --cap-interval 1 -s 270 480 -n 1 || break
### done | gzip -c | nc $srcIP $port

mirscreencast -m /run/mir_socket --stdout --cap-interval 1 -s 270 480 \
    | gzip -c | nc $srcIP $port

Tenemos que usar la conexión tethering por USB, porque la red inalámbrica no es suficiente para transmitir los datos en masa de la pantalla. También tenemos que iniciar antes en el ordenador otro script que recibe el vídeo, lo llamaremos ~/readScreenCast.sh y usa en este caso la herramienta mplayer para presentar el vídeo:

#!/bin/sh

# read the 'mirscreencast' from the Ubuntu phone's MIR server
# see there 'cast.sh'
#
# co guru@unixarea.de, April 2015

nc -l 12345 | gzip -dc |\
    mplayer -demuxer rawvideo -rawvideo fps=60:w=270:h=480:format=rgba -

Funciona a las mil maravillas.

Última actualización: jueves, 19 de noviembre de 2015, 20:44:29 CET

Previousssh localhostNextExporting notes from app 'reminder'

Last updated 5 years ago

Was this helpful?