Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
nv:tegra3:nexus7
>
kernel-adaptation-google-nexus7
> allow-turning-off-backlight.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File allow-turning-off-backlight.patch of Package kernel-adaptation-google-nexus7
--- ubuntu-nexus7/arch/arm/mach-tegra/board-grouper-panel.c.orig 2013-04-10 17:58:41.000000000 +0300 +++ ubuntu-nexus7/arch/arm/mach-tegra/board-grouper-panel.c 2013-04-10 18:29:38.000000000 +0300 @@ -147,6 +147,10 @@ /* Set the backlight GPIO pin mode to 'backlight_enable' */ //gpio_set_value(grouper_bl_enb, !!brightness); + /* Allow turning off the backlight with explicit zero brightness */ + if (!brightness) + return 0; + /* SD brightness is a percentage, 8-bit value. */ brightness = (brightness * cur_sd_brightness) / 255;