D3100 (DisplayLink) and XPS 13-9343 with Ubuntu

I’m delighted with my XPS 13-9343 running Ubuntu from nearly 2 years now.

Few months ago I decided to buy a D3100 docking station to connect my two 24” monitors to my laptop. That was risky because I read a lot about the bad support and low quality drivers for the DisplayLink chipset. But I took the risk.

I installed the drivers from DisplayLink website, but nothing seems to work. After several tries and forum diving, I get some usable system.

I’m running kubuntu 16.10 with the last kernel (4-8.0-45 generic x86_64)

Here my steps:

  1. Install drivers from DisplayLink website
  2. Try it! Maybe it starts working fine to you, lucky you! If it is not working, or you have a very low speed monitor or some windows are displayed oddly, follow to step 3
  3. Try to open a console and run “Xorg :1 -configure”, copy the generated xorg.conf.new file to /etc/X11/xorg.conf
  4. Edit the file and add ” Option “PageFlip” “off” ” to the Device sections
  5. Reboot
  6. If you’re lucky your screens will be working fine!

My results are:

  • glxgears on HDMI displays show ~5000 FPS!!! (on laptop screen shows ~60 FPS)
  • almost everything is well displayed except:
    • systemsettings
    • dolphin

I get the information from DisplayLink forum (here, here, and here)

My xorg.conf file

Updated 1st April: System is stable. I can watch Netflix on Chrome and it is very smooth (I don’t know the exact FPS). CPU usage is about 50% DisplayLinkManager and 30% Chrome

Posted in General | Tagged , , , , , , , , | Leave a comment

(Español) Por qué no me ha gustado Interstellar.

Ojo, voy a hablar de la película (y otras) sin contarme un pelo, así que si no la has visto igual no deberías seguir leyendo. Hace dos semanas vi Interstellar, la peli de Nolan tan comentada últimamente. La película cuenta que en un futuro no muy lejano, por alguna razón que no nos  cuentan los cultivos de la tierra están desapareciendo. Por ello, hay un gobierno hyper-planificador que incluso asigna a los escolares qué trabajos tendrán en el futuro. A partir de un suceso un poco extraño entre su hija y “un fantasma”  el protagonista descubre que la NASA sigue existiendo casi en secreto y que tienen un plan para salvar la tierra. Entonces la película nos cuenta el plan, que empezó al descubrirse un agujero de gusano cerca de Saturno:y que consta en enviar 10 naves espaciales con un científico de nivel en cada una para explorar posibles sistemas habitables al otro lado del agujero. Al cabo de los años, se han recibido informes favorables de 3 planetas en un mismo sistema solar (con un agujero negro en lugar de una estrella) y nuestro protagonista junto con un pequeño equipo irán en persona a explorarlos para encontrar el mejor candidato a ser colonizado.

Qué no me gustó

La ciencia que hay detrás de la película parece ser que está  perfectamente documentada y justificada, y la verdad es que a mí tan solo me chirrió un poco las nubes sólidas en el planeta helado y el primer lanzamiento desde la tierra con un cohete estilo Saturno V. Lo que no me gustó de la película es que no hay ningún conflicto, y me voy a explicar. Para mi, la ciencia ficción es un estilo narrativo donde se usa la ciencia (presente, pasada o futura) para ponernos en situaciones, conflictos nuevos. Para mi ciencia ficción de la buena es Blade Runner, donde nos hablan de unos seres similares a los humanos, con pensamiento casi-humano, con anhelos humanos, pero que no tienen ningún tipo de derecho (hasta se les limita la vida a 5 años). Por que digo que es una buena película? Por que ahí hay un conflicto: deberían esos seres tener los mismos derechos que los humanos? En la película esa discusión no se tiene (a parte de los remordimientos del protagonista), pero deja todos los ingredientes para que tengamos nosotros los espectadores esa discusión. Otro ejemplo? La isla creo que es otro buen ejemplo. La peli no tiene mucho más de lo que nos muestra, y posiblemente desde el punto de vista cinéfilo no es una gran obra pero, de nuevo, nos cuentan una situación hipotética donde se pueden clonar personas para usar sus órganos como reemplazo para sus originales. Aquí el debate (el conflicto) es claro: de nuevo, deberían tener estos clones derechos? Parece que la compañía que logra estos clones cobra mucho dinero por ellos, por tanto, será solo accesible a los ricos, es eso justo? Y un último ejemplo. Moon nos habla de un solitario minero en la Luna, que al final parece ser que es un ser clonado  y condenado a quedarse en la luna trabajando de minero reencarnación tras reencarnación. Otra vez, cuestión de identidad, derechos, etc. Hay conflicto. He puesto tres ejemplos de lo que, para mi, son dos grandes películas de ciencia ficción, aunque en el caso de La isla quizás no es una gran película y Moon no es una peli muy efectista. (y bastante lenta, todo sea dicho). Y por qué creo que lo son: por el conflicto que presentan. Y ahí es donde Interstellar me defrauda, por que no hay conflicto, no hay ninguna cuestión ética, moral, técnica o religiosa a debatir después de ver la película. Al final, es una peli (buena peli) de  aventuras, con una ciencia muy bien llevada y metida en la trama, pero para mi, no deja de ser una película de aventuras. Qué podrían haber introducido en la película para mejorarla, qué conflicto introducir? Así de primeras se me ocurre:

  • Qué gente se va a llevar fuera de la Tierra para salvar la Humanidad?
  • No es mejor optar por salvar la Tierra que empezar una colonización express?
  • No es mejor ponerse en contacto de alguna forma con los seres que han creado el agujero de gusano? (según la película resulta que seremos nosotros mismos en el futuro -> ahí hay una gran paradoja temporal de la que nadie habla)

Seguro que a guionistas profesionales se les podrían ocurrir cientos de ideas mejores que las mías. En fin, que creo que Interstellar es una película que vale la pena verla en el cine, en algunos momentos trepidante, pero que a mi me dejo más bien frío, en el sentido de no encontrar ninguna propuesta, idea o problema que me hiciera pensar un buen rato después de verla. Ale, ya lo he dicho 🙂

Posted in General | Tagged , , , | Leave a comment

Fix for new Touchpad using elantech driver (linux)

The new kernel versions already include this patch! So your system should work fine with last kernel versions. 🙂

 

I’ve recently bought  a ASUS s301l laptop. This laptop seems to have a new version of touchpad that elantech module cannot detect (kernel version 3.15.4). Because of that, touchpad is detected like an PS/2 and it lacks most of the funcionlities (two fingers gestures, etc.). The error that psmouse driver is giving is: psmouse:elantech_detect: psmouse serio4: elantech: Elantech version query result 0x46, 0x1f, 0x14. psmouse:elantech_detect: psmouse serio4: elantech: Probably not a real Elantech touchpad. Aborting. This detection is performed in elantech_is_signature_valid function. This function compares one of the registers read from the touchpad controller to a set of numbers . If the value of the register matches one of the numbers, the detection fails. (I don’t know the reason of all of this). My touchpad controller returns one of the forbidden values (0x14) so I’ve tried a quick hack: removing the  offending value from the list in that function. After compiling and loading the module, the touchpad is recognized (good!) and it is working (awesome!). If you are in the same problem with your laptop, this is the line you may change in elantech.c module: // static const unsigned char rates[] = { 200, 100, 80, 60, 40, 20, 10 }; static const unsigned char rates[] = { 200, 100, 80, 60, 40, 21, 10 };

Posted in General | Tagged , , , , , | 10 Comments

Add nepomuk tags with command line

De hace tiempo que uso nepomuk en mi entorno de trabajo basado en KDE4. Yo lo uso etiquetando (poniendo tags) a los ficheros que quiero poder recuperar luego rápidamente. Luego en el gestor de ficheros Dolphin (o también en krunner) con solo buscar con la etiqueta recupero todos los ficheros con ese tag.

El coñazo es etiquetar uno a uno los ficheros con Dolphin (entornos gráficos…) así que me he hecho una aplicación en Python para etiquetar desde la línea de comandos (Link a GitHub). Como verás, mis conocimientos de python son más bien escasos, así que cualquier comentario será bienvenido.

Por cierto, parece que la próxima versión de KDE (la KDE 4.13) cambiarán el motor de búsqueda semántica por defecto, ya veremos qué pasará.

Posted in General | Tagged , , , , | 3 Comments

The Internet of Things

Article originally posted at Worldsensing webpage

RFID tags are cheap. Sensors are dropping in price. Many factors are aligning to usher in the Internet of Things.

Factors Feeding into the Internet of Things

The Internet of Things (IoT) covers all different objects that are capable, at the very least, of identifying themselves in a digital format. It means that every tool, box, device, computer or object that can send its identification to other devices belongs to the Internet of Things. Of course, an object can send more information than just its identification: sensors (temperature, light, humidity, vibration, etc.); its status (a trashcan warning it is almost full); or even receive commands to react to the environment (a valve closing off the water supply, a heater system beginning to heat your house before your arrive home).

Continue reading »

Posted in General | Leave a comment

Consejos para estudiantes de Doctorado

Hola,

En este post me voy a permitir el lujo de dar unos cuantos consejos a los que estáis empezando en esto de un doctorado (o PhD). Creo que si los hubiera tenido en su momento, hubiera aprovechado mejor mi tiempo y mi trabajo en mis años en la universidad.
Continue reading »

Posted in General | Tagged , | 2 Comments

A class to Log them all

A good way to retrieve information of what is happening in our SystemC simulations is to generate a log file with the information that we need (module name, simulation time, what phase is going on, etc.).

The most elegant and easy way to do that is to create a special class for that task, that the other modules in the simulation can use to send their information and to be stores in disk. This can be achieved designing a singleton type class. This design pattern restricts the instantiation of a class to one single object. In our case, it will cause that all modules use the same object and log file.

Continue reading »

Posted in General | Tagged , , , | Leave a comment

How to configure Eclipse to use TLM-2.0

Today I tell you how to create a project in eclipse for work with TLM-2 and SystemC, it’s very easy!

Continue reading »

Posted in General | Tagged , , | Leave a comment

Loosely time and temporal decoupling

This coding style works with 2 timing points in each transaction, one in the function call and the other in the return for the b_transport function (using the base protocol these points corresponds to the start of the petition and the start of the response). We can put these two points in the same time to mark that the transaction is not using time.

Continue reading »

Posted in General | Tagged | Leave a comment

Interfaces, sockets, DMI y more

Sorry, this entry is only available in Español.

Posted in General | Tagged , , , | Leave a comment
« Older