私のLCDをデフォルトLCDに設定するには?

私のLCDをデフォルトLCDに設定するには?

私はARMベースのボードを持っています(http://wiki.Friendlyarm.com/wiki/index.php/NanoPi_M1)Ubuntu-server 16.04を使用してください。私はSPI接続を持ち、このフレームバッファドライバを使用する2.2インチTFT-LCDを持っています(https://github.com/notro/fbtft)開始します。以下を使用してLCDを設定できます。

sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1

以前は、Ubuntuデスクトップを使用していたときは、次の方法でディスプレイを変更できました。

FRAMEBUFFER=/dev/fb8 startx

ただし、Ubuntuサーバーでは、次のエラーメッセージが表示されます。

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をマザーボードのデフォルトLCDに設定して操作する方法を知りたいです。

また、xorgとopenboxもインストールされていると申し上げたいです。

編集:raspberryPiの設定ファイルを見つけて、このファイルで置き換えてみました/etc/X11/xorg.conf.d/01-armbian-defaults.conf。 ::

# FBTFT xorg config file
#
# startx -- -layout TFT
# startx -- -layout HDMI
#
# startx
# When -layout is not set, the first is used: TFT
#

Section "ServerLayout"
    Identifier "TFT"
    Screen 0 "ScreenTFT"
EndSection

Section "ServerLayout"
    Identifier "HDMI"
    Screen 0 "ScreenHDMI"
EndSection

Section "Screen"
    Identifier "ScreenHDMI"
    Monitor "MonitorHDMI"
    Device "DeviceHDMI"
Endsection

Section "Screen"
    Identifier "ScreenTFT"
    Monitor "MonitorTFT"
    Device "DeviceTFT"
Endsection

Section "Monitor"
    Identifier "MonitorHDMI"
Endsection

Section "Monitor"
    Identifier "MonitorTFT"
Endsection

Section "Device"
    Identifier "DeviceHDMI"
    Driver "fbturbo"
    Option "fbdev" "/dev/fb0"
    Option "SwapbuffersWait" "true"
EndSection

Section "Device"
    Identifier "DeviceTFT"
    Option "fbdev" "/dev/fb1"
EndSection

しかし、成功しませんでした。

交換前の様子はこんな感じです。

Section "Monitor"
    Identifier      "Monitor0"
    Option          "DPMS" "false"
EndSection
Section "ServerFlags"
    Option          "BlankTime" "0"
    Option          "StandbyTime" "0"
    Option          "SuspendTime" "0"
    Option          "OffTime" "0"
EndSection

ベストアンサー1

コマンドdpkg -l '*xserver-xorg-video*' | grep ^iiを実行しても結果が表示されない場合は、必要なビデオドライバがインストールされていません。ドライバがコアの一部なので、すでにmodesettingインストールされていることを確認しました。

そのため、お気に入りのパッケージマネージャを使用してフレームバッファウィンドウドライバをインストールします(たとえば、コマンドラインからrootとして使用)。

apt-get install xserver-xorg-video-fbdev 

また、/usr/lib/xorg/modules/drivers/必要に応じてモード設定ドライバを含める必要があります。

X を再起動し、ログ出力に変更があることを確認します。

おすすめ記事