当前位置: 技术问答>linux和unix
fb奇怪的问题,内核启动参数里是800x600模式,启动时会自动变成1024x768模式...
来源: 互联网 发布时间:2015-10-10
本文导语: 主板:Intel 845G 显卡:板载 系统环境: Redhat Enterprise AS 3 内核: www.kernel.org 下载的 Linux-2.4.23 打上 i810 Framebuffer 驱动补丁 (linux-2.4.23-24-i810fb.diff.bz2) 偶想打开0x315(800x600-16bpp)的显示模式,不知道为什么,启动时...
主板:Intel 845G
显卡:板载
系统环境: Redhat Enterprise AS 3
内核: www.kernel.org 下载的 Linux-2.4.23
打上 i810 Framebuffer 驱动补丁 (linux-2.4.23-24-i810fb.diff.bz2)
偶想打开0x315(800x600-16bpp)的显示模式,不知道为什么,启动时显示的模式自动变为1024x768模式的,启动的硬件初始信息讲不支持845G啊,偶编译的Linux-2.4.23内核时已经把 i810/i815,i830,i845G的fb驱动都编译时内核里了啊.
然而打开Redhat Enterprise AS 3 的fb显示模式,且能正常打开800x600的显示卡啊,请高手帮帮一下
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=6
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.23)
root (hd0,2)
kernel /boot/vmlinuz-2.4.23 init 3 vga=0x315 ro root=LABEL=/
initrd /boot/initrd-2.4.23.img
title Red Hat Enterprise Linux AS (2.4.21-FrameBuffer)
root (hd0,2)
kernel /boot/vmlinuz-2.4.21-4.EL init 3 vga=0x315 ro root=LABEL=/
initrd /boot/initrd-2.4.21-4.EL.img
.....
.....
#dmesg
.....
Linux version 2.4.23 (root@redhat) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #2 Wed Jul 13 12:33:31 CST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e2000 - 00000000000e8006 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001f7f0000 (usable)
BIOS-e820: 000000001f7f0000 - 000000001f7f8000 (ACPI data)
BIOS-e820: 000000001f7f8000 - 000000001f800000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
503MB LOWMEM available.
On node 0 totalpages: 129008
zone(0): 4096 pages.
zone(1): 124912 pages.
zone(2): 0 pages.
Kernel command line: init 3 vga=0x315 ro root=LABEL=/
Initializing CPU#0
Detected 1800.045 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 3591.37 BogoMIPS
Memory: 507360k/516032k available (1584k kernel code, 8284k reserved, 483k data, 308k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 128K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Celeron(R) CPU 1.80GHz stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb61, last bus=3
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Using IRQ router PIIX/ICH [8086/24c0] at 00:1f.0
PCI: Found IRQ 5 for device 00:1f.1
PCI: Sharing IRQ 5 with 00:1d.2
PCI: Sharing IRQ 5 with 03:0f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
intelfb: Framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G chipsets
intelfb: Version 0.7.7, written by David Dawes
PCI: Found IRQ 11 for device 00:02.0
PCI: Sharing IRQ 11 with 00:1d.0
intelfb: 00:02.0: Intel(R) 845G, aperture size 128MB, stolen memory 8060kB
intelfb: Acceleration is not supported for the Intel(R) 845G chipset.
intelfb: Initial video mode is 1024x768-16@60.
Console: switching to colour frame buffer device 128x48
vesafb: abort, cannot reserve video memory at 0xd0000000
vesafb: framebuffer at 0xd0000000, mapped to 0xe086f000, size 3750k
vesafb: mode is 800x600x32, linelength=3200, pages=3
vesafb: protected mode interface info at a5f3:1f5f
vesafb: scrolling: redraw
vesafb: directcolor: size=8:8:8:8, shift=24:16:8:0
fb1: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
i810_rng: cannot disable RNG, aborting
i810_rng hardware driver 0.9.8 loaded
hw_random hardware driver 1.0.0 loaded
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
8139cp: 10/100 PCI Ethernet driver v1.1 (Aug 30, 2003)
8139cp: pci dev 03:0b.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 11 for device 03:0b.0
eth0: RealTek RTL8139 at 0xe0c1cf00, 00:e0:4c:73:67:af, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 431M
agpgart: Detected an Intel(R) 845G Chipset.
agpgart: Detected 8060K stolen memory.
agpgart: AGP aperture is 128M @ 0xd0000000
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized radeon 1.7.0 20020828 on minor 0
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized i810 1.2.1 20020211 on minor 1
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized i830 1.3.2 20021108 on minor 2
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: Maxtor 6Y060L0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 120103200 sectors (61493 MB) w/2048KiB Cache, CHS=7476/255/63
Partition check:
hda: hda1 hda2 hda3
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 87k freed
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 308k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
Adding Swap: 642560k swap-space (priority -1)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
(hwl#) init_module: begun
PCI: Found IRQ 5 for device 03:0f.0
PCI: Sharing IRQ 5 with 00:1d.2
PCI: Sharing IRQ 5 with 00:1f.1
......
显卡:板载
系统环境: Redhat Enterprise AS 3
内核: www.kernel.org 下载的 Linux-2.4.23
打上 i810 Framebuffer 驱动补丁 (linux-2.4.23-24-i810fb.diff.bz2)
偶想打开0x315(800x600-16bpp)的显示模式,不知道为什么,启动时显示的模式自动变为1024x768模式的,启动的硬件初始信息讲不支持845G啊,偶编译的Linux-2.4.23内核时已经把 i810/i815,i830,i845G的fb驱动都编译时内核里了啊.
然而打开Redhat Enterprise AS 3 的fb显示模式,且能正常打开800x600的显示卡啊,请高手帮帮一下
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=6
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.23)
root (hd0,2)
kernel /boot/vmlinuz-2.4.23 init 3 vga=0x315 ro root=LABEL=/
initrd /boot/initrd-2.4.23.img
title Red Hat Enterprise Linux AS (2.4.21-FrameBuffer)
root (hd0,2)
kernel /boot/vmlinuz-2.4.21-4.EL init 3 vga=0x315 ro root=LABEL=/
initrd /boot/initrd-2.4.21-4.EL.img
.....
.....
#dmesg
.....
Linux version 2.4.23 (root@redhat) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #2 Wed Jul 13 12:33:31 CST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e2000 - 00000000000e8006 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001f7f0000 (usable)
BIOS-e820: 000000001f7f0000 - 000000001f7f8000 (ACPI data)
BIOS-e820: 000000001f7f8000 - 000000001f800000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
503MB LOWMEM available.
On node 0 totalpages: 129008
zone(0): 4096 pages.
zone(1): 124912 pages.
zone(2): 0 pages.
Kernel command line: init 3 vga=0x315 ro root=LABEL=/
Initializing CPU#0
Detected 1800.045 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 3591.37 BogoMIPS
Memory: 507360k/516032k available (1584k kernel code, 8284k reserved, 483k data, 308k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 128K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Celeron(R) CPU 1.80GHz stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb61, last bus=3
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Using IRQ router PIIX/ICH [8086/24c0] at 00:1f.0
PCI: Found IRQ 5 for device 00:1f.1
PCI: Sharing IRQ 5 with 00:1d.2
PCI: Sharing IRQ 5 with 03:0f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
intelfb: Framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G chipsets
intelfb: Version 0.7.7, written by David Dawes
PCI: Found IRQ 11 for device 00:02.0
PCI: Sharing IRQ 11 with 00:1d.0
intelfb: 00:02.0: Intel(R) 845G, aperture size 128MB, stolen memory 8060kB
intelfb: Acceleration is not supported for the Intel(R) 845G chipset.
intelfb: Initial video mode is 1024x768-16@60.
Console: switching to colour frame buffer device 128x48
vesafb: abort, cannot reserve video memory at 0xd0000000
vesafb: framebuffer at 0xd0000000, mapped to 0xe086f000, size 3750k
vesafb: mode is 800x600x32, linelength=3200, pages=3
vesafb: protected mode interface info at a5f3:1f5f
vesafb: scrolling: redraw
vesafb: directcolor: size=8:8:8:8, shift=24:16:8:0
fb1: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
i810_rng: cannot disable RNG, aborting
i810_rng hardware driver 0.9.8 loaded
hw_random hardware driver 1.0.0 loaded
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
8139cp: 10/100 PCI Ethernet driver v1.1 (Aug 30, 2003)
8139cp: pci dev 03:0b.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 11 for device 03:0b.0
eth0: RealTek RTL8139 at 0xe0c1cf00, 00:e0:4c:73:67:af, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 431M
agpgart: Detected an Intel(R) 845G Chipset.
agpgart: Detected 8060K stolen memory.
agpgart: AGP aperture is 128M @ 0xd0000000
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized radeon 1.7.0 20020828 on minor 0
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized i810 1.2.1 20020211 on minor 1
[drm] AGP 0.99 Aperture @ 0xd0000000 128MB
[drm] Initialized i830 1.3.2 20021108 on minor 2
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: Maxtor 6Y060L0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 120103200 sectors (61493 MB) w/2048KiB Cache, CHS=7476/255/63
Partition check:
hda: hda1 hda2 hda3
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 87k freed
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 308k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
Adding Swap: 642560k swap-space (priority -1)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
(hwl#) init_module: begun
PCI: Found IRQ 5 for device 03:0f.0
PCI: Sharing IRQ 5 with 00:1d.2
PCI: Sharing IRQ 5 with 00:1f.1
......
|
看信息是没有使用intelfb,使用的是vesafb,vesafb应该是支持800x600-16模式的,在内核选项中有一项是可以设置fb的默认分辨率的,或者使用2.4.26或以上的内核
|
你的grub.conf是自己改写的吧,可以看到重新编译过的新内核,但是我想既然系统启动时加载的是
1024*768,那就说明你的配置工作还没有做完全,再看看X11下面的相关配置文件,还有inittab
1024*768,那就说明你的配置工作还没有做完全,再看看X11下面的相关配置文件,还有inittab
|
分辨率是个性化设置的呀,每个人可以不一样。
|
你想说的是X Windows的分辨率吧?
看看你的X配置文件
看看你的X配置文件
|
改/etc/X11/XF86Config
|
intelfb: Acceleration is not supported for the Intel(R) 845G chipset.
intelfb: Initial video mode is 1024x768-16@60.
看到了吗,驱动的问题
intelfb: Initial video mode is 1024x768-16@60.
看到了吗,驱动的问题
|
是你的驱动还未实现相关功能
建议学习linux用老机器(就像我用P166MMX笔记本一样^-^)
建议学习linux用老机器(就像我用P166MMX笔记本一样^-^)