drm/radeon/kms: Expose backlight class device for legacy LVDS encoder.
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 1260270196.4778.508.camel@thor
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 23 lines · Rafał Miłecki
W dniu 8 grudnia 2009 12:03 użytkownik Michel Dänzer
Quoted 7 lines · <[email protected]> napisał:
Quoted 6 lines · Rafał Miłecki
2009/12/8 Michel Dänzer <[email protected]>:
Quoted 5 lines
From: Michel Dänzer <[email protected]>
Allows e.g. power management daemons to control the backlight level. Inspired by the corresponding code in radeonfb.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Michel Dänzer <[email protected]>I posted something similar but AFAIR got response we don't want this until fixing backlight class design.
Unfortunately I'm not aware of any other available method to control the backlight on Apple PowerPC laptops. I'm open for suggestions though how this code could be disabled when another method is available.
It's not that we don't want solution you wrote. It's absolutely wanted. But we need to improve backlight class because we start register many devices that control same display which drivers us to inconsistency.
Quoted 4 lines
Please, check http://marc.info/?t=125936824500004&r=1&w=2
Hopefully I'll find some time to do that before .33 and we will able to include our patches then.
Any news on this?
Per demand from IRC, I'm posting the patch rebased against a newer kernel tree.
commit f380d3bc243ade263c4dc034ce0873fbe9d96f75
Author: Michel Dänzer <[email protected]> Date: Thu Feb 25 16:47:00 2010 +0100
drm/radeon/kms: Expose backlight class device for legacy LVDS encoder.
Allows e.g. power management daemons to control the backlight level. Inspired by the corresponding code in radeonfb.
drivers/gpu/drm/radeon/Kconfig +1 -0
@@ -1,6 +1,7 @@ config DRM_RADEON_KMS bool "Enable modesetting on radeon by default - NEW DRIVER" depends on DRM_RADEON + select BACKLIGHT_CLASS_DEVICE help Choose this option if you want kernel modesetting enabled by default.
drivers/gpu/drm/radeon/radeon_legacy_encoders.c +250 -6
316 lines not on this page · raw message
drivers/gpu/drm/radeon/radeon_mode.h +10 -0
@@ -278,6 +278,11 @@ struct radeon_encoder_lvds {uint32_t lvds_gen_cntl;/* panel mode */ struct drm_display_mode native_mode; +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE +struct backlight_device *bl_dev; +int dpms_mode; +uint8_t backlight_level; +#endif };struct radeon_encoder_tv_dac {
@@ -328,6 +333,11 @@ struct radeon_encoder_atom_dig {struct radeon_atom_ss *ss;/* panel mode */ struct drm_display_mode native_mode; +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE +struct backlight_device *bl_dev; +int dpms_mode; +uint8_t backlight_level; +#endif };struct radeon_encoder_atom_dac {
Signature · 9 lines
Earthling Michel Dänzer | http://www.vmware.com Libre software enthusiast | Debian, X and DRI developer ------------------------------------------------------------------------------ -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel