Results 1 to 9 of 9

Thread: Brightness Problem on Lenovo G570 Laptop

  1. #1
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Question Brightness Problem on Lenovo G570 Laptop

    Hi,

    Lenovo G570, Core i5 2nd generation with 4GB RAM and Intel Graphics Card.

    I have Lubuntu 12.04 x86_64 with 3.2.0-31-generic Kernel.

    Tried this: http://askubuntu.com/questions/15165...-every-restart

    and this: http://askubuntu.com/questions/12846...-an-acer-4741g

    That did not work.

    If I remember correctly, before I format and re-install, I managed to save the brightness so that when I reboot, I don't need to press Fn+Low Brightness Button.
    Now, it is either TOO dim that I almost can see or TOO high which I hate.

    I think there is some kind of conflict between:

    acpi_video0
    and
    intel_backlight

    /sys/class/backlight/acpi_video0
    /sys/class/backlight/intel_backlight

    However, not sure how to fix it?

    I've seen some solutions to edit GRUB File but I didn't have to do that before, I just don't remember how it worked before without editing anything in GRUB File.

    Thanks in advance!

  2. #2
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Brightness Problem on Lenovo G570 Laptop

    It's been 4 days now

  3. #3
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Brightness Problem on Lenovo G570 Laptop

    Two weeks now!!!

  4. #4
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Brightness Problem on Lenovo G570 Laptop

    which of theses maxes your screen brightness
    Code:
    sudo basch -c "echo `cat /sys/class/backlight/acpi_video0/max_brightness` > /sys/class/backlight/acpi_video0/brightness"
    Code:
    sudo bash -c "echo `cat  /sys/class/backlight/intel_backlight/max_brightness` >  /sys/class/backlight/intel_backlight/brightness"
    or which of theses turns it dim
    Code:
    sudo bash -c "echo 0 >  /sys/class/backlight/acpi_video0/brightness"
    Code:
    sudo basch -c "echo 0 >  /sys/class/backlight/intel_backlight/brightness"
    if you have to do both just say so
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  5. #5
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Brightness Problem on Lenovo G570 Laptop

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    which of theses maxes your screen brightness
    Code:
    sudo basch -c "echo `cat /sys/class/backlight/acpi_video0/max_brightness` > /sys/class/backlight/acpi_video0/brightness"
    Code:
    sudo bash -c "echo `cat  /sys/class/backlight/intel_backlight/max_brightness` >  /sys/class/backlight/intel_backlight/brightness"
    or which of theses turns it dim
    Code:
    sudo bash -c "echo 0 >  /sys/class/backlight/acpi_video0/brightness"
    Code:
    sudo basch -c "echo 0 >  /sys/class/backlight/intel_backlight/brightness"
    if you have to do both just say so
    There is extra "c" in your commands but it's ok.

    The first two both maximize the brightness.

    The last one makes it TOO dim so the third is better.

    Now, I don't think any of these will save the brightness until I reboot and login again, right? the whole point is, I can't save the brightness. Everytime I login, I need to reduce the brightness.

    Thanks for your reply

  6. #6
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Brightness Problem on Lenovo G570 Laptop

    i only expected one to work so i wanted to know how to write the commands
    if you run a script at shutdown to store the brightness and then set it in /etc/rc.local

    shutdown:
    Code:
    echo `cat /sys/class/backlight/acpi_video0/brightness` > /var/log/brightness
    boot (/etc/rc.local)
    Code:
    echo `cat /var/log/brightness` > /sys/class/backlight/acpi_video0/brightness
    let me know if that does not work, there is a way to have lightdm run commands at logout/login/boot/right after boot
    edit:
    Code:
    ~$ cat /etc/lightdm/lightdm.conf
    [SeatDefaults]
    greeter-session=lightdm-gtk-greeter
    user-session=xubuntu
    #display-setup-script= #script runs at about to display login
    #greeter-setup-script= #script runs at ready to login
    #session-setup-script= #script runs at about to login
    #session-cleanup-script= #script runs at about to logout
    Last edited by pqwoerituytrueiwoq; October 13th, 2012 at 11:18 PM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  7. #7
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Brightness Problem on Lenovo G570 Laptop

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    i only expected one to work so i wanted to know how to write the commands
    if you run a script at shutdown to store the brightness and then set it in /etc/rc.local

    shutdown:
    Code:
    echo `cat /sys/class/backlight/acpi_video0/brightness` > /var/log/brightness
    boot (/etc/rc.local)
    Code:
    echo `cat /var/log/brightness` > /sys/class/backlight/acpi_video0/brightness
    let me know if that does not work, there is a way to have lightdm run commands at logout/login/boot/right after boot
    edit:
    Code:
    ~$ cat /etc/lightdm/lightdm.conf
    [SeatDefaults]
    greeter-session=lightdm-gtk-greeter
    user-session=xubuntu
    #display-setup-script= #script runs at about to display login
    #greeter-setup-script= #script runs at ready to login
    #session-setup-script= #script runs at about to login
    #session-cleanup-script= #script runs at about to logout
    Code:
    bash: /var/log/brightness: Permission denied
    Last time I did it, it was MUCH more simpler than all this and I just don't remember how I did that? I followed one answer on AskUbuntu and it worked like a charm. I couldn't find that. I should have bookmarked.

  8. #8
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Brightness Problem on Lenovo G570 Laptop

    http://askubuntu.com/questions/3841/...after-a-reboot

    That is it. I had bookmarked it indeed but because I formatted my laptop, I forgot to import my bookmarks from my external HDD.

    Everything is perfect now.

    Thank you

  9. #9
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Brightness Problem on Lenovo G570 Laptop

    what i was suggesting would have it reset the brightness to the level it was when you shutdown
    Code:
    sudo apt-get install xbacklight
    add these lines to /etc/lightdm/lightdm.conf
    Code:
    display-setup-script=sh -c "if [ -f /var/log/xbacklight ];then xbacklight -set $(cat /var/log/xbacklight);fi"
    session-cleanup-script=sh -c "xbacklight -get > /var/log/xbacklight"
    then if you shutdown with 20% back-light you get 20% back-light when the login screen appears
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

Tags for this Thread

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
  •