Bug 70101

Summary: Black screen on return from suspension
Product: Drivers Reporter: paul iulian (pauliulian02)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: ASSIGNED ---    
Severity: high CC: aaron.lu, alexdeucher, pauliulian02, tianyu.lan
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: Linux 3.13.0-8-generic-trusty Subsystem:
Regression: Yes Bisected commit-id:
Attachments: resume on suspend failure
Attachment for Toshiba Satellite L500D
Attachment for Toshiba Satellite L500D
cat /proc/acpi/wakeup > wakeup
sudo sh -c "sync && echo 1 > /sys/power/pm_trace && pm-suspend" after reboot dmesg > dmesg.txt
dmesg > dmesg_before; echo mem > /sys/power/state; dmesg > dmesg_after
dmesg > dmesg_before; echo mem > /sys/power/state; dmesg > dmesg_after
dmesg
memory
usb
photo

Description paul iulian 2014-02-05 20:16:49 UTC
Created attachment 124721 [details]
resume on suspend failure

On return from suspension remains in black screen and no longer functional ubuntu 14.04. Reboot is required.
Comment 1 paul iulian 2014-02-06 18:43:21 UTC
On a laptop with intel processor and graphics card, the return from suspension with 3.13 kernel goes smoothly.
Comment 2 Lan Tianyu 2014-02-07 02:44:19 UTC
Since this bug is a regression, it's possible to do a bisect between v3.13 and v3.14-rc1?
Comment 3 Aaron Lu 2014-02-07 02:46:15 UTC
After resume, is the system totally dead or you can still remote login to it? If you can still remote login, please grab the dmesg and attach here.

BTW, you can also do some basic debugging per:
https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt
Comment 4 paul iulian 2014-02-07 06:49:15 UTC
Created attachment 124981 [details]
Attachment for Toshiba Satellite L500D
Comment 5 paul iulian 2014-02-07 06:52:46 UTC
On return from suspension remains in black screen and no longer
functional ubuntu 14.04. Reboot is required.
Comment 6 Aaron Lu 2014-02-07 07:33:45 UTC
The dmesg you attached doesn't seems to be the one after the system is resumed. If it's not possible to get these information, please follow comment #2 to do a git-bisect to find the offending commit.
Comment 7 paul iulian 2014-02-07 08:14:29 UTC
Created attachment 124991 [details]
Attachment for Toshiba Satellite L500D

Ubuntu 14.04
Comment 8 paul iulian 2014-02-07 09:11:59 UTC
Created attachment 125011 [details]
cat /proc/acpi/wakeup > wakeup
Comment 9 paul iulian 2014-02-07 09:14:15 UTC
Created attachment 125021 [details]
sudo sh -c "sync && echo 1 > /sys/power/pm_trace && pm-suspend" after reboot dmesg > dmesg.txt
Comment 10 paul iulian 2014-02-07 09:17:02 UTC
Created attachment 125031 [details]
dmesg > dmesg_before; echo mem > /sys/power/state; dmesg > dmesg_after
Comment 11 paul iulian 2014-02-07 09:17:36 UTC
Created attachment 125041 [details]
dmesg > dmesg_before; echo mem > /sys/power/state; dmesg > dmesg_after
Comment 12 paul iulian 2014-02-07 09:19:26 UTC
I hope to help ...
Comment 13 Aaron Lu 2014-02-13 01:49:38 UTC
The dmesg_after file doesn't have any information about system suspend/resume, does it actually get created?

Did you try this document?
https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt
Comment 14 Aaron Lu 2014-02-13 01:51:52 UTC
Is your CPU IA-64(Itanium) or a normal pentium/core i3/i5/i7 one?
Comment 15 paul iulian 2014-02-13 14:36:35 UTC
Apologies processor is amd dual core operating system is 64-bit.
Comment 16 paul iulian 2014-02-13 14:40:47 UTC
(In reply to paul iulian from comment #15)
> Apologies processor is amd dual core operating system is 64-bit.

AMD Athlon(tm) II Dual-Core M300 × 2
Comment 17 paul iulian 2014-02-13 15:21:20 UTC
(In reply to paul iulian from comment #16)
> (In reply to paul iulian from comment #15)
> > Apologies processor is amd dual core operating system is 64-bit.
> 
> AMD Athlon(tm) II Dual-Core M300 × 2

How do I find information about errors when resuming from suspend Ubuntu 14.04 on my system, what commands to give?
Comment 18 Aaron Lu 2014-02-14 01:04:23 UTC
If your system is dead on resume, then there is no way to see errors unless you have a serial port.
Please test the following things to see if any driver has issues first:
# cd /sys/power
# echo devices > pm_test
# echo mem > state

Check dmesg, see if any errors there.
Comment 19 paul iulian 2014-02-14 06:55:39 UTC
Created attachment 126041 [details]
dmesg
Comment 20 paul iulian 2014-02-14 06:58:13 UTC
Created attachment 126051 [details]
memory
Comment 21 paul iulian 2014-02-14 06:58:33 UTC
Created attachment 126061 [details]
usb
Comment 22 Aaron Lu 2014-02-14 07:00:09 UTC
Did you follow the steps in comment #18?
Comment 23 paul iulian 2014-02-14 07:03:30 UTC
In test # cd / sys / power
# Echo devices> pm_test
# Echo mem> states
laptop monitor could not be functionally different than the distorted image, I had to stop the button.Thank you!
Comment 24 Aaron Lu 2014-02-14 07:09:05 UTC
What do you mean by 'the distorted image' and 'stop the button'? Can you please be more detailed? Thanks.
Comment 25 paul iulian 2014-02-14 08:10:39 UTC
Created attachment 126071 [details]
photo

I took a picture monitor.
Comment 26 paul iulian 2014-02-14 08:14:54 UTC
Images on the screen are distorted and unstable if you move the mouse or press Enter. I do not know what other details you give, the fact is that the laptop is inoperable, are forced to stop on the button.
Comment 27 Aaron Lu 2014-02-14 08:16:40 UTC
This suggests the graphics driver has issues dealing with PM transition. I'll re-assign the bug to GPU/Raedon category.
Comment 28 paul iulian 2014-02-14 08:33:46 UTC
I guessed long ago that the problem would be amd radeon open source video drivers. A while before I reinstalled ubuntu 14.04 because of errors caused by my attempts to change some parameters to kernel 3.14. Therefore I returned to the kernel ubuntu 3.13, but of course the same problems return from suspension. Thank you! And hopefully before the official launch ubuntu 14.04 the problem to be solved.
Comment 29 paul iulian 2014-02-14 08:40:35 UTC
paul@Satellite-L500D:~$ sudo lspci -vnn | grep -A12 VGA
[sudo] password for paul: 
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v] [1002:9553] (prog-if 00 [VGA controller])
	Subsystem: Toshiba America Info Systems Device [1179:ff80]
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at 9000 [size=256]
	Memory at cfef0000 (32-bit, non-prefetchable) [size=64K]
	[virtual] Expansion ROM at cfe00000 [disabled] [size=128K]
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Kernel driver in use: radeon
Comment 30 Alex Deucher 2014-02-14 14:37:34 UTC
Since this is a regression, can you do a bisect between v3.13 and v3.14-rc1 to find the problematic commit?
Comment 31 paul iulian 2014-02-14 16:38:09 UTC
Since Ubuntu 13.04 I noticed the problem of the return of suspension currently using ubuntu 12.04.4 PAE kernel 3.2 this problem does not exist, ubuntu 12.04 on my laptop works perfectly with either video drivers AMD Radeon HD 4500 series with either open source. I decided to install ubuntu 12.04 instead of ubuntu 13.10 ubuntu 14.04 but then I noticed these errors ...