Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: Sony Vaio E-Series Brightness Issue

  1. #11
    Join Date
    Jul 2012
    Beans
    7

    Re: Sony Vaio E-Series Brightness Issue

    - /etc/acpi/events/sony-brightness-up:
    Code:
    event=sony/hotkey SNC 00000001 00000011
    action=/etc/acpi/brightup.sh
    - /etc/acpi/events/sony-brightness-down
    Code:
    event=sony/hotkey SNC 00000001 00000010
    action=/etc/acpi/brightdown.sh

    - /etc/acpi/brightdown.sh
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -gt 0 ]; then
    curr=$((curr-610));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi\
    - /etc/acpi/brightup.sh
    Code:
    #!/bin/bash
    
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -lt 4882 ]; then
    curr=$((curr+610));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    ls -l /etc/acpi/bright*
    -rw-r--r-- 1 root root 191 Jul 27 14:46 /etc/acpi/brightdown.sh
    -rw-r--r-- 1 root root 180 Jul 27 14:44 /etc/acpi/brightdown.sh~
    -rw-r--r-- 1 root root 193 Jul 27 14:47 /etc/acpi/brightup.sh
    -rw-r--r-- 1 root root 180 Jul 27 14:45 /etc/acpi/brightup.sh~

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

    Re: Sony Vaio E-Series Brightness Issue

    Make /etc/acpi/brightdown.sh and /etc/acpi/brightup.sh executable:
    Code:
    sudo chmod +x /etc/acpi/brightdown.sh
    sudo chmod +x /etc/acpi/brightup.sh
    Remove the last \ after fi in /etc/acpi/brightdown.sh. Should be:
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -gt 0 ]; then
    curr=$((curr-610));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    ...sorry, that was typo on my part.

    Restart acpid
    Code:
    sudo service acpid restart
    Do the brightness keys work now?

  3. #13
    Join Date
    Jul 2012
    Beans
    7

    Re: Sony Vaio E-Series Brightness Issue

    Thanks bro! You are my hero!!! =D>

    It works! I didn't check if the files are executable.

    For anybody else with a Sony Vaio E-series with a similar behaviour:
    I edited the scripts as followed, that they work as I want:

    /etc/acpi/brightdown.sh
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -gt 610 ]; then
    curr=$((curr-305));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    /etc/acpi/brightup.sh
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -lt 4882 ]; then
    curr=$((curr+305));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    @Toz: Thank you very much for your patience and help!

  4. #14
    Join Date
    Aug 2012
    Beans
    6

    Re: Sony Vaio E-Series Brightness Issue

    Quote Originally Posted by KarlMax View Post
    Thanks bro! You are my hero!!! =D>

    It works! I didn't check if the files are executable.

    For anybody else with a Sony Vaio E-series with a similar behaviour:
    I edited the scripts as followed, that they work as I want:

    /etc/acpi/brightdown.sh
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -gt 610 ]; then
    curr=$((curr-305));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    /etc/acpi/brightup.sh
    Code:
    #!/bin/bash
    
    curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    if [ $curr -lt 4882 ]; then
    curr=$((curr+305));
    echo $curr  > /sys/class/backlight/intel_backlight/brightness;
    fi
    @Toz: Thank you very much for your patience and help!
    KarlMax, I am using a Sony VCP F234FX and my hotkeys do not work neither, but volume control. I cannot control brightness nor inactivate touchpad. Can you, please, write your solution step by step? Thank you in advance.

  5. #15
    Join Date
    Aug 2012
    Beans
    6

    Re: Sony Vaio E-Series Brightness Issue

    Hi guys!

    I'm using 12.04, and my brightness control does not work. I tried whatever was mentioned in this post, but this is what is different. I've modified the grub to reflect

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
    GRUB_CMDLINE_LINUX="acpi_backlight=vendor"

    When I run the next command
    ls /sys/class/backlight/
    i see that there are no files in this folder and I don't know how to proceed to fix this one now. Any help will be appreciated.

    Thanks in advance.

    -Abhi.

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

    Re: Sony Vaio E-Series Brightness Issue

    Quote Originally Posted by abhicr View Post
    Hi guys!

    I'm using 12.04, and my brightness control does not work. I tried whatever was mentioned in this post, but this is what is different. I've modified the grub to reflect

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
    GRUB_CMDLINE_LINUX="acpi_backlight=vendor"

    When I run the next command
    ls /sys/class/backlight/
    i see that there are no files in this folder and I don't know how to proceed to fix this one now. Any help will be appreciated.

    Thanks in advance.

    -Abhi.
    This solution won't necessarily work for everyone. What is the make and model of your computer and what video card do you have:
    Code:
    sudo lspci -vnn | grep -A12 VGA

  7. #17
    Join Date
    Dec 2009
    Beans
    12

    Re: Sony Vaio E-Series Brightness Issue

    I have installed xubuntu 12.04 on my sony vaio tx3xp_b laptop. Problem is when computer boots up, brightness is always on a half (dimmed) and i should increase brightness by Fn+F6 keys no matter computer operates on battery or when on AC.
    In /etc/acpi here is no brightdown.sh or brightup.sh files (only asus-brn-down.sh and asus-brn-up.sh). Where can be a problem?

    Thanks

    Sorry for my poor english...

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

    Re: Sony Vaio E-Series Brightness Issue

    Quote Originally Posted by egidijus View Post
    I have installed xubuntu 12.04 on my sony vaio tx3xp_b laptop. Problem is when computer boots up, brightness is always on a half (dimmed) and i should increase brightness by Fn+F6 keys no matter computer operates on battery or when on AC.
    In /etc/acpi here is no brightdown.sh or brightup.sh files (only asus-brn-down.sh and asus-brn-up.sh). Where can be a problem?

    Thanks

    Sorry for my poor english...
    A couple of questions:

    1. Do your FN+F6 (increase brightness) and Fn+F7 (decrease brightness) function keys work?

    2. Have you tried adding the acpi_backlight=vendor kernel parameter as noted in posted #6, point #1?

  9. #19
    Join Date
    Dec 2009
    Beans
    12

    Re: Sony Vaio E-Series Brightness Issue

    1. Do your FN+F6 (increase brightness) and Fn+F7 (decrease brightness) function keys work?
    Fn+F5/F6 keys are working properly, as intended -- Fn+F5 decrease brightness and Fn+F6 increase brightness.

    2. Have you tried adding the acpi_backlight=vendor kernel parameter as noted in posted #6, point #1?
    Yes I tried adding acpi_backlight=vendor and acpi_backlight=video but without success:
    -
    acpi_backlight=vendor ---- nothing changes (I should increase brightness from half to the max after every reboot)
    - acpi_backlight=video ---- after reboot, brightness stay on a half position and Fn+F6 key doesn't increase it any more, though Fn+F5 decrease it to the lower initial position.

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

    Re: Sony Vaio E-Series Brightness Issue

    Right after reboot, before adjusting with your brightness keys, run the following command (it will report back on your backlight interfaces and their values) and post back the results:
    Code:
    for interface in /sys/class/backlight/*; do echo $interface; cat $interface/max_brightness; cat $interface/actual_brightness; cat $interface/brightness; done

Page 2 of 4 FirstFirst 1234 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
  •