[Pkg-fglrx-devel] Review more new debconf templates of fglrx-driver [non-free]

Andreas Beckmann debian at abeckmann.de
Sat Jun 16 15:46:47 UTC 2012


Hi,

thanks again for all the input I got so far. I'm now using Justin's 
"squeezed" variant, but switched to singular form (it's uncommon
that a system will have more than one unsupported graphics card).

I also switched to using debconf for presenting a note in postinst 
(manual configuration is required to enable the fglrx driver) and 
postrm (manual configuration is required to disable the fglrx driver).
These notes will be displayed only if needed, of course.
There are currently no plans to have the postinst/postrm actually
modify the configuration. I don't see a solution that allows for
preservation of user changes as well as proper cleanup on
purge/remove while supporting the usage of upstream configuration
tools that only know of xorg.conf but not xorg.conf.d/.
But there are some complaints frequently: "I installed $DRIVER, but
it does not work out-of-the-box", that I want to answer by these
new debconf notes. (And once I added them to fglrx, I'll do the
same for nvidia.)

So here are the three templates where I'd like to get feedback:

# used by libfglrx.preinst
Template: fglrx-driver/install-even-if-unsupported-gpu-exists
Type: boolean
Default: false
#flag:translate!:3
_Description: Install fglrx driver despite unsupported graphics card?
 The following graphics chipset found in your system is no longer handled
 by the fglrx driver:
 .
 ${unsupported-device}
 .
 You may wish to keep fglrx (for instance to drive some other card), but the
 above card requires the free Radeon driver in the package
 xserver-xorg-video-radeon. Before that driver can be used you must remove
 fglrx configuration from xorg.conf (and xorg.conf.d/) and purge (not just
 remove) the fglrx-driver package.

# used by fglrx-driver.{config,postinst}
Template: fglrx-driver/needs-xorg-conf-to-enable
Type: note
_Description: Manual configuration required to enable fglrx driver
 The fglrx driver is not yet configured.
 Please consider /usr/bin/aticonfig to create a
 working xorg.conf configuration.
 .
 For example, 'sudo aticonfig --initial' should
 be sufficient for most use cases.

# used by fglrx-driver.postrm
Template: fglrx-driver/removed-but-enabled-in-xorg-conf
Type: note
#flag:translate!:3
_Description: Fglrx driver is still enabled in xorg.conf
 The fglrx driver was just removed, but it is still enabled in the
 Xorg configuration. X cannot be (re-)started successfully until fglrx
 is disabled in the following config file(s):
 .
 ${config-files}
 .
 Note that switching to the free Radeon driver requires the fglrx-driver
 package to be purged (not just removed).


Cheers,

Andreas



More information about the Pkg-fglrx-devel mailing list