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. Framebuffer cursor blinking after Application exit
QtWS25 Last Chance

Framebuffer cursor blinking after Application exit

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.2k Views
  • 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.
  • S Offline
    S Offline
    Simon2210
    wrote on last edited by
    #1

    Hi,

    my QWidget-Application uses the linux framebuffer directly.
    By default the console cursor is drawn at the top left corner. I prevent it by setting "vt.global_cursor_default=0" in my bootloader and export "QT_QPA_PLATFORM="linuxfb:tty=/dev/null" at runtime.

    Only if my application is finished, the cursor is shown again.
    I would like to know why the exit causes the cursor to reappear.
    Does anyone have an idea?

    Thank you.

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

      Hi and welcome to devnet,

      What version of Qt are you using ?
      On what distribution ?

      How are you starting your application ?
      How are you stopping it ?

      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
      • S Offline
        S Offline
        Simon2210
        wrote on last edited by Simon2210
        #3

        Thanks,

        I'm using Qt 5.6.1. The distribution based on arm and is selfmade by buildroot. There is no window-server installed. It is running on a cl-som-imx7 from compulab.
        I start the application (without arguments) via SSH or at startup with the start-stop-daemon tool as background process with the following environment:

        export TSLIB_TSEVENTTYPE=H3600
        export TSLIB_CONSOLEDEVICE=none
        export TSLIB_FBDEVICE=/dev/fb0
        export TSLIB_TSDEVICE=/dev/input/event2
        export TSLIB_CALIBFILE=/etc/pointercal
        export TSLIB_CONFFILE=/etc/ts.conf
        
        export QT_QPA_FB_DISABLE_INPUT=1
        export QT_QPA_GENERIC_PLUGINS="evdevkeyboard:/dev/input/event0,tslib:/dev/input/event2"
        export QT_QPA_PLATFORM="linuxfb:tty=/dev/null"
        

        I can stopping it by "QApplication::exit()", SIGINT or SIGTERM - always the same behavior.

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

          Did you try echo 0 > /sys/class/graphics/fbcon/cursor_blink before starting your application ?

          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