Saturday, June 29, 2013

[Review] Thinkpad T430u from a Linux perspective

Thinkpad T430u from a Linux perspective


What is he talking about? Versión en espanol (pronto...)
 

Overview


Recently I purchased a new computer. Being a Linux user when you plan to buy a new computer, you really want to know if your hardware is going to work out of the box.

I wanted to buy a computer that will last for a long time and that would have great specs. After long hours of research I came with two options:
  • The Gazelle professional from System 76, mainly because it comes with Ubuntu and everything works great.
  • The Thinkpad T430u from Lenovo, the model with the i7 processor and the nVidia graphic card.
At the end I decided to purchase the Thinkpad because it had some features I found very interesting.
Also, buying the Gazelle would be a little bit difficult because I live in France. So at the end I would end up paying the same price.


Hardware specifications


I have the 86148CU model of the T430u series. It comes with the following features:

  • i7 IvyBridge dual-core processor, 1.9GHz with TurboBoost up to 3.00GHz.
  • Intel 4000HD Graphics.
  • nVidia GeForce 620m 1GB with Optimus Technology
  • 4 GB of RAM
  • 126GB Toshiba SSD

Some other hardware specifications:

  • 3 cell battery, up to 7 hours (I get around 5 hours with TLP installed and using an Ethernet connexion)
  • 2 USB 3.0 ports
  • 1 SD card slot
  • Headphone/Microphone jack
  • Finger print reader
  • HDMI port
  • Mini Display port 




What does that mean exactly? Well, sadly, some hardware is not going to work out of the box.

T430u and Ubuntu



First thing I did after getting my new computer: delete Windows and format the drive. I was happily surprised that I didn't had any problems with UEFI booting. I had so much troubles trying to make Ubuntu boot in a Dell XPS so I was expecting to make change some options in the BIOS but I could boot and install Ubuntu without problems.

During the installation process, I noticed that the UltraNav utility and the keyboard mouse worked really well. All function buttons worked well too.
The only problem, was that I needed to enable the proprietary drivers for WiFi, so I needed a wired connection to do that.


After enabling my WiFi connexion I did almost everything I mention in this entry of my blog. But I had to test some drivers in order to use all my hardware.

Enabling drivers

As I mentioned before, some of the things that comes with the computer aren't working out of the box.

First of all I wanted to test the graphic card that comes installed. As you can see in the image above I can't enable the drivers automatically. This happens with nVidia graphic cards that use Optimus Technology.

After breaking X like 5 times, I ended up finding the Bumblebee project. I installed Bumblebee using a PPA and I was finally able to properly use my graphic card and safe some battery life.
Here is a post about how to install Bumblebee and how to test it. +1 for this amazing project (+Bumblebee Project in Google+).

Second thing I wanted to make sure that was working was my finger print reader. I did some research for the packages I could install to use my finger print reader, and I found the Fingerprint Gui project.
There is a PPA I used and the configuration was very simple. I set it up so when I need to have special permissions I can swipe my finger or put my password. It works pretty well and even if you are using your system with tty1 (Ctrl + Alt + F1) you can still use the finger print reader.


Conclusion


I don't see why I couldn't recommend this computer. Honestly it works better with Linux that my previous machine. Hibernation works well and if I close the lid the computer Suspends. I had some issues enabling drivers but it wasn't very difficult to make my hardware work.

Sadly the model with the i7 processor is discontinued. And I can't say how you can enable the WWAN if you have one. But if you don't want all that fancy stuff you won't run into any problems and you could make everything work.

Thinkpads are popular for being great pieces of hardware, so if you want to invest in a good computer that will last for a long time I would recommend you the Thinkpad T430u. It may be expensive for some people, specially if you don't live in the US but if you can get yourself a computer like this one you won't be disappointed.

Here is a very very very detailed review, but with a Windows perspective.

Did you like this post? Don't forget to add me to your circles in G+ or to follow me on Twitter: @RobertoXMed .

If you can and if you want, don't forget to Donate so I can keep up the good work.

Friday, June 14, 2013

[Tutorial] Habilitar los drivers de nVidia con tecnología Optimus

Habilitar los drivers de nVidia con tecnología Optimus

What is he talking about? English version

Ahora que tengo un computador con una tarjeta gráfica, puedo escribir sobre como habilitarla si es que no es reconocida por su sistema operativo.

 
Tengo una nVidia GeForce 620m en mi laptop y Ubuntu no me permite instalar los drivers normalmente desde el manager que tienen. Esto se debe a que esta tarjeta gráfica utiliza tecnología Optimus de nVidia.

Identificando su dispositivo


Lo primero que tenemos que hacer es ver si la tarjeta gráfica esta siendo reconocida.

Usamos el comando:

lspci

Pueden ser más específicos, combinando lspci con grep:

lspci | grep 3D


Normalmente deben ver ahí su tarjeta gráfica. Una vez que hicimos eso podemos instalar los drivers.

Descargar e instalar Bumblebee


Bumblebee es un proyecto que nació justamente para habilitar la tecnología Optimus en Linux, ya que nVidia no creó los drivers correspondientes.
Este proyecto funciona en la mayoría de distribuciones (Ubuntu, Fedora, Mandriva, Arch...). Como yo uso Ubuntu les mostraré como instalarlo usando un PPA.

Importante: No necesitan instalar nada extra, sobre todo no instalen nvidia-current o no usen ningún script para configurar su servidor X. Pueden hacer que su sistema sea inutilizable,

Usen el PPA oficial de la página de Bumblebee y actualicen sus paquetes:

sudo apt-add-repository ppa:bumblebee/stable
sudo apt-get update

Asegúrense de que tienen los linux headers instalados:

sudo apt-get install linux-headers-generic

Y finalmente pueden instalar Bumblebee:

sudo apt-get install bumblebee virtualgl

Luego reinicien su computador y verifiquen que no tienen ningún error.

Asegúrense de que la opción para usar las dos tarjetas gráficas está activada en su BIOS también.

Probando la tarjeta gráfica


Una vez que instalamos Bumblebee podemos hacer algunas pruebas para comprobar que está funcionando bien ya que no existe una interfaz gráfica.

Hagamos un poco de benchmarking primer. Usando el comando siguiente podemos probar el GPU del procesador.

glxspehres

Este pequeño programa ejecuta una animación 3D, pueden ver el número de FPS (imágenes por segundo) y otra información. En mi caso esto es lo que mi computador me muestra con mi procesador Ivry Bridge.



Ahora podemos hacer el mismo tipo de pruebas con Bumblebee y VirtualGL. Lancemos glxspheres pero usando la tarjeta gráfica nVidia.

optirun glxspheres



Normalmente deben tener un mayor número de imágenes por segundos (la animación va más rápido).

Nota: Pueden ver como la tarjeta gráfica consume más energía viendo el tiempo de mi batería.

Ahora que podemos usar la tarjeta nVidia, podemos mejorar el rendimiento para ahorrar energía y mejorar el rendering.
 

Instalar Primus para mejorar el rendimiento


Para poder mejorar el rendimiento de Bumblebee se puede instalar otro "puente". Instalen Primus con el comando siguiente:

sudo apt-get install primus

Luego pueden probar el rendimiento con esto:

vblank_mode=0 primusrun glxspheres

(Necesitan la opción vblank_mode para tener el mayor número de FPS)


Nota: De nuevo pueden ver como la tarjeta gráfica consume más energía (viendo el tiempo restante de mi batería), pero no tanta como cuando usamos optirun.

Ejecutar los juegos de Steam con la tarjeta gráfica


Es muy probable que si tienen una tarjeta gráfica, lo que quieran hacer es probarla con algunos juegos. Lo único que tienen que hacer son unos ligeros cambios en el cliente.

Lancen Steam y vayan a su Librería. Luego seleccionen el juego que quieren utilizar con la tarjeta gráfica y denle click derecho.
Vayan a "Properties"


Luego escojan "SET LAUNCH OPTIONS..."


Y añadan el comando siguiente primusrun %command%.


Y eso es todo! Ahora sus juegos van a utilizar la tarjeta gráfica.

¿Les gustó este post? No se olviden de agregarme a  G+ o síganme en Twitter: @RobertoXMed .

Si pueden y quieren no olviden hacer una Donación (por Paypal) para el blog chimbo así podré seguir haciendo gran contenido.

Monday, June 10, 2013

[How to] Enable nVidia drivers with Optimus technology in Linux

Enable nVidia drivers with Optimus technology in Linux

¿De qué está hablando? Versión en español

Now that I actually have a computer with a graphic card, I can write about how to enable it, if it isn't recognized by your OS.

 
I have a nVidia GeForce 620m in my laptop and it isn't recognized because it uses the Optimus technology from nVidia.

Checking your device


First of all let see if your graphic card is recognized in a hardware level.
Use the command:

lspci

You can be more specific, combine lspci with grep.

lspci | grep 3D


Now that we have that, we can install the corresponding driver.

Downloading and installing Bumblebee


Bumblebee is a project that was born to enable Optimus technology. It is supported in most distros (Ubuntu, Fedora, Mandriva, Arch...). Since I am using Ubuntu I will show you how to install it using a PPA.

Important: You don't need anything extra, don't install nvidia-current and don't run any configuration file.

Use the official PPA from the Bumblebee website and update the packages:

sudo apt-add-repository ppa:bumblebee/stable
sudo apt-get update

Make sure you have the linux headers package installed:

sudo apt-get install linux-headers-generic

And finally install Bublebee:

sudo apt-get install bumblebee virtualgl

Then reboot your computer and check if you don't have any errors.

Make sure that you have the option for hybrid cards enabled in your BIOS too.

Testing the graphic card


Now that we have Bumblebee installed we can check if it is actually running, since there isn't any User Interface.

Let's do some benchmarking first. Run the following command to test the GPU from the processor:

glxspehres

This program will show you a 3D animation you can check the FPS rate and more information. In my case here is the output of my computer:



Now let's make a test with Bumblebee and VirtualGL. Let's run glxspheres but in the nVidia card:

optirun glxspheres



Now that we can use the nVidia card we can improve the performance in order to save power and to get better rendering.

Note: You can actually see in the screenshots how the battery life drops when the graphic card is used.
 

Adding Primus for better performance


In order to get better performance  you can install another "bridge" that is going to be used by Bumblebee. Install Primus with the command:

sudo apt-get install primus

Then you can test the performance with this:

vblank_mode=0 primusrun glxspheres

(You need the vblank_mode option to get the maximum FPS rate)


Note: Again you can see that the battery life is reduced but not as much as when you run the program with optirun.

Running games with your graphic card in Steam


If you want to run your Steam games with your graphic card you just need to change some Settings in the Steam client.

Launch the client and go to your Library. Then select the game you want to launch and right-click in it.
Go to "Properties"


Then choose "SET LAUNCH OPTIONS..."


And enter the command primusrun %command%.


That's it! Your games will run in the graphic card.

Did you like this post? Don't forget to add me to your circles in G+ or to follow me on Twitter: @RobertoXMed .

If you can and if you want, don't forget to Donate so I can keep up the good work.

Saturday, June 1, 2013

[Tutorial] Instalar el SDK de Android en Linux

¿Cómo instalar el SDK de Android en Linux?

What is he talking about? English version

Para este tutorial estoy usando Ubuntu 13.04 pero el procedimiento es el mismo para todas las distribuciones.

Nota: No estoy exactamente seguro de los permisos que hay que dar a las carpetas que vamos a crear. Si saben cuál es el mínimo necesario cambienlos. Yo dí todos los permisos para que simplemente funcionara.

Van a necesitar Eclipse y Java en sus computadoras. Si no tienen ninguno pueden instalar Eclipse en Ubuntu y va a instalar Java al mismo tiempo. Solo usen el comando siguiente:

sudo apt-get install eclipse

Descargar el SDK para Android


Antes que nada necesitarán descargar el SDK desde el sitio de desarrolladores de Android. Vayan a esta página y escojan la opción: SDK Tools only.



Una vez que hicieron eso, van a extraer las herramientas poniéndolas en la carpeta /opt.

sudo tar xzvf android-sdk_r22-linux.tgz -C /opt

Necesitamos cambiar los permisos en esta carpeta para que Eclipse puede usar el SDK luego.

sudo chmod 777 -R /opt/android-sdk-linux

Ahora necesitamos ejecutar el manager de Android para descargar los paquetes que queramos.

cd /opt/android-sdk-linux/tools

./android



Tengan cuidado con lo que escojan descargar porque los paquetes pesan mucho. Normalmente no necesitan nada extra de lo que ya viene en su primera descarga. La última versión de Android ya viene instalada.

Podemos hacer un enlace simbólico a esta herramienta porque vamos a necesitarla en el futuro.

sudo ln -s /opt/android-sdk-linux/tools/android /usr/bin/android

Usar el manager


Lo que vamos a querer hacer ahora es asegurarnos que podemos crear una máquina virtual que use Android.

Vamos a darle todos los permisos a la carpeta de configuración. Así el manager del SDK va a poder crear nuevas máquinas virtuales.

sudo chmod 777 -R  ~/.android

Ahora usen el comando siguiente (después de haber hecho el enlace en /usr/bin):

./android avd


Y pueden crear un nuevo dispositivo cuando le click a "New". Van a ver las diferentes opciones que hayan descargado.



Les recomiendo que activen el uso de GPU de su máquina, así el dispositivo virtual va a estar más rápido.
Lancen el emulador y esperen. Puede tomar un poco de tiempo entonces no se asusten (como yo lo hice).



Ahora podemos instalar el plugin para Eclipse.

Instalar el plugin para Eclipse


Abran Eclipse y vayan a Help > Install New Software... > Add...

Escojan Add... en la esquina superior derecha.

Luego van a tener que  escoger un nombre para el plugin que van a instalar, "Android" tal vez. Y en la sección URL pongan el siguiente link:

https://dl-ssl.google.com/android/eclipse/


Escojan "Developer Tools" y denle click a Next>. Acepten los "Terms and Conditions" y escojan Finish. Eclipse va reiniciarse pero todavía no van a poder usar el SDK.
 
Configurar el camino hacia el SDK

Vayan a  Windows > Preferences > Android y configuren la sección "SDK Location" poniendo la siguiente línea:


/opt/android-sdk-linux



Denle click a Apply y luego a OK. Reinicien Eclipse y el SDK de Android va a poder funcionar bien.

Crear su primera aplicación


Si quieren un nuevo proyecto de aplicación en Eclipse vayan a New > Other... y escojan "Android Application Project".



Esto va a crear una aplicación muy simple automáticamente.

Si quieren probar su app en el dispositivo virtual necesitan lanzar el dispositivo primero y Eclipse va a instalar la app y lanzarla automáticamente.

Si quieren instalar y probar su app en un dispositivo de verdad necesitan lanzar adb con permisos de super utlizador. Solo usen los comandos siguientes:

sudo adb kill-server

sudo adb start-server

Si quieren ver si su dispositivo está bien reconocido solo usen

adb devices



¡Eso es todo! Disfruten del SDK y programen mucho.

¿Les gustó este post? No se olviden de agregarme a  G+ o síganme en Twitter: @RobertoXMed .

Si pueden y quieren no olviden hacer una Donación (por Paypal) para el blog chimbo así podré seguir haciendo gran contenido.