--- xvmc.eselect.bak 2011-02-24 12:22:34.000000000 -0300 +++ xvmc.eselect 2011-02-28 20:40:11.459000023 -0300 @@ -14,7 +14,8 @@ "libchromeXvMC.so.1" "libviaXvMCPro.so.1" "libchromeXvMCPro.so.1" -"libI810XvMC.so.1" ) +"libI810XvMC.so.1" +"libIntelXvMC.so.1" ) XVMCPRETTY=( "nvidia" "xorg-x11" @@ -22,7 +23,8 @@ "openchrome" "via-pro" "openchrome-pro" -"intel" ) +"intel-i810" +"intel-i915" ) get_implementation_indices() { local ret n @@ -36,7 +38,7 @@ get_current_implementation_index() { local n if [[ -f "${ROOT}/etc/X11/XvMCConfig" ]]; then - local current=$(< "${ROOT}/etc/X11/XvMCConfig") + local current=$(basename $(< "${ROOT}/etc/X11/XvMCConfig")) for (( n = 0; n < ${#XVMCLIBS[@]}; ++n )); do if [[ "${XVMCLIBS[n]}" = "${current}" ]]; then echo "${n}" @@ -50,9 +52,9 @@ set_new_implementation() { echo -n "Switching to ${XVMCPRETTY[$1]} XvMC implementation..." - touch "${ROOT}/etc/X11/XvMCConfig" 2&>1 > /dev/null + touch "${ROOT}/etc/X11/XvMCConfig" 2>&1 > /dev/null if [[ $? -eq 0 ]]; then - echo "${XVMCLIBS[$1]}" > "${ROOT}/etc/X11/XvMCConfig" + echo "${ROOT}/usr/lib/${XVMCLIBS[$1]}" > "${ROOT}/etc/X11/XvMCConfig" chmod 644 "${ROOT}/etc/X11/XvMCConfig" chown 0:0 "${ROOT}/etc/X11/XvMCConfig" echo " done"