1. 23 Oct, 2020 1 commit
  2. 08 Oct, 2020 1 commit
  3. 02 Jun, 2020 2 commits
  4. 08 Feb, 2020 1 commit
  5. 04 Feb, 2020 2 commits
  6. 07 Dec, 2019 1 commit
  7. 01 Oct, 2019 1 commit
  8. 09 Mar, 2018 1 commit
  9. 14 Jun, 2017 2 commits
    • Bhushan Shah's avatar
      Revert "skip the disabled backlight device" · 5c57cf64
      Bhushan Shah authored
      This reverts commits 86c3548d and
      5c0d35ca
      
      .
      
      Not all raw interfaces have device/enabled under the backlight sysfs
      interface. Some examples are nvidia-bl and acpi_video0, they are raw
      interfaces but doesn't have device/enabled properties.
      
      Overall we can just return true even if file doesn't exist but then this
      code serves no purpose.
      
      BUG: 381114
      BUG: 381199
      Ackd-by: Kai Uwe Broulik's avatarKai Uwe Broulik <kde@privat.broulik.de>
      CCMAIL: AceLan Kao <acelan@acelan.idv.tw>
      5c57cf64
    • Bhushan Shah's avatar
      Revert "skip the disabled backlight device" · 97f39000
      Bhushan Shah authored
      This reverts commits 86c3548d and
      5c0d35ca
      
      .
      
      Not all raw interfaces have device/enabled under the backlight sysfs
      interface. Some examples are nvidia-bl and acpi_video0, they are raw
      interfaces but doesn't have device/enabled properties.
      
      Overall we can just return true even if file doesn't exist but then this
      code serves no purpose.
      
      BUG: 381114
      BUG: 381199
      Ackd-by: Kai Uwe Broulik's avatarKai Uwe Broulik <kde@privat.broulik.de>
      CCMAIL: AceLan Kao <acelan@acelan.idv.tw>
      97f39000
  10. 10 May, 2017 1 commit
    • AceLan Kao's avatar
      Fix the skip disabled backlight device · 86c3548d
      AceLan Kao authored
      Only raw backlight devices have the "enabled" file under device
      directory.
      So the commit
         5c0d35ca
      
       skip the disabled backlight device
      affects all type of backlight device is wrong, it will drop out all
      other type of backlight device except raw backlight interfaces.
      
      To fix this, we just need to check the enabled file for raw backlight
      interfaces.
      
      Changes V2:
         1. Declare isRawBacklightEnabled() as a static function
         2. Using QFile constructor to pass the file path
         3. Declare "QByteArray buffer" when it's really needed below
         4. Remove "bool result", and just return true/false directly
         5. Adding curly brackets to if statement
      Signed-off-by: AceLan Kao's avatarAceLan Kao <acelan@acelan.idv.tw>
      86c3548d
  11. 05 May, 2017 1 commit
    • AceLan Kao's avatar
      skip the disabled backlight device · 5c0d35ca
      AceLan Kao authored
      
      
      While adjusting the brightness, if there are more than one graphics card
      on the machine, then there might be more than one backlight interface
      directories under /sys/backlight. Only one of them is active, and in the
      code, KDE picks the first one in the list as the backlight device. It
      might pick the wrong one if the active device is the second one.
      So, we try skipping the disabled one and can fix the brightness issue on
      some machines with more than one graphics cards.
      
      Changes V2:
      	1. replace tab by 8 space
      	2. add file.close() after the file contain has been read
      Signed-off-by: AceLan Kao's avatarAceLan Kao <acelan@acelan.idv.tw>
      5c0d35ca
  12. 12 Aug, 2016 2 commits
  13. 25 Apr, 2016 1 commit
  14. 21 Nov, 2015 1 commit
  15. 08 Mar, 2015 1 commit
  16. 28 Feb, 2015 1 commit
  17. 27 Feb, 2015 3 commits
  18. 17 Feb, 2015 1 commit
    • Kai Uwe Broulik's avatar
      Get rid of brightness percentage · 04ba81e8
      Kai Uwe Broulik authored
      Due to historic reasons PowerDevil uses a fixed percentage range and has an additional
      brightness "value" which is the exact value provided by the hardware. The former is no longer
      used and thus removed.
      
      REVIEW: 122602
      04ba81e8
  19. 16 Oct, 2014 1 commit
  20. 03 Aug, 2014 1 commit
  21. 25 Nov, 2013 3 commits
  22. 18 Nov, 2013 1 commit
  23. 20 Apr, 2013 1 commit
  24. 29 Oct, 2012 2 commits
    • Alberto Villa's avatar
      Improve support for backlight on FreeBSD · c00d9427
      Alberto Villa authored
      LCD screens can appear as any other type when vendors have custom ACPI
      implementations. In the future, we hope to standardize non-standard
      ACPI-reported devices as "out".
      (cherry picked from commit 408467c4e3c166e829e4bc9204b9c8975a1c8ccd)
      c00d9427
    • Alberto Villa's avatar
      Improve support for backlight on FreeBSD · 56f59063
      Alberto Villa authored
      LCD screens can appear as any other type when vendors have custom ACPI
      implementations. In the future, we hope to standardize non-standard
      ACPI-reported devices as "out".
      56f59063
  25. 11 Oct, 2012 2 commits
  26. 10 Sep, 2012 2 commits
  27. 03 Apr, 2012 1 commit
  28. 10 Mar, 2012 1 commit
  29. 03 Feb, 2012 1 commit
    • Àlex Fiestas's avatar
      If kernel newer than 2.6.36 use the backlight type instead of whitelist · fb26184a
      Àlex Fiestas authored
      If the kernel is newer than 2.6.36 it indicates the type of the
      backlight wether it is a firmware/platform or raw. We should
      attempt to connect to these interfaces in this order.
      
      This should fix any compatibility issue we have right now and make this
      code comaptible with drivers that may appear in the future.
      
      BUG: 288180
      CCBUG: 292873
      CCMAIL: lukas@kde.org
      FIXED-IN: 4.9
      fb26184a