<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre wrap=""><!---->Hello again Richard, thanks for the quick reply!
</pre>
<br>
<pre wrap="">> You want to look
> at /usr/share/hal/scripts/hal-system-lcd-set-brightness, although you do
> need some stuff in acpi.c to pick up the type and add the correct
> capability. I can help you with this.
Thought so... looking at the script alone seemed like a waste of time, since
I didn't know the source of the environment variables controlling it.
> No problem, all I need from you is:
> * The command as root you use to change the lcd brightness,...
# echo $value > /proc/acpi/video/VGA/LCD/brightness
> * The number of brightness states, e.g. my toshiba goes from brightness
> 0-7 so it has 8 states.
$value in the above statement goes from 1 upto 8 (8 states)
> * The command as root you use to get the current brightness, which for
> you is probably "cat /proc/acpi/video/VGA/LCD/brightness"
# cat /proc/acpi/video/VGA/LCD/brightness
levels: 8 4 1 2 3 4 5 6 7 8
current: 4
one note: after booting the laptop, I have to initialize this by setting the
brightness, otherwise it replies current: 0 (which is an impossible value).
> * The make and model of your laptop.
Fujitsu Siemens Stylistic ST4121
# lshw
says something like:
description: Notebook
product: STYLISTIC ST Series
vendor: FUJITSU SIEMENS
version: T41__
Thanks again for your help! If there's any code I should test, I'll be happy to
check out CVS and/or patch my current source (debian package 0.5.7).
- Ján
</pre>
</body>
</html>