ch.claudio.tasks.model
Class Backlight

java.lang.Object
  extended by ch.claudio.tasks.model.Backlight

public class Backlight
extends java.lang.Object

Version:
$Id:$
Author:
Claudio Nieder

Copyright (C) 2007 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Constructor Summary
Backlight()
           
 
Method Summary
static int getBrightness()
          Get the current brightness of the backlight.
static boolean hasBacklight()
          Test if brightness control file is writable.
static void main(java.lang.String[] args)
          Print license.
static void setBrightness(int n)
          Set the brightness of the backlight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Backlight

public Backlight()
Method Detail

hasBacklight

public static boolean hasBacklight()
Test if brightness control file is writable.

Returns:
true if file is writable.

setBrightness

public static void setBrightness(int n)
Set the brightness of the backlight.

Parameters:
n - Value 0..255

getBrightness

public static int getBrightness()
Get the current brightness of the backlight.

Returns:
Value 0..255

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored