Bug 50385 - After wake-up from hibernation, text-mode and Xorg consoles are mixed up
Summary: After wake-up from hibernation, text-mode and Xorg consoles are mixed up
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Daniel Vetter
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-27 02:39 UTC by auxsvr
Modified: 2017-07-24 23:01 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.log (32.25 KB, text/plain)
2012-05-27 02:39 UTC, auxsvr
no flags Details
Kernel log before hibernation and after wake-up with the bug (54.81 KB, text/plain)
2012-11-27 13:44 UTC, auxsvr
no flags Details

Description auxsvr 2012-05-27 02:39:45 UTC
Created attachment 62136 [details]
Xorg.log

This occurred the first time with an earlier kernel version (3.2, maybe 3.1, but not 3.3). After the wake-up, the system functions normally for some time until the display becomes black, which is not triggered by the screensaver. Changing consoles, in which the mouse cursor appears, with Alt-Function keys when this occurs might make the display return to normal. Another way to resume normal display is clicking on the top left corner of the screen while in text-mode, which causes the KDE applications menu to open.

Another symptom is that occasionally input by keyboard in X is echoed in the text-mode console I last switched from.

Running opensuse 11.3 on HP mini 5102 Intel Pineview GM with

> rpm -q kernel-desktop
kernel-desktop-3.4.0-1.1.i686

> rpm -q xorg-x11-driver-video
xorg-x11-driver-video-7.6-80.1.2.i586

> rpm -q xorg-x11-server 
xorg-x11-server-7.6_1.10.4-36.2.1.i586

> rpm -q Mesa 
Mesa-7.11-11.1.2.i586

> rpm -q libdrm 
libdrm-2.4.26-15.1.2.i586
Comment 1 auxsvr 2012-05-29 01:14:34 UTC

petros
JCGs&s
setter
Comment 2 Daniel Vetter 2012-05-29 01:22:33 UTC
Please boot with drm.debug=0xe added to your kernel commandline, reproduce the issue and then attach the complete output of dmesg. Also, 2.16.0 for the xf86-video-intel driver is a bit old and we've fixed a lot of bugs recently about handling output state. Can you please upgrade to the latest version (preferrably even git - all the commits nowadays go into the more experimental sna backend, so all the other commits for the uxa backend are low-risk bugfixes only).
Comment 3 auxsvr 2012-05-29 01:34:38 UTC
Please remove my previous message, which was sent inadvertently. I was typing in the text-mode console, and it appeared in X too.

I believe I have found a pattern for the blank screen. Since the Xorg and text-mode consoles are mixed up, the power-saving feature of the text-mode console comes into effect if there is no key press for some minutes. If I press a key while the screen is blank, then the display always returns to text-mode, and waiting for some seconds returns to X. I should add that the console that corresponds to X is random; when the system starts it is 7 and now it became 1, which is also a normal text-mode login console.

I will try your suggestion later, I'm too busy right now.
Comment 4 Daniel Vetter 2012-08-22 15:42:27 UTC
Should be fixed with:

commit 343065a605646b4c1fee8b1ca07b715283813b11
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Jun 15 11:01:22 2012 +0200

    drm/fb-helper: delay hotplug handling when partially bound

Patch is merged since 3.6-rc1. If this does not fix your issue, please reopen the bug, thanks.
Comment 5 auxsvr 2012-11-01 09:32:48 UTC
It just occurred again on 3.6.0, reopening.
Comment 6 Daniel Vetter 2012-11-01 10:00:27 UTC
We still need them logfiles ... Also, please retest on 3.7 since that contains a completely reworked modeset sequence around suspend/resume.
Comment 7 Chris Wilson 2012-11-01 11:16:10 UTC
Also you will need to update -intel to 2.20.9+ in order to get a few fixes with DRI SwapBuffers vs DPMS/resume.
Comment 8 auxsvr 2012-11-01 19:03:09 UTC
This is very rare, so it is going to take some time to get the log. I will update xorg and the kernel in the weekend, when I will have more time.
Comment 9 auxsvr 2012-11-27 13:44:17 UTC
Created attachment 70661 [details]
Kernel log before hibernation and after wake-up with the bug

After wake-up today, this bug manifested itself on linux 3.6.3. The first time (suspend to RAM), the system suspended and resumed correctly, the second time (suspend to disk), the system exhibited the bug.

If further logs are no longer necessary, I would like to reboot without the drm.debug=0xe option, as it fills up the system log.
Comment 10 Daniel Vetter 2012-11-27 14:18:26 UTC
On Tue, Nov 27, 2012 at 2:44 PM,  <bugzilla-daemon@freedesktop.org> wrote:
> --- Comment #9 from auxsvr@gmail.com ---
> Created attachment 70661 [details]
> If further logs are no longer necessary, I would like to reboot without the
> drm.debug=0xe option, as it fills up the system log.

You can just disable it with (as root)

# echo 0 > /sys/module/drm/parameters/debug
Comment 11 Chris Wilson 2012-12-12 16:08:44 UTC
I'm hoping that the fixes Daniel landed in 3.7 clear this up. Hope.

As always please do reopen if it reoccurs.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.