savagefb: Fix black screen on load in Savage IX
PATCH 2/3 savagefb: Fix black screen on load in Savage IX
This is a hack that seems to kick start the 2D engine of the Savage IX in some Toshiba laptops. Without this, the laptop starts with a black screen and occasionally crashes X.
Signed-off-by Antonino Daplas <[email protected]>
---
drivers/video/savage/savagefb_driver.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
drivers/video/savage/savagefb_driver.c +13 -0
@@ -384,6 +384,19 @@ SavageSetup2DEngine(struct savagefb_parBCI_SEND (0 );BCI_SEND (BCI_CMD_SETREG | (1 <<16 ) |BCI_GBD2 );BCI_SEND (GlobalBitmapDescriptor); + +/* +* I don't know why, sending this twice fixes the intial black screen, +* prevents X from crashing at least in Toshiba laptops with SavageIX. +* --Tony +*/ + par->bci_ptr =0 ; + par->SavageWaitFifo (par,4 ); + +BCI_SEND (BCI_CMD_SETREG | (1 <<16 ) |BCI_GBD1 ); +BCI_SEND (0 ); +BCI_SEND (BCI_CMD_SETREG | (1 <<16 ) |BCI_GBD2 ); +BCI_SEND (GlobalBitmapDescriptor); }static void savagefb_set_clip (struct fb_info *info)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV