Skip to contentSkip to conversation

How to use backlight device with fb device

DISCUSSION Tomi Valkeinen 2 participants 3 messages Sep 15, 2011 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi,

I'm a bit confused how a backlight device and a fb device should be "connected".

In this particular case the OMAP 4430SDP board has an LCD panel controlled by omapfb (and omapdss on the lower level) with a backlight controlled by pwm_backlight (and twl6030-pwm on the lower level).

Both omapfb and pwm_backlight work fine, but they don't know anything about each other, so, for example, blanking the fb via omapfb leaves the backlight on.

Is there something I'm missing, or is the only solution to have some custom code to connect the fb and the bl, and handle it that way?

Tomi

#1 lore raw

Hi Tomi,

Quoted 9 lines · Tomi Valkeinen

Hi,

I'm a bit confused how a backlight device and a fb device should be "connected".

In this particular case the OMAP 4430SDP board has an LCD panel controlled by omapfb (and omapdss on the lower level) with a backlight controlled by pwm_backlight (and twl6030-pwm on the lower level).

Quoted 6 lines

Both omapfb and pwm_backlight work fine, but they don't know anything about each other, so, for example, blanking the fb via omapfb leaves the backlight on.

Is there something I'm missing, or is the only solution to have some custom code to connect the fb and the bl, and handle it that way?

I don't know anything about backlight but recently there was a patch that affected the same area you mention so it might give an idea "[PATCH] FB: add early fb blank feature."
http://marc.info/?l=linux-fbdev&m1554458720940&w=2

Best regards,

Florian Tobias Schandinat

Quoted 9 lines

Tomi

--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Tomi Valkeinen
Quoted 16 lines · Florian Tobias Schandinat

Hi Tomi,

Quoted 13 lines · Tomi Valkeinen

Hi,

I'm a bit confused how a backlight device and a fb device should be "connected".

In this particular case the OMAP 4430SDP board has an LCD panel controlled by omapfb (and omapdss on the lower level) with a backlight controlled by pwm_backlight (and twl6030-pwm on the lower level).

Both omapfb and pwm_backlight work fine, but they don't know anything about each other, so, for example, blanking the fb via omapfb leaves the backlight on.

Quoted 7 lines
Quoted 2 lines

Is there something I'm missing, or is the only solution to have some custom code to connect the fb and the bl, and handle it that way?

I don't know anything about backlight but recently there was a patch that affected the same area you mention so it might give an idea "[PATCH] FB: add early fb blank feature."
http://marc.info/?l=linux-fbdev&m1554458720940&w=2

Ah, thanks for pointing that out.

I seem to have dropped from linux-fbdev list and hadn't received that post. For some reason I seem to get dropped from linux mailing lists, this is getting a bit frustrating...

Tomi