LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Brightness on Dell Inspiron 13z (Debian) (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/brightness-on-dell-inspiron-13z-debian-931033/)

mugnozzo 02-24-2012 06:52 AM

Brightness on Dell Inspiron 13z (Debian)
 
Hello everybody!
I've got a Dell Inspiron 13z with Debian Wheezy (but a friend of mine have the same problem with Ubuntu) and it has a problem with brightness adjustment.
The keys (F4 for brightness up and F5 for brightness down) show the brightness bar but:

1)it moves randomly (pressing F4 or F5 moves the bar in a random brightness percentage
2)the brightness DOESN'T CHANGE, it is always set on a low level when i turn on the laptop not plugged to AC and to a middle level when i have the laptop plugged to AC.

Z0K4 02-25-2012 04:38 AM

Try adding the "acpi_osi=Linux" as a kernel parameter...
You can do that by editing the /etc/default/grub file:
Code:

# nano /etc/default/grub
And add acpi_osi=Linux as a parameter to this line: GRUB_CMDLINE_LINUX_DEFAULT="some_parameter1 some_parameter2"
So after that it looks like this: GRUB_CMDLINE_LINUX_DEFAULT="some_parameter1 some_parameter2 acpi_osi=Linux"
After that you need to update grub:
Code:

# update-grub
If that command doesn't work try this instead:
Code:

# grub-mkconfig -o /boot/grub/grub.cfg
I hope it helps... Cheers

mugnozzo 02-25-2012 05:43 AM

I tried and rebooted the system but the problem still remains.

Z0K4 02-25-2012 06:49 AM

Can you give more specific info about hardware (graphics, motherboard, processor...)?
Also would you provide the output of these commands:
Code:

cat /etc/default/grub
Code:

cat /boot/grub/grub.cfg

mugnozzo 02-25-2012 07:48 AM

Here's the output of "lspci":
Code:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation G98M [GeForce G105M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
08:00.0 Network controller: Intel Corporation WiFi Link 5100
20:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

the content of /etc/default/grub:
Code:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#  info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

and the content of /boot/grub/grub.cfg:
Code:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation G98M [GeForce G105M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
08:00.0 Network controller: Intel Corporation WiFi Link 5100
20:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
root@valis:/home/mugnozzo# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation G98M [GeForce G105M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
08:00.0 Network controller: Intel Corporation WiFi Link 5100
20:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
root@valis:/home/mugnozzo# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation G98M [GeForce G105M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
08:00.0 Network controller: Intel Corporation WiFi Link 5100
20:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
root@valis:/home/mugnozzo# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#  info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@valis:/home/mugnozzo# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos6)'
  search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-686-pae' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.1.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.1.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro  quiet acpi_osi=Linux
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.1.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.1.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.1.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.1.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.0.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.0.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro  quiet acpi_osi=Linux
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.0.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.0.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.0.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.0.0-1-686-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root 523A14463A142A0D
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
root@valis:/home/mugnozzo# clear

root@valis:/home/mugnozzo# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos6)'
  search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-686-pae' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.1.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.1.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro  quiet acpi_osi=Linux
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.1.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.1.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.1.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.1.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.0.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.0.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro  quiet acpi_osi=Linux
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.0.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set=root b6a3a90a-5ccb-47ef-bcad-d0974f7fc029
        echo        'Loading Linux 3.0.0-1-686-pae ...'
        linux        /boot/vmlinuz-3.0.0-1-686-pae root=UUID=b6a3a90a-5ccb-47ef-bcad-d0974f7fc029 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-3.0.0-1-686-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root 523A14463A142A0D
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Another thing: a friend had the same problem with ubuntu 10.04: he solved adding this line
Code:

Option "RegistryDwords" "EnableBrightnessControl=1"
to xorg.conf in "Device" section but the problem came again with 11.04 and this solution didn't work anymore.

Z0K4 02-25-2012 08:09 AM

I can see you have a Intel graphics... I suppose you friend also has a Intel graphics chip! You need to know there is a "bug" in newer kernel releases (2.37+ I believe) and is not fixed yet! I also do have similar problem: at boot my screen went black, and fn keys didn't work. I solved with the acpi_osi=Linux... If that didn't work for you, try adding this to grub as previously described:
Code:

acpi_backlight=vendor
If that also doesn't work you could try setpci command to "adjust" brightness:
Code:

# setpci -s 00:02.0 F4.B=00
sets the brightness to 100%
Code:

# setpci -s 00:02.0 F4.B=78
sets the brightness to 50%
Code:

# setpci -s 00:02.0 F4.B=FF
sets the brightness to 0%
Basically, you can set your brightness to any value between 00 and FF (hex values), which means you have 256 levels...

Good luck and cheers... let me know how it went! ;)

mugnozzo 02-26-2012 11:19 AM

I tried.
The first solution did not change anything.
The second way (manual adjusting) returns this warning and doesn't do anything:
Code:

setpci: Warning: No devices selected for "F4.B=FF
I hope they will fix that bug.
Anyway, thank you very much for all your suggestions! :)

Z0K4 02-29-2012 05:44 AM

Quote:

Originally Posted by mugnozzo (Post 4612479)
Code:

setpci: Warning: No devices selected for "F4.B=FF

That's weird... Are you sure you've typed it correctly? I repeat, the correct form is (you need to do this as a root!):
Code:

setpci -s 00:02.0 F4.B=00
Note that F4.B=00 is brightest, and F4.B=FF is the darkest level...

I'm sorry none if my suggestions helped you. I also hope that the bug will be fixed soon (though I wouldn't keep my breath).
If you are using Debian, it's unlikely you'll get latest kernel soon (unless you are using unstable branch - Sid).

Cheers and good luck!

mugnozzo 02-29-2012 06:23 AM

Quote:

That's weird... Are you sure you've typed it correctly?
Yes! I've tried many times; i've also tried copying and pasting it on terminal

Quote:

I'm sorry none if my suggestions helped you.
Don't worry :) Thank you very much!!

Quote:

If you are using Debian, it's unlikely you'll get latest kernel soon (unless you are using unstable branch - Sid).
I'm using the Testing (it uses 3.2 kernel).

Quote:

Cheers and good luck!
Thanks!
If one day I fix it, I'll post here the solution!

Tommylee567 03-01-2012 04:05 AM

Hi
I am also facing the same issue as with the OP of this thread. I have a HP Pavilion DV6-6107tx (2011 model, bought on 2011 august)
Specs:
Intel Core i7-2630qm
4GB RAM
640GB HDD
15" widescreen lcd glossy
wifi b/g/n, BT, camera
Intel video gfx and AMD Radeon 6770m gfx switchable graphics.

BIOS is up to date. and i have Windows 7 x64 Home Premium
Also Linux Mint 12 x64
Fedora 16 x64
OpenSUSE latest x64
installed on the same pc with 10-15gb partitions. even used Porteus 1.1 live
Previously used Pinguy OS

All of them have the same brightness problem. no way of reducing the brightness.
@Z0K4 so do you mean if i run old kernel linux will i have a normal desktop?

Recently i have used vga switcheroo option but that too did not work. also running the latest update of the AMD Radeon gfx driver also did not help. i could not boot to the OS after installation. looked like xorg did not start at all.

Any suggestions??

Thanks!
Tim

Z0K4 03-01-2012 11:39 AM

Quote:

Originally Posted by Tommylee567 (Post 4615780)
All of them have the same brightness problem. no way of reducing the brightness.
@Z0K4 so do you mean if i run old kernel linux will i have a normal desktop?

I'm not sure... But I think running older kernel wouldn't enable you to change brightness! You see, with the older kernel I was unable to change brightness of my screen, but my screen did work (meaning it didn't go blank on boot). So I used the "setpci" command to reduce brighness if necessary... With the new kernel my screen (as mentioned before) went blank, which means brightness was set to 0%! Adding the "acpi_osi=Linux" to kernel parameters my screen now works perfectly fine, including dec/inc brightness...

Quote:

Originally Posted by Tommylee567 (Post 4615780)
Recently i have used vga switcheroo option but that too did not work. also running the latest update of the AMD Radeon gfx driver also did not help. i could not boot to the OS after installation. looked like xorg did not start at all.

Are you sure X didn't start? Maybe you were experiencing the same problem I had (brightness set to 0%)?

Quote:

Originally Posted by Tommylee567 (Post 4615780)
Any suggestions?

Have you tried the solutions I suggested to mugnozzo?
If not, try them... If yes, then I'm out of suggestions!

I'll look into this problem during the next couple of days, and let you two know what I found out...
That doesn't mean you shouldn't try to find the solution by yourself! ;)

Regards!

Tommylee567 03-01-2012 09:01 PM

Thanks!
 
Quote:

Originally Posted by Z0K4 (Post 4611700)
I can see you have a Intel graphics... I suppose you friend also has a Intel graphics chip! You need to know there is a "bug" in newer kernel releases (2.37+ I believe) and is not fixed yet! I also do have similar problem: at boot my screen went black, and fn keys didn't work. I solved with the acpi_osi=Linux... If that didn't work for you, try adding this to grub as previously described:
Code:

acpi_backlight=vendor
If that also doesn't work you could try setpci command to "adjust" brightness:
Code:

# setpci -s 00:02.0 F4.B=00
sets the brightness to 100%
Code:

# setpci -s 00:02.0 F4.B=78
sets the brightness to 50%
Code:

# setpci -s 00:02.0 F4.B=FF
sets the brightness to 0%
Basically, you can set your brightness to any value between 00 and FF (hex values), which means you have 256 levels...

Good luck and cheers... let me know how it went! ;)

Except this part i have done all the others. even setting the boot parameters but they did not work at all. I will try this part and tell you if it works or not. since all the 5-6 of the distro's have failed to adjust screen brightness i have to know which part is acting like that. switcheroo doesnt make any sense for now. and the amd drivers did not start x at all. i have used it on Linux Mint but not the other two distros. but have tried it on Porteus and that too did not start. There are no data yet in any of the distros installed (because of the brightness of the screen kills my eyes off! and produces much heat on pc) so it is good if i can format it.

OK i appreciate your reply. i will try the above mentioned part and do it. if that too doesnt work then i will try something else.
Googling much doesnt get the exact reply. so i had to ask someone directly.

Ok, thanks! i will try and see you later!
Tim

Tommylee567 03-03-2012 10:49 AM

The above post did not work. i wonder why it even doesn't come to Intel gfx too. hmmmmm.....

Tried meddling with the AMD drivers with aticonfig on terminal. nothing works. it refuses to start x server. after uninstalling ati driver then it works well......
still digging....

Z0K4 03-03-2012 01:46 PM

As promised here are some more resources and info both of you could try:
First try this link, and if it doesn't work try first solution of this thread which suggests that you patch your kernel (which could be a bad idea regarding security)...

I hope one of these helps...

Tommylee567 03-07-2012 09:24 AM

Actually i have to try again in the weekend when i am free.
i tried all the methods but they look like old. also using ppa for adding packages i could not do so. it is only for ubuntu. not suse or fedora nor mint. so what do you suggest? the second link might give me the answer. the first one doesnt have the info for the latest linux versions. so dropped that.

Thanks for your finding.
Tim


All times are GMT -5. The time now is 11:44 PM.