View Single Post
Old 07-15-10, 07:25 PM   #68
superlex88
Registered User
 
Join Date: May 2010
Posts: 4
Default Re: Linux backlight driver

Hi!
I'm trying openSUSE11.3 on a Sony Vaio FZ31M. The version of nvidia_bl for kernel 2.6.31 works very well, but the version for kernel 2.6.34 gives random brightness' values, both with fn keys and with scroll of Battery Management.

EDIT:
Fixed changing

Code:
static struct driver_data nv5x_driver_data = {
	.bar           = 0,
	.reg_offset    = NV5X_PDISPLAY_OFFSET + NV5X_PDISPLAY_SOR0_BRIGHTNESS,
	.reg_size      = 4,
	.off           = 0,
	.min           = 1024,
	.max           = 140000,
	.backlight_ops = {
#ifdef USE_BACKLIGHT_SUSPEND
		.options        = BL_CORE_SUSPENDRESUME,
#endif
		.get_brightness = nv5x_get_intensity,
		.update_status  = nv5x_set_intensity,
	}
};
in

Code:
static struct driver_data nv5x_driver_data = {
	.bar           = 0,
	.reg_offset    = NV5X_PDISPLAY_OFFSET + NV5X_PDISPLAY_SOR0_BRIGHTNESS,
	.reg_size      = 4,
	.off           = 0,
	.min           = 50,
	.max           = 1024,
	.backlight_ops = {
#ifdef USE_BACKLIGHT_SUSPEND
		.options        = BL_CORE_SUSPENDRESUME,
#endif
		.get_brightness = nv5x_get_intensity,
		.update_status  = nv5x_set_intensity,
	}
};
superlex88 is offline   Reply With Quote