【问题标题】:Why does 'fbi' not show splash image during system startup?为什么“fbi”在系统启动期间不显示启动画面?
【发布时间】:2017-09-10 17:21:04
【问题描述】:

我正在尝试使用 fbi 为 Raspbian Stretch 提供启动画面。根据一些教程,我在这里找到了我的情况:

/etc/systemd/system/splashscreen.service

[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target

[Service]
ExecStart=/usr/bin/fbi -T 1 -d /dev/fb0 --noverbose /opt/logo.png

[Install]
WantedBy=sysinit.target

启用(检查 sysinit.target.wants 下的符号链接)。

/boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=ee397c53-02 rootfstype=ext4 elevator=deadline rootwait quiet logo.nologo loglevel=1 fsck.mode=skip noswap ro consoleblank=0

p

/boot/config.txt

hdmi_drive=2
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
dtparam=i2c1=on
dtoverlay=i2c-rtc,ds1307
disable_splash=1

从提示符处执行完全相同的命令 (fbi -T 1 -d /dev/fb0 --noverbose /opt/logo.png) 会按预期显示图像。

在启动消息中我找不到任何错误。有什么想法吗?

【问题讨论】:

    标签: splash-screen raspbian systemd


    【解决方案1】:

    我终于让它工作了!这就是我所做的(基本上是从https://yingtongli.me/blog/2016/12/21/splash.html 复制而来的,做了一些小改动使其对我有用)。

    1. 安装 fbi:apt install fbi

    2. 使用:创建/etc/systemd/system/splashscreen.service

      [Unit]
      Description=Splash screen
      DefaultDependencies=no
      After=local-fs.target
      
      [Service]
      ExecStart=/usr/bin/fbi --noverbose -a /opt/splash.png
      StandardInput=tty
      StandardOutput=tty
      
      [Install]
      WantedBy=sysinit.target
      

      与上面链接的文章唯一不同的是,我从/usr/bin/fbi 命令中删除了-d 标志(该命令最初是/usr/bin/fbi -d /dev/fb0 --noverbose -a /opt/splash.png)。我猜fb0 是错误的设备,而忽略它只是意味着fbi 将使用当前的显示设备并正确处理。

    3. 将您的初始图像放入/opt/splash.png

    4. 启用服务:systemctl enable splashscreen

    我仍在试图弄清楚如何摆脱其余的引导文本,但这是朝着正确方向迈出的一步。

    【讨论】:

    • 如果您知道如何删除其余的启动消息,您能否更新您对此主题的答案?
    • @MWiesner 我尝试了很多东西,但从未完全摆脱启动消息:/
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-07
    相关资源
    最近更新 更多