Backlight

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Backlight

Postby Upgreydd » Sun Sep 27, 2009 10:55

Hi all, i have a trouble with sabayon 4.2 gnome and backlight on my laptop Samsung R560.
I was looking on google why i can't change my backlight and i found something about ACPI, but i don't know how to ON ACPI MODE in Sabayon.
When i power on my laptop everything is fine, in grub i can change my backlight putting FN+Left Arrow or FN+Right Arrow, but after Starting loading Sabayon this shortcut's won't work. I can't change backlight using gnome applet, when it is 100% it looks nice, but when i change this i always have an error "can not get laptop lcd brightness". Tell me which logs i should put here, and how to make my laptop additional function work.

PS. Sorry for my poor english
Upgreydd
Baby Hen
 
Posts: 6
Joined: Thu Jun 04, 2009 19:36

Re: Backlight

Postby chenxiaolong » Sun Sep 27, 2009 13:53

Open up /boot/grub/grub.conf as root and find the kernel line. It will start with "kernel /boot/" and some other stuff. You should try adding noapic (notice, it's not noacpi) to the end of the line. If you are using gedit to modify this file, you'll need to maximize the window because gedit will wrap a long line into multiple lines. Then restart and see if it works. If it doesn't, then replace the noapic part with acpi=off and restart. It should work with either noapic or acpi=off, but in the event that it doesn't, you can try putting both in. It doesn't matter what order.
chenxiaolong
Simple Hen
 
Posts: 56
Joined: Thu Jul 02, 2009 15:09
Location: /home/chenxiaolong, C:\Users\Chen Xiao-Long, and /Users/chenxiaolong. Oh yeah, and /root.

Re: Backlight

Postby Upgreydd » Sun Sep 27, 2009 20:09

This is my grub.conf, where i should add this command? Sorry for this question, i'm newbie.

Code: Select all
# grub.conf generated by the Sabayon Linux Installer
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,6)
#          kernel /kernel-genkernel real_root=/dev/VolGroup00/LogVol00
#          initrd /initramfs-genkernel
### AUTOMAGIC BOOT DEVICE DETECTION -- DO NOT REMOVE ###
#boot=sda
### AUTOMAGIC BOOT DEVICE DETECTION END ###
default=2
timeout=5
splashimage=(hd0,6)/grub/splash.xpm.gz


title Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon)
   root (hd0,6)
   kernel /kernel-genkernel-x86-2.6.29-sabayon  root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon CONSOLE=/dev/tty1 quiet vga=0x361 resume=swap:/dev/mapper/VolGroup00-LogVol01 real_resume=swap:/dev/mapper/VolGroup00-LogVol01 [color=#FF0000]!!!![/color]
   initrd /initramfs-genkernel-x86-2.6.29-sabayon
   savedefault


title Sabayon Linux (kernel-genkernel-x86-2.6.29-sabayon) (safe mode)
   root (hd0,6)
   kernel /kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/mapper/VolGroup00-LogVol01 real_resume=swap:/dev/mapper/VolGroup00-LogVol01 nox acpi=off ide=nodma vga=normal
   initrd /initramfs-genkernel-x86-2.6.29-sabayon
   savedefault


title Other Operating System - Microsoft Windows MX
   rootnoverify (hd0,0)
   chainloader +1
   savedefault


[EDIT]
OK, I added here (!!!!) noapic, laptop start but nothing happens, then i tried acpi=off, and after that won't boot.

I tried:
Code: Select all
echo -n 50 > /proc/acpi/video/NVID/LCD/brightness

but it won't work.
Code: Select all
cat /proc/acpi/video/NVID/LCD/brightness
levels:  40 50 60 70 80 100
current: 50


[EDIT2]
OK, i found something. when i press alt+F6 and log into another console command:
Code: Select all
 echo -n 50 > /proc/acpi/video/NVID/LCD/brightness
is working
Upgreydd
Baby Hen
 
Posts: 6
Joined: Thu Jun 04, 2009 19:36

Re: Backlight

Postby Upgreydd » Mon Sep 28, 2009 9:09

any ideas?
Upgreydd
Baby Hen
 
Posts: 6
Joined: Thu Jun 04, 2009 19:36

Re: Backlight

Postby chenxiaolong » Sat Oct 03, 2009 15:58

Since it works in another TTY, it's probably a problem with Xorg. You should try upgrading to Sabayon 5.0 (released yesterday) as it has the newest version of Xorg.
chenxiaolong
Simple Hen
 
Posts: 56
Joined: Thu Jul 02, 2009 15:09
Location: /home/chenxiaolong, C:\Users\Chen Xiao-Long, and /Users/chenxiaolong. Oh yeah, and /root.

Re: Backlight

Postby Odysseus » Wed Oct 07, 2009 15:28

I'd be willing to bet that it's a HAL issue. I used to have problems with the backlight on my Dell Inspiron 9300 when I was running Gentoo on an older non-evdev non-Hal version of Xorg. Now it works great because Dell supplied to the freedesktop.org team help in developing a .fdi file for it's notebooks that correspond to the special/extra keys that Dell uses for controlling the backlight, volume level, turning on and off the wifi/bluetooth, etc.

I suspect that since Samsung isn't nearly as large a company or has nearly the installed base, that the necessary .fdi file doesn't exist for your notebook. The first thing to try is to go to Samsung's website to see what kind of Linux support they provide. If you're lucky they've got something there that can help.

If they don't there's a work around. If you go to /usr/share/hal/fdi folder you can poke around and look at the .fdi files for the Dell, Sony, Mac, and Levono notebooks with a text editor. Copy the file that has controls as close to yours as possible into your home directory so it can be edited. Change the key combination to suit your purpose, remove the key combos that don't apply. Be careful with formatting and syntax this must stay the same.

Once you've got it adjusted, rename it to something like "10-samsung-panel.fdi" (without "") and place it in your /etc/hal/fdi/policy/ folder. Time to test. If you made the right adjustments all you have to do is log out of X and restart HAL and you should be good to go.

I hope this helps,

Ciao
Odysseus
Simple Hen
 
Posts: 44
Joined: Wed Aug 26, 2009 2:37
Location: Miami, FL (homesick for SF,CA)


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests