Wednesday, 17 June 2009

Wednesday updated counts

Updated counts:


Monday, 15 June 2009

Updated counts

Updated counts:

Friday, 12 June 2009

Brightness control on Linux Sony Vaio Z-series working both on nvidia and intel configurations

One of the Sony Vaio Z-series and Linux has found a way to have the brightness control working both on the nvidia and intel graphics configurations. The solution is reported in the mailing list:
https://lists.launchpad.net/sony-vaio-z-series/msg00315.html

Excerpted below:
> 1) Make the file /etc/acpi/events/sony-brightness-up with the contents:
>
> event=sony/hotkey SNC 00000001 40000011
> action=/usr/local/bin/vaioz-brightness up
>
> 2) Make the file /etc/acpi/events/sony-brightness-down with the contents:
>
> event=sony/hotkey SNC 00000001 40000010
> action=/usr/local/bin/vaioz-brightness down
>
> 3) Make the script /usr/local/bin/vaioz-brightness
>
> #!/bin/bash
>
> lspci | grep "00:02.0" >/dev/null
> INTELQ=$?
> if [ $INTELQ == 0 ]
> then
> LEVEL=$(cat /sys/class/backlight/acpi_video0/brightness)
> else
> LEVEL=$(cat /sys/class/backlight/sony/brightness)
> fi
>
> if [ $1 == 'up' ]; then let LEVEL+=1; fi
> if [ $1 == 'down' ]; then let LEVEL-=1; fi
> if (( $LEVEL>7 )); then LEVEL=7; fi
> if (( $LEVEL<0 )); then LEVEL=0; fi
>
> let LEVEL=16+$LEVEL*12
>
> if [ $INTELQ == 0 ];
> then
> #intel
> INTEL_LEVEL=$(( $LEVEL*255/100 ))
> BRL=$(printf "%02X" $INTEL_LEVEL)
> setpci -s 00:02.0 F4.B=$BRL
> else
> #nvidia
> smartdimmer -s $LEVEL
> fi
>
> 4) restart acpi system
>
> sudo /etc/init.d/acpid restart
>
> The event codes were obtained by running acpi_listen



Updated counts:


Thursday, 11 June 2009

Updated membership counts

This are the updated membership counts for the different Linux Ultra-thin laptop Launchpad groups.
The Linux Sony Vaio Z-series group is still leading the pack, followed by the Linux Dell Latitude E4200/E4300 group, and the Linux Lenovo ThinkPad X301 group.

The latest group that was created is the
Linux Acer Timeline 3810T: this group has already achieved a lot in terms of tuning and tweaking the Linux installation (http://ubuntuforums.org/showpost.php?p=7314698&postcount=1) so that everything works at full throttle. Given the price tag for the Acer Timeline 3810T laptop, it is expected to be a big sell in the ultra-thin laptops category.

Monday, 1 June 2009

Sony Vaio Z-series and Linux nvidia xorg.conf

To have the right screen resolution when using the nvidia card on the Linux Sony Vaio Z-series:
If your resolution is 1600x900, then on the nvidia side I have added the DPI to force it to the intel value:


Section "Device"

Identifier "Configured Video Device"

Driver "nvidia"

Option "UseEDIDDpi" "FALSE"

Option "AddARGBGLXVisuals" "true"

Option "DPI" "96 x 96"

EndSection



For brightness control, one can add shortcuts for low, medium, high brightness through nvidia driver commands.



Saturday, 30 May 2009

Linux on Sony Vaio Z-series, Dell Latitude E4200 E4300, ThinkPad X301, Toshiba Portege R500 R600, Samsung X360, Acer Timeline 3810T

There are now 7 different Launchpad groups for Linux Ultrathin laptops.
Each team is a group for people who own or develop for a given laptop model, so that we can have more useful Linux usage information, and send better bug reports upstream. This gives more visibility to the group when having to ask for patches or support.

The current groups are:
Bragging rights ranking: (1) 2254 points, (2) 250 points, (3) 81 points, (4) 44 points, (5) 32 points, (6) 23 points, (7) 23 points, (8) 18 points, (9) 15 points, (10) 13 points.
Highest Bragging rights: 5996 points

Sony Vaio Z series and Linux: How to switch intel/nvidia card

For laptops like the Sony Vaio Z series, there is currently Linux support for cold switch of the graphics card:

Load Eva's sony-laptop module with speed_stamina=3.
In the file called /etc/modprobe.d/sony-laptop.conf add the following line:

options sony-laptop speed_stamina=3


Then boot with this kernel parameter (use the quotes):

acpi_osi="!Windows 2006"


Just put it in the kernel command line of your boot manager.

Now you can switch between stamina and speed without booting to Windows, but your laptop have to be completely powered off, not rebooted.

Nvidia driver overwrites libglx.so and libGL.so.1 with symbolic links like mentioned above. So before installing nvidia driver, backup the current libglx.so und libGL.so.1 to libglx.so.INTEL/libGL.so.INTEL. If you have already installed nvidia, you can get the original files from "xserver-xorg-core" package, respectively "libgl1-mesa-glx".

For loading the correct xorg.conf, this little script needs to run before starting xserver:



#!/bin/sh

lspci | grep "00:02.1"

if [ $? -eq 0 ]; then
   cp /etc/X11/xorg.INTEL /etc/X11/xorg.conf
   ln -sf /usr/lib/libGL.so.INTEL /usr/lib/libGL.so.1
   ln -sf /usr/lib/xorg/modules/extensions/libglx.so.INTEL /usr/lib/xorg/modules/extensions/libglx.so
else
   cp /etc/X11/xorg.NVIDIA /etc/X11/xorg.conf
   ln -sf /usr/lib/libGL.so.185.18.08 /usr/lib/libGL.so.1
   ln -sf /usr/lib/xorg/modules/extensions/libglx.so.185.18.08 /usr/lib/xorg/modules/extensions/libglx.so
fi

More developments are expected in the future, once the nvidia bytecode interpreter is in full shape in the nouveau project.