Linux X-Window顯示卡配置通用解決方法(轉)
Linux X-window顯示卡配置通用解決方法(轉)[@more@]Linux X-window顯示卡配置通用解決方法
source (2.2.x核心原始碼,如果要自行編譯核心);
XFree86 Framebuffer Server: XF86_FBDev (Turbo Linux中文版,RedHat6.0 CD,ftp.xfree86.org 等地方都能找到);
gcc 等編譯工具。
編譯一個支援 VESA frame buffer的核心
如果有現成的支援 VESA frame buffer的核心可跳過這一步。如 Madrake 6.0中就帶有支援 frame buffer的核心。
配置核心編譯選項
在/usr/src/Linux中鍵入make xconfig(XWindow下),或make menuconfig(命令列下)。與 frame buffer device有關的選項有(其餘編譯選項請參考其它資料):
Code maturity level opetions
y Prompt for development and/or incomplete codes/drivers
Console drivers
y Video mode selection support
...
y Support for frame buffer devices
...
y VESA VGA graphics console
...
y Advance low level driver options
...
y 8 bpp packed pixels support
y 16 bpp packed pixels support
y 24 bpp packed pixels support
編譯安裝核心
以 root身份登入,鍵入以下命令:
# cd /usr/src/linux
# make bzImage
# make modules
# make modules_install
把編譯好的核心拷到 /boot目錄,檔名可自定,如:
# cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.5-fb
建立 frame buffer裝置
frame buffer裝置的 major為 29,minor 為 0(fb0),32(fb1)。 . . 224(fb7)。
建立fb裝置:
# mknod /dev/fb0 c 29 0
....
配置 lilo 的啟動選項。
新增lilo啟動配置
下面是典型的lilo.conf檔案(位於/etc目錄):
boot = /dev/hda2
timeout = 500
prompt
read-only
image = /boot/vmlinuz-2.2.x
label = linux
root = /dev/hda2
other = /dev/hda1
label = dos
新增一新配置需新增 image,label,root及配合VESA frame buffer的 vga等四項:
boot = /dev/hda2
timeout = 500
prompt
read-only
image = /boot/vmlinuz-2.2.x
label = linux
root = /dev/hda2
image = /boot/vmlinuz-2.2.5-fb (新編譯的核心)
label = linuxfb (啟動標號,可自定)
root = /dev/hda2 (著一句具體會有不同,照你自己的lilo.conf)
vga = 0x314 (顯示模式,參照下表)
other = /dev/hda1
label = dos
Linux_kernel_mode_number = VESA_mode_number + 0x200
640x480 800x600 1024x768 1280x1024
256 0x301 0x303 0x305 0x307
32k 0x310 0x313 0x316 0x319
64k 0x311 0x314 0x317 0x31A
16M 0x312 0x315 0x318 0x31B
更新啟動程式, 執行lilo,重啟,出現 lilo: 時鍵入linuxfb (或自定的標號)。這時如果linux切換成圖形模式,並有一小企鵝logo出現,那就大功告成一半。配置frame buffer Server ,為 frame buffer Server配置Screen .參照 XF86Config (位於/etc/X11、/usr/X11R6/lib)中 vga16的配置。
例如:
Section "Screen"
Driver "vga16"
Device "My Video Card"
Monitor "MAG XJ500T"
Subsection "Display"
Modes "640x480" "800x600"
ViewPort 0 0
EndSubsection
EndSection
改動Driver, Modes, Depth三項,其餘照抄:
Section "Screen"
Driver "fbdev"
Device "My Video Card"
Monitor "MAG XJ500T"
Subsection "Display"
Depth 16 (色彩深度,必須與前面所選的顯示模式的色彩深度一致,必須!)
Modes "default"
ViewPort 0 0
EndSubsection
EndSection
讓X 指向 XF86_FBDev ,把 XF86_FBDev檔案拷到 /usr/X11R6/bin目錄。
在 /usr/X11R6/bin和 /etc/X11裡都有一個檔名為 X 的檔案,它其實是一個類似Windows的快捷方式的東西,它指向一個實際的 X Server檔案,如XF86_VGA16.startx 指令碼呼叫 X 啟動 Server而不管具體是哪個 Server.因此,一定要把上面兩個目錄中的 X 都指向 XF86_FBDev,不同版本可能呼叫其中任意一個。
具體方法是改名(或刪除)原來的 X:
cd /etc/X11
mv X X.bat
然後把 X 指向 XF86_FBDev:
ln -snf /usr/X11R6/bin/XF86_FBDev X
如果一切順利,這時startx,就會…… good luck!
source (2.2.x核心原始碼,如果要自行編譯核心);
XFree86 Framebuffer Server: XF86_FBDev (Turbo Linux中文版,RedHat6.0 CD,ftp.xfree86.org 等地方都能找到);
gcc 等編譯工具。
編譯一個支援 VESA frame buffer的核心
如果有現成的支援 VESA frame buffer的核心可跳過這一步。如 Madrake 6.0中就帶有支援 frame buffer的核心。
配置核心編譯選項
在/usr/src/Linux中鍵入make xconfig(XWindow下),或make menuconfig(命令列下)。與 frame buffer device有關的選項有(其餘編譯選項請參考其它資料):
Code maturity level opetions
y Prompt for development and/or incomplete codes/drivers
Console drivers
y Video mode selection support
...
y Support for frame buffer devices
...
y VESA VGA graphics console
...
y Advance low level driver options
...
y 8 bpp packed pixels support
y 16 bpp packed pixels support
y 24 bpp packed pixels support
編譯安裝核心
以 root身份登入,鍵入以下命令:
# cd /usr/src/linux
# make bzImage
# make modules
# make modules_install
把編譯好的核心拷到 /boot目錄,檔名可自定,如:
# cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.5-fb
建立 frame buffer裝置
frame buffer裝置的 major為 29,minor 為 0(fb0),32(fb1)。 . . 224(fb7)。
建立fb裝置:
# mknod /dev/fb0 c 29 0
....
配置 lilo 的啟動選項。
新增lilo啟動配置
下面是典型的lilo.conf檔案(位於/etc目錄):
boot = /dev/hda2
timeout = 500
prompt
read-only
image = /boot/vmlinuz-2.2.x
label = linux
root = /dev/hda2
other = /dev/hda1
label = dos
新增一新配置需新增 image,label,root及配合VESA frame buffer的 vga等四項:
boot = /dev/hda2
timeout = 500
prompt
read-only
image = /boot/vmlinuz-2.2.x
label = linux
root = /dev/hda2
image = /boot/vmlinuz-2.2.5-fb (新編譯的核心)
label = linuxfb (啟動標號,可自定)
root = /dev/hda2 (著一句具體會有不同,照你自己的lilo.conf)
vga = 0x314 (顯示模式,參照下表)
other = /dev/hda1
label = dos
Linux_kernel_mode_number = VESA_mode_number + 0x200
640x480 800x600 1024x768 1280x1024
256 0x301 0x303 0x305 0x307
32k 0x310 0x313 0x316 0x319
64k 0x311 0x314 0x317 0x31A
16M 0x312 0x315 0x318 0x31B
更新啟動程式, 執行lilo,重啟,出現 lilo: 時鍵入linuxfb (或自定的標號)。這時如果linux切換成圖形模式,並有一小企鵝logo出現,那就大功告成一半。配置frame buffer Server ,為 frame buffer Server配置Screen .參照 XF86Config (位於/etc/X11、/usr/X11R6/lib)中 vga16的配置。
例如:
Section "Screen"
Driver "vga16"
Device "My Video Card"
Monitor "MAG XJ500T"
Subsection "Display"
Modes "640x480" "800x600"
ViewPort 0 0
EndSubsection
EndSection
改動Driver, Modes, Depth三項,其餘照抄:
Section "Screen"
Driver "fbdev"
Device "My Video Card"
Monitor "MAG XJ500T"
Subsection "Display"
Depth 16 (色彩深度,必須與前面所選的顯示模式的色彩深度一致,必須!)
Modes "default"
ViewPort 0 0
EndSubsection
EndSection
讓X 指向 XF86_FBDev ,把 XF86_FBDev檔案拷到 /usr/X11R6/bin目錄。
在 /usr/X11R6/bin和 /etc/X11裡都有一個檔名為 X 的檔案,它其實是一個類似Windows的快捷方式的東西,它指向一個實際的 X Server檔案,如XF86_VGA16.startx 指令碼呼叫 X 啟動 Server而不管具體是哪個 Server.因此,一定要把上面兩個目錄中的 X 都指向 XF86_FBDev,不同版本可能呼叫其中任意一個。
具體方法是改名(或刪除)原來的 X:
cd /etc/X11
mv X X.bat
然後把 X 指向 XF86_FBDev:
ln -snf /usr/X11R6/bin/XF86_FBDev X
如果一切順利,這時startx,就會…… good luck!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617731/viewspace-961494/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- XWindow顯示卡配置通用解決方法 Xconfigurator (轉)
- 向Linux進軍(X-Window配置指南) (轉)Linux
- 解決問題通用方法論
- 顯示卡風扇不轉正常嗎 顯示卡風扇不轉怎麼修復解決
- Linux啟動問題解決方法(轉)Linux
- linux啟動與關機和x-window模式(轉)Linux模式
- Oracle資料庫配置錯誤資訊解決方法(轉)Oracle資料庫
- 教你解決玩遊戲時顯示卡卡屏現象(轉)遊戲
- x-window字型原理及美化(轉)
- Ubuntu:ATI顯示卡安裝配置指南(轉)Ubuntu
- 如何檢視電腦顯示卡配置 win10檢視電腦顯示卡配置的方法Win10
- 訪問Github速度很慢以及解決方法(系統通用)Github
- linux關閉雙顯示卡的方法Linux
- 電腦顯示卡配置怎麼看 win10電腦檢視顯示卡配置方法介紹Win10
- Linux啟動問題解決方法(修改稿)(轉)Linux
- Oracle exp query引數 轉義符的各個作業系統通用解決方法Oracle作業系統
- xmanager之linux 解決方法Linux
- 通用的行列轉換的方法
- 各類unix和linux密碼丟失解決方法(轉)Linux密碼
- Linux核心重編譯常見故障及其解決方法(轉)Linux編譯
- linux雙網路卡,一塊沒流量的解決方法(轉)Linux
- linux inode已滿解決方法Linux
- java 遇到NoSuchMethodError通用解決思路JavaError
- Windows10系統檢視顯示卡配置的方法Windows
- win10無法檢測到顯示卡怎麼辦_win10檢測不到顯示卡的解決方法Win10
- 在 Linux 上找出並解決程式錯誤的主要方法(轉)Linux
- Win10系統安裝顯示卡驅動就花屏的解決方法Win10
- Eclipse配置Tomcat伺服器,通用方法EclipseTomcat伺服器
- [轉]Linux系統出現亂碼問題的終極解決方法(轉)Linux
- SVN clean失敗解決方法【轉】
- [轉]Android ANR 分析解決方法Android
- EXP-00091解決方法(轉)
- linux配置epel源及報錯解決Linux
- 基於Xorg6.9的雙顯示卡+雙顯示器解決方案(轉)
- iptables配置資訊被誤刪瞭解決方法
- Linux 忘記密碼解決方法Linux密碼
- Linux——ssh登入很慢解決方法Linux
- Linux配置多線路ADSL的方法(轉)Linux