Page 1 of 1

Howto: Set1280x768 framebuffer for 855gm laptop

Posted: Thu Jan 05, 2006 4:06 pm
by ranma
試了許久, 終於讓我試出來了, 雖然不是很完美, Anyway, It's work!!

1. 需要裝 855resolution
855resolution 這個軟體主要用來替換 VESA BIOS 中的模式設定, 在 wiki 或國外的論中, 是用來讓 xorg 或 xfree86 可以切入某些寬銀幕的筆記型電腦的特殊模式, 如 1280x768, 目前 855resolution 已經在 gentoo 的 protage 中了, 可以直接下

Code: Select all

#emerge 855resolution
安裝. 完成後, 請先執行一次

Code: Select all

#855resolution -l
列出所有的模式, 並選一個模式替換成 1280x768, 可以下

Code: Select all

855resolution xx 1280 768
其中 xx 請換成剛剛列出的模式中的一個代號, 如 5c...
或為了再每一次開機時自動執行, 可以用

Code: Select all

#rc-update add 855resolution boot
加入 runlevel 中. 並編輯 /etc/conf.d/855resolution 這個檔案

Code: Select all

#nano -w /etc/conf.d/855resolution
並參考裡面的說明設定替換的模式, 如

Code: Select all

replace[0]="5c"
with[0]="1280 768"
完成這一項後, 重新開機, 並設定 xorg.conf 檔, 在裡面加入 1280x768 的模式, 就可以在 xwindows 使用 1280x768 的解析度.

2. 要能在文字模式下使用 1280x768 的 framebuffer, 則必需將 855resolution 在 framebuffer 的 driver 之前執行, 所以, 請參考下面的方式, 先將 vesafb 編成模組

將 kernel 的 Device Drivers -> Graphics support 中,

Code: Select all

 
<M>   VESA VGA graphics support                                        
              VESA driver type (vesafb-tng)  --->                            
 (1280x768@60) VESA default mode
且記得 Intel 810 及 Intel 830... 等 driver 不編譯, 其它設定就如一般開啟的 framebuffer 一樣.

註:因為沒有將vesafb-tng 編入核心中, 所以一開機時並不會載入, 所以 lilo 或 grub 的設定檔中就算設了使用 framebuffer 也沒用處

重新編譯 kernel, 並且將 System.map 及 bzImage copy 到 /boot 目錄中, 執行 lilo 或 grub.

再來, 將 /etc/conf.d/local.start 中加入一行

Code: Select all

 modprobe vesafb-tng
重新開機就可以了.
[/b]

Posted: Thu Jan 05, 2006 4:58 pm
by ranma
這個方法雖然最後是可以切到 1280x768 的 console 模式, BUT 畢竟不是完美的方法...
現在的想法是, 如果能把 855resolution 寫到 framebuffer 的 driver 去, 甚至於重寫一個 for 特殊解析度的 kernel driver, 才是解決之道.