Skip to main content

How to fix Ubuntu brightness problem






How to play with Ubuntu brightness



Fix the fixed brightness

If you have faced the problem of fixed brightness of ubuntu then you are at the right place because after searching so much, i have finally found the solutions. Yeah you are right, solutions..! There are so many causes to this problem thats why i have listed the possible solutions.You can try each and every solution and do a reboot after applying solution.

Solutions

  • Run this code in the terminal.xrandr --output LVDS1 --brightness 0.5 (It will not change the brightness but only the contrast. Also there is no need to reboot)
  • Editing Grub Configuration

    1. Run this commandsudo gedit /etc/default/grub. It will open the grub file.
    2. Change this code B_CMDLINE_LINUX_DEFAULT="quiet splash" to B_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
    3. OR (try the first one then second if first didn't work)
    4. Change this code B_CMDLINE_LINUX_DEFAULT="quiet splash" to B_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"
    5. And if none of the above worked then try adding both the pieces.(believe me its this much varying)
    6. Then run update-grub. Now just reboot the system.
  • Now some more work. Go to the directory /sys/class/backlight.
    1. Check the interfaces there by running ls. There may be more than one like acpi_video0 OR intel_backlight. We'll perform the following steps for each interface and check the results.
    2. Go to your interface directory, for eg. intel_backlight.
    3. Run this command sudo echo 4 > brightness
      sudo echo 4 > max_brightness
      sudo echo 4 > actual_brightness
    4. Check if the brightness changes. If it does then you'll have to change it each time using this method only. And if it does not then repeat the procedure for other interfaces.
  • Newer kernel versions seem to have the problem so try to downgrade the kernel version to 3.12.

If it still not fixes the problem for you then get your laptop hardware checked or checking the graphics card properties. Although the second solution works for 80% of the people.


Comments

Popular posts from this blog

Understanding Python Decorators

If you have ever wondered what those @something mean above a python function or method then you are going to have your answers now. This @something line of code is actually called a decorator. I have red from various articles about them but some of them were not able to clarify the concept of a decorator and what we can achieve with them. So in this post we'll learn a lot about python decorators. Here is a list of topics we'll be covering. What is python decorator Understanding the concept Multiple decorators on same function class method decorator Where can we use decorators What is python decorator A python decorator is nothing but a function which accepts your given function as a parameter and returns a replacement function. So its like something this def decorator(your_func): def replacement(your_func_args): #do some other work return replacement @decorator your_func(your_func_args): #your_func code Now when your_func gets called then...

Cordova viewport problem solved

Include the viewport settings in Cordova If you are facing the auto zooming problem of cordova then go read on the full article. Cordova actually ignores the viewport meta tag which causes the pixel density problem. So we need to tell cordova that viewport tag is equally important as other tags. To do this, we need to add some code to a file which is specify in the article. Corodva messes with pixels If you are using the latest cordova version or creating the cordova app for latest android versions then you may have faced the zoom malfunctioning.I also faced it when creating an app. Many of you may have already searched the web and found the answer of changing the meta tag attributes to get it working. But adding target-densitydpi=medium-dpi does not solve the problem for latest android versions. It may work for gingerbread but not for kitkat and others. So the final solution which i found was one of the stackexchange answer but rarely found. So i am gonna two things here, i ...

Hash Tables : Handling Collision

We saw in the previous post how a simple hash table can be constructed without much effort. But, and that is a big But, that table was prone to collisions and could result in corrupted data. Of course we don't want a data structure which can corrupt our data even if it is faster. So to avoid data corruption we will study some collision resolution techniques and will see how to evenly distribute a key over the table to minimize collision. Lets continue the journey. What Problems Does Hashing Solve ? Simple Implementation of Hash Table Collision Resolution Chaining Open Addressing Designing Hash Functions How Python Dictionaries Work Hashing in Action Collision Resolution First of all, what is collision ? Collision is a phenomenon which happens when 2 or more distinct keys are mapped to the same hash table entry. But we don't wa...