~ubuntu-branches/ubuntu/precise/nvidia-graphics-drivers-96/precise

« back to all changes in this revision

Viewing changes to debian/nvidia-96.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2011-01-07 15:05:50 UTC
  • Revision ID: james.westby@ubuntu.com-20110107150550-q3329hmuizaav02h
Tags: 96.43.19-0ubuntu4
* debian/nvidia-96.prerm{.in}:
  - Call dpkg-trigger with --by-package=$PACKAGE_NAME.
* Add support for blacklisting card ids from GRUB gfxpayload=keep:
  - In Natty gfxpayload=keep is set by default so as to provide a framebuffer
    early in the boot process. Some cards don't play nicely with it, therefore
    we need to blacklist them in a file. The format is a sequence of lines of
    the following form:
      vVENDORdDEVICEsvSUBVENDORsdSUBDEVICEbcBASECLASSscSUBCLASS
    Blacklist lines are regex-matched against a corresponding PCI ID string.
    In practice this means that you can replace any part of the ID string
    with .* to match anything. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
            --slave #AUTOSTARTDIR#/#AUTOSTARTFILE# nvidia-autostart.desktop #PKGDATADIR#/#AUTOSTARTFILE# \
120
120
            --slave #LIBDIR#/xorg/modules/drivers/nvidia_drv.so nvidia_drv #PKGDRIVERSDIR#/nvidia_drv.so \
121
121
            --slave #SYSCONFDIR#/modprobe.d/nvidia-graphics-drivers.conf nvidia_modconf #PKGLIBCONFDIR#/modprobe.conf \
122
 
            --slave #XORGEXTRA# xorg_extra_modules #NVIDIAEXTENSION#
 
122
            --slave #XORGEXTRA# xorg_extra_modules #NVIDIAEXTENSION# \
 
123
            --slave #GRUBBLKLISTDIR#/10_$PACKAGE_NAME grub_fb_blacklist #PKGDATADIR#/#DRIVERNAME#.grub-gfxpayload
123
124
 
124
125
        # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
125
126
        # alternatives.
126
127
        LDCONFIG_NOTRIGGER=y ldconfig
127
128
 
 
129
        # Update the grub gfxpayload blacklist
 
130
        if which update-grub-gfxpayload >/dev/null 2>&1; then
 
131
            update-grub-gfxpayload
 
132
        fi
 
133
 
128
134
        # Trigger gmenu so that the icons will show up in the menu
129
135
        dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true
130
136