Neo1973:GTA01:Kernel

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (reorg)
Line 35: Line 35:
 
  echo 0 >/sys/class/leds/gta01:vibrator/brightness
 
  echo 0 >/sys/class/leds/gta01:vibrator/brightness
  
 +
[[Category:Software ]]
 +
[[Category:Kernel]]
 
[[Category:OpenMoko]]
 
[[Category:OpenMoko]]
 
[[Category:Reorg:MiscTechnical]]
 
[[Category:Reorg:MiscTechnical]]

Revision as of 10:06, 29 February 2008

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:

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