Author: firewing
Update of /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10
In directory se02.es.rpmfusion.net:/tmp/cvs-serv30474/F-10
Modified Files:
fglrx-config-display xorg-x11-drv-fglrx.spec
Log Message:
* Thu Dec 25 2008 Stewart Adam <s.adam at diffingo.com> - 8.561-3.8.12
- Remove blacklist, generate via fglrx-config-display instead
- Add extra bits to create Screen section in xorg.conf
Index: fglrx-config-display
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10/fglrx-config-display,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fglrx-config-display 16 Oct 2008 16:20:01 -0000 1.1
+++ fglrx-config-display 26 Dec 2008 03:39:46 -0000 1.2
@@ -58,6 +58,27 @@
if currentDriver == self.majorVendor:
print _('Driver already enabled.')
return
+
+ # Annoying bit because newer fglrx drivers require a Screen section
+ if len(self.xconfig.layout) == 0: # no layouts
+ layout = xf86config.XF86ConfLayout()
+ self.xconfig.layout.insert(layout)
+ layout.identifier = "Default Layout"
+ else:
+ layout = self.xconfig.layout[0]
+ if len(layout.adjacencies) == 0: # no layout adjacencies
+ layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
+ layout.adjacencies[0].screen = "Screen0"
+ if len(self.xconfig.screen) == 0: # no screens
+ screen = xf86config.XF86ConfScreen()
+ self.xconfig.screen.insert(screen)
+ else:
+ screen = self.xconfig.screen[0]
+ screen.device = "Videocard0"
+ screen.defaultdepth = 24
+ screen.identifier = "Screen0"
+ self.xconfig.device[0].identifier = 'Videocard0'
+
# fglrx modules
self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
# 'remembering' magic's in here.
@@ -80,14 +101,14 @@
Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
print _('Running ldconfig, this could take some time...')
Utils.runLdconfig()
+ # Requires for F10
+ blacklistContent = "#blacklist required for proprietary fglrx
driver\nblacklist radeon\nblacklist radeonfb\nblacklist drm\n"
+ Utils.writeFile('/etc/modprobe.d/blacklist-radeon', blacklistContent)
+ print _('Please reboot to finish driver configuration.')
# Haven't heard of this in a while either.
#if not self.checkForModuleAndRemove("radeon") or not
self.checkForModuleAndRemove("drm"):
# print WARNING_DRI_NOT_AVAILABLE
Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- # 20071023: AIGLX now supported by fglrx 8.42.3!
- ## Disable AIGLX by default, it's not compatible
- #self.setComposite(False)
- #self.setAiglxFlag(False)
self.restoreconf()
def disable(self, isAutoConfigure=True):
@@ -112,6 +133,7 @@
Utils.removeFile(self.ldconf)
print _('Running ldconfig, this could take some time...')
Utils.runLdconfig()
+ Utils.removeFile('/etc/modprobe.d/blacklist-radeon')
Utils.writeXorgConf(self.xconfig, self.xconfigpath)
# And return to the Fedora default.
self.enableAiglx()
Index: xorg-x11-drv-fglrx.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10/xorg-x11-drv-fglrx.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xorg-x11-drv-fglrx.spec 16 Dec 2008 17:43:43 -0000 1.10
+++ xorg-x11-drv-fglrx.spec 26 Dec 2008 03:39:46 -0000 1.11
@@ -9,7 +9,7 @@
Name: xorg-x11-drv-fglrx
Version: 8.561
-Release: 1.%{ativersion}%{?dist}
+Release: 3.%{ativersion}%{?dist}
Summary: AMD's proprietary driver for ATI graphic cards
Group: User Interface/X Hardware Support
License: BSD/Commercial/GPL/QPL
@@ -25,6 +25,8 @@
Source9: fglrx-a-lid-aticonfig
Source10: fglrx.sh
Source11: fglrx.csh
+Source12: blacklist-radeon
+Source13: udev-fglrx
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -228,6 +230,10 @@
chmod 644 $RPM_BUILD_ROOT/%{_sysconfdir}/ati/*.xbm.example
chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/ati/*.sh
+#Udev dri nodes for fglrx
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d
+install -pm 0644 %{SOURCE13}
$RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d/40-fglrx-dri.nodes
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -260,6 +266,7 @@
%files
%defattr(-,root,root,-)
%doc fglrxpkg/usr/share/doc/fglrx/*
+%{_sysconfdir}/udev/makedev.d/40-fglrx-dri.nodes
%dir %{_sysconfdir}/ati/
%{_sysconfdir}/ati/authatieventsd.sh
%{_sysconfdir}/ati/signature
@@ -302,6 +309,13 @@
%{_includedir}/X11/extensions/*.h
%changelog
+* Thu Dec 25 2008 Stewart Adam <s.adam at diffingo.com> - 8.561-3.8.12
+- Remove blacklist, generate via fglrx-config-display instead
+- Add extra bits to create Screen section in xorg.conf
+
+* Tue Dec 16 2008 kwizart < kwizart at
gmail.com > - 8.561-2.8.12
+- Add blacklist-radeon and 40-fglrx-dri.nodes
+
* Wed Dec 10 2008 Stewart Adam <s.adam at diffingo.com> - 8.561-1.8.12
- Update to 8.12
- Add Conflicts: for new nvidia packages