Display brightness

Forum Forums General Software Display brightness

  • This topic has 18 replies, 8 voices, and was last updated Jan 20-9:40 pm by blur13.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #73102
    Member
    ben

      Hello,

      unfortunately I can not adjust the brightness on my new screen. The monitor is connected via a DisplayPort cable.

      I use IceWM.

      How can I quickly change the brightness with a GUI?
      I have to do this several times a day when the lighting conditions change. at night the monitor dazzles and during the day, it must not be too dark, otherwise I see nothing.

      The “Screelight” app unfortunately does not work in terms of brightness. i can change the fab temperature with it. that works. But brighter and darker does not work.

      I have installed a driver for displayport (ddcci), but still does not work.

      Translated with http://www.DeepL.com/Translator (free version)

      #73103
      Moderator
      caprea
        Helpful
        Up
        0
        ::

        Does backlight-brightness work for you?
        menu > application > antiX > backlight-brightness

        or from terminal
        x-terminal-emulator -e backlight-brightness

        #73166
        Member
        ben
          Helpful
          Up
          0
          ::

          I get the message
          “backlight-brightness: No controller found”

          #73167
          Moderator
          caprea
            Helpful
            Up
            0
            ::

            Please post your hardware
            inxi -Fxz
            Also, did you already try another kernel ?

            #73168
            Member
            Xecure
              Helpful
              Up
              1
              ::

              Using screenlight tool installed in antiX:
              screenlight-menu.sh
              Select the third option “Change and Apply the day values” and manually set the brightness percentage (for example, “30” for 30%).
              Then save the file and close it. Then hit “Apply the current configured day values” option and it should change the screen brightness.

              If this doesn’t work (doesn’t work with all external monitors).

              For external monitors, using the terminal

              See all connected monitors:
              xrandr | grep " connected" | awk '{print $1}'

              and use xrandr to change the brightness of one of them. Example for HDMI-1, setting brightness to 50%:
              xrandr --output HDMI-1 --brightness 0.5

              For external monitors, using lxqt-config dialogs
              Install lxqt-config package:
              sudo apt install lxqt-config

              And either launch it from the menus or from the terminal
              lxqt-config-brightness

              Let us know if this still doesn’t work for you. We may be able to find an alternative.

              • This reply was modified 1 year, 4 months ago by Xecure.

              antiX Live system enthusiast.
              General Live Boot Parameters for antiX.

              #73171
              Member
              sybok
                Helpful
                Up
                0
                ::

                Hi,

                BTW, search in the forum ‘brightness screenlight’
                https://www.antixforum.com/forums/search/brightness+screenlight/
                produces several results (displayed on two pages) with some of them already discussing the same issue (though the cause may be different).

                • This reply was modified 1 year, 4 months ago by sybok. Reason: quantify search results
                #73224
                Member
                blur13
                  Helpful
                  Up
                  0
                  ::

                  Thanks Xecure!

                  “xrandr –output HDMI-1 –brightness 0.5”

                  I had the same issue and just assumed that the monitor brightness had to be changed using the touchcontrols on the monitor itself. Those controls are not that responsive anymore and a hassle to use so this is a much better way to go about it!

                  #73230
                  Member
                  ModdIt
                    Helpful
                    Up
                    0
                    ::

                    Important comment, there is a risk of noise, sometimes called snow if you give a monitor an input level set too low.
                    This is more a problem with older devices but I can make my monitor produce a terrible image, it is not so old,
                    has refurbished power supply, and is capable of excellent full HD at 60Hz.

                    #73282
                    Member
                    ben
                      Helpful
                      Up
                      0
                      ::

                      My hardware

                      System:
                      Kernel: 4.9.235-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 8.3.0
                      Desktop: IceWM 2.9.2
                      Distro: antiX-19.3_x64-full Manolis Glezos 15 October 2020
                      base: Debian GNU/Linux 10 (buster)
                      Machine:
                      Type: Desktop System: Dell product: Precision WorkStation T5500 v: N/A
                      serial: <filter>
                      Mobo: Dell model: 0CRH6C v: A02 serial: <filter> BIOS: Dell v: A18
                      date: 10/15/2018
                      CPU:
                      Info: 6-Core model: Intel Xeon X5670 bits: 64 type: MT MCP arch: Nehalem
                      rev: 2 cache: L2: 12 MiB
                      flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 70226
                      Speed: 1596 MHz min/max: 1596/2927 MHz boost: enabled Core speeds (MHz):
                      1: 1596 2: 1596 3: 1596 4: 1596 5: 1596 6: 1596 7: 2394 8: 1729 9: 1596
                      10: 1596 11: 1596 12: 1596
                      Graphics:
                      Device-1: NVIDIA GF106GL [Quadro 2000] driver: nouveau v: kernel
                      bus-ID: 03:00.0
                      Display: x11 server: X.Org 1.20.4 driver: loaded: modesetting
                      unloaded: fbdev,vesa resolution: 2048×1152
                      OpenGL: renderer: NVC3 v: 4.3 Mesa 18.3.6 direct render: Yes
                      Audio:
                      Device-1: Intel 82801JI HD Audio vendor: Dell driver: snd_hda_intel
                      v: kernel bus-ID: 00:1b.0
                      Device-2: NVIDIA GF106 High Definition Audio driver: snd_hda_intel
                      v: kernel bus-ID: 03:00.1
                      Sound Server-1: ALSA v: k4.9.235-antix.1-amd64-smp running: yes
                      Sound Server-2: PulseAudio v: 12.2 running: no
                      Network:
                      Device-1: Broadcom Limited NetXtreme BCM5761 Gigabit Ethernet PCIe
                      vendor: Dell driver: tg3 v: 3.137 port: dc80 bus-ID: 06:00.0
                      IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
                      Device-2: Qualcomm Atheros AR5212/5213/2414 Wireless Network Adapter
                      vendor: D-Link System AirPlus DWL-G520 driver: ath5k v: kernel port: dc80
                      bus-ID: 07:04.0
                      IF: wlan0 state: down mac: <filter>
                      Drives:
                      Local Storage: total: 1.36 TiB used: 455.53 GiB (32.6%)
                      ID-1: /dev/sda vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB
                      ID-2: /dev/sdb vendor: Western Digital model: WD5000AAKX-22ERMA0
                      size: 465.76 GiB
                      Partition:
                      ID-1: / size: 97.93 GiB used: 21.77 GiB (22.2%) fs: ext4 dev: /dev/sda3
                      Swap:
                      Alert: No swap data was found.
                      Sensors:
                      System Temperatures: cpu: 28.0 C mobo: 19.0 C gpu: nouveau temp: 47.0 C
                      Fan Speeds (RPM): cpu: 810 mobo: 1133 gpu: nouveau fan: 2670
                      Info:
                      Processes: 283 Uptime: 4m Memory: 47.23 GiB used: 1.61 GiB (3.4%)
                      Init: SysVinit runlevel: 5 Compilers: gcc: 8.3.0 Packages: 2222
                      Shell: Bash v: 5.0.3 inxi: 3.3.06

                      #73283
                      Member
                      ben
                        Helpful
                        Up
                        0
                        ::

                        Like i said in the beginning “screenlight-menu.sh” works only for the colour temperature, but not for the screen brightness.

                        #73284
                        Member
                        ben
                          Helpful
                          Up
                          0
                          ::

                          Great.

                          this worked

                          xrandr –output DP-2 –brightness 0.5

                          #73285
                          Member
                          ben
                            Helpful
                            Up
                            0
                            ::

                            Thank you very much for you help and thanks to everyone for the support 🙂

                            #73286
                            Member
                            ben
                              Helpful
                              Up
                              0
                              ::

                              BTW the monitor has no working touch controls for brightness if the displayport is connected. To use them would have been the easiest way.

                              #75547
                              Member
                              sybok
                                Helpful
                                Up
                                0
                                ::

                                FYI, I was inspired by the set of commands mentioned by @Xecure and I set up a simple function for a single monitor.
                                I put it into my ‘~/.bashrc’ and call it from the command-line e.g. as follows ‘set_brightness 0.6’.

                                Comments/Limitations:
                                – It handles a single monitor (which suffices my needs).
                                – It interferes with ‘redshift’ which effectively behaves as if temporarily disabled/paused (does not seem to be the case at home [antiX testing] but only at work [antiX stable]).

                                set_brightness(){
                                  local bright
                                  local output
                                
                                  bright="$*"
                                
                                  if ! [[ "${bright}" =~ ^[0-9]+(.[0-9]+)?$ ]]; then
                                    echo "Passed brightness value [${bright}] is not a float - won't do [return]"
                                    return
                                  fi
                                
                                  output="$(xrandr | grep '\<connected\>' | awk ' { print $1 } ')" # Grep for a complete word
                                  if [ "$(echo "${output}" | wc -l)" -gt 1 ]; then
                                    echo "Too many monitors connected - won't do [return]"
                                    return
                                  fi
                                
                                  xrandr --output "${output}" --brightness "${bright}"
                                } # set_brightness

                                Edit: Damn, seems to be overriden at the work-PC after few seconds (when ‘redshift’ catches up). 🙁

                                • This reply was modified 1 year, 3 months ago by sybok.
                                #75560
                                Member
                                PPC
                                  Helpful
                                  Up
                                  0
                                  ::

                                  seems to be overriden at the work-PC after few seconds (when ‘redshift’ catches up)

                                  Don’t get discoraged by that- the user can always disable redshift! Very nice use of grep and awk – this can be adapted to edit any change to the screen (not only brightness). Slap a simple yad window as an interface of this script, and you’ll have a nice and easy GUI!

                                  P.

                                  Edit: I just tested this, straight from the terminal and it did wonders, saving my eyes from a too bright display!

                                  Tip for anyone that wants to test this script to select screen brightness: Menu > Terminal > copy and paste the script on the previous post. Press enter. Now, for that terminal session the function “set_brightness” will work just like it was a command. Entering in that terminal window this command, will set the brightness to 50%:

                                  set_brightness 0.5

                                  To set brightness to 100%:

                                  set_brightness 1

                                  Please note that the brightness change sticks even after you close the terminal.

                                  • This reply was modified 1 year, 3 months ago by PPC.
                                Viewing 15 posts - 1 through 15 (of 19 total)
                                • You must be logged in to reply to this topic.