Egloos | Log-in


리눅스에서 ATI드라이버로 외부출력하기

ATI드라이버(fglrx)를 사용하고 있는 리눅스에서 외부출력이 안될때 아래의 코드를 저장한 후 실행하면 됩니다.
해상도는 현재 제가 사용중인 노트북의 해상도로 맞춰놨는데 변경해서 쓰시면 됩니다.

#!/bin/bash
export DISPLAY=:0
if [[ "`xrandr | grep \*`" =~ '1280 x 800' ]]; then
aticonfig --enable-monitor=crt1,lvds --effective=now
xrandr -s 2
echo "Switched to external monitor @ 1024x768"
exit 0
elif [[ "`xrandr | grep \*`" =~ '1024 x 768' ]]; then
xrandr -s 0
aticonfig --enable-monitor=lvds --effective=now
echo "Switched to internal LCD @ 1280x800"
exit 0
else
echo "Error switching display or resolution"
exit 1
fi
exit 0

by sylphong | 2007/06/19 16:09 | 트랙백 | 덧글(0)

트랙백 주소 : http://sylphong.egloos.com/tb/1277195
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶