/[soft]/drakx-kbd-mouse-x11/trunk/tools/display_driver_helper
ViewVC logotype

Diff of /drakx-kbd-mouse-x11/trunk/tools/display_driver_helper

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3922 by anssi, Thu Apr 5 02:49:39 2012 UTC revision 3923 by anssi, Thu Apr 5 02:49:43 2012 UTC
# Line 330  is_kms_allowed() { Line 330  is_kms_allowed() {
330                  # Check all drivers for conflicts only.                  # Check all drivers for conflicts only.
331                  check_xorg $driver 0 || return 1                  check_xorg $driver 0 || return 1
332          done          done
333    
334            # Perform full check for KMS drivers of present hardware.
335            # Needed for e.g. checking if radeon firmware is present.
336            for modalias in $(get_hw_display_modaliases); do
337                    for modulename in $(/sbin/modprobe -Rq "$modalias"); do
338                            for driver in $KMS_DRIVERS; do
339                                    if [ "$driver" = "$modulename" ]; then
340                                            check_driver "$modulename" "$modalias" || return 1
341                                            # Driver was ok but needs KMS disabled:
342                                            [ -n "$IS_KMS" ] || return 1
343                                            break
344                                    fi
345                            done
346                    done
347            done
348    
349          return 0          return 0
350  }  }
351    

Legend:
Removed from v.3922  
changed lines
  Added in v.3923

  ViewVC Help
Powered by ViewVC 1.1.30