grateful to the creators of this distro; need screen brightness help

Forum › Forums › New users › Welcome to antiX › grateful to the creators of this distro; need screen brightness help

  • This topic has 26 replies, 14 voices, and was last updated Sep 29-3:10 am by anticapitalX.
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #186125
    marcelocripe
    Member

      razbone wrote:

      I’m using Google Translate because my native language is Brazilian Portuguese
      I had a little difficulty registering on the forum because I didn’t receive an email from the forum to complete the registration, but marcelocripe helped me until I was able to log into the forum.

      Hello razbone.

      Welcome to antiX Linux and the forum.

      I also don’t know how to write in English and I send my texts translated through an online translator.

      Please read my real welcome in the thread  Welcome to antiX Linux and the forum (antiX 23) and read about GNU.

      Please learn how to ask for help here on the antiX forum by reading the topics I indicated in my genuine welcome.

      I’m glad you were able to complete all the steps to register on the antiX forum.

      This is the first time you’ve explained why you need the “f.lux” program so much. Before you mentioned it on the “antiX Linux em Português” YouTube channel and in the antiX Linux Facebook groups, I had never heard of the “f.lux” program. It’s always good to explain the reasons, because there’s always a program that performs the same function as “f.lux.”

      You’re in good hands here, and I know you can count on this fantastic antiX Linux community.

      Mr. Brian, the razbone was one of the people I mentioned in the other thread about the difficulties new users have in registering on the forum.

      – – – – –

      razbone wrote:

      I’m using Google Translate because my native language is Brazilian Portuguese
      I had a little difficulty registering on the forum because I didn’t receive an email from the forum to complete the registration, but marcelocripe helped me until I was able to log into the forum.

      Olá, razbone.

      Seja bem-vindo(a) ao antiX Linux e ao fórum.

      Eu também não sei escrever em idioma Inglês e envio os meus textos traduzidos pelo tradutor da internet.

      Por favor, leia a minha verdadeira boas-vindas no tópico Seja bem-vindo (a) ao antiX Linux e ao fórum (antiX 23) e leia sobre o GNU.

      Por favor, aprenda a pedir ajuda aqui no fórum do antiX lendo os tópicos que eu indiquei na minha verdadeira boas-vindas.

      Eu fico contente em saber que você conseguiu concluir todas as etapas para fazer o seu cadastro no fórum do antiX.

      Foi a primeira vez que você explicou o motivo pelo qual precisa tanto do programa “f.lux”. Antes de você mencionar no canal do YouTube do “antiX Linux em Português” e no grupos do Facebook do antiX Linux, eu nunca tinha ouvido falar do programa “f.lux”, sempre é bom explicar os motivos, porque sempre deve existir um programa que realiza a mesma função do “f.lux”.

      Aqui você está em boas mãos e sei que poderá contar com esta comunidade fantástica que é a do antiX Linux.

      Senhor Brian, o razbone era uma das pessoas que eu havia mencionado no outro tópico sobre as dificuldades dos novos usuários em fazer o cadastro no fórum.

      #186126
      anti-apXos
      Member

        It begs the question if something like xsct / sct (or redshift or others) should be part of the distribution itself

        sct is included already on antix-full. That’s the method the screenlight script uses to change screen color temperature.

        You can also just use it directly, e.g.

        sct 3200

        "--"

        #186128
        anticapitalX
        Member

          It begs the question if something like xsct / sct (or redshift or others) should be part of the distribution itself

          sct is included already on antix-full. That’s the method the screenlight script uses to change screen color temperature.

          You can also just use it directly, e.g.

          sct 3200

          very nice @anti-apxos , as always .
          I’v proposed a yad window based on sct .

          after changing your desired combination of RGB colors , you can see the relative sct number in the “Current Tempreture” filed (6537 in screenshot)
          in the future you can apply it just by running
          sct 6537

          for reset , try running sct without any parameter
          sct

          use the script :

          chmod +x screensct
          ./screensct 

          Let's accept antiX as it is
          Pure and Elegant by its nature

          #186133
          BobC
          Moderator

            @BobC

            I went overboard on such a script (my first major script). It uses YAD to allow you to adjust gamma correction for the daylight mode and color temperature and dimming for the nighttime mode. Here’s the dialog for setting the parameters (hope I linked the attachment properly):

            Setup dialog

            The script allows all parameters to be set from the command line as well.

            I was beat by the time I got the script adequately debugged so it has some inconsistent documentation and commentary. I was waiting to publish until I had the energy to clean that up.

            I am using, as a smart terminal, antiX 22 on a T42 because Mesa in subsequent releases does not support its Radeon Mobility GPU.

            fanantix: I don’t see the script itself attached to your post, just the screenshots. This might sound silly, but if you create a .zip file with the script, screenshots and documentation inside, the forum will allow you to upload it and people can download it. I’ve never messed with the screen colors like this myself, and don’t really understand the problem razbone is having, but that’s ok, we are here to help, and over time as little things get added or improved antiX improves for everyone. I’m an old green screen guy, so having any colors at all looks good to me!

            If razbone could test your solution, he could give you some feedback on what’s good or bad about it. antiX has a “goodies” package that includes lots of useful little scripts that people have created. Ones that people like and use occasionally, that don’t required installing other programs are the kind that tend to get added to it. Take a look at what’s in that package and look at what’s included and how they are organized and written, and if possible tweak yours to fit in nicely like it belongs.

            razbone: Please let us know what suggestion worked best and why, and on the ones that weren’t as good or didn’t work, what was wrong with them.

            Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums

            #186135
            BobC
            Moderator

              fanantix: I see you did include features like delaying after sunrise or sunset automatically, which would definitely make yours useful, but the components need to go in a .zip zipfile, so people can read the documentation and try using it, etc. Did you use cron to get it to schedule the events? You probably wouldn’t want the yad program running all the time for it because it uses a bunch of memory. Without seeing the script its hard to tell.

              Thanks to everyone for their suggestions and efforts 🙂

              Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums

              #186140
              PPC
              Member

                Very, very nice GUI. I tried doing a simpler version, to adjust brightness. This seems about a perfect implementation.

                #186154
                fanantix
                Member

                  Yes, I used the at command to schedule a cron job; that’s the only thing “running” if the tray daemon is stopped.

                  I stripped out all my TBD’s (for example, gradual lighting transitions) from the script. As far as I remember the only dependency I had to provide was xsct. I compiled xsct (https://github.com/faf0/sct/) from source in order to use it’s combined color temp and brightness adjustments.

                  Note that I use this on my T42 with an external VGA monitor. I hope you all have no difficulties trying it out.

                  Attachments:
                  #186165
                  anticapitalX
                  Member

                    Release Notes
                    A complete rewrite of the screen color temperature and brightness control application, now available as a Python-based tool with multiple interface options and real-time control capabilities.
                    Major Changes in v2.0
                    Architecture Rewrite

                    Language: Migrated from Bash to Python3 for better cross-platform compatibility and maintainability
                    Dependencies: Minimal requirements – only needs python3, sct, and xrandr (no GUI libraries required)
                    Modular Design: Clean separation of core functionality and interface layers

                    Multiple Interface Options

                    Interactive Terminal Menu: Full-featured text-based interface with numbered menus
                    Web-based GUI: Real-time HTML interface accessible via local web server
                    Command-line Interface: Direct commands for automation and scripting

                    Real-time Control Features

                    Instant Slider Updates: Changes apply immediately as you move controls (200ms debounce)
                    Live Temperature Display: Shows calculated sct value in real-time as you adjust RGB
                    No Apply Button: Web interface updates screen instantly, eliminating the need to click apply

                    Enhanced Color Control

                    Improved RGB Algorithm: Better conversion from RGB values to color temperature
                    Full Color Range: All three RGB channels now properly affect temperature calculation
                    Temperature Range: Supports 1000K – 10000K range matching sct capabilities
                    Preset Temperatures: Quick access to Candlelight (1900K), Sunset (3000K), Daylight (6500K), Cool White (9000K)

                    Advanced Configuration System

                    Persistent Settings: Configuration saved to ~/.config/screen_control.conf
                    Day/Night Modes: Separate temperature and brightness settings for each mode
                    Automatic Transitions: Time-based switching between day and night modes
                    Gamma Correction: Adjustable gamma for day mode (0.2 – 5.0 range)
                    Flexible Scheduling: Configurable sunrise/sunset delays (-360 to +360 minutes)

                    Monitor and Brightness Control

                    Improved Monitor Detection: Better algorithm for finding active displays
                    Brightness Range: 10-100% brightness control via xrandr
                    Brightness Presets: Quick buttons for 30%, 70%, and 100% brightness levels
                    Night Dimming: Configurable dim factor for automatic night mode

                    User Interface Improvements

                    Status Display: Real-time information about current temperature, mode, monitor, and sun times
                    Help System: Built-in explanations for all parameters and controls
                    Error Handling: Graceful handling of missing dependencies and system errors
                    Clean Exit: Automatic reset to default settings when closing application

                    installation :
                    first install required python libraries:
                    sudo apt install python3-tk : (~2.5 Mb)
                    give permissions :
                    chmod +x ./scl

                    Commandline :

                    ./scl web               #Web GUI (Real-time sliders)
                    ./scl                   # or ./scl menu
                    ./scl auto              # Apply time-based day/night mode
                    ./scl day               # Force day mode
                    ./scl night             # Force night mode
                    ./scl --temp 3000       # Set specific temperature
                    ./scl --brightness 70   # Set brightness level
                    ./scl status            # Show current status
                    

                    Required

                    python3 (standard installation)
                    sct (available in antiX-full)
                    xrandr (standard X11 tool)

                    No Additional Packages Needed

                    No tkinter, Qt, or other GUI libraries required
                    Uses built-in Python modules only
                    Web interface uses standard HTML/CSS/JavaScript

                    Known Issues

                    Web interface requires a modern browser with JavaScript enabled
                    Automatic day/night scheduling uses simplified sun time calculations
                    Some older graphics drivers may not support full gamma correction range
                    in browser sometimes brightness is not changed prior to slide real-time changes

                    ————————————
                    Edit1 :
                    please consider renaming this topic to something related to screen brightness control .
                    or move them elsewhere

                    • This reply was modified 12 months ago by anticapitalX.
                    • This reply was modified 12 months ago by anticapitalX.

                    Let's accept antiX as it is
                    Pure and Elegant by its nature

                    #186172
                    blur13
                    Member

                      man xrandr

                      –brightness
                      Multiply the gamma values on the crtc currently attached to the output to specified floating value. Usefulfor overly bright or overly dim outputs. However, this is a software only modification, if your hardware has support to actually change the brightness, you will probably prefer to use xbacklight.

                      Emphasis mine. Use something like ddcutil to change the actual brightness of an external monitor (or press the physical brightness keys). If using a laptop use the default backlight-brightness app.

                      #186253
                      j0ta
                      Member

                        Tested anticapitalX scl.zip web based
                        works good,
                        the install document is misleading tough, since it says
                        bash./scl web and bash will produce error
                        so open it with ./scl web after doing chmod +x ./scl

                        ​🇳​​🇴​​🇸​​🇾​​🇸​​🇹​​🇪​​🇲​​🇩​ ​🇺​​🇸​​🇪​​🇷​
                        🇱​​🇮​​🇧​​🇷​​🇪​​🇧​​🇴​​🇴​​🇹​ ​🇺​​🇸​​🇪​​🇷​
                        ​🇦​​🇳​​🇹​​🇮​​🇽​ 🇺​​🇸​​🇪​​🇷​
                        ​🇱​​🇮​​🇧​​🇷​​🇪​​🇼​​🇴​​🇱​​🇫​ ​🇺​​🇸​​🇪​​🇷​
                        Anti A.I user

                        #186255
                        Robin
                        Member

                          Is this script something you’d like to see as an entry in antiX Control Centre? Would it work using antiX Viewer, or is a bolide browser like firefox/chrome/derivates needed? Sorry, had not the time to test.

                          Windows is like a submarine. Open a window and serious problems will start.

                          #186295
                          anticapitalX
                          Member

                            Is this script something you’d like to see as an entry in antiX Control Centre? Would it work using antiX Viewer, or is a bolide browser like firefox/chrome/derivates needed? Sorry, had not the time to test.

                            After testing a minimalized and simplified version, yes – this will be included as a Control Centre entry.

                            Regarding the browser requirement: The web interface works with any modern browser that supports JavaScript, including lightweight options like Pale Moon or Dillo (if JavaScript-enabled). However, **the web interface is optional** – the tool has three modes of operation:

                            1. Terminal menu interface (./scl or ./scl menu) – Works entirely in terminal, no browser needed
                            2. Command-line mode (./scl auto, ./scl day, etc.) – Direct commands for automation
                            3. Web GUI (./scl web) – Opens a browser interface with real-time sliders

                            For Control Centre integration, we’ll likely use either the terminal menu or direct command-line options, eliminating any browser dependency. The web interface is primarily for users who prefer visual controls.

                            Note: The version being integrated will be streamlined specifically for Control Centre use, focusing on the most essential features while maintaining the core functionality.

                            —

                            Which interface would you prefer for the Control Centre version?

                            Option A: Web-based GUI – Real-time sliders, visual feedback, easier to use but requires browser
                            Option B: Minimal CLI version – Terminal-only, lighter weight, no dependencies, uses numbered menus or direct commands

                            Also, if anyone has tested this on different antiX versions (Core, Base, Full, etc.) or minimal installations, I’d appreciate feedback on:
                            – Does it work correctly on your system?
                            – Are the dependencies (python3, sct, xrandr) already present?
                            – Any performance issues or missing features?
                            – Which interface mode worked best for your setup?

                            Your testing and preferences will help determine the best approach for the Control Centre integration.

                            Let's accept antiX as it is
                            Pure and Elegant by its nature

                          Viewing 12 posts - 16 through 27 (of 27 total)
                          • You must be logged in to reply to this topic.