Most recent kernel where this bug did not occur: none Distribution: Fedora 8 Problem Description: Currently, one can't write the value "100" to /proc/acpi/video/.../LCD/brightness. This is rejected because the buffer is too small - while 4 bytes are written (100 + NULL byte), the space is only sufficient for 3 bytes.
Created attachment 13374 [details] Adjust buffer size so that "100" can be written This patch increases the buffer size so that the value "100" can be written successfully.
Oops, no one tried this before? :p I'm sure you can use "/sys/class/backlight/.../" to set your brightness level correctly, right?
Mark this bug as PATCH_ALREADY_AVAILABLE. But as the proc I/F is deprecated by the new sys I/F, and there has been already an alternative for acpi video brightness control. Not sure this will be merged or not. :)
(In reply to comment #3) > Mark this bug as PATCH_ALREADY_AVAILABLE. > > But as the proc I/F is deprecated by the new sys I/F, and there has been > already an alternative for acpi video brightness control. Not sure this will > be > merged or not. :) Well, when will the procfs support be dropped completely? If it's in 2.6.24, I'm completely fine with that. If later, I think it should be working correctly as long as it's included ;) >
c88c5786d3df51ccfa4e2d111fc9c8fc0f5b2797 (ACPI: Video: Increase buffer size for writes to brightness proc file.) applied to acpi tree
shipped in linux-2.6.24-rc4 closed