[Intel-gfx] BACKLIGHT property for KMS case
mhopf at suse.de
Mon Aug 17 07:07:45 PDT 2009
The following patch adds BACKLIGHT property support in the intel driver
when KMS is active. It only tries to access the backlight via the kernel
based method (/sys/class/backlight/*), as we don't have access to mmio
space, and potentially also not to pci config space. Thus these paths
are hardcoded (compared to the original implementation).
Currently, this duplicates some similar code (from i830_lvds.c) - I can
abstract that into a new module with according data structures, but am
not 100% convinced that this is actually useful - i830_lvds.c will e.g.
always need the additional access methods.
Be also aware that the patch bears testing. So far it's only compile
tested, but it's similar to the quick-hack patch I did before (which
Matthias Hopf <mhopf at suse.de> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat at mshopf.de
Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 0 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/intel-gfx/attachments/20090817/e8d68a44/attachment.bin
More information about the Intel-gfx