静态 tty 屏幕

静态 tty 屏幕

我的 tty 终端出了问题。启动时,tty 运行良好,但使用大约一小时后,当我切换到 tty 时,系统会提示我输入静态登录提示,而没有闪烁的插入符号。所有 tty 都在顶部显示 tty6。我可以通过盲目输入凭据来登录,甚至可以使用“sudo chvt 7”切换回 gui,但屏幕仍然保持静态。tty7 运行良好,但如果 gui 出现问题,那就太糟糕了。因此,如果我能让它正常工作,那就太好了。任何帮助都将不胜感激。

以下是我的 的内容/etc/default/grub,希望对您有帮助:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# 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=640x480

# 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"
GRUB_GFXPAYLOAD_LINUX=text

答案1

Arch Linux 论坛上有与此问题相关的帖子。他们的问题通过切换到较新的内核得到解决。对我来说也是一样。我必须安装内核 4.6。

这里是针对相同内容的分步指南。

wget http://in4serv.com.br/backup/kernel-4.8.1-stable
sudo chmod +x kernel-4.8.1-stable
sudo ./kernel-4.8.1-stable
sudo reboot

kernel-4.8.1-stable 脚本:

#!/bin/sh
echo "$(tput setaf 3)--- (www.ubuntumaniac.com) | Kernel 4.8.1 Stable will be installed in an `uname -i` system ---$(tput sgr0)"
echo ""
sleep 2
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing
echo ""
echo ""
#i386 links
link1="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.1/linux-headers-4.8.1-040801_4.8.1-040801.201610071031_all.deb"
link2="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.1/linux-image-4.8.1-040801-generic_4.8.1-040801.201610071031_i386.deb"
link3="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.1/linux-headers-4.8.1-040801-generic_4.8.1-040801.201610071031_i386.deb"
#amd64 links
url1="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.1/linux-image-4.8.1-040801-generic_4.8.1-040801.201610071031_amd64.deb"
url2="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.1/linux-headers-4.8.1-040801-generic_4.8.1-040801.201610071031_amd64.deb"
#System architecture
arch=`uname -m`
if  [ $arch = i686 ] || [ $arch = i386 ]; then
mkdir -p $HOME/kernel-i386 
cd $HOME/kernel-i386
wget -c $link1
wget -c $link2
wget -c $link3
sudo dpkg -i $HOME/kernel-i386/*.deb  
sudo rm -rf $HOME/kernel-i386
elif [ $arch = "x86_64" ]; then
mkdir -p $HOME/kernel-amd64
cd $HOME/kernel-amd64
wget -c $link1
wget -c $url1
wget -c $url2
sudo dpkg -i $HOME/kernel-amd64/*.deb  
sudo rm -rf $HOME/kernel-amd64
     else
        echo "Unsupported Architecture"
fi

相关内容