Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT Embedded autostart Problem
Forum Updated to NodeBB v4.3 + New Features

QT Embedded autostart Problem

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 663 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ChrisG
    wrote on last edited by
    #1

    Hi Folks!

    Im using an embedded board with an IMX287 CPU and I have a custom designed Yocto(Poky) with kernel version 3.17 running on it. I used core-image-sato as Image recipe and have also included qt4-embedded on it.

    I wrote an diashow like demo program which reads out some files and depending on the file value it shows some pictures after a button click. When I start the program manually with the option -qws it works fine.

    Now I want to start the programm automaticly after booting.
    I wrote an bash script (demo.sh) which I included into /etc/init.d and added it to the boot routine with "update-rc.d demo.sh start 99 3"( I boot into runlevel 3 with no xserver). So it starts automaticly after the booting as the last Program.

    Here is the problem: After the start ,theprogram looks like normaly. But after a touch on the touchscreen , it kind of crashes: The mouse disappers and the buttons does not react. Todebug I used some labels to show me some function Values. I can see that a function which is called by a timer every 50ms is working and some touchpoints get detected. But no reaction at some functions and after clicking a button.

    In the bash I start the program in background with "./demo -qws &" so the bootroutine can finish.

    greetings and thanks in advance
    Chris

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC you should have a skeleton of start script that you can follow in order to make your application start more integrated in your system.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved