Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 60446  / 1 Year ago, wed, december 28, 2022, 7:04:01

My system specifications are: Ubuntu 12.04, 64-bit, Acer Aspire One D270, Intel Atom CPU



The usual brightness increase/decrease key combination using Fn key doesn't work in Ubuntu as many pointed out.



I had found two solutions on this forum to set the screen brightness.



One was to make the usual key combination work answer is given here:



Is there a way to set a hotkey to change screen brightness?



and the other is using the command



sudo setpci -s "00:02.0" F4.B=20


where the 20 is a hexadecimal number representing brightness.



It's only the latter that worked in my case.



I observe that the original brightness setting is restored after resumption from sleep mode.



All I want is to keep my brightness setting permanent. How do I do that?



Try 1: Tried Alok's suggestion. It just sits there as a startup application. Doesn't figure as an icon on the topbar of the screen, like the dropbox icon (my dropbox account it is linked to ubuntu) so that I can conveniently change the brightness.



Try 2: Also I must add, that the method System Settings -> Additional Drivers gives an empty list. In my earlier install (which I had to overwrite-reinstall :-(), the list had (I think) Intel Cedarview Graphics Driver. So must I install before trying the methods in any of the answers below?



Update: I read somewhere Intel CedarView is only for 32-bit OS!



Try 3: Just tried the quiet_splash etc that I had to add to /etc/default/grub, even read the thread given in one of the answers below!



Temporarily settled myself with this method:

  • Pasted the setpci brightness command in a bash file brightness.sh
  • Created a .desktop file for the command bash brightness.sh
  • Made it an executable file.



    Try 4a: I created an environment variable BRI ensured using env it's there in the list, and tried using it, here's the bash file brightness.sh



    #!/bin/bash
    echo "Set Brightness (Values 00-FF): "
    read s
    sudo setpci -s "00:02.0" F4.B=$s
    export BRI=s


    However I have to give the administrative password, and have yet not succeeded in making it a permanent setting and am working on these aspects!



    Try 4b: I even tried (in vain)

  • pasting the export BRI into /etc/default/grub and /etc/grub.conf
  • appending the same to ~/.bashrc and to /etc/bash.bashrc through the shell script brightness.sh that I made



    as I in each case restart and find BRI to still have its old value, and not the one given by executing brightness.sh via the launcher!


  • More From » 12.04

     Answers
    4

    I am back to the 32-bit OS! I had accidentally deleted /bin/sh resulting in a booting problem. So I decided to install Ubuntu 12.04 LTS 32-bit OS overwriting the entire 320 GB HDD. All my data is safe, for which I am profusely thankful to Dropbox and my cell phone!



    The brightness increases and decreases smoothly and even the brightness widget showing the level appears while adjusting the brightness.


    [#35210] Friday, December 30, 2022, 1 Year  [reply] [flag answer]
    Only authorized users can answer the question. Please sign in first, or register a free account.
    hergy

    Total Points: 64
    Total Questions: 115
    Total Answers: 109

    Location: Saint Helena
    Member since Tue, Nov 3, 2020
    4 Years ago
    hergy questions
    Tue, Aug 31, 21, 08:36, 3 Years ago
    Thu, Mar 31, 22, 11:18, 2 Years ago
    ;