From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ford Subject: Re: Video memory corruption during suspend Date: Thu, 22 Jul 2004 13:36:00 -0400 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <40FFFB00.3030704@blue-labs.org> References: <20040718225247.GA30971@hell.org.pl> <20040722161047.GB15145@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010103020408090008010006" Return-path: In-Reply-To: <20040722161047.GB15145@atrey.karlin.mff.cuni.cz> To: Pavel Machek Cc: linux-kernel@vger.kernel.org, acpi-devel@lists.sourceforge.net List-Id: linux-acpi@vger.kernel.org This is a multi-part message in MIME format. --------------010103020408090008010006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Just as a side note, all of the notebooks I have owned or worked on have had suspend issues. Linux just doesn't handle it very well. The common problems on resume are: 1. the screen is somehow switched to the external VGA port or port other than the LCD 2. the screen is 50% rolled; i.e. the whole screen has been shifted halfway down the screen with the bottom wrapping back up to the top 3. on a text console, the characters are garbage/high ascii/blocks 4. the back light is off and can't be turned back on Of these I'm currently dealing with #1, 2, and 3. I can fix #1 by using the Function-Display key to step through displays until I have selected the LCD display again. I fix #2 by ctrl-alt-f1 and then back to X tty. I fix #3 by running setfont. I haven't had to deal with #4 in over a year, but I no longer have that notebook. Chris root # lspci -vvv -s 0:00.0 00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Chris root # lspci -vvv -s 01:00.0 01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 440 Go] (rev a3) (prog-if 00 [VGA]) Subsystem: Dell Computer Corporation: Unknown device 00d4 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop+ ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- no DRI/FB. David Pavel Machek wrote: >Hi! > > > >>My setup is: >>ASUS L3800C laptop, Radeon M7, i845 chipset, using DRI and radeonfb. >> >>Note that this is not specific to the kernel used, as I've been seeing >>similar corruption every now and then, most recently under 2.6.7 + >>ACPICA20040715 + swsusp2.0.0.100 (S3, S4), but also under 2.4 with S1 (but >>not with S4/swsusp2). >> >>I have a very simple script I use to suspend (i.e. basically echo $arg > >>/proc/acpi/sleep), which is usually started by acpid. Once the script is >>triggered (by pressing power / sleep button) and an X session is running, >>various red and green patches appear on the screen (the background image >>and the tinted terminal emulator), followed by the VT switch the PM code >>does. After resume and subsequent VT switch by the PM code the corruption >>is still visible. The screen is properly restored by a manual VT switch. >>The corruption is clearly related to the existing background pixmap, as >>moving the windows does not change its pattern. Oddly enough, starting a GL >>app such as glxgears and moving it into and out of focus also properly >>restores the screen. >> >> > >So what happens on 2.6.7 with swsusp1? Can you try vesafb (and fbdev >Xserver)? > > Pavel > > --------------010103020408090008010006 Content-Type: text/x-vcard; charset=utf-8; name="david+challenge-response.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="david+challenge-response.vcf" begin:vcard fn:David Ford n:Ford;David email;internet:david@blue-labs.org title:Industrial Geek tel;home:Ask please tel;cell:(203) 650-3611 x-mozilla-html:TRUE version:2.1 end:vcard --------------010103020408090008010006--