首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将我的LCD设置为默认LCD?

如何将我的LCD设置为默认LCD?
EN

Stack Overflow用户
提问于 2017-10-27 09:17:56
回答 1查看 115关注 0票数 1

我有一个基于ARM的板(M1),并在上面使用Ubuntu 16.04 .我有一个带有SPI连接的2.2“TFT-LCD,并使用此框架缓冲驱动程序(https://github.com/notro/fbtft)启动它。我可以使用以下命令设置我的液晶显示器:

代码语言:javascript
复制
sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1

在此之前,当我拥有Ubuntu桌面时,我可以通过以下命令更改显示:

代码语言:javascript
复制
FRAMEBUFFER=/dev/fb8 startx

但是在Ubuntu-server中,我得到了以下错误消息:

代码语言:javascript
复制
X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic armv7l Ubuntu
Current Operating System: Linux nanopim1 3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l
Kernel command line: root=UUID=10b3b795-f372-4ea9-b78a-93ae9355c20c rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=bd75a2d6-01 ubootsource=mmc   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
Build Date: 13 October 2017  01:59:44PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.6
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 26 16:44:04 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.

只有一个空白的屏幕。我想知道如何设置这个LCD作为我的板默认液晶显示器,并使它运行。

此外,我必须说,我也安装了xorg和openbox。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-04 07:58:25

我试过以下步骤:

添加到文件/etc/modules-load.d/fbtft.conf

代码语言:javascript
复制
spi-bcm2835

fbtft_device

添加到文件/etc/modprobe.d/fbtft.conf

代码语言:javascript
复制
options fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1

添加到/etc/rc.local

代码语言:javascript
复制
startx

我的SPI在系统启动时自动工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46971590

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档