![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Desktop Effects & Customization This section is for all your compositing needs. This includes Beryl, Compiz, xcompmgr, and other fancy apps which take advantage of compositing managers such as kiba-dock and avant window decorator |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Beans: 163
|
Tips for Gutsy Xrandr compiz radeon driver dual screen
This stuff is not for beginners. If you don't know much about this then don't try it. If you do then it's up to your own responsibility if your system gets broken so you are warned in advance !
This is entirely written for my situation which is: Try to use dual screen with AIGLX, open source radeon driver and compiz. My setup is a laptop with radeon mobility 9600 and an external connected CRT screen. 1. If you upgraded from Feisty to Gutsy, chances are you also have the Xgl package (xserver-xgl) installed. You better remove this for better performance. It degraded the graphical UI and you don't need it anyway because we will use aixgl. 2. Auto setup of dual screen doesn't work to good for me and the "Screens and graphics" ain't much worth for me either so diving back into xorg.conf. The updated radeon driver doesn't support mergedfb or xinerama anymore so we'll prep xorg.conf for xrandr. Start with a simple Device section, leave the tweaking for later on Code:
Section "Device" Identifier "MobRad9600" Boardname "ATI Radeon" Busid "PCI:1:0:0" Driver "radeon" Vendorname "ATI" EndSection Code:
Section "Monitor" Identifier "Laptop" Vendorname "Generic LCD Display" Modelname "LCD Panel 1280x800" Option "DPMS" HorizSync 28-51 VertRefresh 43-60 EndSection Section "Monitor" Identifier "CRTThuis" Vendorname "LG" Modelname "CRT 1280x1024" Option "DPMS" HorizSync 30-96 VertRefresh 50-160 Modeline "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync EndSection Code:
more /var/log/Xorg.0.log | grep "Modeline \"1280x1024\" " Now setup the Screen section Code:
Section "Screen" Identifier "Default Screen" Device "MobRad9600" Defaultdepth 24 Monitor "Laptop" SubSection "Display" Depth 24 Viewport 1280 0 Virtual 2560 1024 Modes "1280x1024" "1280x800" EndSubSection EndSection Now we still need a serverlayout Code:
Section "ServerLayout" Identifier "Default Layout" Screen "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" Option "AIGLX" "true" EndSection Section "DRI" Mode 0666 EndSection Section "Extensions" Option "Composite" "Enable" EndSection My xorg.conf is attached for reference. 3. That should do it for xorg.conf but it doesn't make dual screen work yet. So let's see how we can get xrandr to do its job properly. Let's query for some info in a console Code:
xrandr -q Code:
xrandr --output VGA-0 --newmode "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync This is not enough, newmode is for adding a supported resolution. Now we have to tell to actually use that resolution. Code:
xrandr --addmode VGA-0 "1280x1024" Now we are ready to activate dual screen properly compared to the clone mode you may have right now. Code:
xrandr --output VGA-0 --left-of LVDS --mode 1280x1024 Because xrandr is all about dynamic setup, your setup ain't going to last after a reboot so I made a little script that detects if my desired mode is added and executes the above commands if necessary. Then added the script to my session and each time I log on I have a dual screen started. This is the content of the script Code:
#!/bin/sh
if ! xrandr -q | grep -q "VGA-0 connected 1280x1024" ; then
xrandr --output VGA-0 --newmode "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
fi
xrandr --addmode VGA-0 "1280x1024"
xrandr --output VGA-0 --left-of LVDS --mode 1280x1024
Code:
compiz --replace & 4. To solve the maximum texture size problem, first of all add support for large textures in DRI. Install driconf and then check in your home dir for the file ".drirc". If it doesn't exist then you may need to run driconf once. In the file add a node for allow_large_textures. Code:
<driconf>
<device screen="0" driver="r300">
<application name="Default">
...other options...
<option name="allow_large_textures" value="2" />
</application>
</device>
</driconf>
5. Let's make compiz not check for the texture size. DO THIS ON YOUR OWN RISK. The effect for me is that texturizing my background fails so I have a white are for the supported texture size and for the desktop area that is out of range, I get a funky disfunctional area that I can live with So... edit /usr/bin/compiz and comment out "return 1;" in the following function. Should be at line 231. Code:
# Check if the max texture size is large enough compared to the resolution
check_texture_size()
{
TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | sed 's/.*=[^0-9]//g')
RESOLUTION=$(xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
VRES=$(echo $RESOLUTION | sed 's/.*x//')
HRES=$(echo $RESOLUTION | sed 's/x.*//')
verbose "Comparing resolution ($RESOLUTION) to maximum 3D texture size ($TEXTURE_LIMIT): ";
if [ $VRES -gt $TEXTURE_LIMIT ] || [ $HRES -gt $TEXTURE_LIMIT ]; then
verbose "Failed.\n"
# return 1;
fi
verbose "Passed.\n"
return 0
}
Save the file and try again to run "compiz --replace &" in a terminal. I hope that works for you or at least give you a clue on where to look. [edit]updated some info Last edited by BungaMan; October 23rd, 2007 at 03:05 PM.. |
|
|
|
|
|
#2 |
|
Spilled the Beans
![]() Join Date: Oct 2005
Beans: 14
|
Thank you. After several days of trauma these tips helped me get my screens working properly again. I've got a radeon X700 and 2 Samsung SyncMaster 225bws (DVI-0 and VGA-0). Following these tips and setting the virtual size to 3360x1050 I've now got them working in a similar way to Xinerama. Having followed the tips I did
xrandr --q xrandr --auto xrandr --output VGA-0 --pos 1680x0 xrandr --output VGA-0 --mode 1680x1050 and it all works. :¬} |
|
|
|
|
|
#3 |
|
Gee! These Aren't Roasted!
![]() Join Date: May 2007
Beans: 184
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
How do I remove xserver-xgl ?
Cygnis1 |
|
|
|
|
|
#4 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Beans: 163
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
I'm using a dutch version so this is translated out of my head. It could be a bit different.
system -> Management -> Synaptic package management Search for xserver-xgl and remove it. |
|
|
|
|
|
#5 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Beans: 163
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
In the attachment you have my updated xorg.conf
It contains modification so that X starts up with dual head from the start. The trick is to define the monitors for the connectors in the driver section. |
|
|
|
|
|
#6 |
|
First Cup of Ubuntu
![]() Join Date: Oct 2007
Beans: 1
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
Thank you so much for your tips.. I finally got both monitors working...
the only problem I've got now is that the wallpaper isn't displayed and my right monitor shows a black block (rectangle) yet I CAN place windows in that area. I'm assuming the problem is with the texture size... any ideas how to fix that? |
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Beans: 163
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
yes that is because it fails to generate a texture for your desktop area. For the maximum size you'll get the white area and the right most becomes an area that is never cleared in memory. Hence the effect you notice when moving stuff around in that area.
|
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 8
Ubuntu 7.10 Gutsy Gibbon
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
For anyone interested, this is the cleanest working xorg.conf file I have finally assembled to handle the dual monitor issue with Gutsy using the ATI driver. The order of the device, monitor and screen sections apparently is important (after much wasted time struggling to figure it all out). I'm posting links below as they helped me arrive at a solution.
http://wiki.debian.org/XStrikeForce/HowToRandR12 http://www.intellinuxgraphics.org/dualhead.html My configuration is as follows: Dell Precision Workstation 320 w/ Two Dell 20" Flat Panels (max. combined res: 3200x1200) Details can be seen in the attached file. |
|
|
|
|
|
#9 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2005
Beans: 163
|
Re: Tips for Gutsy Xrandr compiz radeon driver dual screen
The order of the sections is not important. What would have been the issue if the order was not correct?
|
|
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() Join Date: Aug 2006
Beans: 63
|
Radeon 9700
Thanks for your clean xorg.conf.. have had a nightmare so far, only occurred to me v late that mergedfb is deprecated. No luck with proprietary AMD drivers either. Now I got it working on randr, dual head WITH direct rendering; only problem are full-screen applications that "crash" randr and re-set it to clone mode. As randr appears to be rather new, I havent found any appropriate guides on this subject.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|