Luminosité qui change quand ordi sur batterie ?


Je ne comprends pas pourquoi la luminosité de l'ordinateur ne change pas automatiquement quand celui-ci fonctionne sur secteur ou sur batterie. Une piste, s'il vous plait ? Merci d'avance.


  • 24 juin modifié
    Une petite réponse quand même, s'il vous plait. J'avais bien trouvé Dim onbattery power mais c'est une extension qui ne fonctionne que pour Gnome.

    1. Install laptop-mode-tools: Laptop-mode-tools is a package available in the standard Ubuntu repository which enables a Linux kernel feature that saves considerable battery power of a laptop. It can be installed from Terminal with the below command or from Synaptic or any other package manager.
      sudo apt-get install laptop-mode-tools

      Laptop-mode-tools also has a very premitive gui where a module can be checked/unchecked to enable/disable power management for a specific section of your system.

    2. Enable and set the brightness settings in laptop-mode-tools: The brightness management module is disabled in laptop-mode-tools by default. I needed to enable it and set some of the values related to settings. The brightness settings is stored in /etc/laptop-mode/conf.d/lcd-brightness.conf file. The settings in this file vary depending upon laptop hardware and the most confusing task is to find the BRIGHTNESS_OUTPUT file. The developers do mention a few tricks to find the file for your system in the config file itself.
      • If your system has the file “/proc/acpi/video/VID/LCD/brightness” (VID may be VID1 or similar), use this file as BRIGHTNESS_OUTPUT.
      • If you have a file /sys/class/backlight/…/brightness, then you can use that file as BRIGHTNESS_OUTPUT.

      If the file is found using any of the above two ways (in my case, it was “/sys/class/backlight/intel_backlight/brightness”), then the process is pretty straightforward from there. The value inside the BRIGHTNESS_OUPUT file is the max value for brightness. Anything between 0 and the max value can be chosen as the min value. I had to update the below values in the /etc/laptop-mode/conf.d/lcd-brightness.conf file (opened with root priviledge):

      BATT_BRIGHTNESS_COMMAND="echo <min-value>"
      LM_AC_BRIGHTNESS_COMMAND="echo <max-value>"
      NOLM_AC_BRIGHTNESS_COMMAND="echo <max-value>"

      <min-value> and <max-value> need to be updated with the chosen min and max brightness value where as /sys/class/backlight/intel_backlight/brightness needs to be changed with the actual BRIGHTNESS_VALUE found.
      In case of Toshiba laptops, the author of the tool says to use the command “toshset” with the -lcd or -inten command. Read the toshset(1) manual page for more information on the parameters for this command. If you use this command, set BRIGHTNESS_OUTPUT to “/dev/null”.

  • Super info pour tout possesseur de LAPTOP :p 
  • De rien ! :)
Connectez-vous ou Inscrivez-vous pour répondre.