Announcement

Collapse
No announcement yet.

Brightness hotkey not working

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Brightness hotkey not working

    Hey guys,


    sorry to post this noob thread. I tried googling this but couldn't find answer in right direction.

    SO the deal here is, i installed Kubuntu 14.04. It was working awesome and everything was working!

    But today suddenly my brightness keys stopped working. I have two keys F11 and F12 for brightness down and up respectively. But they do not change brightness significantly and do not show the animation as well.

    please help.


    check this
    Code:
    madmandy@Kubook:~$ acpi_listen
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessup BRTUP 00000086 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000
    video/brightnessdown BRTDN 00000087 00000000

    #2
    Please run sudo lshw -C display and paste the output here. It's helpful if we know what kind of video hardware you have. Also, is your computer a laptop or desktop? If laptop, what brand and model?

    Comment


      #3
      Hey thanks man!

      Here you go this is the output you requested:

      Code:
      madmandy@Kubook:~$ sudo lshw -C display
      [sudo] password for madmandy: 
        *-display               
             description: VGA compatible controller
             product: GK107M [GeForce GT 645M]
             vendor: NVIDIA Corporation
             physical id: 0
             bus info: pci@0000:01:00.0
             version: a1
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress vga_controller bus_master cap_list
             configuration: driver=nvidia latency=0
             resources: irq:47 memory:d2000000-d2ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128)
        *-display
             description: VGA compatible controller
             product: 3rd Gen Core processor Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:44 memory:d3000000-d33fffff memory:e0000000-efffffff ioport:4000(size=64)
      Yes and its a lenovo laptop Z500.

      Thanks again.

      Comment


        #4
        Ah, yet another laptop with hybrid graphics. For the nVidia part, you need the follwing lines in /etc/X11/xorg.conf:
        Code:
        Section "Device"
            Identifier     "Device0"
            Driver         "nvidia"
            Option         "RegistryDwords" "EnableBrightnessControl=1"
        EndSection
        If the file doesn't exist, create it and copy those lines. If the file already exists, then locate the nvidia device section and add the option line shown.

        Comment


          #5
          doesn't work.

          Code:
          Section "ServerLayout"
              Identifier "layout"
              Screen 0 "nvidia"
              Inactive "intel"
          EndSection
          
          Section "Device"
              Identifier "intel"
              Driver "intel"
              BusID "PCI:0@0:2:0"
              Option "AccelMethod" "SNA"
          EndSection
          
          Section "Screen"
              Identifier "intel"
              Device "intel"
          EndSection
          
          Section "Device"
              Identifier "nvidia"
              Driver "nvidia"
              BusID "PCI:1@0:0:0"
              Option "ConstrainCursor" "off"
              Option "RegistryDwords" "EnableBrightnessControl=1"
          EndSection
          
          Section "Screen"
              Identifier "nvidia"
              Device "nvidia"
              Option "AllowEmptyInitialConfiguration" "on"
              Option "IgnoreDisplayDevices" "CRT"
          EndSection
          is this right?

          Comment


            #6
            Yes, that's right. Did you reboot?

            It could be that the Intel graphics is controlling your primary display. In that case, you need to edit the file /etc/default/grub and add the following kernel boot parameter: acpi_backlight=vendor

            Comment


              #7
              Dude so much appreciate your effort to help me. However, it has not worked out.

              I did add the option you mentioned to /etc/default/grub:

              my 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_HIDDEN_TIMEOUT=0
              GRUB_HIDDEN_TIMEOUT_QUIET=true
              GRUB_TIMEOUT=10
              GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
              GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
              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"
              
              
              #### added for backlight by madmandy ###
              acpi_backlight=vendor

              and ran
              Code:
              sudo update-grub
              still no juice!

              Comment


                #8
                I believe the popup is the work of something called powerdevil. For the same kde has config file named powerdevilrc i have it ~/.kde/share/config/powerdevilrc.

                Now i read in a thread, a guy had problems with kwin re rmed the kwinrc and replaced it by kwin --replace.
                powerdevil --replace doesn't exist.

                will reinstalling powerdevil and/or replacing powerdevilrc will help?

                Comment


                  #9
                  You didn't add the parameter correctly.

                  Edit /etc/default/grub again. Remove the entries you made. Then edit the following entry in the file:

                  GRUB_CMDLINE_LINUX=""

                  so it reads:

                  GRUB_CMDLINE_LINUX="acpi_vendor=vendor"

                  Save and close then run:

                  sudo update-grub
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Originally posted by rcmandar View Post
                    I believe the popup is the work of something called powerdevil. For the same kde has config file named powerdevilrc i have it ~/.kde/share/config/powerdevilrc.

                    Now i read in a thread, a guy had problems with kwin re rmed the kwinrc and replaced it by kwin --replace.
                    powerdevil --replace doesn't exist.

                    will reinstalling powerdevil and/or replacing powerdevilrc will help?
                    This has nothing to do with the question this thread is about. Why did you post this? Did you intend to ask another question in a new thread?
                    Using Kubuntu Linux since March 23, 2007
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      No no... Doesn't work...

                      I tried putting in acpi_vendor=vendor in quotes or the acpi_backlight=vendor...
                      i did update-grub. i, of course, did reboot.

                      I just want to see brightness changing with the popup bar same like it used. It used to do same thing like volume thing.
                      Volume changes fine using hotkeys and it also shows the current status by pop up. Also if i click on battery in my system tray, the brightness level is actually different but, in text it shows 30% even though the bar is at different position. I m so annoyed by this.

                      Plz help!

                      Comment


                        #12
                        Still assuming you run the nVidia card the text in /tex/X11/xorg.conf should be:
                        Section "Device"
                        Identifier "Default Device"
                        Option "RegistryDwords" "EnableBrightnessControl=1"
                        Option "NoLogo" "True"
                        EndSection
                        At least, this is what works on my W520.
                        If this isn't present you can still change brightness by logging in on a console (like Ctrl+Alt+F4) and use the key's there.
                        Press Ctrl+Alt+F8 to return to the normal screen.


                        The brightness control on Intel works out of the box.

                        Comment


                          #13
                          yeah yeah... i have this:

                          Code:
                          Section "ServerLayout"
                              Identifier "layout"
                              Screen 0 "nvidia"
                              Inactive "intel"
                          EndSection
                          
                          Section "Device"
                              Identifier "intel"
                              Driver "intel"
                              BusID "PCI:0@0:2:0"
                              Option "AccelMethod" "SNA"
                          EndSection
                          
                          Section "Screen"
                              Identifier "intel"
                              Device "intel"
                          EndSection
                          
                          Section "Device"
                              Identifier "nvidia"
                              Driver "nvidia"
                              BusID "PCI:1@0:0:0"
                              Option "ConstrainCursor" "off"
                              Option "RegistryDwords" "EnableBrightnessControl=1"
                          EndSection
                          
                          Section "Screen"
                              Identifier "nvidia"
                              Device "nvidia"
                              Option "AllowEmptyInitialConfiguration" "on"
                              Option "IgnoreDisplayDevices" "CRT"
                          EndSection
                          brightness control is there! But no popup!

                          Comment


                            #14
                            Hey guys,

                            m still down with this problem!

                            Comment

                            Working...
                            X