加強版 radeontool
感謝 Benjamin Herrenschmidt 前輩指點,改良版的 [
radeontool] 已經弄好了,可從 [
這裡取得 tarball、patch,以及 Debian package]。現在新增兩個選項,程式使用方式如下:
radeontool
usage: radeontool [options] [command]
--debug - show a little debug info
--skip=1 - use the second radeon card
dac [on|off] - power down the external
video outputs (on)
light [on|off] - power down the backlight (off)
stretch [on|off|vert|horiz|auto|manual]
- stretching for resolution mismatch
regs - show a listing of some
random registers
regmatch - show registers
matching wildcard
pattern
regset - set registers
matching
wildcard pattern
比方說,我們現在想看看 LVDS controller 相關的 register,就這樣操作:
radeontool regmatch "LVDS*"
LVDS_GEN_CNTL (02d0) 0x00000000
LVDS_PLL_CNTL (02d4) 0x00000000
相關的名詞解釋有很多版本,不過就我的認知來說,先從 CRTC (CRT Controllers) 來看會比較簡單。CRTC 規範了尺寸、offset、video mode 的基本 timing,而跟 Framebuffer (我是說硬體與 driver 層面的) 相較,使用者所見的螢幕,就是透過 CRTC 所指向的 Video RAM。回到剛剛舉的 LVDS,指的就是透過 CRTC 提供 LVDS 數位訊號輸出,通常就是控制 laptop flat panel。
radeontool 對有心 trace ATI Radeon driver (xf86-video-ati CVS repository 的 ati-1-0-branch) ,是很便利的工具,歡迎討論,謝謝指教。
由 jserv 發表於 March 21, 2006 10:55 AM