Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Auto-brightness in Ubuntu? Like Android does.

  1. #1
    Join Date
    Jul 2011
    Beans
    15

    Auto-brightness in Ubuntu? Like Android does.

    Is there a program which can set my notebook's brightness based on the light in the room, like my phone does? I am using a Dell XPS 17.

    I know about this idea...
    http://brainstorm.ubuntu.com/idea/13811/

    Red-shift sounds almost like what I am looking for, but it changes temperature only.

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Auto-brightness in Ubuntu? Like Android does.

    How about f.lux (http://stereopsis.com/flux/)? It changes the brightness based on the time of day.

  3. #3
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: Auto-brightness in Ubuntu? Like Android does.

    EDIT: sorry you already tried redshift
    Last edited by jim_deadlock; August 28th, 2012 at 06:50 PM.

  4. #4
    Join Date
    Jan 2006
    Location
    Orlando
    Beans
    33
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Auto-brightness in Ubuntu? Like Android does.

    I'm also really interested in adjusting the keyboard backlight / main screen brightness based on the ambient light sensor in my laptop. The horribly bloated windows driver was able to do it, I just wish I could get it working with Ubuntu. D:

  5. #5
    Join Date
    Jan 2006
    Location
    Orlando
    Beans
    33
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Auto-brightness in Ubuntu? Like Android does.

    Better yet, I'm a fairly competent c++ programmer, how would I go about adding this functionality? or figuring out what to read from / write to to adjust the light values?

  6. #6
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Auto-brightness in Ubuntu? Like Android does.

    Quote Originally Posted by Szor3n View Post
    Better yet, I'm a fairly competent c++ programmer, how would I go about adding this functionality? or figuring out what to read from / write to to adjust the light values?
    For screen backlight, you would echo values between 0 and the contents of max_brightness in your backlight interface file found at /sys/class/backlight/<interface>

    For keyboard ambient backlight, there should also be a brightness file that you can manipulate (sorry I can't test it), but the location of this file would be somewhere in the /sys/devices/platform/*/leds/ directory. If you have an asus laptop, this ppa might help: https://launchpad.net/asus-keyboard-backlight. If for nothing else, the source code to accomplish this on asus laptops.

  7. #7
    Join Date
    Jan 2006
    Location
    Orlando
    Beans
    33
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Auto-brightness in Ubuntu? Like Android does.

    Toz, thanks for the insight, I'm going to check that out now. I have a Samsung laptop so that ASUS site, probably won't help, but thanks for pointing me in the right direction!

    EDIT: Also, where would I look to find the sensor that reads ambient light?

  8. #8
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Auto-brightness in Ubuntu? Like Android does.

    This may not be the samsung model that you have, but check the location identified in post #15 here: https://bugs.launchpad.net/ubuntu/+s...ev/+bug/902332.

    This might be helpful as well: http://jablonskis.org/tag/samsung/.

    EDIT: And in case you didn't know, there is a samsung-specific PPA that helps fix a number of issues with samsung notebooks including brightness here: https://launchpad.net/~voria/+archive/ppa
    Last edited by Toz; August 29th, 2012 at 04:24 AM. Reason: More info

  9. #9
    Join Date
    Jan 2006
    Location
    Orlando
    Beans
    33
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Auto-brightness in Ubuntu? Like Android does.

    Not the same laptop, but I can write to that file and change my keyboard backlight. I'm going to poke around some more. Thanks for the help!

  10. #10
    Join Date
    Jul 2011
    Beans
    15

    Re: Auto-brightness in Ubuntu? Like Android does.

    Quote Originally Posted by Toz View Post
    How about f.lux (http://stereopsis.com/flux/)? It changes the brightness based on the time of day.
    It seems focused on changing display temperature. I tried it, but it's not working on my 12.04.

    I figure there was something that would read room lighting using the webcam and set the display brightness accordingly, like Android's Auto Brightness. I adjust my display manually a lot as I move from office to lower lit rooms.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •