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. How to enable screen timeout while running a Qt app on linuxfb platform?
Forum Updated to NodeBB v4.3 + New Features

How to enable screen timeout while running a Qt app on linuxfb platform?

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

    I am using a Qt 5.9 application on my imx6slevk board with yocto bsp
    I observe that my console times out after 60 second's when no app is running and I've also found the driver file responsible for the same

    However when I run a Qt app the screen remains on indefinitely and also the timeout parameter found in
    "/sys/module/kernel/parameters/consoleblank"
    is changed to 900 which was originally 60
    I also waited 900 seconds but the screen just wouldn't go blank
    How can I enable screen blanking while running Qt apps?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • S Sujay

      I am using a Qt 5.9 application on my imx6slevk board with yocto bsp
      I observe that my console times out after 60 second's when no app is running and I've also found the driver file responsible for the same

      However when I run a Qt app the screen remains on indefinitely and also the timeout parameter found in
      "/sys/module/kernel/parameters/consoleblank"
      is changed to 900 which was originally 60
      I also waited 900 seconds but the screen just wouldn't go blank
      How can I enable screen blanking while running Qt apps?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @sujay said in How to enable screen timeout while running a Qt app on linuxfb platform?:

      the timeout parameter found in
      "/sys/module/kernel/parameters/consoleblank"
      is changed to 900 which was originally 60

      It looks you've hit a known issue

      How can I enable screen blanking while running Qt apps?

      Just guessing, could it be possible that the Qt app running is taken as "activity" and therefore the console won't blank?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • S Offline
        S Offline
        Sujay
        wrote on last edited by
        #3

        Yes you are right I should have thought of that!
        The screen goes blank when system is idle as the app is an activity it stays on

        I modified my systemd/login.conf
        to go into suspend mode when idle for 30 sec. now the screen goes blank and the system remains suspended.
        It may not be the most ideal solution but it is a temporary fix till I get to the bottom of it.
        Thank you for the support

        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