Gentoo Archives: gentoo-user

From: Robin Atwood <robin.atwood@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Radeon KMS driver - what benefits?
Date: Tue, 23 Nov 2010 12:19:43
Message-Id: 201011231917.48074.robin.atwood@attglobal.net
In Reply to: Re: [gentoo-user] Re: Radeon KMS driver - what benefits? by Robin Atwood
1 On Tuesday 23 November 2010, Robin Atwood wrote:
2 > On Tuesday 23 November 2010, Nikos Chantziaras wrote:
3 > > On 11/23/2010 02:20 AM, Robin Atwood wrote:
4 > > > On Tuesday 23 November 2010, Nikos Chantziaras wrote:
5 > > >> On 11/22/2010 09:40 PM, Robin Atwood wrote:
6 > > >>> On Tuesday 23 November 2010, Nikos Chantziaras wrote:
7 > > >>>> On 11/22/2010 07:02 PM, Robin Atwood wrote:
8 > > >>>>> I have just gone through the steps to use the Radeon KMS driver on
9 > > >>>>> my old laptop which has an RV350 [Mobility Radeon 9600 M10].
10 > > >>>>> Everything seems to work all right and I get the right "render
11 > > >>>>> string" from glxinfo. However, I thought it might enable
12 > > >>>>> compositing to work on the KDE4 desktop but there is no change.
13 > > >>>>> What's more, glxgears used to give about 2200 FPS but now it's 50!
14 > > >>>>> So have I been wasting my time?
15 > > >>>>
16 > > >>>> You have to enable compositing yourself in System Settings.
17 > > >>>
18 > > >>> Of course, but it didn't take.
19 > > >>>
20 > > >>>> KMS means you're using DRI2 now, which results in a VSync'ed OpenGL
21 > > >>>> rendering. Though I'd expect 60FPS because of VSync, not 50 :-P
22 > > >>>>
23 > > >>>> One other thing you should do is to enable the "gallium" USE flag
24 > > >>>> and
25 > > >>>>
26 > > >>>> re-emerge Mesa. Then switch to the Gallium driver using:
27 > > >>>> eselect mesa r300 gallium
28 > > >>>>
29 > > >>>> Because that driver is the recommended one for your hardware (R300).
30 > > >>>> The classic driver should be avoided.
31 > > >>>
32 > > >>> Thanks, I would try that, but...
33 > > >>>
34 > > >>> # emerge -av media-libs/mesa
35 > > >>>
36 > > >>> These are the packages that would be merged, in order:
37 > > >>>
38 > > >>> Calculating dependencies... done!
39 > > >>> [ebuild U ] x11-libs/libX11-1.4.0 [1.3.6] USE="-doc -ipv6
40 > > >>> -static-libs - test (-xcb%*)" 2,036 kB
41 > > >>> [ebuild R ] media-libs/mesa-7.8.2 USE="nptl pic xcb -debug
42 > > >>> (-gallium) - motif (-selinux)" VIDEO_CARDS="radeon -intel -mach64
43 > > >>> -mga -nouveau -r128 - savage -sis -svga -tdfx -via" 0 kB
44 > > >>>
45 > > >>> I set "gallium" in /etc/make.conf but (-gallium) means the flag is
46 > > >>> turned off in a profile somewhere?
47 > > >>
48 > > >> Oh, you're not on ~arch. I assumed to much. I don't know how that
49 > > >> works on old versions of the drivers and Mesa, or whether Gallium3D
50 > > >> was any good with old versions of Mesa. I can only confirm that it
51 > > >> works on recent versions.
52 > > >>
53 > > >> For your KDE problem, try adding/changing these in your
54 > > >>
55 > > >> ~/.kde4/share/config/kwinrc:
56 > > >> [Compositing]
57 > > >> Backend=OpenGL
58 > > >> CheckIsSafe=false
59 > > >> DisableChecks=true
60 > > >> Enabled=true
61 > > >> GLDirect=true
62 > > >> GLTextureFilter=1
63 > > >> GLVSync=false
64 > > >> OpenGLIsUnsafe=false
65 > > >
66 > > > When I try to enable compositing KDE gives a message that it's not
67 > > > possible. Setting "Disable checks" also gives an error message. So I
68 > > > cannot see any actual benefit.
69 > >
70 > > Try the whole thing I posted, because some of the settings do *not* have
71 > > a GUI button and can only be enabled/disabled by editing kwinrc.
72 >
73 > Nah, the desktop failed to load. I am now trying mesa-7.9 from the x11
74 > overlay.
75
76 Mesa 7.9 allows you to use eselect to set the gallium driver but it *still*
77 doesn't make any difference. OTOH, it doesn't seem to do any harm so I will
78 leave the new driver in place in the hope that in the future it will improve.
79 ;)
80
81 -Robin
82 --
83 ----------------------------------------------------------------------
84 Robin Atwood.
85
86 "Ship me somewheres east of Suez, where the best is like the worst,
87 Where there ain't no Ten Commandments an' a man can raise a thirst"
88 from "Mandalay" by Rudyard Kipling
89 ----------------------------------------------------------------------