sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #01255
Re: sony-laptop-zseries-0.9np5
Hello tsuraan,
dear Norbert,
On Mi, 2010-05-19 at 13:10 -0500, tsuraan wrote:
> Is there a new zseries driver for 2.6.34, or some other way to shut
> off my nVidia chip for that release? I saw that the switcheroo has
> been mainlined, but I still trust the nice speed_stamina switch that
> the sony_laptop.ko has been giving me.
First: There already is a sony-laptop-zseries-0.9np6 for 2.6.33 Kernel
releases:
http://www.logic.at/people/preining/software/sony-laptop-zseries-0.9np6.tar.gz
But, yes indeed, the module had to be changed again since the function
‘backlight_device_register’ became one more argument in 2.6.34.
I have atached the patch that needs to be applied on 0.9np6 to make it a
(for me) working 0.9np7.
Norbert, could you please take a look at this? It at least compiles and
works for me on 2.6.34-2 (0.9np6 did not)
Thanks!
Regards,
Raphael Gradenwitz
diff -crB sony-laptop-zseries-0.9np6/sony-laptop.c sony-laptop-zseries-0.9np7_2.6.34-patch/sony-laptop.c
*** sony-laptop-zseries-0.9np6/sony-laptop.c 2010-03-04 13:57:56.000000000 +0100
--- sony-laptop-zseries-0.9np7_2.6.34-patch/sony-laptop.c 2010-05-20 03:22:15.303358444 +0200
***************
*** 89,95 ****
} while (0)
#ifdef SONY_ZSERIES
! #define SONY_LAPTOP_DRIVER_VERSION "0.9np6"
#else
#define SONY_LAPTOP_DRIVER_VERSION "0.6"
#endif
--- 89,95 ----
} while (0)
#ifdef SONY_ZSERIES
! #define SONY_LAPTOP_DRIVER_VERSION "0.9np7"
#else
#define SONY_LAPTOP_DRIVER_VERSION "0.6"
#endif
***************
*** 1607,1613 ****
&handle))) {
sony_backlight_device = backlight_device_register("sony", NULL,
NULL,
! &sony_backlight_ops);
if (IS_ERR(sony_backlight_device)) {
printk(KERN_WARNING DRV_PFX "unable to register backlight device\n");
--- 1607,1613 ----
&handle))) {
sony_backlight_device = backlight_device_register("sony", NULL,
NULL,
! &sony_backlight_ops, NULL);
if (IS_ERR(sony_backlight_device)) {
printk(KERN_WARNING DRV_PFX "unable to register backlight device\n");
Nur in sony-laptop-zseries-0.9np7_2.6.34-patch: sony-laptop-zseries-0.9np6.
Attachment:
signature.asc
Description: This is a digitally signed message part
References