I would like to display a bmp or png image when linux is halted.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I would like to display a bmp or png image when linux is halted.

跳至解决方案
1,997 次查看
hideo_yamashiro
Contributor III

Hi,

We am developing a software for a equipment.
The software works on embedded linux on a our custom board based on mx7dsabresd.
We would like to display a image that a operator can safely power off on LCD when linux is halted.
We have no idea to implement that feature.
Could you give us any idea?

Now, When linux is halted, LCD display is completely off .

We just think a method the following but it is not good. we cannot change the image.
(1).When mxsfb_shutdown() in mxsfb.c is called,
      the LCD driver copies a converted image data to the frame buffer.
      In this case, we should make the converted image data before kernel build.
      We would like to use a bmp file or a png file directly.
Could you give us better ideas?

Best regard,
Hideo Yamashiro.

0 项奖励
回复
1 解答
1,982 次查看
hideo_yamashiro
Contributor III

Hi, I can solved the issue by myselt.

I use sysemd, so I made a service file to display a power-off image file when the state of linux reach shutdown.target.
I use fbv package to display a image.
I modified the following driver source files to skip to stop LCD and pwm-backlight.
(1). mxsfb_shutdown() in mxsfb.c
(2). pwn_backlight_shutdown() in pwm_bl.c

Best regards,
Hideo Yamashiro.

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,983 次查看
hideo_yamashiro
Contributor III

Hi, I can solved the issue by myselt.

I use sysemd, so I made a service file to display a power-off image file when the state of linux reach shutdown.target.
I use fbv package to display a image.
I modified the following driver source files to skip to stop LCD and pwm-backlight.
(1). mxsfb_shutdown() in mxsfb.c
(2). pwn_backlight_shutdown() in pwm_bl.c

Best regards,
Hideo Yamashiro.

 

 

0 项奖励
回复