Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Brightness screen by qt app
Forum Updated to NodeBB v4.3 + New Features

Brightness screen by qt app

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 299 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.
  • D Offline
    D Offline
    Damian7546
    wrote on last edited by Damian7546
    #1

    Hi,

    Last I updated my app about brightness screen function depend on application state.

    I realized this function by below code:

    QStringList brightnessLo {"--output", "HDMI-1", "--brightness", "0.4"};
    QStringList brightnessHi {"--output", "HDMI-1", "--brightness", "1.0"};
    QString brightnessPrg = "xrandr";
    
    
    
    process.execute(brightnessPrg,brightnessHi);
    

    From this update times to times my system crash, I do not know what is wrong, I can't acces to my device with Debian by SSH. only hard reset by power off can help.... and next works good several days.

    Is any log in Debian where I can check waht fails ?

    JonBJ 1 Reply Last reply
    0
    • D Damian7546

      Hi,

      Last I updated my app about brightness screen function depend on application state.

      I realized this function by below code:

      QStringList brightnessLo {"--output", "HDMI-1", "--brightness", "0.4"};
      QStringList brightnessHi {"--output", "HDMI-1", "--brightness", "1.0"};
      QString brightnessPrg = "xrandr";
      
      
      
      process.execute(brightnessPrg,brightnessHi);
      

      From this update times to times my system crash, I do not know what is wrong, I can't acces to my device with Debian by SSH. only hard reset by power off can help.... and next works good several days.

      Is any log in Debian where I can check waht fails ?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Damian7546
      Don't know about xrandr and debug logs under Ubuntu. System crashes may be logged, depends what exactly you mean happens. But do you at least examine any output from executing the command and what is its return code?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @Damian7546
        Don't know about xrandr and debug logs under Ubuntu. System crashes may be logged, depends what exactly you mean happens. But do you at least examine any output from executing the command and what is its return code?

        D Offline
        D Offline
        Damian7546
        wrote on last edited by
        #3

        @JonB no, i'm not doing that

        jsulmJ 1 Reply Last reply
        0
        • D Damian7546

          @JonB no, i'm not doing that

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Damian7546 said in Brightness screen by qt app:

          no, i'm not doing that

          Why not?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Damian7546 has marked this topic as solved on

          • Login

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