个人工具

“UbuntuHelp:Radeon 9200/9250 (RV280) and DVI”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
第1行: 第1行:
{{From|https://help.ubuntu.com/community/Radeon 9200/9250 (RV280) and DVI}}
+
{{From|https://help.ubuntu.com/community/Radeon%209200/9250%20(RV280)%20and%20DVI}}
 
{{Languages|UbuntuHelp:Radeon 9200/9250 (RV280) and DVI}}
 
{{Languages|UbuntuHelp:Radeon 9200/9250 (RV280) and DVI}}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+
DVI output with ATI RV280 series graphics cards is broken in xorg. This is caused by a [https://bugs.freedesktop.org/show_bug.cgi?id=2859 bug in the xorg ati/radeon driver]. A solution to the problem is provided by this instruction (requires recompiling the driver).
<html>
+
=== Prerequisites ===
<head>
+
'''This HOWTO was written for Edgy. The problem still exists in Feisty, however the name of the package has changed. Please change every instance of "xserver-xorg-''driver''-ati" with "xserver-xorg-''video''-ati" for this to work on Feisty.'''
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+
To recompile the driver we need some packages installed on our system.
<meta name="robots" content="index,nofollow">
+
<pre><nowiki>
<title>Radeon - Community Ubuntu Documentation</title>
+
$ sudo apt-get install build-essential fakeroot
<script type="text/javascript">
+
$ sudo apt-get build-dep xserver-xorg-driver-ati
<!--// common functions
+
</nowiki></pre>
// We keep here the state of the search box
+
=== Instruction ===
searchIsDisabled = false;
+
In a new empty directory (our build directory) run:
function searchChange(e) {
+
<pre><nowiki>
// Update search buttons status according to search box content.
+
$ apt-get source xserver-xorg-driver-ati
// Ignore empty or whitespace search term.
+
</nowiki></pre>
var value = e.value.replace(/\s+/, '');
+
This downloads three files and unpacks the sources into the directory xserver-xorg-driver-ati-version. In this directory is the file src/radeon_bios.c, that we need to edit. Towards the end of this file is a comment saying:
if (value == '' || searchIsDisabled) {
+
<pre><nowiki>
searchSetDisabled(true);
+
/* revision 4 has some problem as it appears in RV280,
} else {
+
comment it off for now, use default instead */
searchSetDisabled(false);
+
</nowiki></pre>
}
+
And after this comment follows a code block that has been commented out. We need to re-enable this code by removind the commenting-out. In my case deleting lines 574 and 561 did the job.
}
+
Now we can build the driver by running:
function searchSetDisabled(flag) {
+
<pre><nowiki>
// Enable or disable search
+
$ dpkg-buildpackage -rfakeroot -uc -b
document.getElementById('fullsearch').disabled = flag;
+
</nowiki></pre>
document.getElementById('titlesearch').disabled = flag;
+
from within the directory that was created for the package after downloading.
}
+
To install it run:
function searchFocus(e) {
+
<pre><nowiki>
// Update search input content on focus
+
sudo dpkg -i xserver-xorg-driver-ati_6.5.7.3-0ubuntu7_i386.deb
if (e.value == 'Search') {
+
</nowiki></pre>
e.value = '';
+
from within our build directory.
e.style.color = 'black';
+
searchIsDisabled = false;
+
}
+
}
+
function searchBlur(e) {
+
// Update search input content on blur
+
if (e.value == '') {
+
e.value = 'Search';
+
e.style.color = 'gray';
+
searchIsDisabled = true;
+
}
+
}
+
function actionsMenuInit(title) {
+
// Initiliaze action menu
+
for (i = 0; i < document.forms.length; i++) {
+
var form = document.forms[i];
+
if (form.className == 'actionsmenu') {
+
// Check if this form needs update
+
var div = form.getElementsByTagName('div')[0];
+
var label = div.getElementsByTagName('label')[0];
+
if (label) {
+
// This is the first time: remove label and do buton.
+
div.removeChild(label);
+
var dobutton = div.getElementsByTagName('input')[0];
+
div.removeChild(dobutton);
+
// and add menu title
+
var select = div.getElementsByTagName('select')[0];
+
var item = document.createElement('option');
+
item.appendChild(document.createTextNode(title));
+
item.value = 'show';
+
select.insertBefore(item, select.options[0]);
+
select.selectedIndex = 0;
+
}
+
}
+
}
+
}
+
//-->
+
</script>
+
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/ubuntu/css/common.css">
+
<link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/htdocs/ubuntu/css/screen.css">
+
<link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/htdocs/ubuntu/css/print.css">
+
<link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/htdocs/ubuntu/css/projection.css">
+
<link rel="Start" href="/community/UserDocumentation">
+
<link rel="Alternate" title="Wiki Markup" href="/community/Radeon?action=raw">
+
<link rel="Alternate" media="print" title="Print View" href="/community/Radeon?action=print">
+
<link rel="Search" href="/community/FindPage">
+
<link rel="Index" href="/community/TitleIndex">
+
<link rel="Glossary" href="/community/WordIndex">
+
<link rel="Help" href="/community/HelpOnFormatting">
+
</head>
+
<body  lang="en" dir="ltr">
+
<script xmlns="" src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
+
<script xmlns="" type="text/javascript"><![CDATA[
+
_uacct = "UA-1018242-8";
+
urchinTracker();
+
]]></script>
+
<div id="header">
+
<div id="mastwrap"><div id="masthead">
+
<div id="logo"><a href="/community/UserDocumentation">Community Ubuntu Documentation</a></div>
+
<form id="searchform" method="get" action="">
+
<div>
+
<input type="hidden" name="action" value="fullsearch">
+
<input type="hidden" name="context" value="180">
+
<label for="searchinput">Search:</label>
+
<input id="searchinput" type="text" name="value" value="" size="20"
+
onfocus="searchFocus(this)" onblur="searchBlur(this)"
+
onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search">
+
<input id="titlesearch" name="titlesearch" type="submit"
+
value="Titles" alt="Search Titles">
+
<input id="fullsearch" name="fullsearch" type="submit"
+
value="Text" alt="Search Full Text">
+
</div>
+
</form>
+
<script type="text/javascript">
+
<!--// Initialize search form
+
var f = document.getElementById('searchform');
+
f.getElementsByTagName('label')[0].style.display = 'none';
+
var e = document.getElementById('searchinput');
+
searchChange(e);
+
searchBlur(e);
+
//-->
+
</script>
+
<div id="sisternav">
+
<ul>
+
<li id="plain">
+
<a href="https://help.ubuntu.com/6.06"
+
accesskey="t">6.06 LTS</a>
+
</li>
+
<li id="plain">
+
<a href="https://help.ubuntu.com/6.10"
+
accesskey="t">6.10</a>
+
</li>
+
<li id="plain">
+
<a href="https://help.ubuntu.com/7.04"
+
accesskey="t">7.04</a>
+
</li>
+
<li id="plain">
+
<a href="https://help.ubuntu.com/7.10"
+
accesskey="t">7.10</a>
+
</li>
+
<li id="current">
+
<a href="https://help.ubuntu.com/community"
+
accesskey="t">Community Docs</a>
+
</li>
+
</ul>
+
</div>
+
</div></div>
+
<ul class="extranav">
+
<li><a href="/community/UserDocumentation">User Documentation</a></li>
+
</ul>
+
</div>
+
<div id="page" lang="en" dir="ltr"><!-- start page -->
+
<h1 id="title"><a title="Click to do a full-text search for this title" href="/community/Radeon?action=fullsearch&amp;value=linkto%3A%22Radeon%22&amp;context=180">Radeon</a></h1>
+
<div lang="en" id="content" dir="ltr">
+
<a id="top"></a>
+
<div lang="en" id="content" dir="ltr">
+
<a id="top"></a>
+
<p><strong>This page does not exist yet. You can create a new empty page, or use one of the page templates. Before creating the page, please check if a similar page already exists.</strong> </p>
+
<a href="/community/Radeon?action=edit">Create new empty page</a><p> </p>
+
<div>
+
<table>
+
<tr>
+
<td>
+
<p> <strong>Page templates:</strong> </p>
+
</td>
+
<td>
+
<p> <strong>Existing pages with similar names:</strong> </p>
+
</td>
+
</tr>
+
<tr>
+
<td style="vertical-align: top;">
+
<p> <ul>
+
<li><a href="/community/Radeon?action=edit&amp;template=AideTemplate">AideTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=[[category:CategoryTemplate">CategoryTemplate</a></li>]]
+
<li><a href="/community/Radeon?action=edit&amp;template=DocumentationTemplate">DocumentationTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=HelpTemplate">HelpTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=HilfeTemplate">HilfeTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=HomepageTemplate">HomepageTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=PagePersonnelleTemplate">PagePersonnelleTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=Pr%c3%a9sentationTemplate">PrésentationTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=SlideShowHandOutTemplate">SlideShowHandOutTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=SlideShowTemplate">SlideShowTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=SlideTemplate">SlideTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=SupportPapierD'UnePr%c3%a9sentationTemplate">SupportPapierD'UnePrésentationTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=ThuisbladTemplate">ThuisbladTemplate</a></li>
+
<li><a href="/community/Radeon?action=edit&amp;template=TransparentTemplate">TransparentTemplate</a></li>
+
</ul>
+
</p>
+
</td>
+
<td style="vertical-align: top;">
+
<p> <ul>
+
<li><a href="/community/Brasero">Brasero</a></li>
+
<li><a href="/community/HardyHeron">HardyHeron</a></li>
+
</ul>
+
<ul>
+
<li><a href="/community/Radeon_9200/9250_%28RV280%29_and_DVI">Radeon 9200/9250 (RV280) and DVI</a></li>
+
<li><a href="/community/RadeonDriver">RadeonDriver</a></li>
+
</ul>
+
</p>
+
</td>
+
</tr>
+
</table>
+
</div>
+
<a id="bottom"></a>
+
</div>
+
<a id="bottom"></a>
+
</div>
+
</div> <!-- end page -->
+
<div id="footer">
+
<div id="ubuntulinks">
+
&copy; 2007 <a href="http://www.canonical.com">Canonical Ltd</a>. Ubuntu, Kubuntu, Edubuntu and Canonical are registered trademarks of Canonical Ltd.<br />
+
<a href="https://help.ubuntu.com/community/WikiGuide">Feedback</a> &mdash;
+
<a href="https://help.ubuntu.com/community/License">Legal</a> &mdash;
+
<a href="https://help.ubuntu.com/community/Credits">Credits</a>
+
<br />
+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
+
<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" />
+
</a>
+
</div>
+
</div>
+
</body>
+
</html>
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年12月3日 (一) 19:38的最新版本

DVI output with ATI RV280 series graphics cards is broken in xorg. This is caused by a bug in the xorg ati/radeon driver. A solution to the problem is provided by this instruction (requires recompiling the driver).

Prerequisites

This HOWTO was written for Edgy. The problem still exists in Feisty, however the name of the package has changed. Please change every instance of "xserver-xorg-driver-ati" with "xserver-xorg-video-ati" for this to work on Feisty. To recompile the driver we need some packages installed on our system.

$ sudo apt-get install build-essential fakeroot
$ sudo apt-get build-dep xserver-xorg-driver-ati

Instruction

In a new empty directory (our build directory) run:

$ apt-get source xserver-xorg-driver-ati

This downloads three files and unpacks the sources into the directory xserver-xorg-driver-ati-version. In this directory is the file src/radeon_bios.c, that we need to edit. Towards the end of this file is a comment saying:

/* revision 4 has some problem as it appears in RV280,
comment it off for now, use default instead */

And after this comment follows a code block that has been commented out. We need to re-enable this code by removind the commenting-out. In my case deleting lines 574 and 561 did the job. Now we can build the driver by running:

$ dpkg-buildpackage -rfakeroot -uc -b

from within the directory that was created for the package after downloading. To install it run:

sudo dpkg -i xserver-xorg-driver-ati_6.5.7.3-0ubuntu7_i386.deb

from within our build directory.