← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: AMD PowerXpress hybrid graphics -- Catalyst 11.4 pre-release testing

 

Hi,

For natty, package in bkoken I can confirm. To solve this I must relink
manually libs to allow "switch" (not 3D under i915 that I didn't
understand)  like :
#When on ATI : 


#ls -l /usr/lib/xorg/modules/extensions/ | grep libglx
#-rw-r--r-- 1 root root 342568 2011-04-19 17:41 FGL.renamed.libglx.so
#lrwxrwxrwx 1 root root     21 2011-05-01 13:20 libglx.so -> fglrx/fglrx-libglx.so

#ls -l /usr/lib/libGL.* | grep libGL
#lrwxrwxrwx 1 root root 24 2011-05-01 13:20 /usr/lib/libGL.so -> fglrx/fglrx-libGL.so.1.2
#lrwxrwxrwx 1 root root 24 2011-05-01 13:20 /usr/lib/libGL.so.1 -> fglrx/fglrx-libGL.so.1.2
#lrwxrwxrwx 1 root root 24 2011-05-01 13:20 /usr/lib/libGL.so.1.2 -> fglrx/fglrx-libGL.so.1.2



#when switching on Intel :

#ls -l /usr/lib/xorg/modules/extensions/ | grep libglx
#-rw-r--r-- 1 root root 342568 2011-04-19 17:41 FGL.renamed.libglx.so
#lrwxrwxrwx 1 root root     21 2011-05-01 13:24 libglx.so -> FGL.renamed.libglx.so

#ls -l /usr/lib/libGL.*
#lrwxrwxrwx 1 root root 24 2011-05-01 11:07 /usr/lib/libGL.so -> FGL.renamed.libGL.so.1.2
#lrwxrwxrwx 1 root root 24 2011-05-01 11:07 /usr/lib/libGL.so.1 -> FGL.renamed.libGL.so.1.2
#lrwxrwxrwx 1 root root 24 2011-05-01 11:07 /usr/lib/libGL.so.1.2 -> FGL.renamed.libGL.so.1.2


Some directories are not in the correct place and some library too...

I made this script for natty based on my notes :

#!/bin/sh 

mkdir /usr/lib/fglrx/xorg/modules/extensions/fglrx/
mv /usr/lib/fglrx/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/FGL.renamed.libglx.so
cp /usr/lib/fglrx/xorg/modules/extensions/fglrx/libglx.so /usr/lib/fglrx/xorg/modules/extensions/fglrx/fglrx-libglx.so 
rm /usr/lib/libGL.so /usr/lib/libGL.so.1 /usr/lib/libGL.so.1.2
cp /usr/lib/mesa/libGL.so.1.2 /usr/lib/FGL.renamed.libGL.so.1.2
cp /usr/lib/fglrx/libGL.so.1.2 /usr/lib/fglrx/fglrx-libGL.so
ln -s /usr/lib/fglrx/fglrx-libGL.so /usr/lib/libGL.so
ln -s /usr/lib/fglrx/fglrx-libGL.so.1 /usr/lib/libGL.so.1
ln -s /usr/lib/fglrx/fglrx-libGL.so.1.2 /usr/lib/libGL.so.1.2
ln -s /usr/lib/fglrx/xorg/modules/extensions/fglrx/fglrx-libglx.so  /usr/lib/fglrx/xorg/modules/extensions/libglx.so
ldconfig
aticonfig --initial
service gdm stop
sleep 1
service gdm start

that should give you this result (but not tested directly as I made it by hand...)

I have also made a script (works on 10.10 and debian stable not ubuntu 11.04) that switch really from one card to another but I have sometimes kernel panic with vga_swicheroo (for sleep or hibernate...) that I use on Intel to save battery...(so I didn't use it in script...so battery...)

On 11.04 with latest driver I have X break using fullscreen 3D games (native or wine's ones...) so I didn't take time to debug my switch script as it's not usable at this time for me (if someone have a solution too for fullscreen kills, I'm interested....)
Enclosed, script used on 10.10 that works for me (if you can do better, I'm interested too ;)).

thanks in advance,

BR,


Le mercredi 04 mai 2011 à 17:58 +0200, Jan Bachmann a écrit : 

> I can confirm this for natty/ 64bit:
> 
> It is working by just installing the driver with the script.
> 
> But still:
> 
> Can't set up screens out of the catalyst control center, because of not 
> able so turn RandR of.
> 
> So I can't set up my dual-head desktop. Every time I try Xserver 
> chrashes and I end up with two black screens. Somebody having the same 
> problem?
> 
> Thanks!
> 
> Jan
> 
> On 05/04/2011 03:46 PM, Orion wrote:
> > Hope I can find time tomorrow to do a system backup and then try this on
> > Maverick, will advise
> >
> > On 04/05/2011 15:20, Steven wrote:
> >> I'm on natty amd64:
> >>
> >> Linux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011
> >> x86_64 x86_64 x86_64 GNU/Linux
> >>
> >> It worked without creating any link.
> >> However i think packages generated are broken and they need some links.
> >> Normal installations works fine though.
> >>
> >> On Wed, May 4, 2011 at 14:57, Orion<orion2000za@xxxxxxxxxxx> wrote:
> >>> Hi,
> >>>
> >>> promising! What distro/kernel and with or without making all the
> >>> links etc
> >>> described in earlier postings?
> >>>
> >>>
> >>> On 04/05/2011 14:14, Steven wrote:
> >>>> With latest ati drivers (11.4) downloaded from the official site, on a
> >>>> clean configuration and installed without generating packages
> >>>> everything works.
> >>>> Runnng the aquarium "test" I get 18 fps while fullscreen.
> >>>>
> >>>> Running fgl_glxgears I get:
> >>>> $ fgl_glxgears
> >>>> Using GLX_SGIX_pbuffer
> >>>> 2096 frames in 5.0 seconds = 419.200 FPS
> >>>> 2101 frames in 5.0 seconds = 420.200 FPS
> >>>> 2327 frames in 5.0 seconds = 465.400 FPS
> >>>> 2086 frames in 5.0 seconds = 417.200 FPS
> >>>>
> >>>>
> >>>> On Wed, May 4, 2011 at 02:50, Vangel V. Ajanovski<ajanovski@xxxxxxxxx>
> >>>> wrote:
> >>>>> On 01.05.2011 00:51, Steven wrote:
> >>>>>> I've corrected some links and now I have a configuration similar by
> >>>>>> the one you can get by running this:
> >>>>> After doing exactly what was suggested here I can say that finally ATI
> >>>>> drivers work for me and I can switch between cards.
> >>>>> And finally with latest drivers I can use switcheroo to switch to
> >>>>> one or
> >>>>> other card.
> >>>>>
> >>>>> But unfortunately even with fglrx some things do not work (gnome-shell
> >>>>> task bar colours turn psychedelic :)
> >>>>>
> >>>>> And I can't get hardware accelerated WebGL at all no matter what
> >>>>> configuration.
> >>>>> In fact on my computer (ATI 5470 + Intel i5) WebGL only works with
> >>>>> software rendering and if run like that it is fastest with open-source
> >>>>> Intel card on.
> >>>>>
> >>>>> So test is:
> >>>>> Open Chromium browser and Start
> >>>>> http://webglsamples.googlecode.com/hg/aquarium/aquarium.html
> >>>>> click Change view to see external view (out of the aquarium)
> >>>>> click Options and enable everything
> >>>>>
> >>>>> So with Ubuntu 11.04 open-source radeon drivers: (echo DDIS>
> >>>>> /sys/...../switch and logoout -> login)
> >>>>> 4 FPS
> >>>>>
> >>>>> With Ubuntu 11.04 open-source intel driver ( echo DIGD>
> >>>>> /sys/...../switch and logoout -> login)
> >>>>> 22 FPS
> >>>>>
> >>>>> WIth FGLRX installed
> >>>>> less htan 1 FPS
> >>>>>
> >>>>> If I try with Firefox and disable mesa and software rendering of
> >>>>> webgl,
> >>>>> it does not work at all.
> >>>>>
> >>>>> Also I have some basic OpenGL examples that use GLUT and basic
> >>>>> graphics
> >>>>> - blending, stencils and fog, they run much slower with radeon open
> >>>>> source than with intel opensource, and speed with fglrx is similar to
> >>>>> intel
> >>>>>
> >>>>> _______________________________________________
> >>>>> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> >>>>> Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >>>>> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> >>>>> More help : https://help.launchpad.net/ListHelp
> >>>>>
> >>>> _______________________________________________
> >>>> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> >>>> Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >>>> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> >>>> More help : https://help.launchpad.net/ListHelp
> >>>>
> >>>
> >>> _______________________________________________
> >>> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> >>> Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >>> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> >>> More help : https://help.launchpad.net/ListHelp
> >>>
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~hybrid-graphics-linux
> > Post to : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> > More help : https://help.launchpad.net/ListHelp
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> More help   : https://help.launchpad.net/ListHelp



Attachment: face-wink.png
Description: PNG image

Attachment: switch_carte_graphique_english.sh
Description: application/shellscript


References