Bug 18672 - Crashes using dual screen/display/monitor when configuring and when resuming *regression*
Summary: Crashes using dual screen/display/monitor when configuring and when resuming ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-10 00:47 CEST by Morgan Leijström
Modified: 2017-06-07 08:35 CEST (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
journalctl -ab tgz see #1 (36.75 KB, application/gzip)
2016-06-10 01:31 CEST, Morgan Leijström
Details
Xorg.o.log see #1 (19.35 KB, text/x-log)
2016-06-10 01:32 CEST, Morgan Leijström
Details
Xorg.0.log.old (see it as another example) see #1 (20.35 KB, text/plain)
2016-06-10 01:37 CEST, Morgan Leijström
Details
lspcidrake -v (5.16 KB, text/plain)
2016-06-10 01:39 CEST, Morgan Leijström
Details

Description Morgan Leijström 2016-06-10 00:47:18 CEST
This laptop works great by itself now including suspend/resume.

However, when i attach external monitor to it there are crashes with configuring it and when resuming from suspend if monitor got detached.
It also show some minor non optimal behaviours.

I can boot with or later attach external monitor and use it perfectly, but if i detach it or it suspends or hibernates... session get lost (and users work...)

It is a Thinkpad T61p, Nvidia Quadro FX570M; G84GLM
Using 64 bit mga6, proprietary Nvidia driver, KDE, Plasma.
Internal resolution 1920x1200, external 2560x1600

In KDE settings it is as default; laptop monitor is main monitor, but it is not entirely respected.

Also, by default the external is at right of laptop, and in tests below i have it like that default.  But if i in KDE settings move it to left of laptop, it gets the KDE panel at bottom, despite i still have the settings that the laptop should be main.  So the logic where to put the panel is borked.

However that is a small issue compared to the crashes...

One easy way to crash it is by in that dialog put the screens with a bit overlap, (i do not know why that is possible) and save. I then get xmessage "Could not start kmserver. OK that and am back at login.  And on following logins it crash immediately and i am back at login, repeatedly...

To get out of it I booted without external screen, there was no KDE panel on laptop, but now i could attach external screen and there is KDE tray.  The setting of overlapped window was forgotten.  To be able to use laptop without external monitor, i have to configure external monitor to be at right of laptop in KDE settings, or else KDE panel is not on the laptop monitor. *stupid*


Now i try describe what works;

__Booting with external screen attached

The login screen is shown on both monitors. Focus is on the external monitor. I can log in there, or i can move mouse over to laptop monitor and log in there.

Regardless of where i log in, the KDE panel is on laptop only, and when i launch first programs it show up there, and i can drag to other monitor.

When i launch next program it launch on the screen where current active program window is.

I find this is all OK (taste of how it would optimally work are individual)


__Switching to text consoles using Ctrl-Alt-Fn; n={2..6}
Works nicely: Laptop monitor used, external is blackened
switching back to number 1 both monitor shows desktop
= OK

__Shutting down with external monitor still attached
OK

__Attaching external monitor after boot

Except for the boot log (of course) in it works as per above.

__Screen lock dialog, shown after some time of inactivity

Shows on both monitors, focus in the one on laptop monitor, logs in OK

__Log out with external attached

Log out confirmation dialog is only shown on external = NOT OK

It should show on both  (or at least the monitor where log out was issued = where KDE panel is = the laptop monitor)

__Log in after having logged out, external monitor still attached

Works like booting with external monitor attached

__Suspend, resume with external monitor still attached

Login screen is shown on both monitors, but background light is off on laptop... NOT OK  (this is when it have timed out by itself ans first shut down monitor and later suspended)

And when i have entered login on external monitor there is a message dialog "Could not start kmserver" ans something more for a second, then black, then both monitors get login screen, now background light have been switched on.
But there is immediately a xmessage on laptop monitor "Could not start kmserver. Check your installation   [okay]", and on external monitor message dialog in KDE style about the same. The restart program button make no visible change.

__Hibernate, resume with external monitor still attached
Upon resuming it reloads whole image OK according to text on laptop screen, then it just sits there maybe ten seconds, then black for maybe 20 s, then 
lots of text scrolling, then login screens om both monitors, laptop has focus, i log in, mageia logo cauldron bubbles... i see Plasma desktop and xmessage "Could not start kmserver". And session is lost 
I click OK on it, there is immediately another one then screen blacks and i am back at login... logging in again it takes some clicks and a minute wait for Kmenu to react...

__Detaching external monitor at login screen
-> laptop screen go black!
I can switch to i.e vt2 (Ctrl-Alt-F2) (back to 1 is still black) and from vt2 reboot.


                    ==============================

I did only test this briefly on Mageia5, but IIRC no crash; = regression

... the dual booted MSW7pro does not work perfectly either - including bluescreen, but better than this at the moment  - lets beat it :) 


=== Below is note to self what to test later when things start to work ===

__Suspend while external monitor attached, resume with it monitor REMOVED


__Hibernate, resume with external monitor REMOVED


__Booted and suspended without external monitor, attached monitor then resume


__Booted and hibernated without external monitor, attached monitor then resume
Comment 1 Morgan Leijström 2016-06-10 01:30:14 CEST
BTW, i deselected compositing, no change i can see

Hah "funny" crosslinked function:

Now when i boot without external, i get to a desktop without KDE panel.

When i attach external monitor desktops flickers and suddenly i have panel on Laptop monitor.

When i detach external monitor desktops flickers and panel is gone.

Obviously it mixes up which monitor is on the laptop.

WORKAROUND:  i can right click desktop and add panel, so now it is on both.
But whichever panel i launch programs from it shows up on laptop, better would be the external.

I was playing with attaching and detaching external, no crash.

Then i logged out, and it crash every login external attached or not.

- at this point i took some logs, attaching... -

Rebooted then and i can log in.
Comment 2 Morgan Leijström 2016-06-10 01:31:23 CEST
Created attachment 7959 [details]
journalctl -ab tgz see #1
Comment 3 Morgan Leijström 2016-06-10 01:32:05 CEST
Created attachment 7960 [details]
Xorg.o.log  see #1
Comment 4 Morgan Leijström 2016-06-10 01:37:33 CEST
Created attachment 7961 [details]
Xorg.0.log.old (see it as another example) see #1

Nvidia seem to get asked to do larger screen than the monitor resolution

Excerpt:

[    61.723] (EE) NVIDIA(0): Failed to allocate primary buffer: out of memory.
[    61.723] (EE) NVIDIA(0):  *** Aborting ***
[    61.723] (EE) 
Fatal server error:
[    61.723] (EE) Unable to allocate X screen at new size 4848 x 1600, and unable to reallocate X screen at original size 4480 x 1600
Comment 5 Morgan Leijström 2016-06-10 01:39:50 CEST
Created attachment 7962 [details]
lspcidrake -v
Comment 6 Morgan Leijström 2016-06-10 02:02:55 CEST
1920x1200 + 2560x1600 can be contained in 4480x1600  - Is that how it does it?

So what tries 4848x1600 ?

@Marja: who knows graphics system ?

CC: (none) => marja11

Comment 7 Marja Van Waes 2016-06-10 11:41:38 CEST
(In reply to Morgan Leijström from comment #6)
> 1920x1200 + 2560x1600 can be contained in 4480x1600  - Is that how it does
> it?
> 
> So what tries 4848x1600 ?
> 
> @Marja: who knows graphics system ?

tv, tmb and probably others, too.

@ tmb
Assigning to you because you have a ThinkPad :-)

(@ neoclust: these crashes happen in Plasma5)

Assignee: bugsquad => tmb
CC: (none) => mageia, thierry.vignaud

Comment 8 Morgan Leijström 2017-06-07 08:35:37 CEST
My T61p test object in this bug have now broken, I can not test again.

Note You need to log in before you can comment on or make changes to this bug.