View Single Post
Old 01-01-11, 10:16 AM   #94
Zem
Registered User
 
Join Date: Jan 2011
Posts: 14
Default Re: Linux backlight driver

Hi Guillaume

thank you for your work.
I own a Vaio CW2 with nvidia gt330m GPU, so I had to make a couple minor modifications to get your driver working.

I added:
Code:
NVIDIABL_DECLARE_LAPTOP_MODEL("Sony Corporation", "VPCCW2C5E", 0x0a2b, 0, 7000, 128000),
to nvidiabl-laptops.h and:
Code:
/* NVIDIA GeForce 330M */
{ PCI_VDEVICE(NVIDIA, 0x0a2b), (kernel_ulong_t)&nv5x_driver_data },
to nvidiabl-models.c

However, I think "VPCCW2C5E" is a generic model name common to all CW2s customized on the Sony site, so there may exist laptops with that name with the 310m GPU.


However, I wasn't able to get the Fn keys to work; I'm using kubuntu 10.10, and I added in /etc/acpi/ a script sony-brn-up.sh:
Code:
#!/bin/sh

test -f /usr/share/acpi-support/key-constants || exit 0 
. /usr/share/acpi-support/key-constants
acpi_fakekey $KEY_BRIGHTNESSUP
and in /etc/acpi/events/ a script sony-brightness-up:
Code:
# /etc/acpi/events/sony-brightness-up

event=sony/hotkey SNC 00000001 00000011
action=/etc/acpi/sony-brn-up.sh
and the same for brightness-down; however the keys aren't registered by xev. Am I doing something wrong?

Thank you
Zem is offline   Reply With Quote