Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1223243
  • 博文数量: 105
  • 博客积分: 127
  • 博客等级: 入伍新兵
  • 技术积分: 962
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-29 15:22
文章分类

全部博文(105)

文章存档

2021年(1)

2019年(3)

2018年(1)

2017年(11)

2016年(47)

2015年(32)

2014年(4)

2012年(6)

我的朋友

分类: LINUX

2016-06-21 16:26:30


  在带显示接口的linux 中,经常需要清framebuffer ,然而以前总借助fb 编程来进行相关的操作,
现在觉得这个相当麻烦。因为有下面这个dd指令。

 

dd if=/dev/zero of=/dev/fb0

 

psplash 开机后,如果没有应用程序调用fb , 那么fb上会一直有开机logo ,有了这个命令就好办了。

/etc/init.d/rc 中倒数第二行,添加dd if=/dev/zero of=/dev/fb0

 

运行到这里的时候,代表所有开机脚本已经调用完了。

if [ "x$runlevel" != "xS" ] && [ ! -x /etc/rc${runlevel}.d/S??xserver-nodm ]; th

    if type psplash-write >/dev/null 2>&1; then                      

        TMPDIR=/mnt/.psplash psplash-write "QUIT" || true            

        umount -l /mnt/.psplash                 

fi

dd if=/dev/zero of=/dev/fb0

fi  

阅读(4290) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~