Jamyy's Weblog

Raspbian 設定螢幕解析度

by Jamyy on 一月.09, 2015, under Linux


環境:

  • VGA 端子, 解析度非 1920x1080 之螢幕
  • HDMI 轉 VGA 連接線 (Link)
  • Raspberry Pi Model B ver 2 with Raspbian OS

前置作業: 取得 Raspbian 並將其寫入一張 4GB 以上的 SD Card (Link)

Step 1. 將裝有 Raspbian 的 SD Card 插入一般電腦

Step 2. $ vi /media/myaccount/boot/config.txt

# 取消註解以下項目
hdmi_safe=1
hdmi_drive=2
config_hdmi_boost=4

Step 3. $ sudo umount /dev/sdc?

Step 4. 將 SD Card 插入 Raspberry Pi, 開機

Step 5. 開啟 Terminal 視窗執行以下指令

$ tvservice -d edid.dat
$ edidparser edid.dat

.
.
.
HDMI:EDID best score mode is now DMT (47) 1440x900p @ 60 Hz with pixel clock 106 MHz (score 5258280)
HDMI:EDID DMT mode (48) 1440x900p @ 75 Hz with pixel clock 136 MHz has a score of 219400
HDMI:EDID preferred mode remained as DMT (47) 1440x900p @ 60 Hz with pixel clock 106 MHz
HDMI:EDID has HDMI support and audio support
edid_parser exited with code 0

Step 6. $ sudo vi /boot/config.txt

# 註解 hdmi_safe 項目
#hdmi_safe=1

# 編輯相關參數
hdmi_group=2 #DMT=2, CEA=1
hdmi_mode=47

Step 7. $ sudo reboot


 
註: 若已知螢幕解析度, 可直接參考這份資料逕行修改相關參數。


 
Ref: Tales from the Evil Empire - Getting your Raspberry Pi to output the right resolution



:,