Archív kategorií: Ubuntu

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

https://help.ubuntu.com/community/RadeonDriver

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.

export MESA_EXTENSION_OVERRIDE=GL_EXT_draw_buffers2
miro@uhlie:~/.local/share/Steam/SteamApps/common/Half-Life 2$ ./hl2.sh

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

—————
https://help.ubuntu.com/community/BinaryDriverHowto/
1)
http://www2.ati.com/drivers/linux/ati-driver-installer-9-3-x86.x86_64.run
Error: ./default_policy.sh 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

2)
https://launchpad.net/~xorg-edgers/+archive/ppa
+ 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…

http://askubuntu.com/questions/124292/what-is-the-correct-way-to-install-proprietary-ati-catalyst-video-drivers-fglrx

==============
==============

[   669.851] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[   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/radeon_drv.so
[   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/radeon_drv.so
[    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 ====

http://askubuntu.com/questions/501560/how-to-update-opengl-driver-on-ubuntu-14-04-lts
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:
http://xorg.freedesktop.org/wiki/RadeonFeature/
(R300,R400,R500 = Gl2.1)
http://en.wikipedia.org/wiki/ATi_Radeon_R300_Series
http://en.wikipedia.org/wiki/Radeon_X1000_Series#X1900_and_X1950_series
support OpenGL 2.0
X1950 = R520/580

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

Mesa 7.9 Release Notes / October 4, 2010
http://www.mesa3d.org/relnotes/7.9.html
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)

http://devgurus.amd.com/community/steam-linux/

2014-10-02
Options:
Install AMD Catalyst latest driver 14.9 9/29/2014 http://support.amd.com/en-us/download/desktop?os=Linux+x86
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.

Reading:
http://nouveau.freedesktop.org/wiki/KernelModeSetting/
http://unix.stackexchange.com/questions/83319/how-can-i-know-if-the-current-kernel-was-compiled-with-a-certain-option-enabled

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:

drm
drm_kms_helper
ttm
wmi
mxm_wmi
i2c-algo-bit
video
nouveau

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

path:
/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.
Games:
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.
http://www.phoronix.com/scan.php?page=article&item=nvidia_windows8_geforce&num=7

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.
http://www.phoronix.com/scan.php?page=article&item=nouveau_gallium3d_june10&num=3

A lot info about how Nvidia GTX 460 works on Linux:
http://www.phoronix.com/scan.php?page=article&item=nvidia_geforce_gtx460&num=5

Solution for issue with installing nvidia 331 driver – conflict of packages:
http://askubuntu.com/questions/449507/nvidia-libopencl1-331-has-to-be-removed-before-installing-wine

How to install newer driver (340) than in repos (331):
http://linuxg.net/how-to-install-the-nvidia-340-24-driver-on-ubuntu-14-04-ubuntu-13-10-ubuntu-12-04-and-derivative-systems/
http://linuxg.net/how-to-install-the-nvidia-343-13-beta-on-ubuntu-14-04-and-derivative-systems/
(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/radeon_drv.so
(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: http://www.bitchx.com/log/radeon-f/radeon-f-30-May-2010/radeon-f-30-May-2010-00.php )
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: http://askubuntu.com/questions/271801/configure-modeline-ubuntu-12-04
– 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 https://wiki.ubuntu.com/X/Config/Resolution#Adding_undetected_resolutions – 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.

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

Reading:
– some hints : https://wiki.archlinux.org/index.php/ATI
– comparison of radeon vs fglrx: http://wiki.cchtml.com/index.php/Glxgears_is_not_a_Benchmark
– ubuntu basic info : https://help.ubuntu.com/community/RadeonDriver
– comparison XAA EXA UXA : https://kyberia.sk/id/5050946/
3) – https://wiki.ubuntu.com/X/Config/Resolution#Adding_undetected_resolutions
4) – http://www.mesa3d.org/
– http://en.wikipedia.org/wiki/Mesa_%28computer_graphics%29

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.

http://dotcadot.ca/articles/bad-sound-wine-14-under-ubuntu-1204-x64

kill pulse audio daemon or
sudo pulseaudio -k
http://askubuntu.com/questions/15223/how-can-i-restart-pulseaudio-without-logout