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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,360 Views
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 Kudos
1 Solution
1,345 Views
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.

 

 

View solution in original post

0 Kudos
1 Reply
1,346 Views
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 Kudos