Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blank screen after resuming from Suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Sat Feb 04, 2006 6:41 am    Post subject: Blank screen after resuming from Suspend Reply with quote

i'm noticed many, many posts about people whose laptops seem to work after coming out of suspend, but whose LCDs don't display jack. i was afflicted with this problem recently, and i wanted to share my solution.
some background: i'm using suspend2-sources and hibernate-script's hibernate-ram script to suspend using /sys/power/state mem
when i come out of suspend my computer is fine, but the screen is blank.
but it is reenabled if the backlight is changed by writing an integer to /proc/acpi/video/GFX0/LCD/brightness.
so, my suspend script now has an additional line that changes the brightness after resuming and everything is just peachy.
if anyone needs scripts to help you do this, i can post them.

i hope this helps at least one person!
Back to top
View user's profile Send private message
Leipoxa
n00b
n00b


Joined: 24 Nov 2005
Posts: 7
Location: Magyarország, Budapest

PostPosted: Fri Feb 10, 2006 4:35 pm    Post subject: the same problem Reply with quote

Hello
I have the same problem... I can suspend to disk without any problem, but when i try to switch back from suspend yo ram, the screen is blank, even switched on...

The scripfile is missing from my computer, and the /proc/acpi/video directory is empty.
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Fri Feb 10, 2006 5:01 pm    Post subject: Re: the same problem Reply with quote

Leipoxa wrote:
The scripfile is missing from my computer, and the /proc/acpi/video directory is empty.
I think you have to set "CONFIG_ACPI_VIDEO" to "yes" in your kernel menuconfig.

I'm interested with your hibernate-script (I think about hibernate.conf) and supposed that the line you add is something like :
Code:
echo "1" > /proc/acpi/video/GFX0/LCD/brightness
no ?

Thanks for sharing your tips.
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
Leipoxa
n00b
n00b


Joined: 24 Nov 2005
Posts: 7
Location: Magyarország, Budapest

PostPosted: Fri Feb 10, 2006 10:45 pm    Post subject: Reply with quote

In the kernel config the CONFIG_ACPI_VIDEO is set.

The /proc/acpi/video driectory was made by the system on your machine ?

Here is my /etc/hibernate/hibernate.conf file.. :

# Example hibernate.conf file. Adapt to your own tastes.
# Options are not case sensitive.
#
# Run "hibernate -h" for help on the configuration items.

##############################################################################
### Choose your Suspend method. You currently have 3 choices:
###
### suspend2 Software Suspend 2 (requires kernel patches from
### http://www.suspend2.net/)
###
### sysfs_power_state Uses /sys/power/state to suspend (activates pmdisk
### on kernels < 2.6.8, or vanilla swsusp otherwise).
###
### acpi_sleep Uses /proc/acpi/sleep to activate swsusp, or other
### ACPI sleep state supported by your machine.
###
##############################################################################

### suspend2 (for Software Suspend 2)
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
#Compressor lzf
#Encryptor none
# ImageSizeLimit 200
## useful for initrd usage:
SuspendDevice swap:/dev/hda3
## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
# PowerdownMethod 5
## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50
## Or traditionally like this:
# Suspend2AllSettings 0 0 2056 65535 5
## Or even from the results of hibernate --save-settings with this:
# Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf
## For filewriter:
# FilewriterLocation /suspend_file 1000
# VerifyFilewriterResume2 yes
# ProcSetting userui_program /sbin/suspend2ui_text

### sysfs_power_state
## To use /sys/power/state to suspend your machine (which may offer
## suspend-to-RAM, suspend-to-disk, standby, etc) comment out all the options
## above for Software Suspend 2, below for acpi_sleep, and uncomment this line.
## You may replace mem with any one of the states from "cat /sys/power/state"
# UseSysfsPowerState mem
# PowerdownMethod shutdown

### acpi_sleep
## To use ACPI to suspend your machine (via /proc/acpi/sleep), comment out
## all the options above for Software Suspend 2 and sysfs, and uncomment this
## line. The number refers to the ACPI sleep state - 3 is suspend-to-RAM and
## 4 is suspend-to-disk.
# UseACPISleep 4

##############################################################################
### Some global settings
##############################################################################

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
AlwaysForce yes
AlwaysKill yes
# HibernateVT 15
Distribution gentoo
XDisplay :0

##############################################################################
### Scriptlets
### Scriptlets provide support for doing all sorts of things before and after
### suspending. The defaults settings here should work for most people, but
### you may wish to edit these to taste. Consult "hibernate -h" for help on
### the configuration settings.
##############################################################################

### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock restore-only

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2

### filesystems
Unmount /mnt/adat /mnt/usb /mnt/cdrom
#OnResume 20 mount /mnt/adat
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
#Mount /mnt/adat

### grub
ChangeGrubMenu yes
GrubMenuFile /boot/grub/menu.lst
AlternateGrubMenuFile /boot/grub/menu-suspended.lst
BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak

### hardware_tweaks
# IbmAcpi yes
RadeonTool yes

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
# LockConsoleAs root
# LockXScreenSaver yes
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes

### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"

### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules

### modules-gentoo
GentooModulesAutoload yes

### network
DownInterfaces eth0
UpInterfaces eth0

### pcmcia
EjectCards yes

### programs
IncompatiblePrograms xmms

### services
RestartServices hotplug alsasound ivman
StopServices alsasound
StartServices net.eth0

### vbetool
# EnableVbetool yes
# RestoreVbeStateFrom /var/lib/vbetool/vbestate
# VbetoolPost yes
# RestoreVCSAData yes

### xhacks
SwitchToTextMode yes
# UseDummyXServer yes

### xstatus
## This can be set to gnome, kde or x:
# XStatus gnome
XSuspendText Preparing to suspend...
XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font -misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-* --colour=Green --shadow 1 --pos bottom --align center --offset 50

UnmountFSTypes vfat fat msdos
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Sat Feb 11, 2006 8:07 am    Post subject: Reply with quote

Hmm... Mine doesn't seem to be supported, or I'm not configured correctly. I have an Intel 855GM video card.
Code:
$ cat /proc/acpi/video/IGD/LCD/brightness
<not supported>
Back to top
View user's profile Send private message
Leipoxa
n00b
n00b


Joined: 24 Nov 2005
Posts: 7
Location: Magyarország, Budapest

PostPosted: Sat Feb 11, 2006 1:01 pm    Post subject: ACPI kernel Reply with quote

in my laptop missing all the files from the /proc/acpi/video directory.

this is my kernel ACPI configuration, if you know the problem....

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_SLEEP_PROC_SLEEP=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_HOTKEY=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_ASUS=y
CONFIG_ACPI_IBM=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
Back to top
View user's profile Send private message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Sun Feb 12, 2006 8:25 am    Post subject: Reply with quote

Leipoxa: how come you have IBM, Asus, and toshiba extras selected?
other than that, i must say your config looks fine.

yoyo: rather than using hibernate.conf's afterresume settings, i have /etc/acpi/events call a script on the poer event (power button pressed) that executes my pre-suspend and post-suspend stuff, that included. this is mostly because i'm not sure about most of hibernate.conf's syntax, and i like to be able to change the before-and-after suspend commands a lot.
so, yeah, nothing very interesting.

anyone who doesn't have /proc/acpi/video: you might want to do some searching on the 'net for independent or proprietary drivers for your specific laptop line... lot's of the ACPI stuff is really different among different brands and generations. i don't know much about acpi, but most laptops should support this stuff - you might just need to look for drivers.
Back to top
View user's profile Send private message
z10n0101
n00b
n00b


Joined: 26 May 2006
Posts: 2
Location: Mexico, MX

PostPosted: Fri May 26, 2006 3:31 pm    Post subject: :D Finally I got it Reply with quote

Hello, I have been trying to hibernate-ram for 1 month with any succes. Yesterday I finally achieve it.
I just want to post what I did for users with ATI-DRIVERS-8.24.8, I'm on a Dell 600m.

First.
I emerged all the hibernate sources (the kernel patch, the script...)

After this, I edited my /etc/X11/xorg.conf
I changed the line from "on" to "off"

Option "UseInternalAGPGART" "off"


then, I compiled the intel-agp and ati-agp as modules.

Here it was were I got the big problem.
When the fglrx driver try to load, It did not find any agp controller. I though that the fglrx would load it by itself. That is why is edited my /etc/modules.autoload.d/kernel2.6 and wrote

ati-agp (*Here it can be also intel-agp, both worked for me )


After the X env. is loaded with fglrx but with an external agp-driver, the lock of the screen after hibernating will be off.
Ohh! I almost forgot it, I don't use framebuffer, Honestly, I like it very much, but I prefer the hibernate-ram feature.

The only configuration file you have to edit id the /etc/hibernate/ram.conf

Here it is.

Code:


# Example ram.conf file for suspending to RAM. Adapt to your own tastes.
# Options are not case sensitive.
#
# Run "hibernate -h" for help on the configuration items.

### sysfs_power_state
UseSysfsPowerState mem

##############################################################################
### Some global settings
##############################################################################

Verbosity 3
LogFile /var/log/hibernate.log
LogVerbosity 3
# AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
# Distribution gentoo
XDisplay :0

##############################################################################
### Scriptlets
###   Scriptlets provide support for doing all sorts of things before and after
###   suspending. The defaults settings here should work for most people, but
###   you may wish to edit these to taste. Consult "hibernate -h" for help on
###   the configuration settings.
##############################################################################

### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock restore-only

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2

### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows

### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak

### hardware_tweaks
# IbmAcpi yes
#RadeonTool yes

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
# LockConsoleAs root
# LockXScreenSaver yes
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes

### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"

### modules
# UnloadModules fglrx
# UnloadAllModules yes
# UnloadBlacklistedModules yes
# LoadModules auto
# LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes

## network
# DownInterfaces eth0
# UpInterfaces auto

### pcmcia
# EjectCards yes

### programs
# IncompatiblePrograms xmms

### services
## RestartServices alsasound syslog-ng sshd netmount net.eth1 modules laptop_mode ivman dbus hald 
## StopServices
# StartServices aumix

### vbetool
# EnableVbetool yes
#RestoreVbeStateFrom /var/lib/vbetool/vbestate
#VbetoolPost yes
#RestoreVCSAData yes

### xhacks
# SwitchToTextMode yes
# UseDummyXServer yes

### xstatus
## This can be set to gnome, kde or x:
# XStatus gnome
# XSuspendText Preparing to suspend...
# XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font -misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-* --colour=Green --shadow 1 --pos bottom --align center --offset 50


Why is working? lol, I know many things are commented, but It works for me, very well.
After this editting, you can safely do hibernate-ram as root, And everything will be saved, After openning the lid again, The desktop will appear as you left it.



As I said in the beggining, I wanted to post this because I was going crazy with hibernate-ram, Now that I got it, I want to share even if it is useful for others. If it does, PERFECT!!! :D :D :D

* Here is my lsmod
Code:

Module                  Size  Used by
fglrx                 454656  7
ieee80211_crypt_wep     4160  1
ohci_hcd               16964  0
ipw2200               156616  0
ieee80211              39976  1 ipw2200
ieee80211_crypt         5120  2 ieee80211_crypt_wep,ieee80211
b44                    20684  0
rfcomm                 30932  0
l2cap                  19520  5 rfcomm
ehci_hcd               24584  0
hci_usb                13204  2
bluetooth              37668  7 rfcomm,l2cap,hci_usb
uhci_hcd               26960  0
intel_agp              18396  1
snd_pcm_oss            41312  0
snd_mixer_oss          15104  1 snd_pcm_oss
snd_seq_oss            29248  0
snd_seq_midi_event      5952  1 snd_seq_oss
snd_seq                47248  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6604  2 snd_seq_oss,snd_seq
snd_intel8x0           26908  1
snd_ac97_codec         80672  1 snd_intel8x0
snd_ac97_bus            2240  1 snd_ac97_codec
snd_pcm                76228  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              19652  2 snd_seq,snd_pcm
snd                    47788  12 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               7392  1 snd
snd_page_alloc          7944  2 snd_intel8x0,snd_pcm
usbcore               100548  5 ohci_hcd,ehci_hcd,hci_usb,uhci_hcd
speedstep_centrino      6320  1
freq_table              3808  1 speedstep_centrino
ati_agp                 6540  0
agpgart                26060  3 fglrx,intel_agp,ati_agp
i8k                     5464  0
thermal                11080  0
processor              22536  2 speedstep_centrino,thermal
fan                     3716  0
video                  14404  0
container               3712  0


I sincerly hope this help you.
[/list]
Back to top
View user's profile Send private message
mjrosenb
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2006
Posts: 115
Location: CMU

PostPosted: Thu Jun 22, 2006 7:21 am    Post subject: Reply with quote

I have the same problems. . .it goes to sleep fine, but refuses to turn the screen on afterwards. It used to be a hit or miss sort of thing, but now, It never brings the screen back. It has this problem with X and on a terminal. Like someone else's post, I get <not supported> when trying to write to /LCD0/brightness. As far as I can tell, I confiured my kernel correctly, which of course means that the problem is in my kernel. I have acpi->video compiled into the kernel. is there anything else important that anyone knows of?
_________________
I'll be mjrosenb on #${COMPUTER_RELATED_SUBJECT}
1x i386 laptop w/ Gentoo
4x i386 desktop w/ Gentoo
2x dual proc i386 w/dragonfly bsd
1x x86-64 desktop w/ Gentoo
1x i386 desktop w/ FreeBSD
1x alpha workstation w/ Gentoo
looking for more
Back to top
View user's profile Send private message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Thu Jun 22, 2006 9:18 am    Post subject: Reply with quote

mjrosenb: what kind of laptop do you have?
Back to top
View user's profile Send private message
mjrosenb
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2006
Posts: 115
Location: CMU

PostPosted: Sun Jun 25, 2006 8:09 am    Post subject: Reply with quote

IBM thinkpad Z60m
relevant specs that come to mind
pernitum M
40 GB SATA
intel mobile 915 GM graphics card
intel 2200BG wireless card
kernel 2.6.17-r6-mm2
gcc 4.1.1
As stated earlier, I had hibernate-ram working as of about 2 weeks ago, then it stopped coming back properly. I'm pretty sure I haven't changed my kernel in that time.
_________________
I'll be mjrosenb on #${COMPUTER_RELATED_SUBJECT}
1x i386 laptop w/ Gentoo
4x i386 desktop w/ Gentoo
2x dual proc i386 w/dragonfly bsd
1x x86-64 desktop w/ Gentoo
1x i386 desktop w/ FreeBSD
1x alpha workstation w/ Gentoo
looking for more
Back to top
View user's profile Send private message
vonr
Guru
Guru


Joined: 23 Mar 2006
Posts: 300

PostPosted: Wed Jul 26, 2006 6:13 pm    Post subject: Reply with quote

If you have an intel card, try adding 'Option "VBERestore" "true"' to the device section of xorg.conf. Along with enabling vbetool that did the trick for me (I have a 945GM). It seems that vbetool's only purpose for my setup is to set dpms to 'on' again.
Back to top
View user's profile Send private message
mjrosenb
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2006
Posts: 115
Location: CMU

PostPosted: Fri Jul 28, 2006 3:13 am    Post subject: Reply with quote

weird, I thought I posted back here, I guess the requet timed out. so the problem wasn't dpms. I could set the dpms to on from an ssh connection, but it didn't help. I ended up disabling VBEtool altogether, and it seems to work. If anyone really wants to dive deeper into this, I can give a bit of a description of what's been going on. Some realy weird things have happened. I'm having some problems when I try to kill X or I just close my lid without sleeping, or suspending to disk. I have dri, suspend to ram and a FB working, so I don't really care about the disk, and I guess I can live with X refusing to die.
_________________
I'll be mjrosenb on #${COMPUTER_RELATED_SUBJECT}
1x i386 laptop w/ Gentoo
4x i386 desktop w/ Gentoo
2x dual proc i386 w/dragonfly bsd
1x x86-64 desktop w/ Gentoo
1x i386 desktop w/ FreeBSD
1x alpha workstation w/ Gentoo
looking for more
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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