[Internal testing communication] deepin 25 让tty支持中文显示
Tofloor
poster avatar
枫晓岳
deepin
2025-10-09 12:46
Author

tty 中文显示支持

sudo apt install kmscon

启用 kmscon 作为默认的虚拟终端,根据经验,下面模板可能不能缺少。

可以放到文本文档编辑,找到目标需要替换的序号,把getty改成kmscon。然后全部粘贴到终端直接运行。

sudo systemctl enable getty@tty1.service 

sudo systemctl start getty@tty1.service

sudo systemctl enable getty@tty2.service 

sudo systemctl start getty@tty2.service 

sudo systemctl enable getty@tty3.service 

sudo systemctl start getty@tty3.service 

sudo systemctl enable getty@tty4.service 

sudo systemctl start getty@tty4.service 

sudo systemctl enable getty@tty5.service 

sudo systemctl start getty@tty5.service 

sudo systemctl enable getty@tty6.service 

sudo systemctl start getty@tty6.service

例如修改tty2这行:

sudo systemctl enable kmsconvt@tty2.service

sudo systemctl start kmsconvt@tty2.service

这样我打开tty2,使用的是kmscon终端 ,其他保持不变默认getyy终端。

桌面可能暂时消失,可以手动打开或者重新启动。

reboot

重新启动生效。

Reply Favorite View the author
All Replies
wlly-lzh
deepin
2025-10-09 13:34
#1

我想问一下,这个仅仅是支持中文显示吗?它支不支持中文输入呢?

就是想fcitx这种支持中文输入的输入法它能不能用呢?

Reply View the author
zccrs
deepin
2025-10-09 16:28
#2
wlly-lzh

我想问一下,这个仅仅是支持中文显示吗?它支不支持中文输入呢?

就是想fcitx这种支持中文输入的输入法它能不能用呢?

那当然不能

Reply View the author
字甲达宾
deepin
2025-10-09 16:45
#3

deepin 和 uos 的hwe 内核(hwe = 额外的硬件支持),不是默认就支持tty 的中文显示?Deepin 20, 25,uos 1070, 我印象中就是这样.

除非你用的不是 hwe 内核

Reply View the author
枫晓岳
deepin
2025-10-09 22:13
#4
字甲达宾

deepin 和 uos 的hwe 内核(hwe = 额外的硬件支持),不是默认就支持tty 的中文显示?Deepin 20, 25,uos 1070, 我印象中就是这样.

除非你用的不是 hwe 内核

Screenshot 2025-10-09 21-23-59.png默认是这个乱码

Reply View the author
昨夜的星辰
deepin
2025-10-09 23:12
#5
枫晓岳

Screenshot 2025-10-09 21-23-59.png默认是这个乱码

6.6内核好像默认支持中文显示,我前两天在笔记本上的deepin25还见来着

现在用的机器是自己编译的6.16内核,没有中文显示

Reply View the author
字甲达宾
deepin
19 hours ago
#6
昨夜的星辰

6.6内核好像默认支持中文显示,我前两天在笔记本上的deepin25还见来着

现在用的机器是自己编译的6.16内核,没有中文显示

deepin 25软件源里,好像没有 fbterm 软件包了。

之前我写过一个 fbterm-zh 的附加命令,会自动调用中文与英文字体,在tty 正常显示中文。缺点是有时 bash 的tab 键自动补齐功能,可能会失效。

fbterm-zh.deb

https://www.xckfsq.com/resource/show.html?id=63975

Reply View the author
枫晓岳
deepin
18 hours ago
#7

这是在tty上启用终端模拟器,这个依靠图形服务,所以最好不要全部换掉。

我发现直接enable可能会有问题,我打算重新复现原来操作的时候发现,tty都打不开,查看日志,发现有DRM相关冲突,然后我全部stop和 disable 再 enable 为 getty,重新启动,再启用虚拟终端,就成功了,后面也没办法复现了。有点搞不懂。

Reply View the author