Article:
Cài đặt chế độ 2 màn hình(dual head) trên Ubuntu Feisty
3342
jishin.myopenid.com 18Over 4 years ago |
Dual head là chế độ làm việc 2 màn hình với cùng 1 máy tính. Thông thường được sử dụng với máy laptop (màn hình laptop và màn hình lắp ngoài). Sử dụng dual head giúp mở rộng màn hình làm việc, góp phần làm tăng hiệu quả công việc. Bài viết này nhằm hướng dẫn cài đặt chế độ dual head với card màn hình i810 (Intel Integrated Card) trên Ubuntu Feisty.
Cài đặt gói i810switch.
sudo apt-get install i810switch Sao lưu dự phòng xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bkChúng ta cần phải bật chế độ Xinerama, một extension của X server dùng trong việc hỗ trợ dual cho các loại card màn hình.
Tạo thêm một device cho màn hình thứ 2. Chú ý là Identifier của chúng phải khác nhau. Ở đây ta thêm 0 và 1 vào Identifier của môĩ cái.
#First graphic card
Section "Device"
Identifier "0 Intel Corporation 82830 CGC [Chipset Graphics Controller]"
Driver "i810"
BusID "PCI:0:2:0"
Screen 0
#Option "DDCMode" "True"
Option "MonitorLayout" "CRT, CRT+LFP"
EndSection
#Duplicated graphic card
Section "Device"
Identifier "1 Intel Corporation 82830 CGC [Chipset Graphics Controller]"
Driver "i810"
BusID "PCI:0:2:0"
Screen 1
#Option "DDCMode" "True"
Option "MonitorLayout" "CRT, CRT+LFP"
EndSection
Chúng ta lấy thông tin của màn hình thứ 2 bằng cách sử dụng get-edid và parse-id.
sudo get-edid > /tmp/monitor
sudo parse-edid < /tmp/monitor
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
#Identifier "RDT156S"
Identifier "Mitsubishi Monitor"
VendorName "MEL"
ModelName "RDT156S"
# Block type: 2:0 3:fd
HorizSync 31-60
VertRefresh 55-75
# Max dot clock (video bandwidth) 80 MHz
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1024x768" # vfreq 75.029Hz, hfreq 60.023kHz
DotClock 78.750000
HTimings 1024 1040 1136 1312
VTimings 768 769 772 800
Flags "+HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
Copy phần output ra màn hình và paste vào section "Monitor" của xorg.conf
#Laptop LCD
Section "Monitor"
Identifier "Laptop Monitor"
Option "DPMS"
HorizSync 28-51
VertRefresh 43-60
EndSection
#Mitsubishi LCD
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
#Identifier "RDT156S"
Identifier "Mitsubishi Monitor"
VendorName "MEL"
ModelName "RDT156S"
# Block type: 2:0 3:fd
HorizSync 31-60
VertRefresh 55-75
# Max dot clock (video bandwidth) 80 MHz
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1024x768" # vfreq 75.029Hz, hfreq 60.023kHz
DotClock 78.750000
HTimings 1024 1040 1136 1312
VTimings 768 769 772 800
Flags "+HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
# Block type: 2:0 3:ff
EndSection Tạo thêm một screen cho màn hình thứ 2.
#Laptop LCD screen
Section "Screen"
Identifier "Screen0"
Device "0 Intel Corporation 82830 CGC [Chipset Graphics Controller]"
Monitor "Laptop Monitor"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
#Mitsubishi LCD screen
Section "Screen"
Identifier "Screen1"
Device "1 Intel Corporation 82830 CGC [Chipset Graphics Controller]"
Monitor "Mitsubishi Monitor"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSectionCài đặt layout của X server cho việc hỗ trợ Xinerama cũng như thiết vị trí tương đối của các màn hình với nhau.
Section "ServerLayout"
Identifier "DualHead"
#Screen "Default Screen"
Screen "Screen0" RightOf "Screen1"
Screen "Screen1"
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 Sao lưu xorg.conf lại và nhấn Ctrl+Alt+Backspace để khởi động lại Xserver. Nếu suôn sẽ bạn sẽ có 2 màn hình làm việc song song nhau.
Chúc may mắn. Nếu gặp phải lỗi hay vấn đề gì xin vui lòng thắc mắc.
Một số link tham khảo:
http://ubuntuforums.org/showthread.php?t=221174
http://ubuntuforums.org/showthread.php?p=1773624
Toàn bộ nội dung file xorg.conf xem tại đây
http://jishin.no-ip.org/pub/xorg.conf
Linux
18