You are not logged in.

#1 2013-07-07 14:46:20

whirlpool
Member
Registered: 2013-07-06
Posts: 8

OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Good evening sirs.

I am using a fresh installation of KDE 4.10.5, a Radeon HD 7870 graphics card and the xf86-video-ati open source driver.
Unfortunately I am not able to use the effects of Kwin which require OpenGL.
When I try to set de compositing type from XRender to OpenGL there is no error but after I close and reopen the settings menu this is reset to XRender (without any warning!).


The reason is:
~/.xsession-errors

OpenGL vendor string:                   VMware, Inc.
OpenGL renderer string:                 Gallium 0.4 on llvmpipe (LLVM 3.2, 128 bits)
OpenGL version string:                  2.1 Mesa 9.1.4
OpenGL shading language version string: 1.20
Driver:                                 LLVMpipe
GPU class:                              Unknown
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           9.1.4
X server version:                       1.14.2
Linux kernel version:                   3.9.9
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
NO VSYNC! glXGetVideoSync, haveSwapInterval, glXIsDirect false false 1 
kwin(3689): OpenGL driver recommends XRender based compositing. Falling back to XRender. 
kwin(3689): To overwrite the detection use the environment variable KWIN_COMPOSE 
kwin(3689): For more information see http://community.kde.org/KWin/Environment_Variables#KWIN_COMPOSE 
kwin(3689): Failed to initialize compositing, compositing disabled 
kwin(3689): Consult http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up 
kwin(3689) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported 
kwin(3689) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported 
kwin(3689) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_wobblywindows"  is not supported 
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c001b6
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c001ad
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c001a4
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c0019b
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c00192
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c00189
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c00180
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x1c00177


Also the module seems to be loaded.

lsmod | grep radeon

radeon                754506  2 
i2c_algo_bit            5391  1 radeon
drm_kms_helper         35086  1 radeon
ttm                    65164  1 radeon
drm                   230077  4 ttm,drm_kms_helper,radeon
i2c_core               22479  5 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,radeon

I would be really grateful if anybody could help me to get this stuff running.

Kind regards,
0d680e5e4832d76f6930b14a2098c6a2c31017ebb2dbaedcf07a3d43eaefaf9b663ad79083ee3436e5f3a8d60d046d5c7ee7d986d727e94bbedfd0d085507fed

Last edited by whirlpool (2013-07-07 14:48:55)

Offline

#2 2013-07-07 17:52:04

Yggdrasil
Member
Registered: 2009-07-21
Posts: 37

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

You aren't using xf86-video-ati. You use llvmpipe which is a soft renderer in gallium (uses CPU, not GPU).

Check your X11 configuration:
https://wiki.archlinux.org/index.php/Ra … figuration

Offline

#3 2013-07-07 20:17:45

whirlpool
Member
Registered: 2013-07-06
Posts: 8

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Thank you very much for your response.

This is written at the configuration part:
Xorg will automatically load the driver and it will use your monitor's EDID to set the native resolution. Configuration is only required for tuning the driver.

So i tried to delete my /etc/X11/xorg.conf.d/*.conf files and run
  Xorg :0 -configure
which unfortunately threw errors because of some segmentation fault.

Because of that i could no longer use mouse and keyboard after reboot.
I reinstalled xorg-server and its dependencies which at least produced .conf files to use these two input devices once again... but my keyboard is now setup up with the us layout.
loadkeys de-latin1-nodeadkeys
responds with
  loadkeys de-latin1-nodeadkeys
    Loading /usr/share/kbd/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz
    assuming iso-8859-15 euro
--> still us layout

Could anyone write me the correct command to write the output of
  Xorg :0 -configure
into a file



I am slowly losing sanity... how complicated can a stupid setup of a graphics card driver get...
Sorry for not using code tags... but with a foreign keyboard layout i am not able to create them.

Last edited by whirlpool (2013-07-07 20:19:32)

Offline

#4 2013-07-07 20:33:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,723

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Why are you trying to run Xorg --configure ?

What is the output of pacman -Qs xf86-video
??

Last edited by ewaller (2013-07-07 20:33:46)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2013-07-07 21:20:54

andy_v
Member
From: Estonia
Registered: 2012-04-27
Posts: 31

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Radeon HD 7000 series and newer use glamor (instead of EXA) for 2D acceleration. Create a *.conf file in /etc/X11/xorg.conf.d/ and add the following line to it (make sure it's before the line containing 'EndSection'):

Option	"AccelMethod"   "glamor"

Offline

#6 2013-07-07 21:49:30

whirlpool
Member
Registered: 2013-07-06
Posts: 8

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

pacman -Qs xf86-video

local/xf86-video-ati 1:7.1.0-3 (xorg-drivers xorg)
    X.org ati video driver

I want to run

Xorg :0 -configure

to create all the necessary *.conf files by the X-Servers autodetection.
The problem is that I get an error while running the command above.
Is there any better way to create a "fresh" X installation?



Error when trying to create the X servers configuration files:

X.Org X Server 1.14.2
Release Date: 2013-06-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.9.7-1-ARCH x86_64 
Current Operating System: Linux neptun 3.9.9-1-ARCH #1 SMP PREEMPT Wed Jul 3 22:45:16 CEST 2013 x86_64
Kernel command line: cryptdevice=/dev/disk/by-uuid/7e5fe344-36ef-4ee6-95ed-5eece0eb20c1:cryptroot root=/dev/mapper/cryptroot ro initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux 
Build Date: 01 July 2013  10:48:42AM
 
Current version of pixman: 0.30.0
        Before reporting problems, check [url]http://wiki.x.org[/url]
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  8 00:01:51 2013
List of video drivers:
        radeon
        ati
(++) Using config file: "/root/xorg.conf.new"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
(EE) 
(EE) Backtrace:
(EE) 0: Xorg (xorg_backtrace+0x3d) [0x57f71d]
(EE) 1: Xorg (0x400000+0x183489) [0x583489]
(EE) 2: /usr/lib/libpthread.so.0 (0x7f7aefc20000+0xf0e0) [0x7f7aefc2f0e0]
(EE) 3: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f7aed8f8000+0x440b4) [0x7f7aed93c0b4]
(EE) 4: Xorg (DoConfigure+0xd46) [0x469426]
(EE) 5: Xorg (0x400000+0x7869a) [0x47869a]
(EE) 6: Xorg (0x400000+0x266d0) [0x4266d0]
(EE) 7: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7f7aeea81a15]
(EE) 8: Xorg (0x400000+0x26bfd) [0x426bfd]
(EE) 
(EE) Segmentation fault at address 0x18                                                                                                                                            
(EE)                                                                                                                                                                               
Fatal server error:                                                                                                                                                                
(EE) Caught signal 11 (Segmentation fault). Server aborting                                                                                                                        
(EE)                                                                                                                                                                               
(EE) 
Please consult the The X.Org Foundation support 
         at [url]http://wiki.x.org[/url]
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.

which seems to be a known problem:
https://bbs.archlinux.org/viewtopic.php?id=164147

Last edited by whirlpool (2013-07-07 22:21:04)

Offline

#7 2013-07-08 10:56:05

Yggdrasil
Member
Registered: 2009-07-21
Posts: 37

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Don't use -configure! Just do what is said here about manual configuration:
https://wiki.archlinux.org/index.php/Ra … figuration

About keyboard layout:
https://wiki.archlinux.org/index.php/Xo … t-plugging

Offline

#8 2013-07-08 19:02:32

whirlpool
Member
Registered: 2013-07-06
Posts: 8

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

Thank you for your help.

My keyboard is working again correctly.
Also I managed to get the radeon driver working (...kind of).

This is my current  20-radeon.conf

Section "Module"
        Load "dri2"
        Load "glamoregl" 
EndSection

Section "Device"
        Identifier "Radeon"
        Driver "radeon"
        Option  "RenderAccel"           "on"  #enabled by default on all radeon hardware
        Option  "AccelMethod"           "glamor" #valid options are XAA, EXA and Glamor. EXA is the default.
        Option  "EnablePageFlip"        "on"  #supported on all R/RV/RS4xx and older hardware and set off by default
        Option  "ColorTiling"           "on"  #enabled by default on RV300 and later radeon cards.
        Option  "AccelDFS"              "off"  #default is off, read the radeon manpage for more information
EndSection

I have problems with some of the title bars of the windows (white vertical stripes) and also some of the window effects do not work like they are supposed to (glitchy and kind of slow).
http://www10.pic-upload.de/08.07.13/qfezu3amk8p1.png

Has anyone an idea what might cause these?

Last edited by whirlpool (2013-07-08 19:03:25)

Offline

#9 2013-08-17 20:57:11

whirlpool
Member
Registered: 2013-07-06
Posts: 8

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

I managed to get rid of the false rendered title bars.
All I had to do was to change the qt-graphicssystem from

native

to

raster

Offline

#10 2013-08-27 18:26:38

tux_mind
Member
Registered: 2011-05-24
Posts: 3

Re: OpenGL is not working: KDE4.10.5 RadeonHD7870 xf86-video-ati

whirlpool wrote:

I managed to get rid of the false rendered title bars.
All I had to do was to change the qt-graphicssystem from

native

to

raster

thanks thanks thanks

this have solve my problem with slow performance with KWIN.

i'm on gentoo with the following "packages":

dev-qt/qtgui 4.8.4-r1(4)(16:27:29 08/26/13)(accessibility cups dbus exceptions gif glib mng qt3support tiff xinerama xv -aqua -c++0x -debug -egl -gtkstyle -nas -nis -pch -trace)
kde-base/kwin 4.10.5(4)(16:29:28 08/26/13)(gles opengl -aqua -debug)
media-libs/mesa 9.2.0_rc1(19:34:04 08/26/13)(classic egl gallium gbm gles1 gles2 llvm nptl opencl python_single_target_python2_7 python_targets_python2_7 r600-llvm-compiler video_cards_radeon video_cards_radeonsi -bindist -debug -kernel_FreeBSD -openvg -osmesa -pax_kernel -pic -python_single_target_python2_6 -python_targets_python2_6 -selinux -vdpau -video_cards_freedreno -video_cards_i915 -video_cards_i965 -video_cards_ilo -video_cards_intel -video_cards_nouveau -video_cards_r100 -video_cards_r200 -video_cards_r300 -video_cards_r600 -video_cards_vmware -wayland -xa -xorg -xvmc)
x11-base/xorg-drivers 1.13(00:27:33 08/27/13)(input_devices_evdev input_devices_keyboard input_devices_mouse video_cards_radeon -input_devices_acecad -input_devices_aiptek -input_devices_elographics -input_devices_fpit -input_devices_hyperpen -input_devices_joystick -input_devices_mutouch -input_devices_penmount -input_devices_synaptics -input_devices_tslib -input_devices_vmmouse -input_devices_void -input_devices_wacom -video_cards_apm -video_cards_ark -video_cards_ast -video_cards_chips -video_cards_cirrus -video_cards_dummy -video_cards_epson -video_cards_fbdev -video_cards_fglrx -video_cards_geode -video_cards_glint -video_cards_i128 -video_cards_i740 -video_cards_intel -video_cards_mach64 -video_cards_mga -video_cards_modesetting -video_cards_neomagic -video_cards_newport -video_cards_nouveau -video_cards_nv -video_cards_nvidia -video_cards_omap -video_cards_omapfb -video_cards_qxl -video_cards_r128 -video_cards_rendition -video_cards_s3 -video_cards_s3virge -video_cards_savage -video_cards_siliconmotion -video_cards_sis -video_cards_sisusb -video_cards_sunbw2 -video_cards_suncg14 -video_cards_suncg3 -video_cards_suncg6 -video_cards_sunffb -video_cards_sunleo -video_cards_suntcx -video_cards_tdfx -video_cards_tga -video_cards_trident -video_cards_tseng -video_cards_v4l -video_cards_vesa -video_cards_via -video_cards_virtualbox -video_cards_vmware -video_cards_voodoo)
x11-base/xorg-server 1.13.4(0/1.13.4)(19:35:12 08/26/13)(ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal -selinux -static-libs -tslib -xnest -xvfb)
x11-drivers/xf86-video-ati 7.2.0(19:38:27 08/26/13)(glamor udev)
x11-libs/glamor 9999(19:43:26 08/26/13)(-gles -static-libs)

and i get everything works well now.

many thanks buddy!

i hope this post will help someoneelse

HINT:
glamor-9999 it's from x11 overlay

Offline

Board footer

Powered by FluxBB