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

Com s’ho fan els ordinadors per jugar?

4jugades

Avui parlarem d’un dels mètodes (els informàtics en diem algorismes) per fer que un ordinador jugui correctament als escacs, al tres en ratlla, les dames o jocs similars.

Tots hem sentit o vist a les notícies d’ordinadors que ja son grans mestres d’escacs, o no fa gaire, un ordinador de Google va guanyar al millor jugador de Go del món.

El primer que ens cal, es que el joc sigui de dos jugadors i es faci per torns, és a dir, a cada torn juga un dels jugadors, al següent torn juga l’altre jugador, i així van fent fins que un dels dos guanya la partida o tots dos empaten.  Continue reading »

Posted in Divulgació | Tagged , , , , , , , , , | Leave a comment

LiFi: o com enviar informació fent servir llum

Una mica d’història

Comunicacions fent servir llum visible ja sigui amb semàfors, banderes de senyals o llanternes s’han fet des de fa centenars d’anys. El que passa és que per enviar més informació que no pas “atura’t”, “gira a l’esquerra” o “ataca al vaixell de babord” ens cal alguna cosa més elaborada.

Amb el descobriment de les ones hertzianes i de la invenció de la ràdio es va començar a enviar informació fent servir “llum”, el que passa és que fem servir una “llum” que no podem veure. Els WiFi, ràdio, televisió, satèl·lits, etc. fan servir ones electromagnètiques per enviar el que volem (dades, veu, imatges, video). La llum que nosaltres podem veure també són ones electromagnètiques, però d’unes freqüències diferents.

Espectre de radiació electromagnètica. Des de raigs gamma i X fins a la ràdio. Entremig la llum visible.

Continue reading »

Posted in Divulgació | Tagged , , , , , | Leave a comment

Guardant informació dins de l’ADN

La demanda de més capacitat d’emmagatzemar dades va creixent de forma exponencial de fa temps, però la tecnologia actual no pot oferir aquesta necessitat: els discs, cintes i demés mètodes tenen limitacions tant de mida, com de consum energètic o de la vida útil de les dades.

Així, per exemple, Facebook va obrir al 2013 un datacenter (lloc on s’instal·len tots de servidors per guardar-hi dades) per guardar-hi fotos i dades antigues que es consulten poc sovint (cold storage) amb capacitat per 1 EB (1.000.000.000 Gigabytes!) que ocupa uns 5600 metres quadrats i gasta aproximadament uns 10MW d’energia.  Altres empreses (Google, Amazon, Microsoft, etc.) tenen instal·lacions similars arreu del món i no paren de obrir-ne de noves per mantenir el ritme d’emmagatzematge de dades que es necessita. Continue reading »

Posted in Divulgació | 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 Dawn of Proprietary Long Range M2M Systems

This text was published at Worldsensing webpage

Wireless Sensor Networks (WSN) are based on the concept of tiny devices, with a set of sensors and a radio to send the results to a dedicated server or the Internet. This radio infrastructure has been typically designed keeping in mind the state-of-the-art on radio transceivers with low power consumption, fairly high throughput (up to Mbps) and short range (100 meters max). The solution that almost everybody has found has been to build a mesh network of devices, with a medium to low range between the nodes of the mesh. In these designs, data is sent from one device to another until the data reaches the sink node which itself is connected to the Internet in a more traditional way (3G, GPRS, Ethernet).

These mesh networks have several problems. One of them is the synchronization between devices: because each device has a different clock drift, it is mandatory to synchronize often the whole network, leading to raising energy consumption; another problem is the asymmetry on the devices consumption, meaning that not all devices drain power at same rate: this is because nodes closer to the sink will act as repeaters to other devices. This phenomenon complicates the operational costs of the network maintenance, even limiting the use of energy harvesting techniques in some of the devices in the same network. Other operational costs of these mesh networks are in the use of repeaters to enhance coverage of some parts of the deployment. It is not easy to detect these dark zones, and usually one needs trained people to do the installation. Continue reading »

Posted in Divulgació | Leave a comment

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

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
« Older