Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom ATI XGL Sessions... The easy way! 3-Steps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Dec 29, 2006 4:37 pm    Post subject: Custom ATI XGL Sessions... The easy way! 3-Steps Reply with quote

There are a lot of people that have issues with getting their desktop manager, XGL, their desktop environment (gnome,kde,xfce,etc.) and Beryl playing nicely... Here is a way to create custom xgl sessions which should work flawlessly with any system. NVIDIA users ignore this page and follow a AIGLX howto.

*The first thing you need to know is the command to type to start your desktop. For gnome the command is 'gnome-session' for Xfce4 the command is 'startxfce4'... you get the idea.

*The second thing that you need to do is create a script to start XGL. NOTE1: Don't forget to 'chmod +x' this file! NOTE2: Xgl will not read the configuration of FontPath in xorg.conf, thus it's better to append the font paths separated by comma with -fp option. You can also use this script to get all font paths automatically from xorg.conf:
Code:
grep -i fontpath /etc/X11/xorg.conf | egrep -v "[:space:]*#" | sed "s/.\+\"\(.\+\)\"/\1,/g" | xargs echo | sed "s/\ //g" | sed "s/,\$//"

/usr/bin/startxgl.sh:
#!/bin/bash
Xgl -fullscreen :1 -audit 0 -ac -br -accel glx:pbuffer -accel xv:pbuffer -fp /usr/share/fonts/misc/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/&
sleep 2 && DISPLAY=:1 dbus-launch $1


*The third step is to create your custom session file. You need to modify this example below as needed. Don't forget to change the "Exec" line to start the command you picked out in step 1. NOTE: Don't forget to 'chmod +x' this file!
/usr/share/xsessions/xfce-xgl.desktop:

[Desktop Entry]
 Encoding=UTF-8
 Name=XFCE-XGL
 Comment=Start a Xfce session with XGL
 Exec=/usr/bin/startxgl.sh startxfce4
 Icon=
 Type=Application
/usr/share/xsessions/gnome-xgl.desktop:

[Desktop Entry]
 Encoding=UTF-8
 Name=GNOME-XGL
 Comment=Start a Gnome session with XGL
 Exec=/usr/bin/startxgl.sh gnome-session
 Icon=
 Type=Application


Thats it, you should be able to log out at log back into a new session with working xgl and beryl.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
vladgrigorescu
Guru
Guru


Joined: 11 Jan 2005
Posts: 360

PostPosted: Fri Dec 29, 2006 5:11 pm    Post subject: It worked Reply with quote

Yep, worked like a charm, thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum