~ubuntu-branches/ubuntu/natty/jockey/natty

« back to all changes in this revision

Viewing changes to examples/handlers/nvidia.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-03-04 16:48:50 UTC
  • mfrom: (2.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080304164850-6b3i5enr9bamue30
Tags: 0.3-0ubuntu1
* Merge with trunk to update to the 0.3 release. We already had all the new
  features like the KDE interface, so this only imports bug fixes, in
  particular:
  - Update fglrx handler for current upstream version, to actually work
    again at all (DisplayDepth) and declare support for composite. Thanks to
    Sander Jonkes! (LP: #194963)
  - Quiesce backtraces from failed handler instantiation. (LP: #195548)
  - Use regular expressions, not fnmatch for modalias pattern matching,
    since we do not want to treat '[' and ']' specially. (LP: #193521)
  - Port --enable and --disable options from restricted-manager.
    (LP: #181832)
  - Port --check-composite from restricted-manager. (LP: #193978)
* Fixed Vcs-Bzr field.
* Remove do-release from this branch, it's only useful for upstream
  developers on trunk and confusing in the package.
* debian/jockey-common.postinst: Remove --check cache on upgrade from 
  << 0.3, since the format changed (much more robust now).

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        return KernelModuleHandler.module_loaded('nvidia')
32
32
 
33
33
    def enable_config_hook(self):
34
 
        # compiz does not work otherwise
 
34
        # X.org does not work otherwise
35
35
        self.xorg_conf.getSections('Screen')[0].defaultdepth = 24
36
36
 
 
37
    def supports_composite(self):
 
38
        '''Return whether this driver supports the composite extension.'''
 
39
 
 
40
        return True
 
41
 
37
42
class LegacyNvidiaDriver(NvidiaDriver):
38
43
    def __init__(self, ui):
39
44
        NvidiaDriver.__init__(self, ui, 'nvidia_legacy', 'nvidia-glx-legacy',