컴퓨터공부/Linux & Unix

우분투에서 듀얼헤드(듀얼모니터), i915 Driver Install(i810 그래픽 드라이버, i810 graphic driver)

achivenKakao 2007. 5. 11. 14:56
리눅스의 듀얼모니터하기 정말 힘들다.. 까무러치겠다..!! 몇박 며칠을 했는지 모르겠다..

하지만 되어서 기분이 좋네..음하하하하

우분투 메뉴얼 보고 똑같이(정말 그대로) 보고 확장 모니터를 CRT에서 LCD로만 바꿔주었다.

처음에 해상도를 노트북은 "1024x768" 로 하고 확장 모니터는 "1280x1024" 로 했는데, 노트북은 되는데 확장

 모니터에 화면이 안 들어왔다. 그래서 둘 다 "1280x1024" 로 바꿔주니 확장 모니터의 화면은 "1280x1024"로

 바뀌고 노트북의 화면은 "1024x768" 로 되었다.
(아마도 노트북은 "1024x768" 이상을 지원하지 못하니 그냥 "1024x768"로 보이는 것 같다)

----------------------------------------------------------------------------------------------------------------------------------------
다음은 내가 했던 삽질들을 나열한다. 밑에 [참고]와 중복 될 수도 있다.

0. 우분투 메뉴얼 사이트를 보고 노트북과 확장 모니터 둘다 "1024x768" 로 설정을 했다.


1. intel가서 드라이버를 받아서 해봤다

다음과 같은 에러가 나오면서 되지 않는다.
사용자 삽입 이미지

AGPGART error


2. 웹페이지를 찾다가 아래에 참고 페이지를 찾았다.
common-20060403-linux.i386.tar.bz2 를 깔았더니 깔리더라..


사용자 삽입 이미지

3. 깔렸어도 별 반응이 없었다.. 그래서 [참고]에서 처럼  i915-20060307-linux.i386.tar.bz2 를 깔았다.


사용자 삽입 이미지

i915-20060307-linux.i386


안되더라..ㅡㅡ;;

황당한 나머지.. 짜증도 나고.. 재부팅을 했다.. 그런데.. 저 상태에서 듀얼모니터가 인식 되길래..

해상도를 바꿨고.. 그게 됐다..

어떻게 보면.. 재수로 했다..=_=;;

하지만.. 된다.. 난 그걸로 만족한다..

다음에 우분투를 다시 깔면 저렇게 해볼란다..


이하는 내 xorg.conf


invalid-file

xorg.conf


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/X11/fonts/misc"
    FontPath    "/usr/share/X11/fonts/cyrillic"
    FontPath    "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/Type1"
    FontPath    "/usr/share/X11/fonts/100dpi"
    FontPath    "/usr/share/X11/fonts/75dpi"
    FontPath    "/usr/share/fonts/X11/misc"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load    "i2c"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "type1"
    Load    "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
    Option        "XkbOptions"    "lv3:ralt_switch"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ExplorerPS/2"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/psaux"
    Option        "Protocol"        "auto-dev"
    Option        "HorizScrollDelta"    "0"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "Device"
#       Identifier      "Intel Corporation 82852/855GM Integrated Graphics Device"
        Identifier      "Intel-LCD"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Option "MonitorLayout" "CRT, CRT+LFP"
EndSection
                                       
Section "Device"
        Identifier      "Intel-VGA"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Screen          1
        Option "MonitorLayout" "CRT, CRT+LFP"
EndSection

Section "Monitor"
        Identifier      "LCD0"
        Option          "DPMS"
        HorizSync       28-51
        VertRefresh     43-60
EndSection

Section "Monitor"
        Identifier      "LCD1"
        Option          "DPMS"
        HorizSync       28-51
        VertRefresh     43-60
EndSection

Section "Screen"
        Identifier      "LCD-Screen"
        Device          "Intel-LCD"
        Monitor         "LCD0"
        DefaultDepth    24
        SubSection "Display"
                Depth           16
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "CRT-Screen"
        Device          "Intel-VGA"
        Monitor         "LCD1"
        DefaultDepth    24
        SubSection "Display"
                Depth           16
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Multihead"
        Screen          0 "LCD-Screen"
        Screen          1 "CRT-Screen" LeftOf "LCD-Screen"
        Option "Xinerama" "on"
        Option "Clone" "off"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "stylus" "SendCoreEvents"
        InputDevice     "cursor" "SendCoreEvents"
        InputDevice     "eraser" "SendCoreEvents"
        InputDevice     "Synaptics Touchpad"
EndSection

Section "DRI"
    Mode    0666
EndSection




[참고]

[http]http://dri.freedesktop.org/에서 제공하는 최신 드라이버를 [http]http://dri.freedesktop.org/snapshots/에서 받습니다.

아무 폴더에나 common-*-linux.i386.tar.bz2을 풀어놓고 설치 스크립트를 실행해서 엔터 몇 번 눌러주면 됩니다.
그리고 i915-*-linux.i386.tar.bz2 드라이버를 풀어 설치 스크립트를 실행합니다. 별다른 문제 없이 컴파일과 설치까지 됩니다.

위의 과정을 마쳤다면 /etc/X11/xorg.conf를 편집기로 열어 Device 섹션의 드라이버를 vesa 에서 i810 으로 변경합니다. (거의 대부분 vesa로 되어있습니다.)

위에 나열한 파일들은 cvs에서 만들어지는 스냅샷이니 심심할 때 한 번씩 업그레이드 하는것이 기분 전환 하는데에 도움이 될 것도 같습니다.

comment 창을 두었으면 좋겠습니다.
제 비디오카드(내장)가 바로 이것입니다.
저는 제조회사 사이트에서 드라이버를 받고, linux-header 를 설치하였습니다.
설치 중에 부분적으로 에러가 있었지만, 맨 마지막에 감사하다는 메시지가 나오도군요.
다시 부팅하니 해상도가 1800 정도로 높게 나왔습니다.
프리즈에서는 다 인식하였습니다. 참고하세요.
3D 가속까지 되는지 확인해보셨나요? 어떤 경우에는 2D 가속만 되고 3D는 사용 할 수 없는 경우도 있습니다. glxgear 나 gl을 사용하는 스크린세이버를 통해서 fps 를 확인해보세요.

커널 컴파일이 필요한 것이 아닙니다. 드리이버를 컴퍼일하게 됩니다. 그것을 모듈로 로딩하는 것입니다. 따라서 gcc 가 필요합니다. 현재 설치된 것이 맞지 않다고 하면 관리자(시냅틱?)에서 해당하는 것을 추가 설치하면 됩니다.
breezy 는 gcc 4.0 이 기본이기 때문에 컴파일 도중 에러를 낼 수도 있습니다. 그럴 경우 gcc 의 심볼릭 링크를 변경해주세요.


질문 #

common-20050608-linux.i386.tar.bz2를 설치하고, i915-20050608-linux.i386.tar.bz2를 설치 할 때, kernel config 화일이 필요한 것 같은데, kernel config 화일은 어디에서 구하죠? kernel-source가 필요한 것 아닌가요?
sources.list를 이것 저것 고쳐서 찾아보는데도 kernel-source를 찾을 수가 없더군요.
지금 설치되어 있는 kernel image는 2.6.10-5-386입니다.
리눅스-헤더 패키지를 설치하시면 됩니다. 커널 버전과 같은 녀석으로요.
/proc/config.gz 이걸 카피해다 압축풀어도 됩니다.
커널 헤더를 설치했지만 ./install.sh를 실행해도 설치가 되질 않습니다.
ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.
이런식으로 에러가 나더군요. 커널 버전 상에 문제 인지.. 그나저나 커널 컴파일도 안되서 미치겠습니다. make mrproper 나 make menuconfig등 되는 게 없습니다. ㅠ.ㅠ 데비안 어려워요.. 흑흑. 커널 컴파일을 위해서 또 뭘 깔아야 하는 건지.. -nine
추가사항. 아키브 디렉토리를 뒤져서 예전날짜의 파일로 컴파일 해도 역시 실패하는 군요. 계속 베사 드라이브 써야 하는 걸까요? 커널 컴파일도 안되고 미치겠습니다. -nine
굳이 커널 컴파일 해서 사용하려는 이유가 무엇인가요? -백일몽
굳이 커널 컴파일 하긴 저도 싫습니다. 다만. openGL가속이 필요한데 DRI가 정상적으로 올라가지 않아서 커널 컴파일이라도 하고 싶다는 겁니다.
다른 분들은 에러 없이 정상적으로 올라간 듯 한데 왜 저만 이러는지 모르겠습니다. 혹 X가 떠 있어서 안되나 싶어서 X도 죽여보고 init 2로 되어 있어서 하드웨어 가속이 안되나 싶어서 3, 5로도 바꿔보고 결국 안되더군요. 쩝. -nine

브리즈에서는 다음과 같습니다.
1. http://dri.freedesktop.org/snapshots/archive/ 에서 두개의 파일을 받습니다.
2. 커널을 2.6.12-xx-386이 아닌 686으로 교체합니다. 커널 헤더도 받구요-->중요
3. gcc-4가 설치되어 있을경우 gcc-3.4를 설치하고 심볼릭링크를 합니다.
4. ctrl+alt_f1을 누르고 /etc/init.d/kdm stop
5. comm...설치
6. i915... 설치
7. /etc/init.d/kdm start 하세요
8. 화면보호기에서 opengl 선택하시고 미리보기 하시면 ^^; 죽음입니다.
<글 재주가 없어서 정리좀 부탁드립니다. > jungdad



출처 : http://ubuntu.or.kr/wiki.php/i915DriverInstall
우분투 메뉴얼 : https://help.ubuntu.com/community/XineramaHowTo