Enable properly working openGL 3.1 native animations in KWIN on Intel GPU (i915)

From Manjaro Linux
Jump to: navigation, search

Intel.pngKde-logo-oxygen.jpg

Problem description

In default KWIN use openGL 2.0 raster or Xrender raster settings instead openGL 3.1 for rendering animations. If openGL 3.1 native will be forced, after reboot KWIN will be crashed openGL and all windows entries will be black. After restart kwin - will be normal. This issue is now not offcial solved, but in 2010 year member KDE Community Forum found the solution of this issue.

This tip is only for users Intel i915 GPU Series.

Solution

Ceate a backup file:

cp ~/.kde4/share/config/kwinrc ~/.kde4/share/config/kwinrc.old

Edit a file:

kate ~/.kde4/share/config/kwinrc

Replace default [Compositing] section for:

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

Save changes in the file. Create new file

kate ~/.drirc

with code:

<driconf>
   <device screen="0" driver="i915">
       <application name="Default">
           <option name="force_s3tc_enable" value="false" />
           <option name="no_rast" value="false" />
           <option name="always_flush_cache" value="false" />
           <option name="early_z" value="false" />
           <option name="stub_occlusion_query" value="false" />
           <option name="always_flush_batch" value="false" />
           <option name="bo_reuse" value="1" />
           <option name="texture_tiling" value="true" />
           <option name="vblank_mode" value="3" />
           <option name="allow_large_textures" value="2" />
           <option name="fragment_shader" value="true" />
       </application>
       <application name="Default" executable="kwin">
           <option name="force_s3tc_enable" value="false" />
           <option name="no_rast" value="false" />
           <option name="vblank_mode" value="3" />
           <option name="always_flush_cache" value="false" />
           <option name="stub_occlusion_query" value="false" />
           <option name="always_flush_batch" value="false" />
           <option name="bo_reuse" value="1" />
           <option name="texture_tiling" value="true" />
           <option name="early_z" value="false" />
           <option name="allow_large_textures" value="2" />
           <option name="fragment_shader" value="false" />
       </application>
   </device>
</driconf>

Save changes in the file. Set in KDE Animations settings: openGL 3.1 native and reboot.

Support

Official forum topic: [1]

See Also

KDE Forum

freedesktop.org