Skip to contentSkip to conversation

framebuffer blanking

DISCUSSION Meelis Roos 2 participants 9 messages Feb 15, 2005 – Feb 16, 2005

lore
Share & tools
lore
#0 lore raw

I have cg3 and cg6 framebuffers in my SS5. Current snapshot kernel makes both work well for fb console (haven't tried X). There is only one strange thing left - console blanking.

Both cg3 and cg6 behave the same: when it's blanking time, cursor is turned off but all the text stays. When I press a key to unblank, the cursor appears again and start flashing like usual.

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw
Quoted 7 lines · On Tue, 15 Feb 2005 12:33:15 +0200 (EET) Meelis Roos <[email protected]> wrote:

I have cg3 and cg6 framebuffers in my SS5. Current snapshot kernel makes both work well for fb console (haven't tried X). There is only one strange thing left - console blanking.

Both cg3 and cg6 behave the same: when it's blanking time, cursor is turned off but all the text stays. When I press a key to unblank, the cursor appears again and start flashing like usual.

Put some debugging printk()'s into drivers/video/cg3.c:cg3_blank() to see if it's actually getting called and programming the registers.

#2 lore raw
In reply to Meelis Roos
Quoted 7 lines · On Tue, 15 Feb 2005 08:02:21 -0800 "David S. Miller" <[email protected]>…
Quoted 4 lines · On Tue, 15 Feb 2005 12:33:15 +0200 (EET) Meelis Roos <[email protected]> wrote:

I have cg3 and cg6 framebuffers in my SS5. Current snapshot kernel makes both work well for fb console (haven't tried X). There is only one strange thing left - console blanking.

Quoted 6 lines
Quoted 3 lines

Both cg3 and cg6 behave the same: when it's blanking time, cursor is turned off but all the text stays. When I press a key to unblank, the cursor appears again and start flashing like usual.

Put some debugging printk()'s into drivers/video/cg3.c:cg3_blank() to see if it's actually getting called and programming the registers.

Actually I spotted the cg3 problem already. You'll need to add some debugging to the cg6 case as I can't find any problems with the blanking code there. If the cg6 is not the primary console, probably the blank function simply isn't being invoked.

Anyways, here is the cg3 fix:

=== drivers/video/cg3.c 1.16 vs edited ==--- 1.16/drivers/video/cg3.c 2005-02-11 23:26:17 -08:00
+++ edited/drivers/video/cg3.c 2005-02-15 07:36:43 -08:00
@@ -209,7 +209,7 @@
case FB_BLANK_HSYNC_SUSPEND: /* VESA blank (hsync off) */ case FB_BLANK_POWERDOWN: /* Poweroff */
val = sbus_readb(&regs->control);
- val |= CG3_CR_ENABLE_VIDEO;
+ val &= ~CG3_CR_ENABLE_VIDEO;
sbus_writeb(val, &regs->control); par->flags |= CG3_FLAG_BLANKED;
break;

#3 lore raw
In reply to Meelis Roos
Quoted 6 lines

Actually I spotted the cg3 problem already. You'll need to add some debugging to the cg6 case as I can't find any problems with the blanking code there. If the cg6 is not the primary console, probably the blank function simply isn't being invoked.

Anyways, here is the cg3 fix:

Thanks, this indeed fixes cg3.

Will try to debug cg6 when I get some time.

Signature · 1 line
Meelis Roos
#4 lore raw
In reply to Meelis Roos
Quoted 4 lines

You'll need to add some
debugging to the cg6 case as I can't find any problems with the blanking code there. If the cg6 is not the primary console, probably the blank function simply isn't being invoked.

Tried it with some printks and cg6 as the primary console. These printks show that when blanking, cg6_blank is entered twice, first time it actually goes into the blanking case and the second time into unblanking.

Signature · 1 line
Meelis Roos ([email protected])
#5 lore raw
In reply to Meelis Roos
Quoted 4 lines

Actually I spotted the cg3 problem already. You'll need to add some debugging to the cg6 case as I can't find any problems with the blanking code there. If the cg6 is not the primary console, probably the blank function simply isn't being invoked.

I redid my printks to be KERN_DEBUG and now unblanking does not happen, only one call to cg6_blank and this does the blanking case. But only cursor disappears.

Signature · 1 line
Meelis Roos
#6 lore raw
In reply to Meelis Roos
Quoted 8 lines · On Wed, 16 Feb 2005 15:29:16 +0200 (EET) Meelis Roos <[email protected]> wrote:
Quoted 4 lines

Actually I spotted the cg3 problem already. You'll need to add some debugging to the cg6 case as I can't find any problems with the blanking code there. If the cg6 is not the primary console, probably the blank function simply isn't being invoked.

I redid my printks to be KERN_DEBUG and now unblanking does not happen, only one call to cg6_blank and this does the blanking case. But only cursor disappears.

Right, I bet your debugging printk()'s prompted the console to unblank :-) Could you quickly confirm that 2.4.x does blank properly on cg6 for you? I believe you said this already, but I want to make sure.

Thanks.

#7 lore raw
In reply to Meelis Roos
Quoted 1 line

Right, I bet your debugging printk()'s prompted the console to unblank :-)

Yes, that's what I thought too.

Quoted 2 lines

Could you quickly confirm that 2.4.x does blank properly on cg6 for you? I believe you said this already, but I want to make sure.

No, I didn't test 2.4 yet, will do.

Signature · 1 line
Meelis Roos ([email protected])