By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1245

Summary: KDM displays garbage
Product: TDE Reporter: Jan Stolarek <jwstolarek>
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: critical CC: albator78, alexispm_stellaluna, bugwatch, darrella, jwstolarek, kb9vqf, slavek.banko
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: amd64   
OS: Debian Squeeze   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on: 1226    
Bug Blocks:    
Attachments: KDM background garbage
Black edit fields after logging out
'uname -a' output
Black widgets after upgrade to 3.5.13.1
Patch to add check box GUI control for tdmrc [X-:*-Core] TerminateServer

Description Jan Stolarek 2012-10-01 13:03:46 CDT
Created attachment 840 [details]
KDM background garbage

Upon login KDM displays garbage, as shown in attachment. Problem occurs both when KDM themes are enabled and when they are not. It seems to disappear when a background image is set. When I log out of Trinity the KDM displays black backgrounds for password and user edit fields. This seems to happen always, regardless of background image.
Comment 1 Jan Stolarek 2012-10-01 13:05:24 CDT
Created attachment 841 [details]
Black edit fields after logging out

This is how edit fields look after logging out of TDE. After selecting another user they become white again.
Comment 2 Slávek Banko 2012-10-01 13:34:48 CDT
Are you using Xorg from Squeeze - stable? I'm using XOrg from Squeeze - backports and no such problems I noticed.
Comment 3 Timothy Pearson 2012-10-01 13:38:55 CDT
Interesting!  This definitely needs to be fixed.

Are you using the TDE compositor?  One way to know is if a 'kompmgr' process is running when TDM is active.

Also, are you using the integrated Intel graphics on that laptop, or a more powerful discrete graphics chip?

Thanks!
Comment 4 Jan Stolarek 2012-10-01 13:50:49 CDT
(In reply to comment #2)
> Are you using Xorg from Squeeze - stable? I'm using XOrg from Squeeze -
> backports and no such problems I noticed.
I'm using xserver-xorg 7.5+8+squeeze1 from stable.

(In reply to comment #3)
> Are you using the TDE compositor?  One way to know is if a 'kompmgr' process is
> running when TDM is active.
No.

(In reply to comment #3)
> Also, are you using the integrated Intel graphics on that laptop, or a more
> powerful discrete graphics chip?
Nvidia Quadro NVS 140M with proprietary drivers. I'm not sure but I think this also happened once or twice with nouveau driver.
Comment 5 Timothy Pearson 2012-10-01 14:08:01 CDT
> (In reply to comment #3)
> > Also, are you using the integrated Intel graphics on that laptop, or a more
> > powerful discrete graphics chip?
> Nvidia Quadro NVS 140M with proprietary drivers. I'm not sure but I think this
> also happened once or twice with nouveau driver.

I asked because I have seen the exact same problem once or twice on a test system with nVidia cards installed.  I have never seen the bug on a non-nVidia system, and you just provided one more data point in favor of something going wrong in TDE, TQt3 or Xorg on nVidia-based graphics cards.

Are you using a x64 or i386 kernel?
Comment 6 Jan Stolarek 2012-10-02 01:16:56 CDT
Created attachment 845 [details]
'uname -a' output
Comment 7 Jan Stolarek 2012-10-11 09:58:18 CDT
After upgrading to 3.5.13.1 this bug has spread beyond KDM. After I log out and log in again all widgets become black and only become normal when I hover mouse onto them. Bumping that bug to blocker, as it makes logging out virtually useless and forces a computer restart.
Comment 8 Jan Stolarek 2012-10-11 09:58:58 CDT
Created attachment 862 [details]
Black widgets after upgrade to 3.5.13.1
Comment 9 Slávek Banko 2012-10-11 10:04:54 CDT
Can you try in /etc/trinity/kdm/kdmrc enable:
TerminateServer=true
Comment 10 Jan Stolarek 2012-10-11 10:35:25 CDT
(In reply to comment #9)
> Can you try in /etc/trinity/kdm/kdmrc enable:
> TerminateServer=true
In which section? I added that in [General] and this does not help. Now that you mention it I recall adding this once on my openSuse to fix some re-logging  issues.

BTW I noticed that if I change KDM settings in Control Center the kdmrc file gets overwritten. I think it should have a lot of comments and commented out options - on my system it does not after I made changes in Control Center.

I found a sort of workaround: after logging out I switch to text console, log in as root and 'service kdm-trinity restart'.
Comment 11 Timothy Pearson 2012-10-11 10:38:30 CDT
(In reply to comment #10)
> (In reply to comment #9)
> > Can you try in /etc/trinity/kdm/kdmrc enable:
> > TerminateServer=true
> In which section? I added that in [General] and this does not help. Now that
> you mention it I recall adding this once on my openSuse to fix some re-logging 
> issues.
> 
> BTW I noticed that if I change KDM settings in Control Center the kdmrc file
> gets overwritten. I think it should have a lot of comments and commented out
> options - on my system it does not after I made changes in Control Center.
> 
> I found a sort of workaround: after logging out I switch to text console, log
> in as root and 'service kdm-trinity restart'.

I wonder why the TerminateServer option does not have a GUI control (checkbox) in kcontrol.  This seems like another simple bug that should be fixed for R14.
Comment 12 Slávek Banko 2012-10-11 10:42:05 CDT
In section [X-:*-Core]

Note: I'm always doing the changes manually in kdmrc file - so as not to overwrite by Control Center. :)
Comment 13 Jan Stolarek 2012-10-11 11:46:41 CDT
(In reply to comment #12)
> In section [X-:*-Core]
> 
> Note: I'm always doing the changes manually in kdmrc file - so as not to
> overwrite by Control Center. :)
Ah, OK. I will give feedback on that on Saturday.
Comment 14 Jan Stolarek 2012-10-13 02:29:59 CDT
(In reply to comment #12)
> In section [X-:*-Core]
> 
> Note: I'm always doing the changes manually in kdmrc file - so as not to
> overwrite by Control Center. :)

Adding TerminateServer=true in [X-:*-Core] section of /etc/trinity/kdm/kdmrc file solves both problems (with KDM and Trinity itself). Thanks! Nevertheless I consider this a workaround than a real solution.
Comment 15 Darrell 2012-10-30 18:23:16 CDT
Created attachment 944 [details]
Patch to add check box GUI control for tdmrc [X-:*-Core] TerminateServer

I cobbled together a patch to add a check box GUI control for the kdmrc/tdmrc [X-:*-Core] TerminateServer setting.

The new check box control is located in KControl->System Administration->Login Manager->Shutdown.

The check box is disabled when the user is not root.

I tested several ways and everything is functional. Sombody should review the patch and another person should test before pushing to GIT.

Slavek, you should be able to backport the patch to 3.5.13.1 if interested.

The patch does not resolve the original bug report. However, adding the GUI control should be popular because browsing the web reveals that this setting resolves many X related problems. The real question is why the setting is necessary in KDE/Trinity.
Comment 16 Darrell 2013-03-02 21:16:45 CST
Patch in attachment 944 [details] pushed to GIT in commit 882522b2.

This patch does not resolve the bug report but only adds a GUI control to an existing tdmrc configuration option.
Comment 17 Francois Andriot 2013-05-09 14:32:58 CDT
I confirm this bug on Mageia 2 x86_64, TDE 3.5.13.2~pre.
I've just installed up to tdebase (no other programs).
I'm using TDM, login to TDE, then logout.

Then the TSAK popup appears again, but in the grey zone where the black text should appear, everything is black.
The next screen (login/password) has black zones too.

Of course adding the "TerminateServer=true" workarounds the problem.
Comment 18 Slávek Banko 2013-05-29 12:53:06 CDT
The problem described in comment 0 and displayed on attachment 840 [details] should be resolved by commit 8b0d1b32 - see bug 1226.

However I'm afraid that the problem displayed on attachment 841 [details], attachment 862 [details] and described in comment 17, is not resolved by this patch.
Comment 19 Timothy Pearson 2013-06-23 22:44:51 CDT
I'm not sure this is TDE specific...there is at least one report of nVidia causing this exact same problem on KDE4:
http://phoronix.com/forums/showthread.php?15162-kdm-logout-crash-black-screen-on-next-login-on-KDE4-%28solved%29

Is it possible the new versions of kdm (or lightdm or whatever is currently used with KDE) terminate the X server by default?

From where I sit, the only reasonable courses of action are:
1.) do nothing, but add this issue to a known third part software problem list or
2.) add a blacklist whereby using nvidia (and possibly other drivers) automatically sets the TerminateServer option to true.

Thoughts?
Comment 20 Timothy Pearson 2013-06-23 22:49:52 CDT
Here is a more recent thread indicating the issue is nVidia specific and does affect more than just TDE:
http://www.linuxquestions.org/questions/slackware-14/nvidia-and-kdm-de-artifacts-4175411895/

Right now I am leaning toward adding a line in the release notes mentioning the problem and its (simple) point+click workaround in the TDM control center module.  Not all nVidia drivers/cards are affected, so a blacklist may become unweildy/obsolete/difficult to maintain very rapidly.

On a more philosophical level, either nVidia should fix their drivers or Xorg should add a workaround.  These kinds of hacks (blacklists) for known buggy/broken hardware really don't belong at the level of a desktop environment.
Comment 21 Jan Stolarek 2013-06-24 02:07:02 CDT
If this is a 3rd party issue, not TDE's, then I think that the workaround should be documented in user guide or release notes and we can consider the problem solved.
Comment 22 Darrell 2013-08-17 15:13:02 CDT
We have a GUI check box and the tool tip explains when to enable the option.

We have bug report 1367 to address the deletion of comments from tdmrc.

The tool tip should be sufficient but I can update the TDM handbook regarding the GUI check box if desired.

Should we close this report?
Comment 23 Jan Stolarek 2013-08-17 15:20:32 CDT
Yes, we can close it. Do we have "known bugs" section in the release notes? If so then perhaps it would be good to place information about this in there?
Comment 24 Darrell 2013-08-17 15:23:31 CDT
*** Bug 1401 has been marked as a duplicate of this bug. ***
Comment 25 Darrell 2013-08-17 16:02:08 CDT
I copied the tool tip text into the TDM help handbook. Commit 888a696a.