Neo1973:GTA01:Kernel

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Fix.)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
 +
 +
'''Note''': '''This page might be outdated''' Please look at [[kernel]] and to [[GTA02_sysfs]] also.
 +
 +
 +
 +
 
This is a rough cut at documenting stuff as I find it.
 
This is a rough cut at documenting stuff as I find it.
  
 
/sys/class/backlight/gta01-bl is a directory containing:
 
/sys/class/backlight/gta01-bl is a directory containing:
actual_brightness reports on current set brightness. (0-5096)
+
{| cellspacing="0" border="1"
uevent ?
+
!filename
brightness set brightness echo 1000 >brightness dims somewhat
+
!description
max_brightness Maximum possible brightness
+
|-
subsystem
+
|actual_brightness  
 +
|reports on current set brightness. (0-5194)
 +
|-
 +
|max_brightness
 +
|Maximum possible brightness
 +
|-
 +
|subsystem
 +
|
 +
|-
 +
|uevent  
 +
|?
 +
|-
 +
|brightness  
 +
| dim with something like:<pre>echo 1000 > /sys/class/backlight/gta01-bl/brightness </pre>
 +
|-
 +
|power
 +
| Turn backlight off with: <pre>echo 1 >/sys/class/backlight/gta01-bl/power</pre> and turn on with: <pre>echo 0 >/sys/class/backlight/gta01-bl/power</pre>
 +
|-
 +
 
 +
|}
  
 +
----
  
/sys/class/leds/gta01:vibrator/brightness - echo 1>brightness turns vibrator on
+
/sys/class/leds/gta01:vibrator/brightness -
 +
* turn vibrator on:
 +
echo 1 >/sys/class/leds/gta01:vibrator/brightness
 +
* turn vibrator off:
 +
echo 0 >/sys/class/leds/gta01:vibrator/brightness
  
[[Category:OpenMoko]]
+
[[Category:Kernel]]

Latest revision as of 09:13, 27 February 2009


Note: This page might be outdated Please look at kernel and to GTA02_sysfs also.



This is a rough cut at documenting stuff as I find it.

/sys/class/backlight/gta01-bl is a directory containing:

filename description
actual_brightness reports on current set brightness. (0-5194)
max_brightness Maximum possible brightness
subsystem
uevent ?
brightness dim with something like:
echo 1000 > /sys/class/backlight/gta01-bl/brightness 
power Turn backlight off with:
echo 1 >/sys/class/backlight/gta01-bl/power
and turn on with:
echo 0 >/sys/class/backlight/gta01-bl/power

/sys/class/leds/gta01:vibrator/brightness -

  • turn vibrator on:
echo 1 >/sys/class/leds/gta01:vibrator/brightness
  • turn vibrator off:
echo 0 >/sys/class/leds/gta01:vibrator/brightness
Personal tools

This is a rough cut at documenting stuff as I find it.

/sys/class/backlight/gta01-bl is a directory containing: actual_brightness reports on current set brightness. (0-5096) uevent ? brightness set brightness echo 1000 >brightness dims somewhat max_brightness Maximum possible brightness subsystem


/sys/class/leds/gta01:vibrator/brightness - echo 1>brightness turns vibrator on