Archív kategorií: Ubuntu

Older notes about Ati Radeon and why I can’t play new games

Could not find required OpenGL entry point glColorMaskIndexedEXT

Driver  „radeon“

xserver-xorg-video-ati (6.99.99)
[    29.467] (II) Module radeon: vendor=“X.Org Foundation“
[    29.467]     compiled for 1.11.3, module version = 6.99.99

~$ glxinfo | grep pen
OpenGL vendor string: X.Org R300 Project
OpenGL renderer string: Gallium 0.4 on ATI RV570
OpenGL version string: 2.1 Mesa 9.0
OpenGL shading language version string: 1.20
OpenGL extensions:

lspci -nn | grep VGA
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV570 [Radeon X1950 PRO] [1002:7280]

This is not about Xorg. This is a kernel module. You do not need a newer Xorg.

Linux GL drivers work like this:
In the kernel there is a DRM module which does the direct access to the hardware. It is used by the DRI drivers. libdrm acts as a kind of glue between these two.

Linux drivers consist of multiple parts, for 3D acceleration the most important are:
1) Mesa with DRI drivers.
2) The hardware-specific kernel module
3) Other stuff such as libdrm, the X driver, generic stuff in the kernel, etc.

The problem here is that 2) is rather outdated in kernels commonly used. The current version of 2) is not yet part of the mainstream kernel (I suppose Linus wants it to be tested more before it will be unleashed on all Linux users). AFAIK 1) and 3) are already capable of OpenGL 2.1 in current distros.

miro@uhlie:~/.local/share/Steam/SteamApps/common/Half-Life 2$ ./

Mesa ver    date    OpenGl ver
10.0    (2013-11-30)[9]     3.3
9.0     (2012-10-08)     3.1
8.0     (2012-02-08)     3.0
7.0     (2007-06-22)     2.1

Error: ./ does not support version
default:v2:i686:lib::none:3.2.0-60-generic-pae; make sure that the version is being
correctly set by –iscurrentdistro

+ update
2a – newer version of radeon module:
[    28.915] (II) Module radeon: vendor=“X.Org Foundation“
[    28.915]     compiled for 1.12.3, module version = 7.1.99
2b – Mesa 9.2.0 (vs 9.0)
Hl2 aj tak nejde…


[   669.851] (II) Loading /usr/lib/xorg/modules/drivers/
[   669.851] (II) Module radeon: vendor=“X.Org Foundation“
[   669.851]     compiled for 1.11.3, module version = 6.99.99

[   669.870] (II) Loading /usr/lib/xorg/modules/drivers/
[   669.871] (II) [KMS] drm report modesetting isn’t supported.

[   670.117] (II) UnloadModule: „radeon“
[   670.117] (II) Unloading radeon

After update to Xubuntu 14

[    35.475] (II) Module glx: vendor=“X.Org Foundation“
[    35.475]    compiled for 1.15.1, module version = 1.0.0

[    35.475] (II) LoadModule: „radeon“
[    35.476] (II) Loading /usr/lib/xorg/modules/drivers/
[    35.544] (II) Module radeon: vendor=“X.Org Foundation“
[    35.544]    compiled for 1.15.1, module version = 7.3.0
[    35.544]    Module class: X.Org Video Driver
[    35.544]    ABI class: X.Org Video Driver, version 15.0

[    36.260] (II) config/udev: Adding drm device (/dev/dri/card0)

miro@uhlie:~$ glxinfo | grep pen
OpenGL vendor string: X.Org R300 Project
OpenGL renderer string: Gallium 0.4 on ATI RV570
OpenGL version string: 2.1 Mesa 10.1.3
OpenGL shading language version string: 1.20

02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV570 [Radeon X1950 PRO] [1002:7280]

==== 2014-10 ====
To get a slightly newer version of the OpenGl drivers, I would recommend the oibaf drivers from the launchpad website – these implement OpenGl 3.0, and are pretty stable.

To install open a terminal window and enter

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade

To remove, you can use ppa-purge

sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers

miro@uhlie:~/work/burza/run_linux$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 2.1 Mesa 10.4.0-devel (git-6862723 2014-09-30 trusty-oibaf-ppa)
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.4.0-devel (git-6862723 2014-09-30 trusty-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

Radeon feature matrix:
(R300,R400,R500 = Gl2.1)
support OpenGL 2.0
X1950 = R520/580

This system DOES NOT support the OpenGL extension
Could not find required OpenGL entry point ‘
‘! Either your video card is unsupported, or your OpenGL driver needs to be updated.

Mesa 7.9 Release Notes / October 4, 2010
GL_EXT_draw_buffers2 (in nv50, r600, softpipe, and llvmpipe Gallium drivers)

Mam par rokov stare PC, mam v nom akcelerovanu graficku kartu a tak som si chcel zahrat niektore hry.

A prisiel som na neprijemnu skutocnost, ze niektore novsie mi nepojdu, nech sa aj rozkrajam (finale mojho vyskumu).

Hra: Half Life 2 released in: 2004
Karta: Radeon X1950 PRO released in: 2006 (novsia ako hra)

Install AMD Catalyst latest driver 14.9 9/29/2014
Install fglrx 13.350 from repos

Changing from Radeon to Nvidia, from official to noveau driver

Graphics card:  Nvidia GTX 460 (supported by noveau driver, codename NVC0 / Fermi)

Trying nouveau driver, problems that no KMS is enabled:
[ 29.825] (EE) [drm] KMS not enabled
[ 29.826] (EE) No devices detected.

Displaying cat /var/log/kern.log |grep fb0: shows that there is no FrameBuffer assigned. It should show:
fb0: nouveaufb frame buffer device.


KMS could not be enabled, FB:0 is still not set … tried to install noveau.ko through insmod but it was hard (because you have to install dependencies manually)
dmesg | tail (shows errors from insmod)
uname -r
cd /lib/modules/3.13.0-43-generic/kernel/drivers

$ sudo insmod ./platform/x86/wmi.ko
$ sudo insmod ./platform/x86/mxm-wmi.ko
$ sudo insmod ./gpu/drm/nouveau/nouveau.ko
$ sudo insmod ./i2c/algos/i2c-algo-bit.ko
$ sudo insmod ./acpi/video.ko
$ sudo insmod ./gpu/drm/nouveau/nouveau.ko

nouveau module was loaded, I had to load it manually and also dependencies:


through sudo modprobe <name>
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/platform/x86/wmi.ko

/lib/modules/$(uname -r)/kernel/drivers/platform/x86/wmi.ko
/lib/modules/$(uname -r)/kernel/drivers/platform/x86/mxm-wmi.ko
/lib/modules/$(uname -r)/kernel/drivers/platform/x86/wmi.ko
/lib/modules/$(uname -r)/kernel/drivers/platform/x86/wmi.ko
/lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/nouveau.ko

How to load them permanently:
1) add them to /etc/modules (only names nothing more)
2) sudo update-initramfs -u
The update-initramfs script manages your initramfs images on your local box.

But still nouveau was loaded manually, framebuffer was  assigned, but after reboot all modules except nouveau were loaded.

After more googling found that it was maybe blacklisted. And really, search in the /etc/modprobe.d/ found that file nvidia-current_hybrid.conf contained:
# This file was installed by nvidia-current
# Do not edit this file manually
blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

Started working
After commenting these out nouveau started to work after reboot. Problems:
* Can’t wake up from sleep. Display shows, but freezes, can’t even change to console.

Desktop performance: great. But sometimes flash of older screen (screensaver for example) flashes in Chrome.
Neverball (3d): all good.
Fez: fine, better and smoother than on radeon.
Quake 3: good as usual.
Spy chameleon RGB agent: all good.
Gratitious space battles: all good
Nexuiz: all good
Etherlords through wine 1.6: missing textures. very choppy.

Big problem: after sleep / wakeup any 3D application stops working / or hangs pc.

Interesting reading:
Benchmarks of Windows 8 Pro, Ubuntu 13.10 with Nouveau, and Ubuntu 13.10 with proprietary NVIDIA driver; with GeForce 9800GTX, GTX 460, GTX 680.

NVIDIA on Linux

Comparison of proprietary NVIDIA driver with NOVEAU open-source fan-based driver
June 2010 : Noveau gives some performance, but nvidia driver is 5-times better.

A lot info about how Nvidia GTX 460 works on Linux:

Solution for issue with installing nvidia 331 driver – conflict of packages:

How to install newer driver (340) than in repos (331):
(I’m installing 346)

Radeon 1950 pro (RV570) on Ubuntu 12

1) Had problem:
– low resolution
– poor performance (2d too)
– glxinfo showed that it uses software driver
– to have at least any graphics I had to remove xorg.conf (removed it to use auto config, previously it used nv driver)
– when created it and set driver to ‘radeon’ it failed to load, log:

(II) Loading /usr/lib/xorg/modules/drivers/
(II) [KMS] drm report modesetting isn’t supported.
(II) UnloadModule: „radeon“

Reason for radeon load fail: boot parameter „nomodeset“. After removing it the driver started to work. (hint for this: )
2) after reboot card did not get correct graphic modes, I had only 640×480. I had to disable ‘hsync’ & ‘vsync’ limit params in xorg.conf section, they were causing higher mode unavailability
3) it still did not find the largest resolution, I had to add it manually with:
– even after that it was not permanent. I can set the mode with xrandr call, it was added to xorg.conf, is displayed in GUI settings of monitor, but it can’t be set from that option (after reboot I see 2nd best resolution)
– fixed by advice from – added xorg.conf line Option         „PreferredMode“ „1280x1024_60.00“ to section Monitor
4) Game „vessel“ tell me: ERROR: Missing required OpenGL extensions: – GL_EXT_draw_buffers2
glxinfo says:
client glx vendor string: Mesa Project and SGI
OpenGL version string: 2.1 Mesa 9.0
I’m probably lacking latest Mesa driver (v 10) to support latest OpenGl – (10.0     (2013-11-30)  9.0 – 2012-10-08) … but there is no easy way how to install Mesa 10 to my Ubuntu 12.04.

– call „glxinfo“ shows good results:
OpenGL renderer string: Gallium 0.4 on ATI RV570

– some hints :
– comparison of radeon vs fglrx:
– ubuntu basic info :
– comparison XAA EXA UXA :
3) –
4) –

Bad Sound in Wine under Ubuntu

Strange crackling noises in Wine games and winecfg sound test?

1. Edit your /etc/pulse/daemon.conf
2. Scroll down to the line that reads „default-fragment-size-msec = 10“
3. Change the 10 to a 5 and save.
4. Restart pulseaudio or reboot. Maybe. I called „sudo /etc/init.d/pulseaudio restart“ but got no output, so this might not be required.

kill pulse audio daemon or
sudo pulseaudio -k