Results 1 to 7 of 7

Thread: Brightness adjustment not work - Samsung X360

  1. #1
    Join Date
    Jan 2009
    Beans
    1

    Exclamation Brightness adjustment not work - Samsung X360

    My laptop is SAMSUNG X360 and main system Ubuntu 8.10.
    I have found that brightness adjustment buttons not work, more over gnome panel -> brightness adjustment too. After few hours I repaired it and wrote short tutorial, may someone find right name of brightness arrow short-cuts (FN + Up/Down Arrow), because I have to use alternative combination ShitKey (WinKey) + Arrow. This tutorial set right parameters for native console (ex. tty1-9), running by Ctrl+Alt+(F1-9) - they not work properly before (not work at all...). So let's go:


    Update for Ubuntu 10.04 users by Joe Fleming
    ---------------------------------------------------------------------
    Seems KMS is enabled by default for a certain chipset, specifically the Intel i915 chipset. I found out that KMS (Kernel Modesetting) disable BACKLIGHT_CONTROL parameter, so we have to turn off that future:

    Code:
    sudo gedit /etc/default/grub
    Change: GRUB_CMDLINE_LINUX=""
    To: GRUB_CMDLINE_LINUX="nomodeset"

    Then run:
    Code:
    sudo update-grub

    I. Set brightness control and change console display.

    Add this command to System->Preferences->Sessions->> +Add (or System->Preferences->Startup Application->> +Add)
    Code:
    xrandr --output LVDS --set BACKLIGHT 102 --set BACKLIGHT_CONTROL legacy --output VGA --auto
    this command allow adjust LCD brightness by gnome brightness applet, and set about 40% brightnes default (180 set to 70%). Parts "--output VGA --auto" set graphic mode for console - check it by press Ctrl+Alt+(F1-9)

    Check actual parameters, all changes should be list:
    Code:
    xrandr --prop

    II. Look for right keycode to set.

    Code:
    xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
    This will only output pressed keycode and currently assigned keysym, for example:

    160 XF86AudioMute
    174 XF86AudioLowerVolume
    176 XF86AudioRaiseVolume


    III. Set short-cuts and right command to change brightness.

    install xbacklight:
    Code:
    sudo apt-get install xbacklight
    check if you can change backlight from console (command repeated few times should take visible effect):
    Code:
    xbacklight -inc 10
    xbacklight -dec 10

    after test, type in terminal:
    Code:
    gconf-editor
    A config editor window will open. Browse to apps -> metacity ->> global keybindings

    Here you'll see "run_command_#" text boxes. Type the short-cut in the value box, if you still don't know right short-cuts try alternative <Super>Up / <Super>Down which cause change on press WindowsKey and Arrow Up/Down.

    To set the commands, browse to keybindings_command and type the command ("xbacklight -inc 10" or "xbacklight -dec 10", remember to leave apostrophes). All hacks will work if you have desktop effects disabled. If you have compiz enabled then you have to install ccsm package to edit short-cuts.
    Last edited by yetiicom; July 18th, 2010 at 07:08 PM.

  2. #2
    Join Date
    Oct 2007
    Beans
    60

    Re: Brightness adjustment not work - Samsung X360

    Just an ammendment...

    This solution worked for me overall, and it seems that now things such as the powersave dimming, brightness screenlet, and perhaps others are working. Thank you!

    One note for some who may have troubles:

    For some reason I could not get the command to run at session login, so rather I created a shell script and added that shell script to the session login:

    1) Create shell script (brightnessfix.sh):
    Code:
    #!/bin/sh
    xrandr --output LVDS --set BACKLIGHT 102 --set BACKLIGHT_CONTROL legacy --output VGA --auto
    2) make executable:
    %chmod +x brightnessfix.sh

    3)Add this command to System->Preferences->Sessions->> +Add
    Browse to your brightnessfix.sh file.

    4) follow steps per remainder of original post.

  3. #3
    Join Date
    Nov 2004
    Beans
    185
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Brightness adjustment not work - Samsung X360

    Hi,

    I took the liberty of creating a Linux Launchpad team for the people who own or develop for the Samsung X360 series laptop, so that we can have more visibility upstream when having to ask for patches or support.

    https://launchpad.net/~samsung-x360

    I'll be sending a couple of messages to ubuntuforums and notebookreview forums to gather the ~10 users I've identified so far.

    Cheers,

    Albert.

  4. #4
    Join Date
    Mar 2009
    Beans
    4

    Re: Brightness adjustment not work - Samsung X360

    Hi

    I'm kind of new in this Linux and OS business, so maybe some one could guide me a little more.

    yetiicom wrote

    Add this command to System->Preferences->Sessions->> +Add
    xrandr --output LVDS --set BACKLIGHT 102 --set BACKLIGHT_CONTROL legacy --output VGA --auto

    this command allow adjust LCD brightness by gnome brightness applet, and set about 40% brightnes default (180 set to 70%). Parts "--output VGA --auto" set graphic mode for console - check it by press Ctrl+Alt+(F1-9)


    this is very helpful - I can easyli follow these directions.... I also understand how to run the gconf-editor in the terminal - and I found "global keybindings"....

    but then things get technical.. I have no idea what to do with the following directions........

    Check actual parameters, all changes should be list:
    xrandr --prop


    II. Look for right keycode to set.

    xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

    This will only output pressed keycode and currently assigned keysym, for example:

    160 XF86AudioMute
    174 XF86AudioLowerVolume
    176 XF86AudioRaiseVolume


    III. Set short-cuts and right command to change brightness.

    install xbacklight:
    sudo apt-get install xbacklight

    check if you can change backlight from console (command repeated few times should take visible effect):
    xbacklight -inc 10
    or
    xbacklight -dec 10

    Is it possible if someone can help me out!

    /Felix
    Last edited by FelixFBL; March 23rd, 2009 at 04:15 PM.

  5. #5
    Join Date
    Jul 2009
    Beans
    1

    Re: Brightness adjustment not work - Samsung X360

    Hello, this is not working with the Karmic Koala (9.10RC) .

    I remember having to roll back the driver for the INTEL in 9.04, does it have any relationship? Should we think it will be corrected in the 9.10 final version and/or with the 2.6.32 kernel?

    Thank you in advance,

    uname -a
    2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux

  6. #6
    Join Date
    Oct 2008
    Beans
    8

    Re: Brightness adjustment not work - Samsung X360

    Quote Originally Posted by fojo View Post
    Hello, this is not working with the Karmic Koala (9.10RC) .

    I remember having to roll back the driver for the INTEL in 9.04, does it have any relationship? Should we think it will be corrected in the 9.10 final version and/or with the 2.6.32 kernel?

    Thank you in advance,

    uname -a
    2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux
    Also, for me, it does not work with Ubuntu 9.10. Any suggestions?

  7. #7
    Join Date
    Nov 2009
    Beans
    1

    Re: Brightness adjustment not work - Samsung X360

    Found some info here:

    https://bugs.launchpad.net/ubuntu/+s...el/+bug/397617

    which worked for me on my X360... Quoting from that post:

    first : find the device address (here 00:02.0)
    lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
    second :
    setpci -s 00:02.0 F4.B=66 (a value between 00 and FF, where FF is 100%)
    No idea what it does exactly but better than nothing as long as it works...

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
  •