Check the times of the DPMS setting

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm using i3-gaps and a problem that i have when watching videos is that the screen gets powered off after i set the time using DPMS on my shell rc. So, to solve the problem, i had the idea to make a menu in i3 with the options to set the DPMS and lockscreen (lightdm) using hotkeys. Here's how it was done:



#########################################################################

#Set screen (turn off) time and lightdm lock options

set $mode_screen_time SCREEN TIME - (1) 05m, (2) 10m, (3) 30m, (4) 1h, (5) 5h

mode "$mode_screen_time"


# Execute all the options
bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/05m"
bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/10m"
bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/30m"
bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/1h"
bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/5h"


bindsym $mod+Shift+t mode "$mode_screen_time"

###########################################################################


So when i press $mod+shift+t it displays a message for me to choose from different screen times, and that sources a script that i've created setting the necessary configurations, it is something like this:



# Lock the screen with lightdm slick-greeter after 30 minutes of IDLE
xautolock -time 30 -locker 'dm-tool switch-to-greeter'

# Turn off the screen after 31 minutes of IDLE
xset dpms 1800 1860 1860


To check if that is working properly, rather than waiting 30 minutes or 5 hous in front of my laptop doing nothing, i'd like to check the DPMS value that was set. There is any command or a file to where it is written that i could read? That would be a lot easier, and faster.



Thanks in advance :)









share

























    up vote
    0
    down vote

    favorite












    I'm using i3-gaps and a problem that i have when watching videos is that the screen gets powered off after i set the time using DPMS on my shell rc. So, to solve the problem, i had the idea to make a menu in i3 with the options to set the DPMS and lockscreen (lightdm) using hotkeys. Here's how it was done:



    #########################################################################

    #Set screen (turn off) time and lightdm lock options

    set $mode_screen_time SCREEN TIME - (1) 05m, (2) 10m, (3) 30m, (4) 1h, (5) 5h

    mode "$mode_screen_time"


    # Execute all the options
    bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/05m"
    bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/10m"
    bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/30m"
    bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/1h"
    bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/5h"


    bindsym $mod+Shift+t mode "$mode_screen_time"

    ###########################################################################


    So when i press $mod+shift+t it displays a message for me to choose from different screen times, and that sources a script that i've created setting the necessary configurations, it is something like this:



    # Lock the screen with lightdm slick-greeter after 30 minutes of IDLE
    xautolock -time 30 -locker 'dm-tool switch-to-greeter'

    # Turn off the screen after 31 minutes of IDLE
    xset dpms 1800 1860 1860


    To check if that is working properly, rather than waiting 30 minutes or 5 hous in front of my laptop doing nothing, i'd like to check the DPMS value that was set. There is any command or a file to where it is written that i could read? That would be a lot easier, and faster.



    Thanks in advance :)









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm using i3-gaps and a problem that i have when watching videos is that the screen gets powered off after i set the time using DPMS on my shell rc. So, to solve the problem, i had the idea to make a menu in i3 with the options to set the DPMS and lockscreen (lightdm) using hotkeys. Here's how it was done:



      #########################################################################

      #Set screen (turn off) time and lightdm lock options

      set $mode_screen_time SCREEN TIME - (1) 05m, (2) 10m, (3) 30m, (4) 1h, (5) 5h

      mode "$mode_screen_time"


      # Execute all the options
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/05m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/10m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/30m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/1h"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/5h"


      bindsym $mod+Shift+t mode "$mode_screen_time"

      ###########################################################################


      So when i press $mod+shift+t it displays a message for me to choose from different screen times, and that sources a script that i've created setting the necessary configurations, it is something like this:



      # Lock the screen with lightdm slick-greeter after 30 minutes of IDLE
      xautolock -time 30 -locker 'dm-tool switch-to-greeter'

      # Turn off the screen after 31 minutes of IDLE
      xset dpms 1800 1860 1860


      To check if that is working properly, rather than waiting 30 minutes or 5 hous in front of my laptop doing nothing, i'd like to check the DPMS value that was set. There is any command or a file to where it is written that i could read? That would be a lot easier, and faster.



      Thanks in advance :)









      share













      I'm using i3-gaps and a problem that i have when watching videos is that the screen gets powered off after i set the time using DPMS on my shell rc. So, to solve the problem, i had the idea to make a menu in i3 with the options to set the DPMS and lockscreen (lightdm) using hotkeys. Here's how it was done:



      #########################################################################

      #Set screen (turn off) time and lightdm lock options

      set $mode_screen_time SCREEN TIME - (1) 05m, (2) 10m, (3) 30m, (4) 1h, (5) 5h

      mode "$mode_screen_time"


      # Execute all the options
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/05m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/10m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/30m"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/1h"
      bindsym 1 exec --no-startup-id "source ~/_my-scripts/screen-time-i3/5h"


      bindsym $mod+Shift+t mode "$mode_screen_time"

      ###########################################################################


      So when i press $mod+shift+t it displays a message for me to choose from different screen times, and that sources a script that i've created setting the necessary configurations, it is something like this:



      # Lock the screen with lightdm slick-greeter after 30 minutes of IDLE
      xautolock -time 30 -locker 'dm-tool switch-to-greeter'

      # Turn off the screen after 31 minutes of IDLE
      xset dpms 1800 1860 1860


      To check if that is working properly, rather than waiting 30 minutes or 5 hous in front of my laptop doing nothing, i'd like to check the DPMS value that was set. There is any command or a file to where it is written that i could read? That would be a lot easier, and faster.



      Thanks in advance :)







      gnu-screen i3 dpms





      share












      share










      share



      share










      asked 3 mins ago









      Erick César

      42




      42

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476813%2fcheck-the-times-of-the-dpms-setting%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476813%2fcheck-the-times-of-the-dpms-setting%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay