Getting the Brightness Control to work on Lenovo ThinkPad with Linux Mint 17 (x64) installed and with Nvidia Quadro K1000M on board

I haven’t had much problems with getting the Brightness Control to work in Mint 16, but after installing v17 I had to struggle much more.

I honestly admit that I don’t know which of the following steps actually did the trick, nevertheless it works now 🙂

OK, I’m currently running Mint 17 x64 on Lenovo W530 with Nvidia Quadro K1000M and with Nvidia 331.38 installed.

Display mode in BIOS is set to “Discrete Mode”.

Here’s a list of things I did:

– I’ve updated the bios to latest available version (G5ET99WW (2.59))

Here’s my tutorial how to upgrade it from a USB pendrive

– Generated a new xorg.conf using “NVIDIA X Server Settings” -> “X Server Display Configuration” -> “Save to X Configuration file”

– Then added “EnableBrightnessControl=1” to the device section in /etc/X11/xorg.conf:

     Section "Device"
         Identifier     "Device0"
         Driver         "nvidia"
         VendorName     "NVIDIA Corporation"
         BoardName      "Quadro K1000M"
         Option         "RegistryDwords" "EnableBrightnessControl=1"
     EndSection

– After rebooting, the only thing I could find in /sys/class/backlight was:

thinkpad_screen

– Then I tried to set the “GRUB_CMDLINE_LINUX_DEFAULT” in /etc/default/grub to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

or

> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nox2apic acpi_osi=Linux acpi_backlight=vendor"

but that didn’t work

– Finally I set it to only:

> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nox2apic"

– and after rebooting Brightness Control buttons (Fn+F8 & F9) started to work
and in the /sys/class/backlight I found acpi_video0 instead of thinkpad_screen

     $ ll /sys/class/backlight
     total 0
     lrwxrwxrwx 1 root root 0 Aug 10 10:14 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0/

I hope this will help someone.
Pls drop some comments if it helped you!

Cheers,
Señor QA

Create a bootable USB on Linux (Mint, Ububtu) pendrive to upgrade Lenovo ThinkPad W530 BIOS

Recently I had to update the bios of my laptop from a USB pendrive, because I had no CD/DVD drive around.

Cameron Seader’s post http://blog.seader.us/2013/10/lenovo-bios-update-method-for-linux-and.html came very handy, but used an obsolete tool so I updated his instructions a bit to make them work.

1. Get the machine type and model of your laptop
In order to grab this information you can either go to the BIOS or use dmidecode or hwinfo.
In my case it was ThinkPad W530 2438-2KU.

2. Download appropriate bios update iso from Lenovo’s site
I got mine: “g5uj22us.iso” from http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS029170

3. Extract the boot image from the iso
To do it you can use genisoimage, which can be installed using regular:

$ sudo apt-get install genisoimage

or can be downloaded from: http://manpages.ubuntu.com/manpages/lucid/man1/genisoimage.1.html
Once you have this tool, run:

$ geteltorito g5uj22us.iso > biosupdate.img

4. Copy the boot image to the USB pendrive

$ sudo dd if=biosupdate.img of=/dev/usbthumdrive bs=512K

Reboot and boot from USB to run the Flash Utility

Cheers,
Señor QA