Perfect «Suspense» (with a Vaio TZ11MN/N)

Maybe you already know about my trip throught all the oddities with the suspend to RAM feature with GNU/Linux running on my Vaio TZ11 notebook… yesterday I was able of workaround one of the things which was annoying me in the last weeks: the X11 Intel video driver was frozen after coming back from suspend! This happens when using the uvesafb framebuffer driver, but not in plain-old VGA text mode (which is way too ugly: you cannot see the penguins when the system boots!).

First I tried using the intelfb driver in the framebuffer, but I got exhasperated because it does not know how to set-up video modes (at least with my hardware), so you need to pass vga=some-mode in the kernel command line… Unfortunately, trying to set the VESA mode this way before the driver is initialized makes some interesting effects: the framebuffer can flicker horribly, the machine can refuse continue booting after setting video mode, the image on the panel can be totally screwed… depending on which video mode you are trying to set.

The final solution was using the old (but still trusty) vesafb driver. I had to try different kernel command lines until it worked. After some rebuilds, I got a working kernel configuration with the VESA framebuffer driver. The following is needed in the kernel command line: video=vesafb:1366x768-32,ywrap,nomtrr vga=0x362.

Maybe you already suspect that: 0x362 is a nonstandard video mode (1366×768, 32bpp). I had to boot using the uvesafb driver and read the mode list from /sys/devices/platform/uvesafb.0/vbe_modes, and then re-build the kernel to put back vesafb

I spent two hours of testing until it worked, so I am sharing the information here: you know, I don’t want ohers to waste their time as I do 😀

Virtualization extensions with a Vaio TZ11MN/N

For some bizarre reason the silly people working at Sony decided to disable the Intel VT extensions by default. But hackers are always smarter than stupid salesmen making decisions in some random department of a Enormous Big Company™: there is a way to re-enable VT extensions.

Big FAT warning: I have only checked this with a Vaio VGN-TZ11MN/N with a Phoenix BIOS version R0052N7. Following the instructions detailed here may render your computer totally unusable, and I decline all responsiblity on the correctness of this method. It worked for me, however.

Fortunately, the code needed to enable the virtualization extensions is still in the BIOS, but there is no menu which allows for easy configuration, so we need to modify the setting using a somewhat “manual” method.

  1. Get yourself a bootable DOS system. You can boot from hard-disk, a floppy, a USB flash stick or whatever. I used one of the FreeDOS boot floppy images I used a some time ago to play old computer games in an old Pentium 120 I own. In order to write the image to an USB floppy drive I had to use the following command:
      # dd if=fdosfloppy.img of=/dev/sda
  2. Copy a DOS text editor into the bootable device. I used the tiny “T” editor.
  3. Get yourself a copy of the symcmos.exe utility and copy it to the bootable device. This tool allows modifying the configuration values stored in the CMOS which by dumping current contents and loading new values from a text file.
  4. Boot the DOS system from the device we have prepared so far.
  5. Run symcmos -v2 -lsettings.txt, if everything goes as expected now the settings.txt file will contain one setting per line, in a (address)[value] fashion.
  6. Scroll down to address 0363 and modify the value from 0000 to 0001. Save the file.
  7. Load the new values into the CMOS by running symcmos -v2 -usettings.txt
  8. Last, but not least, power down the computer (a warm reboot will not work). If everything went well, now you can boot your favourite GNU/Linux distro, load the kernel module and install KVM:
      # modprobe kvm-intel
      # emerge kvm

For KVM I am using the ebuilds from the sabayon overlay. Also, if there is an error when trying to load the KVM kernel module, maybe you did not follow the procedure correctly: double-check your steps, and remember that using dmesg|tail you can check whether VT is still disabled by the BIOS.

For the intrepidous people trying this, I hope you will have good luck (as I did :D), but remember that I can only say that this works for a VGN-TZ11MN/N with a Phoenix BIOS version R0052N7.

Update on Gentoo r5u870 packaging

This is a small update on where to find the driver for the Ricoh r5u870 webcam properly packaged for Gentoo GNU/Linux. This driver is needed in order to use the webcam present in some HP Pavillion and Sony Vaio (including my TZ11) laptops.

If you have read my previous post, you already know it: the hard drive of my iBook (which was being used as home server) died last week, so with a little help from my friends™ I have moved the overlay to a new place. We also splitted the overlay in two, so please be sure to use the contrib overlay, which is where the media-video/r5u870 belongs.

I hope this change will make things better, so have a nice time using your camera and remember to thank the driver authors (thanks Alex & Sam!) and report packaging bugs if you encounter any problem 😉

Cadenas

No sé ya cuantas veces van; pero no me canso de repetirlo: las cadenas de correos electrónicos no funcionan y no sirven para nada. Cuando llegan a mi, todas las cadenas se acaban sin excusa, lo cuál implica que, por mi culpa:

  • Al menos 57 sudafricanos han muerto, por causas diversas.
  • Tendré un mínimo de 236 años de mala suerte.
  • Tres tullidos se han quedado sin una silla de ruedas.
  • Un número indeterminado de personas se han quedado sin un donativo de 45€ (contando 1€ por cada correo no reenviado).
  • Una sombría red de narcotraficantes sigue impregnando de LSD las calcomanías que vienen en los Phoskitos.
  • Me han atropellado 17 veces.
  • He estado en el infierno en unas 25 ocasiones.
  • Hotmail ha dejado de ser gratuíto.
  • Unos cuantos millons de personas se han quedado sin su cuenta de Hotmail.
  • Una niña polaca con quemaduras se he muerto unhas 24 veces.
  • Bill Gates no compartirá su fortuna con el resto del mundo.
  • Ha habido una tercera Guerra Mundial (?).
  • Unas cuantas decenas de personas han sido víctimas de una red de traficantes de riñones, y han muerto porque no han encontrado un reemplazo para sus riñones robados.

Son tantas las cosas que he provocado por no seguir cadenas de correos electrónicos, que ya es demasiado tarde para que mi alma se salve, así que he decidido que seguiré sin seguir las cadenas. Hoy mismo he roto una cadena que versa sobre la astrología celta (según la cuál mi árbol es el álamo), y como no lo he reenviado (ni pienso hacerlo), mi verdadero amor no se dará cuanta de que estoy enamorado de ella, no me pasará algo bueno mañana entre las 13:00 y las 16:00,  no viviré la más grande emoción de mi vida y tendré problemas en mis relaciones en los próximos diez años. Amén.

Al menos puedo consolarme pensando que he ahorrado carga de trabajo inútil a miles de servidores de correo, y no habré provocado que millones de personas me odien por recibir correo electrónico indeseado «gracias a mi». Es increíble cuantos anormales de carrito tienen tiempo libre suficiente para memeces como estas…