Bug 275803

Summary: Can't start desktop effect with a Nvidia 7300GT card
Product: [Plasma] kwin Reporter: DerekYe <DerekYe89>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: russianneuromancer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: glxinfo
kwin logs

Description DerekYe 2011-06-16 12:02:19 UTC
Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

[root@Derek ~]# lspci -v | grep -A13 VGA
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: COMPAL Electronics Inc Device 0012
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d5000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d4000000 (64-bit, non-prefetchable) [size=16M]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [60] Power Management version 2
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb
[root@Derek ~]# kwin -v
Qt: 4.7.2
KDE Development Platform: 4.6.3 (4.6.3)
KWin: 4.6.3 (4.6.3)
[root@Derek ~]# cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 275.09.07  (buildmeister@swio-display-x86-rhel47-03.nvidia.com)  Wed Jun  8 16:05:17 PDT 2011


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

[root@Derek ~]# rpm -q kernel-PAE
kernel-PAE-2.6.38.8-32.fc15.i686
[root@Derek ~]# cat /home/derek/.kde/share/config/kwinrc 
[$Version]
update_info=kwin3_plugin.upd:kde3.2,kwin_focus2.upd:kwin_focus2,kwin.upd:kde3.0r1,kwin.upd:kde3.2Xinerama,kwin_focus1.upd:kwin_focus1,kwin_on_off.upd:kwin_on_off

[Compositing]
AnimationSpeed=3
CheckIsSafe=false
Enabled=true
OpenGLIsUnsafe=false

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[Effect-BoxSwitch]
TabBox=true

[Effect-CoverSwitch]
TabBox=false

[Effect-FlipSwitch]
TabBox=false

[Effect-PresentWindows]
TabBox=false

[Plugins]
kwin4_effect_blurEnabled=true
kwin4_effect_boxswitchEnabled=true
kwin4_effect_coverswitchEnabled=false
kwin4_effect_cubeEnabled=false
kwin4_effect_cubeslideEnabled=false
kwin4_effect_dashboardEnabled=true
kwin4_effect_desktopgridEnabled=false
kwin4_effect_dialogparentEnabled=false
kwin4_effect_diminactiveEnabled=false
kwin4_effect_dimscreenEnabled=false
kwin4_effect_explosionEnabled=false
kwin4_effect_fadeEnabled=true
kwin4_effect_fadedesktopEnabled=false
kwin4_effect_fallapartEnabled=false
kwin4_effect_flipswitchEnabled=false
kwin4_effect_glideEnabled=false
kwin4_effect_highlightwindowEnabled=true
kwin4_effect_invertEnabled=false
kwin4_effect_loginEnabled=true
kwin4_effect_logoutEnabled=true
kwin4_effect_lookingglassEnabled=false
kwin4_effect_magiclampEnabled=false
kwin4_effect_magnifierEnabled=false
kwin4_effect_minimizeanimationEnabled=false
kwin4_effect_mousemarkEnabled=false
kwin4_effect_presentwindowsEnabled=false
kwin4_effect_resizeEnabled=false
kwin4_effect_scaleinEnabled=false
kwin4_effect_screenshotEnabled=true
kwin4_effect_shadowEnabled=false
kwin4_effect_sharpenEnabled=false
kwin4_effect_sheetEnabled=false
kwin4_effect_showfpsEnabled=false
kwin4_effect_showpaintEnabled=false
kwin4_effect_slideEnabled=true
kwin4_effect_slidebackEnabled=false
kwin4_effect_slidingpopupsEnabled=true
kwin4_effect_snaphelperEnabled=false
kwin4_effect_snowEnabled=false
kwin4_effect_startupfeedbackEnabled=true
kwin4_effect_taskbarthumbnailEnabled=true
kwin4_effect_thumbnailasideEnabled=false
kwin4_effect_trackmouseEnabled=false
kwin4_effect_translucencyEnabled=true
kwin4_effect_windowgeometryEnabled=false
kwin4_effect_wobblywindowsEnabled=false
kwin4_effect_zoomEnabled=true

[TabBox]
ListMode=0
ShowTabBox=true

[Windows]
AutoRaise=false
CheckIsSafe=false
ClickRaise=true
DisableChecks=true
IgnoreFocusStealingClasses=kio_uiserver
OpenGLIsUnsafe=false

I tried Rpmfusion kmod-nvidia/akmod-nvidia and Nvidia offical driver, none of them can enable desktop effect on my laptop.

Reproducible: Always

Steps to Reproduce:
Try to enable desktop effect

Actual Results:  
Can't enable or desktop freezed

Expected Results:  
Desktop effect enabled
Comment 1 Thomas Lübking 2011-06-16 17:41:55 UTC
a) set this to "true"
[Compositing]
...
CheckIsSafe=false -> CheckIsSafe=true

b) the "[Windows]" group is completely borked (but that's hardly the reason for this issue)

c) the relevant info would be "glxinfo" (don't post, but attach it!)
-> Does /any/ openGL application work for you (try glxgears)
The xrender backend ("kcmshell4 kwincompositing", third tab) should still work, though.

d) another relevant info would be the terminal out of "kwin --replace &"

e) Try to downgrade the driver *below* 270.x
Comment 2 DerekYe 2011-06-17 03:21:33 UTC
Created attachment 61068 [details]
glxinfo

(In reply to comment #1)
> a) set this to "true"
> [Compositing]
> ...
> CheckIsSafe=false -> CheckIsSafe=true
Still don't works

> 
> b) the "[Windows]" group is completely borked (but that's hardly the reason for
> this issue)
> 
> c) the relevant info would be "glxinfo" (don't post, but attach it!)
> -> Does /any/ openGL application work for you (try glxgears)
Yeah, glxgears works.
$ glxgears 
4539 frames in 5.0 seconds = 907.541 FPS
5338 frames in 5.0 seconds = 1067.525 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 79 requests (79 known processed) with 0 events remaining.

> The xrender backend ("kcmshell4 kwincompositing", third tab) should still work,
> though.
> 
> d) another relevant info would be the terminal out of "kwin --replace &"
> 
$ kwin --replace &
[1] 3374
bash-4.2$ OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7300/PCI/SSE2
OpenGL version string:                  2.1.2 NVIDIA 275.09.07
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         275.9.7
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
Linux kernel version:                   2.6.38
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes

> e) Try to downgrade the driver *below* 270.x
Comment 3 Thomas Lübking 2011-06-17 18:19:14 UTC
There's no error message - it looks like compositing /is/ activated.

So please specify "Can't enable or desktop freezed".

Is the GUI really frozen (no updates? Can you still move the pointer? Switch to VT1 by ctrl+alt+f1?) or do you just think compositing is not active (eg. because the panel is not translucent)
In the latter case, can you set a window to be translucent? (right click the titlebar, set an opacity below 100%)

Also please run "kdebugdialog", filter for kwin and check the two kwin entries (2012 & 1735, the latter number is probably not not shown - "kwin4" is a game and the client errors are hardly related).
Apply and then again start "kwin --replace &"
Comment 4 Martin Flöser 2011-06-26 09:28:00 UTC
please answer questions from comment #3. Please also note that in case of user support http://forum.kde.org is the better place than a technical issue tracking.
Comment 5 DerekYe 2011-06-27 01:43:10 UTC
(In reply to comment #3)
> There's no error message - it looks like compositing /is/ activated.
> 
> So please specify "Can't enable or desktop freezed".
> 
> 
Is the GUI really frozen (no updates?
no, just no response for a while, and desktop effect don't enabled.

Can you still move the pointer?
Yes I can, after frozen for a while, I can move. But when I logout and relogin, I can't enter the desktop environment.

Switch to VT1 by ctrl+alt+f1? 
Don't works.

or do you just think compositing is not active (eg. because the panel is not translucent)
When I checked "Enable desktop effect" check box, and try to apply, no confirm  window is poped, after about 10 seconds frozen, the "Enable desktop effect" check box remain unchecked.

> In the latter case, can you set a window to be translucent? (right click the
> titlebar, set an opacity below 100%)
> 
> Also please run "kdebugdialog", filter for kwin and check the two kwin entries
> (2012 & 1735, the latter number is probably not not shown - "kwin4" is a game
> and the client errors are hardly related).
> Apply and then again start "kwin --replace &"
I'll upload log later
Comment 6 DerekYe 2011-06-27 03:34:05 UTC
Created attachment 61354 [details]
kwin logs
Comment 7 RussianNeuroMancer 2011-11-30 03:26:32 UTC
Same problem on 7300 Go and 7400 Go, but it's regression in nVidia proprietary driver that present since 270.* (at least for me). In my opinion this is not KWin issue because it's not reproduced with nouveau and nVidia proprietary driver 173, 256, 260, 265.

I suggest you switch to nouveau or nVidia driver 173 and contact with nVidia tech. support: http://nvidia.custhelp.com/app/ask (also it's will be nice if you publish ticket number here).
Comment 8 Thomas Lübking 2011-11-30 12:26:23 UTC
Sorry, this somehow dropped from the table ;-)

Nvidia will likely ask you to provide a core dump and to further investigate this 
from kwin, you'll also have to be able to "use the system while it's broken" so ideally you'd have ssh access to that machine but at least ensure this flag is in the server section of /etc/X11/xorg.conf

Section "ServerFlags"
    ........
    Option         "DontVTSwitch" "false"
    .....
EndSection

If you still cannot switch to VT1, your kernel is stalled - big time trouble :-(

Also ensure that your driver "matches" your X11 version
ie. was not released ABI compatible for an older X11 (270 added support for 1.10) - the glxgears has an X11 IO error which -despite the claim it works- is not supposed to be there.
Comment 9 Thomas Lübking 2013-05-11 22:27:36 UTC
Whatever the issue was, it's a little outdated ;-)
Comment 10 RussianNeuroMancer 2013-05-12 02:53:57 UTC
Issue was in proprietary driver. It was fixed around 304 driver release (one and half years later from first contact with tech. support about this issue).
I'm sorry that I forgot about this bugreport and doesn't write about fix on nVidia side here :(