Skip to content

Instantly share code, notes, and snippets.

@Freso
Created November 16, 2013 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Freso/b9ad558fcedf70f7e9f3 to your computer and use it in GitHub Desktop.
Save Freso/b9ad558fcedf70f7e9f3 to your computer and use it in GitHub Desktop.
#!/bin/dash
BACKUPDIR="$HOME/aticonfig-backup-`date --rfc-3339=sec --utc`"
XORGFILE='/etc/X11/xorg.conf.d/20-aticonfig.conf'
mkdir "$BACKUPDIR"
cd "$BACKUPDIR"
mv -vi /etc/ati/amdpcsdb "$BACKUPDIR"
mv -vi "$XORGFILE" "$BACKUPDIR"
echo 'Generating new xorg.conf...'
aticonfig -v -f --initial --adapter=all --tv-overscan=on --overlay-type=opengl --sync-vsync=on --resolution=0,1360x768,1280x720
echo 'Disabling underscan...'
aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0
echo 'Enabling "Tear Free Desktop"...'
aticonfig --set-pcs-u32=DDX,EnableTearFreeDesktop,1
#echo 'Setting anti-aliasing..."
#aticonfig --set-pcs-
mv -vi /etc/X11/xorg.conf "$XORGFILE"
#+[AMDPCSROOT/SYSTEM/BUSID-1:0:0-0/OpenGL]
#+AntiAliasSamples=V4
#+AAF=V3
#+ASTT=V1
#+ASE=V0
#+ASD=V1
#+AnisoDegree=V16
#+VSyncControl=V3
#+CatalystAI=V2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment