Changeset 689

Show
Ignore:
Timestamp:
07/11/08 10:10:30 (5 months ago)
Author:
free
Message:

configure silicon motion EXA acceleration

Location:
cdd-utils/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/debian/changelog

    r687 r689  
    1 cdd-utils (0.12.8) 64studio; urgency=low 
     1cdd-utils (0.12.9) 64studio; urgency=low 
    22 
    33  * [lib]: 
     
    88     - desktop 
    99        . fixed wrong key in gdm theme configuration 
     10        . configure silicon motion EXA acceleration 
    1011     - server 
    1112        . add cups script for sharing printers with samba 
  • cdd-utils/trunk/lib/common.sh

    r577 r689  
    5555    sed -i -e "s|^${com}.*${key}\(.*\)|${key}\1|g" $cfg 
    5656} 
     57aft_key () { 
     58    key="$1" 
     59    val="$2" 
     60    cfg="$3" 
     61    sed -i -e "\|^$key| a $val" $cfg 
     62} 
     63clr_key () { 
     64    key="$1" 
     65    end="$2" 
     66    cfg="$3" 
     67    perl -e "open(FILE, \"$cfg\"); while (\$line = <FILE>) {if (\$line =~ /^$key/) {print \$line; until (\$line =~ /^$end/) {\$line = <FILE>;}; print \$line;}  else {print \$line;};};close(FILE);" > $cfg.tmp 
     68    mv $cfg.tmp $cfg 
     69} 
    5770ldap_set () { 
    5871    dn="$1" 
  • cdd-utils/trunk/lib/desktop.sh

    r651 r689  
    210210} 
    211211 
     212# Description: mediastation siliconmontion chip 
     213# Depends: xserver-xorg-core 
     214silicon () { 
     215    cfg=/etc/X11/xorg.conf 
     216    if ! exists $cfg; then warning "$cfg not found"; return; fi 
     217    silicon="Identifier      \"Generic Video Card\"\n        Driver          \"siliconmotion\"\n        Option          \"NoAccel\"\n        BusID       \"PCI:2:10:0\"\n        Option \"AccelMethod\" \"EXA\"\n        Option  \"MigrationHeuristic\" \"always\"" 
     218    clr_key "Section \"Device\"" "EndSection" "$cfg" 
     219    aft_key "Section \"Device\"" "$silicon" "$cfg" 
     220 
     221 
     222} 
     223 
    212224# Description: Set maximum priority for GConf defaults 
    213225# Depends: gconf2-common