Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(831)

Side by Side Diff: lightup_screen

Issue 3418029: Improve factory screen brightness (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git
Patch Set: Change to /usr/sbin/ Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos_startup ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Always exit with 0
8 trap "exit 0" EXIT
9 set -e
10
11 for INTERFACE in "acpi_video0" "i915_backlight"; do
12 BRIGHTNESS="/sys/class/backlight/${INTERFACE}/brightness"
13 MAX_BRIGHTNESS="/sys/class/backlight/${INTERFACE}/max_brightness"
14 [ ! -f "${BRIGHTNESS}" -o ! -f "${MAX_BRIGHTNESS}" ] && continue
15 cp "${MAX_BRIGHTNESS}" "${BRIGHTNESS}"
16 break
17 done
OLDNEW
« no previous file with comments | « chromeos_startup ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698