[Openchrome-users] [openChrome] #29: Changing VTs causes LCD backlight to be switched off.
openChrome
trac
Mon Mar 6 05:31:44 PST 2006
#29: Changing VTs causes LCD backlight to be switched off.
----------------------+-----------------------------------------------------
Reporter: anonymous | Owner: somebody
Type: defect | Status: new
Priority: major | Component: xdriver
Version: | Keywords: VT switching, LCD light
----------------------+-----------------------------------------------------
I have just tried revision 166 as a first openchrome driver for my
Acer Aspire 1535. The VT switching code is broken resulting in a black
screen when trying to use a new VT.
lspci -vvv reports:
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8378 [S3
UniChrome] Integrated Video (rev 01) (prog-if 00 [VGA])
Subsystem: Acer Incorporated [ALI]: Unknown device 0033
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (500ns min)
Interrupt: pin A routed to IRQ 4
Region 0: Memory at f0000000 (32-bit, prefetchable) [size=64M]
Region 1: Memory at d1000000 (32-bit, non-prefetchable) [size=16M]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64-
HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW-
Rate=<none>
I have a patch which fixes this for me:
Index: via_mode.c
===================================================================
--- via_mode.c (revision 166)
+++ via_mode.c (working copy)
@@ -1927,11 +1927,13 @@
#endif
/* Enable LCD */
- if (On)
+ if (On){
+ pBIOSInfo->LCDPower(pScrn, TRUE);
ViaCrtcMask(hwp, 0x6A, 0x08, 0x08);
- else
+ }else{
+ pBIOSInfo->LCDPower(pScrn, FALSE);
ViaCrtcMask(hwp, 0x6A, 0x00, 0x08);
-
+ }
/* Find Panel Size Index for PowerSeq Table */
if (pVia->Chipset == VIA_CLE266) {
if (pBIOSInfo->PanelSize != VIA_PANEL_INVALID) {
I think you might want to include it
Mark
--
Ticket URL: <http://www.openchrome.org/trac/ticket/29>
openChrome <http://www.openchrome.org/>
The openChrome project
More information about the Openchrome-users
mailing list