Page 4 of 4 FirstFirst ... 234
Results 31 to 33 of 33

Thread: How do I adjust the screen brightness in Xfce?

  1. #31
    Join Date
    Jul 2011
    Beans
    17
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How do I adjust the screen brightness in Xfce?

    Hi Toz,

    I never have "Num Lk" on, as there isn't a separate keypad. Sony basically put a pseudo keypad in the middle of the keyboard which is a pain to use.

    There is no response on "acpi_listen" when I press the "Fn" key with or without the "Num Lk" on.

    I am not worried about the "Fn" key not working. The only two keys I ever use are the backlight controls and that has been fixed with the keyboard shortcuts.

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

    Re: How do I adjust the screen brightness in Xfce?

    Ok. I was just curious because I just remembered that on my other notebook, a toshiba, the Fn keys only work if the Numlock is off.

  3. #33
    Join Date
    Aug 2007
    Beans
    7

    Re: How do I adjust the screen brightness in Xfce?

    here is a tiny script that I save as "xb" somewhere in my PATH and use like:

    xb 10

    The arg is from 0 to 100.


    Code:
    #!/bin/bash
    
    
    #xbacklight -set $1
    
    file="/sys/class/backlight/intel_backlight/brightness"
    
    b="4648"
    
    min="0"
    max="4648"
    
    steps="100"
    
    step="$1"
    
    if [[ -z $step ]]
    then step=50
    fi
    
    
    b=`calc "int($min + ($max-$min)*$step/$steps + 0.5)"`
    
    #echo $b; exit
    
    echo $b | sudo tee $file >/dev/null


    ----


    it relies on the system's brightness file residing in

    /sys/class/backlight/intel_backlight/brightness


    to find out - go to /sys/class/backlight and see whats in there...


    try seeing if you can find a brightness file in there and see what are the min/max vals in there when you use the fn keys...

    Also note : I use the

    GRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash acpi_backlight=vendor"

    line in my

    /etc/default/grub file

    you put this acpi_backlight=vendor in there and then sudo update-grub

    and reboot...

Page 4 of 4 FirstFirst ... 234

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
  •