This forum has been archived. All content is frozen. Please use KDE Discuss instead.

suspend/resume issues: black screen and mouse cursor

Tags: None
(comma "," separated)
dreamz
Registered Member
Posts
70
Karma
0
OS
i'm running a fresh arch linux installation with kdebase on my lg e300 notebook, and i'm having some trouble with pm-suspend.

suspend works fine, but when i try to resume, all i get is a blank screen and a mouse cursor (which works fine). no desktop, no menus, no keyboard. the only thing i can do is do a hard power down.

pm-suspend.log looks fine:
Code: Select all
Initial commandline parameters: --quirk-dpms-suspend
--quirk-dpms-on
--quirk-vbestate-restore
--quirk-vbemode-restore
--quirk-vga-mode3
--quirk-vbe-post
Fri Jan  8 23:42:55 CST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux arch 2.6.32-ARCH #1 SMP PREEMPT Thu Jan 7 22:28:29 CET 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz GenuineIntel GNU/Linux
Module                  Size  Used by
cryptd                  6076  0
aes_x86_64              7420  2
aes_generic            26178  1 aes_x86_64
radeon                563393  2
ttm                    37153  1 radeon
drm_kms_helper         22299  1 radeon
drm                   153467  5 radeon,ttm,drm_kms_helper
i2c_algo_bit            4935  1 radeon
rfcomm                 35723  4
sco                     8440  2
bridge                 47293  0
stp                     1552  1 bridge
llc                     3657  2 bridge,stp
bnep                    8690  2
l2cap                  32231  16 rfcomm,bnep
btusb                  11532  2
bluetooth              50361  9 rfcomm,sco,bnep,l2cap,btusb
snd_seq_dummy           1439  0
ath_pci               227958  0
snd_hda_codec_atihdmi     2683  1
snd_seq_oss            29023  0
snd_seq_midi_event      5316  1 snd_seq_oss
snd_seq                50558  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
wlan                  221904  1 ath_pci
ath_hal               373759  1 ath_pci
snd_hda_codec_realtek   250244  1
arc4                    1354  2
snd_seq_device          5181  3 snd_seq_dummy,snd_seq_oss,snd_seq
uvcvideo               59906  0
videodev               35771  1 uvcvideo
v4l1_compat            15674  2 uvcvideo,videodev
v4l2_compat_ioctl32     9937  1 videodev
snd_hda_intel          21586  2
snd_pcm_oss            39011  0
snd_mixer_oss          17299  1 snd_pcm_oss
snd_hda_codec          63659  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6340  1 snd_hda_codec
snd_pcm                70318  3 snd_hda_intel,snd_pcm_oss,snd_hda_codec
joydev                  9800  0
ecb                     1953  2
snd_timer              18799  2 snd_seq,snd_pcm
ohci_hcd               21485  0
snd                    57408  15 snd_seq_oss,snd_seq,snd_hda_codec_realtek,snd_seq_device,snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
ehci_hcd               34890  0
i2c_piix4               8680  0
soundcore               6095  1 snd
snd_page_alloc          7033  2 snd_hda_intel,snd_pcm
i2c_core               18137  5 radeon,drm,i2c_algo_bit,videodev,i2c_piix4
usbcore               140421  5 btusb,uvcvideo,ohci_hcd,ehci_hcd
ath5k                 124922  0
video                  17979  0
output                  1980  1 video
mac80211              165605  1 ath5k
fan                     3378  0
ath                     8400  1 ath5k
cfg80211              122783  3 ath5k,mac80211,ath
rfkill                 15228  3 bluetooth,cfg80211
led_class               2577  1 ath5k
battery                 9388  0
shpchp                 31012  0
pci_hotplug            26576  1 shpchp
ac                      3027  0
evdev                   8825  15
wmi                     4771  0
psmouse                56346  0
thermal                11834  0
button                  4714  0
sky2                   45193  0
sg                     25275  0
serio_raw               4440  0
processor              29574  2
pcspkr                  1795  0
rtc_cmos                8904  0
rtc_core               14631  1 rtc_cmos
rtc_lib                 1810  1 rtc_core
ext4                  334927  2
mbcache                 5466  1 ext4
jbd2                   80162  1 ext4
crc16                   1273  2 l2cap,ext4
sd_mod                 26313  4
sr_mod                 15043  0
cdrom                  36354  1 sr_mod
ahci                   34321  3
pata_atiixp             3633  0
ata_generic             3111  0
pata_acpi               3288  0
libata                151860  4 ahci,pata_atiixp,ata_generic,pata_acpi
scsi_mod               92676  4 sg,sd_mod,sr_mod,libata
             total       used       free     shared    buffers     cached
Mem:       1796496     351836    1444660          0      19776     122580
-/+ buffers/cache:     209480    1587016
Swap:      1012084          0    1012084
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
/usr/lib/pm-utils/sleep.d/01grub suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
Allocated buffer at 0x11000 (base is 0x0)
ES: 0x1100 EBX: 0x0000
success.
Fri Jan  8 23:42:57 CST 2010: performing suspend
Sat Jan  9 03:08:50 CST 2010: Awake.
Sat Jan  9 03:08:50 CST 2010: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume suspend: Function not supported
Function not supported
success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume suspend: success.
/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg resume suspend: success.
/usr/lib/pm-utils/sleep.d/01grub resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk resume suspend: success.
Sat Jan  9 03:08:50 CST 2010: Finished.


when i add a dummy file named 00auto-quirk to /etc/pm/sleep.d (to disable it), resume works, but i end up with serious graphical problems (artifacts, flickering, lines, etc.).

how can i fix this issue?

thanks!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is likely an issue with the Radeon driver, which probably does not support being removed while X is running, and doesn't correctly handle coming out of suspend ( although it should... since it is KMS enabled )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dreamz
Registered Member
Posts
70
Karma
0
OS
thanks for the reply. that is helpful information.

1. kms is disabled by default on arch linux, since kms for ati graphics is currently not supported. (this is good, as i had some issues with kms before.)
2. the fact that kms is disabled by default might explain why i'm having issues (provided they are related to the radeon driver). is there a fix?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Hmm... your output seems to indicate that KMS is enabled.

Code: Select all
drm_kms_helper         22299  1 radeon
drm                   153467  5 radeon,ttm,drm_kms_helper


On my system ( also with the ath5k driver, with Intel graphics instead ) running SUSE I can suspend and resume without any problems.

Unfortunately I do not know much about how the suspend system itself works. It is possible your graphics card requires quirks in order to resume correctly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dreamz
Registered Member
Posts
70
Karma
0
OS
i was going by this information: http://wiki.archlinux.org/index.php/Ati ... _.28KMS.29

how can i go about testing quirks? there are a lot of them, and figuring out which ones i need and the correct order of execution will take a while. also, i tried playing around with quirks once and it led to all sorts of trouble (network manager wouldn't work, rekonq kept segfaulting, etc.).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately Quirks and other hardware specific options are not easy to use. If you can find Arch users which have similar or the same graphics card then you may be able to find out what needs to be changed to have suspend work properly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dreamz
Registered Member
Posts
70
Karma
0
OS
i've searched the arch forums, but none of the suggestions has worked. i think i'll give up for now and wait for kms.

i did notice something, though. last night, i was copying over some data from my external drive. after 30 minutes or so, the notebook went into standby. but what was unusual was that i was able to resume perfectly.
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
I have a similar error. I am using the free ati driver on fedora.

I get the black screen with a movable cursor after resume from suspend to ram. but disabling compositing manually (alt+shift+f12) works around that problem. I have the problem right now :)
Reenabling compositing just brings me back to the black screen with the cursor...

restarting kwin by
Code: Select all
kwin --replace
solves that.
dreamz
Registered Member
Posts
70
Karma
0
OS
thanks for the tip. i'll keep that in mind. but actually, the problem seems to have disappeared. i can suspend and resume perfectly now. i'm not sure what fixed the problem. all i did was install a few applications and play around with logrotate.
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
I have this error sporadously.


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010
dreamz
Registered Member
Posts
70
Karma
0
OS
i just noticed something. now, this correlation may be spurious, but it looks like suspend and resume work properly when programs (e.g., browser, file manager, etc.) are open, but not when there are no programs open.
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
I doesn't seem to be the same with me... it happens in both cases. maybe it's different


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010
dreamz
Registered Member
Posts
70
Karma
0
OS
i think i might have figured out the problem.

preliminary note: any screen-blanking event (e.g., switching to a virtual terminal, suspend, etc.) causes the problem.

i think it has to do with the graphics. i've noticed that when compositing is disabled, i can suspend, switch between the virtual terminals and the gui, etc. without any issue. when compositing is enabled, i run into problems.

some more evidence: as noted above, i can return to the gui properly when compositing is disabled. but as soon as i enable compositing, the screen turns black and all i get is the mouse cursor.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which graphics drivers do you use? Are they Intel drivers by any chance?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dreamz
Registered Member
Posts
70
Karma
0
OS
i'm using the open source ati drivers.

i just did some more testing. i think the following should work. to get suspend and resume to work properly, disable compositing before suspending, and on resume, replace kwin and then enable compositing.

i did that manually and things seemed to work. now i'm trying to figure out how to do it automatically.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]