- 我已经安装了最小的 UBUNTU 15.04 -没有 GUI,我不需要它。
- 这个 Ubuntu 有3.19.0-49-通用核心。
- 当系统一开始用这个内核启动时,我可以看到奇怪的字符/字母/数字 - 完全无法阅读(见附件)。但几秒钟后我的屏幕变黑,显示漂亮的白色可读字符 - 所以它工作正常。不要介意错误的开头(见附件)。
登录后,我为您运行了此命令,以帮助我发现一些东西:
sudo lspci |删除 VGA
00:02.0 VGA 兼容控制器:英特尔公司设备 22b1(修订版 21)
sudo lshw -C 显示
description: VGA compatible controller product: Intel Corporation vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 21 width: 64 bits clock: 33MHz capabilities: pm msi vga_controller bus_master cap_list rom configuration: driver=i915_bpo latency=0 resources: irq:119 memory:80000000-80ffffff memory:90000000-9fffffff ioport:f000(size=64)
但
- 我想要一个实时内核,所以我构建了一个 -3.18.25-rt23
- 我成功构建了一个新的实时内核,但我的图形出错了。启动时,我可以看到无法读取的字符/字母,后来我的屏幕完全变黑了。Linux 正在运行,因为我可以通过串行控制台访问它。串行控制台正常。
我不要高清图片,我不要 X 服务器或类似的东西。我想要简单、愚蠢的黑色窗口,带有白色字符和 VGA 显示器,但我无法拥有它。我尝试了很多选择,但没有成功。
这是我的实际 /etc/default/grub 文件:
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=1280x1024
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
谢谢,谢谢,谢谢您的帮助。在另一台电脑上,我没有奇怪的字符/字母。但我的 Gigabyte N3050N-D2P 主板上需要它!
更新:我认为这只是内核问题。我尝试使用图形菜单中的某些设置重新编译内核,情况有所好转 - 启动后屏幕仍然黑屏,但启动时显示屏闪烁,我可以清楚地看到片刻的启动消息。但显示器闪烁,然后又变黑了。
我附加了我的启动屏幕的图片:
然后只需 2 次刷新即可读取启动信息然后它就永远变黑了。
答案1
好了,我构建了一个 4.4.1 RT 内核,最后我有一个漂亮、易读的启动消息和控制台屏幕!但是(为什么总是有但是):
例如 alsamixer 上的图形真的很差,你能告诉我原因吗?
uname -a
Linux ubuntu 4.4.1-rt6 #1 SMP PREEMPT RT Wed Feb 24 04:27:02 CET 2016 i686 i686 i686 GNU/Linux
sudo lshw -C 显示
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 21
width: 64 bits
clock: 33MHz
capabilities: pm msi vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:115 memory:80000000-80ffffff memory:90000000-9fffffff ioport:f000(size=64)
sudo lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
sudo fbset-i
mode "1280x1024"
geometry 1280 1024 1280 1024 32
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode
Frame buffer device information:
Name : inteldrmfb
Address : 0x900c0000
Size : 5242880
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 1
YPanStep : 1
YWrapStep : 0
LineLength : 5120
Accelerator : No
猫/etc/默认/grub
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=text
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
ALSAMIXER 如下所示: