Bug 43051 - Inverted values for actual_brightness
Summary: Inverted values for actual_brightness
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Video (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_power-video
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-05 13:49 UTC by Manuel Razola
Modified: 2013-01-29 00:06 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.0.0-17
Subsystem:
Regression: No
Bisected commit-id:


Attachments
acpi dump (383.22 KB, application/octet-stream)
2012-04-09 14:55 UTC, Manuel Razola
Details
debug.patch (1.08 KB, patch)
2012-04-11 06:27 UTC, Lan Tianyu
Details | Diff
debug.patch (1.08 KB, patch)
2012-04-11 12:41 UTC, Lan Tianyu
Details | Diff

Description Manuel Razola 2012-04-05 13:49:36 UTC
/sys/class/backlight/acpi_video0/actual_brightness

has inverted values that doesn't correspond with what we can write in /sys/class/backlight/acpi_video0/brightness


For example, when doing:
"echo 8 > /sys/class/backlight/acpi_video0/brightness"

and then:
"cat /sys/class/backlight/acpi_video0/actual_brightness",

it outputs 2. It should output 8.
Comment 1 Lan Tianyu 2012-04-09 14:09:33 UTC
Please attach the output of acpidump.
Comment 2 Manuel Razola 2012-04-09 14:55:34 UTC
Created attachment 72862 [details]
acpi dump
Comment 3 Lan Tianyu 2012-04-11 02:55:50 UTC
Does the problems still exist in the latest upstream kernel?
Comment 4 Lan Tianyu 2012-04-11 06:27:19 UTC
Created attachment 72876 [details]
debug.patch

Please try this patch and update driver since the acpi video driver is only available as driver module. Attach the output of dmesg.
Comment 5 Manuel Razola 2012-04-11 09:30:10 UTC
Couldn't compile new video.c file:

~/video.c: In function ‘acpi_video_get_brightness’:
~/video.c:247:5: error: ‘device’ undeclared (first use in this function)
Comment 6 Lan Tianyu 2012-04-11 12:41:29 UTC
Created attachment 72885 [details]
debug.patch

oh. Sorry. Please try this one.
Comment 7 Lan Tianyu 2012-04-17 03:07:54 UTC
ping ...
Comment 8 Zhang Rui 2012-11-13 07:51:16 UTC
bug closed as there is no response from the bug reporter.

Manuel, please feel free to reopen it if the problem still exist or you can provide the info requested in comment #6

Note You need to log in before you can comment on or make changes to this bug.