Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run on Power Up #20

Closed
32teeth opened this issue Jul 4, 2018 · 7 comments
Closed

Run on Power Up #20

32teeth opened this issue Jul 4, 2018 · 7 comments

Comments

@32teeth
Copy link

32teeth commented Jul 4, 2018

Is there a way to add the driver to cmdline.txt to run on power up instead of having white screen for 15 seconds?

not really an issue, more a feature request

@juj
Copy link
Owner

juj commented Jul 4, 2018

Hmm, what is cmdline.txt? I am not familiar with that feature. If it's https://elinux.org/RPi_cmdline.txt, then that reads like something to configure kernel parameters?

You can try making fbcp-ili9341 start up as part of Linux init.d routines, https://www.raspberrypi.org/forums/viewtopic.php?t=70520. I believe those should run much earlier than /etc/rc.local does, although I am not familiar with that mechanism more than knowing that it exists, so have not tried it out before. Googling for "fbcp init.d" might help, that finds something like this: https://gist.github.com/notro/eac0fec51cac67bb99c7

If I recall correctly, @Trekintosh was experimenting with something like above, though not sure how much init.d will improve timewise compared to /etc/rc.local.

@Trekintosh
Copy link

Trekintosh commented Jul 4, 2018

I followed the init.d instructions in the thread @juj linked and it worked perfectly. My screen starts up about 15-20% into the boot sequence.

Cmdline.txt wouldn’t do anything for you in tho situation.

Now I just need to figure out how to get it into NOOBS

@32teeth
Copy link
Author

32teeth commented Jul 10, 2018

hmm, i did this and still getting only once everything is up and running.

@Trekintosh can you share your init.d that runs ili9341?

@Trekintosh
Copy link

@32teeth No problem, here it is from my working system. Pop this file into /etc/init.d, make it executable, then do sudo update-rc.d fbcp-ili9341init defaults

fbcp-ili9341init.zip

@juj
Copy link
Owner

juj commented Jul 14, 2018

Thanks Trekintosh for the help, I'll mark this one as closed.

@matemaciek
Copy link

Yet another version, so it kicks in even earlier:

  • Put in /etc/systemd/system/fbcp.service:
 [Unit]
 Description=framebuffer copy to spi screen
 Before=basic.target
 After=local-fs.target
 DefaultDependencies=no

 [Service]
 Type=simple
 ExecStart=/home/pi/fbcp-ili9341/build/fbcp-ili9341
 [Install]
 WantedBy=basic.target
  • sudo systemctl daemon-reload
  • sudo systemctl enable fbcp

@DansDesigns
Copy link

Yet another version, so it kicks in even earlier:

  • Put in /etc/systemd/system/fbcp.service:
 [Unit]
 Description=framebuffer copy to spi screen
 Before=basic.target
 After=local-fs.target
 DefaultDependencies=no

 [Service]
 Type=simple
 ExecStart=/home/pi/fbcp-ili9341/build/fbcp-ili9341
 [Install]
 WantedBy=basic.target
  • sudo systemctl daemon-reload
  • sudo systemctl enable fbcp

This works brilliantly except for the "DefaultDependencies", I had to set it to "yes" to work properly with my screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants