Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Corrupt video on resume & PNP-ACPI - Thinkpad 600
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1016

PostPosted: Tue Dec 28, 2004 10:08 pm    Post subject: Corrupt video on resume & PNP-ACPI - Thinkpad 600 Reply with quote

Hi,

To my joy, I noticed that on my Thinkpad 600E, the sleepstates (most notably S3) finally work with the 2.6.10 kernel (I think this was mostly due to a typo in DSDT, ie. BIOS uses _S3 when there should be \_S3 - but now the kernel takes this into account).

So, I made the switch from APM to ACPI (because now I get to use all those Fn+keys to suspend, and the battery gauge is more accurate). However, two problems persist..both of them regarding suspend/resume sequence.

One is that when I resume, the video is corrupt. If I'm on console, I cannot get anything on the screen, it's just kinda fuzzy (which is odd-looking on an LCD). If I have X active and suspend+resume, the fuzzy screen is there, but when I switch to console (Ctrl+alt+f1) I get a console that is only somewhat corrupt (ie. pieces of text here and there). When I switch back to X tty (Ctrl+alt+f7) everything is fine. Console stays corrupt.

I can remove the corruptness from the console by switching to external display for a second (even if one is not connected) by pressing Fn+F7.

Is there some utility that I can use to re-initialize video card entirely?

Another problem is related to PNP. With APM, I have the following in my /etc/apm/event.d:

Code:

#!/bin/sh

case "$1" in
resume)
        setpnp 0e on
        setpnp 0f on
        /etc/init.d/alsasound start
        ;;
suspend)
        /etc/init.d/alsasound stop
        ;;
esac


This is to unload ALSA modules on suspend, reload them on resume, and what is most important, re-activate the sound hardware on resume (it's an ISA PnP device, CS4236 - for some reason the CS46xx driver does not work). The sound works perfectly before first suspend.

With ACPI, the /proc/bus/pnp interface is not there anymore, so setpnp and lspnp do not work.

However, I can find a directory /sys/devices/pnp0/00:0e that has different stuff listed...

So, the question is: How can I perform the functionality of "setpnp 0e enable", using only the sysfs interface to PNP?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum