[SOLVED]suspend laptop: brightness always goes to 0

Hi everyone,
I'm using laptop-mode to control the brightness of my LCD. Here is the snipped of the "/etc/laptop-mode/conf.d/lcd-brightness.conf":
# Should laptop mode tools control LCD brightness?
CONTROL_BRIGHTNESS=1
# Commands to execute to set the brightness on your LCD
BATT_BRIGHTNESS_COMMAND="echo 22"
LM_AC_BRIGHTNESS_COMMAND="echo 23"
NOLM_AC_BRIGHTNESS_COMMAND="echo 24"
BRIGHTNESS_OUTPUT="/proc/acpi/video/IGFX/LCD/brightness"
I work with a lot of vim sessions and multiple xterms and when I set my laptop to hibernate (suspend2disk) with pm-utils, everything works lightning fast and without a problem (Arch is a revelation for me, it's magnificent). The only problem is that the brightness variable in the /proc/acpi/video/IGFX/LCD/brightness, the current one is set to 0 after I wake up from suspend to disk. If I unplug the cable, nothing happens (switch to battery), if I plug it back in, a small increase (not like the huge ones I have defined in the code block above) happens.
What could be the reason? Could acpi control this even if I have set the laptop-mode obviously to control the LCD?
Has anyone had these issues? This is the only thing that is keeping me shuting down the machine.... and to resume my work after takes about 4.67 annoying minutes with the use of vim sessions....
Help?
Last edited by tomislavski (2010-04-21 11:59:09)

I found the solution.
The note in the /etc/laptop-mode/conf.d/lcd-brightness.conf that states that these values for the echo commands at the bottom of this file can be read from /sys/class/backlight/../max_brightness are wrong at least for my Laptop. This info is for HP Compaq 615:
if you want to have your brightness set properly, check out the values that are already in the /proc/acpi/video/IGFX/LCD/brightness file (with maybe IGFX changed to VID on some machines). In this file the values are defined from 0 to 100, so the value of 24 from the max_brightness file is actually a very low brightness value, not even near to 100% brightness. The proper way to define the echo commands in lcd-brightness.conf file is to set them accordingly to the ones defined in the brightness file, not max_brightness file.
cool. I love Arch linux. It makes me learn.

Similar Messages

  • [SOLVED] Systemd forcing laptop brightness down to zero.

    Can somebody please, pretty please, explain to me how I can tell systemd to STOP turning off my laptop brightness half-way during boot?
    Started Load/Save Screen Backlight Brightness of acpi_video0.
    Turns brightness down to zero. According to the man page:
    [email protected] is a service that restores the display backlight brightness at early-boot and saves it at shutdown. On disk, the backlight brightness is stored in /var/lib/backlight/.
    On my Arch it is actually in /var/lib/systemd/backlight/acpi0. I tried modifying the value to anything between 1 and 100 but it the file is reset to 0 every boot, maybe this is normal.
    I also tried to disable the damn systemd-backlight service but it re-enables itself every boot too.
    Please can somebody help me, I'm pulling my hair out. I have tried various kernel parameters and acpi_backlight=vendor works but forces brightness to 100% and I can't change it. (unless of course if I force /sys/class/... which is not a solution)
    Last edited by beanaroo (2013-10-12 07:30:49)

    It definitely isn't normal for it to keep going to 0. Mine currently has the value 12 in it. (My file is /var/lib/systemd/backlight/acpi_video0.) I'm not sure if it makes a difference that I have laptop-mode-tools managing the backlight, though. But I don't see it go to 0 at any point during boot.
    That is, unless something somewhere is configuring it this way, this sounds like a bug and the solution you're using a work around. Not suggesting you shouldn't use it, of course, but maybe worth reporting, too?
    Last edited by cfr (2013-10-16 02:25:51)

  • The screen of my imac always goes to the maximum exposure. Then the light icon on the screen. After reducing the brightness goes my screen after a few minutes back to the maximum intensity with the brightness icon back on my TV screen.

    The screen of my imac always goes to the maximum exposure. Then appear the light icon on the screen. After reducing the brightness goes my screen after a few minutes back to the maximum intensity with the brightness icon back on my screen.

    Try resetting the SMC and if that doesn't work then reset the PRAM too.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • [SOLVED] Suspend button no longer works after update

    Recently update my system, and now pressing the suspend button (Fn+F3 in my case) doesn't suspend it to ram as it did before.
    Running acpi_listen and hitting the button gives me the output "button/sleep SBTN 00000080 00000000 K" so clearly it's hearing it. Pressing the brightness buttons on the keyboard works (changes the brightness as expected), pressing the power button works to shut it down completely, closing the lid suspends it as expected... Just the suspend button stopped working.
    I saw a post about a different thing which mentioned systemd's config file "/etc/systemd/logind.conf" so I tried uncommenting the line in that file which tells systemd to handle the suspend button, but no luck, not even after rebooting to hopefully get it to source that file.
    Here is my ACPI folder's tree...
    ./events
    ./events/anything
    ./events/lm_battery
    ./events/lm_lid
    ./events/lm_ac_adapter
    ./handler.sh
    ./actions
    ./actions/lm_battery.sh
    ./actions/lm_lid.sh
    ./actions/lm_ac_adapter.sh
    It has everything it should have, i think. The handler script has a "case" for suspend button.
    Running "sudo pm-suspend" in a terminal suspends it, as does going into the XFCE shutdown menu and hitting suspend.
    I can't think of anything else to try. Also, I did look around for other posts, but wasn't able to find anything. If I missed something, I appologize for the double post.
    Thanks,
    --Scott
    EDIT: I swear I meant to put this in "laptop issues." This is embarrassing.
    Last edited by scott_fakename (2013-01-12 21:41:45)

    Sorry for not responding more punctually. handler.sh is as follows (the only modifications to it would have been things done by the system itself, as i haven't touched it)
    #!/bin/bash
    # Default acpi script that takes an entry for all actions
    case "$1" in
    button/power)
    case "$2" in
    PBTN|PWRF)
    logger 'PowerButton pressed'
    logger "ACPI action undefined: $2"
    esac
    button/sleep)
    case "$2" in
    SLPB|SBTN)
    logger 'SleepButton pressed'
    logger "ACPI action undefined: $2"
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    case "$4" in
    00000000)
    logger 'AC unpluged'
    00000001)
    logger 'AC pluged'
    esac
    logger "ACPI action undefined: $2"
    esac
    battery)
    case "$2" in
    BAT0)
    case "$4" in
    00000000)
    logger 'Battery online'
    00000001)
    logger 'Battery offline'
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    case "$3" in
    close)
    logger 'LID closed'
    open)
    logger 'LID opened'
    logger "ACPI action undefined: $3"
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    # vim:set ts=4 sw=4 ft=sh et:
    Also, here is logind.conf, which is back to its original state:
    # This file is part of systemd.
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2.1 of the License, or
    # (at your option) any later version.
    # See logind.conf(5) for details
    [Login]
    #NAutoVTs=6
    #ReserveVT=6
    #KillUserProcesses=no
    #KillOnlyUsers=
    #KillExcludeUsers=root
    #Controllers=
    #ResetControllers=cpu
    #InhibitDelayMaxSec=5
    #HandlePowerKey=poweroff
    #HandleSuspendKey=suspend
    #HandleHibernateKey=hibernate
    #HandleLidSwitch=suspend
    #PowerKeyIgnoreInhibited=no
    #SuspendKeyIgnoreInhibited=no
    #HibernateKeyIgnoreInhibited=no
    #LidSwitchIgnoreInhibited=yes
    The line that i uncommented (to no effect) was "HandleSuspendKey=suspend".
    I sort of have a workaround, inasmuch as I use XFCE and XFCE can handle the suspend key just fine, but the catch is that I have to have the DM up in order for it to do so, so it's not really a "solution" per se. Anyway. I don't know what else to try. The only other thing I could think of was to look in to laptop mode utils to see if others had had problems with it, but googling around yeilded nothing pertinent to this particular issue.

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Upgrade os v4.5 BB curve 8310 to higher compatible os & file free always goes to zero byte

    Hi all,<br>Let me introduce myself first, my name is hasya from Indonesia, I am using BB curve 8310 with os v4.5.0.124, There are 2 Things would like to ask for looking for solve/solutions as follow:<br>1. Can I upgrade my BB curve 8310 os v4.5 To higher compatible os?kindly please let me know how to do it and where I can get that software / higher os?<br>2. My file free always goes to zero byte so make my bb is hank or not responding, I already run memory cleaner from BB but can not solve that problem,I always do hard reset (battery pulled out) to get more file free, kindly please let me know how to maintain or keep my file free is not going to zero byte, and please let me know if there is best software can solve it
    Solved!
    Go to Solution.

    S 4.5.0.188 is the highest and latest available release for the 8310.
    Here are directions and the download.
    http://www.blackberryforums.com/general-8300-series-discussion-curve/236833-latest-os-8310-4-5-0-313...
    Turn off your memory cleaner, it is worthless to your situation and does NOT clear additional memory for your device, it just wastes battery and resource, and ONLY cleans already deleted memory to a high secure government specification. Nice for the FBI, CIA, drug and p0rn dealers, worthless for you.
    For low memory issues:
    First thing? Check the File Free at Options > Status, what is the number at File Free?
    Now, leaving the device powered ON, remove the battery of your device, hold a minute, replace and reboot.
    What is the File Free now?
    Read this: http://www.blackberryforums.com/general-blackberry-discussion/116396-managing-your-bb-memory-lost-ca...
    And this: http://www.blackberryforums.com/general-blackberry-discussion/112029-losing-call-logs-sms-emails-opt...
    Additional links to read:
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB15345&sliceId=SAL_Pub...
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB14320&sliceId=SAL_Pub...
    http://www.blackberry.com/btsc/dynamickc.do?externalId=KB14213&sliceId=SAL_Public&command=show&forwa...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Printing from IPad or Iphone always goes to tray 1 but tray 2 is the default tray.

    Product Name: OfficeJet 8500A Plus
    Op Systems: Win 7 & Apple Ipad and Iphone and MAC
    Error messages: None
    Changes: never worked, no changes
    I have two trays in my printer.  Tray 1 is used for envelopes and tray 2 is standard letter paper.  Tray 2 is the default tray for normal printing and works perfectly from my Windows 7 Desktop.Tray 1 is the only one that can handle envelopes so there is no choice on which tray to use.
    However, when I try to print from my IPad, IPone or my wife's MAC, the print always goes to tray 1 which contains only envelopes.
    There does not seem to be any options in the IPad or Iphone to select a tray but I would have thought it would go to the default tray that is setup in the printer. 
    Because of this, it makes the eprint capability of the officejet 8500A Plus useless.  I love having the top tray for envelopes but I am not sure I would have purchased the two tray option if I had know of this difficulty ahead of time.
    Looking forward to your reply
    Ray
    This question was solved.
    View Solution.

    Sorry, the first part referred to the Mac OS X only,
    If you don't have ePrint Home & Biz installed, follow the steps below to get the app:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02775166&cc=us&dlc=en&lc=en&product=3795314&tmp​...
    Once the app been installed you may shange the tray settings as following:
    If the HP product has more than one paper tray, you can select the tray that you want to print from.
    NOTE:HP ePrint Home & Biz automatically selects the photo tray if it is available and you are printing photos. If the photo tray is not available, photos print from the main tray.
    On your mobile device, tap HP ePrint Home & Biz .
    Figure 5: The HP ePrint Home & Biz icon
    Open the image or document that you want to print.
    Tap the Print Settings icon ( ) or ( ) at the bottom of the Print Preview screen, and then tap the HP product name.
    If there is more than one tray available, tap the paper tray that you want to use, and then tap Done .
    Additionally. below you may find any possible print options provided by the app:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02796271&cc=us&dlc=en&lc=en&product=4323659&tmp​...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • UPON boot up my computor always goes into a "checking file system on C"

    UPON boot up my computor always goes into a "checking file system on C".  It seems have started since last "Tuesday since the large update.

    This is the second part of my message that should stop the checking file system.
    Click Start, click All Programs, and then click Accessories.
    Right-click Command prompt, and then click Run as administrator.
    At the window that opens  type the following commands, pressing "Enter" after each one, please, note the spaces.
    chkntfs /d 
    chkntfs /c C:
    chkntfs /x C:
    Reboot the computer, it should go directly into Windows without checking the system.
    Please confirm if it starts normally and I need to know if the drive is "Dirty" or not.
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • Whenever i try to manually sync my iPhone with a new playlist on iTunes (on my laptop), it always gets stuck in step 7, Waiting for changes to be applied, and then nothing happens. I'm running the latest operating systems on both my iPhone 5 and macbook

    Whenever i try to manually sync my iPhone with a new playlist on iTunes (on my laptop), it always gets stuck in step 7, Waiting for changes to be applied, and then nothing happens. I'm running the latest operating systems on both my iPhone 5 and macbook

    I really don't appreciate the fact that no one from Apple seems to be dealing with the many, many threads that have started on this topic since iOS 7 came out. In any event, I seem to have solved my problem with a full software restoration -- that is, iOS software restoration.
    I clicked on "Restore iPhone..." which does a complete reinstall of the iOS but also all apps, photos, songs, etc. Took about 45 minutes, but seems to have worked.
    I had previously tried reverting to a backup of my iPhone, but that did not solve the problem. Only a full restore solved it.

  • Signle always going in and out, single always going in and out

    signle always going in and out

    Hi,
    gone in and out of sleep mode several times. It seems
    that the computer becomes slower and more confused
    the more times I come out of standby. Is there a way
    Try to explain this behaviour a little bit more, it sounds "strange"
    to fix this problem? Of course, after I restart, the
    laptop is spiffy again.
    How much RAM Memory you have?

  • Saving always goes to documents folder

    Hello,
    I've posted this problem before but haven't received a fix for it yet. Perhaps I'm just explaining it wrong. Simply put every time I go to save a document, instead of going to the last folder used in the program it always goes to the documents folder of the user. Also the last folder does not even show up in the drop down of the save window, only the path to the documents folder. The various programs do remember recent documents opened. But the "open file" always goes to documents, not last folder. This was not always the case, but has been for the last 6months or so and I can't seem to correct it.
    I've tested the system by adding a new account and seeing if it happen there also or if it is just the one account. But the same situation exists, so it seems to be universal to this computer.
    Based on previous threads this is what I've attempted so far:
    Deleted in: (myhome)/Library/Preferences
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    com.apple.launchservices.plist
    com.adobe.xxxx.plist
    com.macromedia.xxxx.plist
    ALSO Deleted : /library/caches/com.applelaunchservices-xxxx.csstore (all)
    Then restarted computer. This however has not resolved the problem. I know all the work arounds of "put folder in sidebar" and what not, but that doesn't fix the problem. I want to fix this problem.
    thanks
    mark

    I don't know what else you can do, nor why dialogs aren't working correctly. The Open and Save dialogs in most applications are now handled by Apple's Navigation Services, although developers can add some custom things to this basic arrangement. See this article:
    http://developer.apple.com/documentation/Carbon/Conceptual/ProvidingNavigationDi alogs/nsxconcepts/chapter_2_section2.html
    Note especially this paragraph:
    "...two types of dialogs can appear—a minimal Save dialog and a full Save dialog. The minimal Save dialog, shown in Figure 1-2, is displayed the first time a user saves a document in an application. This dialog provides a text field for the user to enter a filename. Applications can optionally specify a default filename to display. The dialog has a Where pop-up menu that, by default, suggests the Documents folder for the user. The user can open the pop-up menu to choose from locations previously set in the Finder sidebar or a recently-visited location. If none of those locations are acceptable, the user can click the disclosure button to the right of the text field to access the full Save dialog."
    AFAIK the user choices made are then saved to the application's plist file. A list of Recent Items is also written to the com.apple.finder.plist and to the com.apple.recentitems.plist. So if you tossed those two plist files and the application's plist file, plus the sidebar plist for good measure you should get back to the default state. You would then open a dialog, expand it to full navigation view, pick new stuff, and these changes would be written to the respective plists. If this is not happening--if the plists are not being written to--I'm afraid I don't know what else you could do.
    If you've never created a test user you might do so (in System Prefs/Acconts), log in to the test user and do some opening and saving (remember you will be at the default of the simple window with the Documents as the usual default). After you've done some open and save actions see if the test user now works correctly, with your actions remembered when you go back after a logout/in. If that is the case, then there is something odd going on in your regular account.
    Francine
    Francine
    Schwieder

  • When i try to open a url from a search, it always goes to a random search engine, not the web page

    If I do a search for something, I get the Google search fine, when I click on a link it never goes to the site, it always goes to a random search engine and sometimes freezes my computer. I created a new, alternate profile, but it does it on that one too.

    If it's happening on more than one profile, it sounds like a malware redirectiing you. Try doing an antivirus scan first.
    Free antivirus:
    [http://www.avast.com/eng/programs.html]
    [http://www.avira.com/en/download/index.html]
    Malware program recommendations:
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/]
    AdAware - [http://www.lavasoftusa.com/software/adaware/]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    [http://www.spywarewarrior.com/index.php]
    [http://forum.aumha.org/]
    [http://www.spywareinfoforum.com/]

  • Hello everyone, I am trying to restore my iPhone 4s and every time I try restoring it, it always goes to about 75% of the process then it says the iphone could not restore because of error 1. This is not error -1 it is error 1.

    Hello everyone, I am trying to restore my iPhone 4s and every time I try restoring it, it always goes to about 75% of the process then it says the iphone could not restore because of error 1. This is not error -1 it is error 1. I reserached this error and it said to make sure I have the latest version of iTunes, i do, To make sure i have a security software updated, i do, and ive done everything it tells me to do yet it wont let me restore my iphone. Before I tried restoring it, it was working perfectly fine besides the battery which i have just replaced yesterday. Ive tried restoring it in two different computers with two different cables but still no luck. I found this phone at a park and it was working perfectly fine until i tried restoring it. I have no idea what to do now. I appreciate your guyses help!

    This error generally indicates a hardware failure.  Bring the phone to Apple for evaluation.

  • Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, t

    Recently I noticed that when I change the name of a photo (correcting a mistake) it always goes back to the previous name, keeping the mistake I'm trying to correct. A spelling mistake, for example. As I keep my photos organized by name and not by date, this is very annoying.
    And today it won't even read my camera's sd card, and I try with 2 different ones. If I restart the computer, leaving the memory card in, then it reads it; but if I pull it out and push it back in it doesn't see it. Whath am I doing wrong, if anything?
    Diane

    Where/how are you trying to change the name? If it is in Finder (after you've downloaded the pics to your desktop), highlight the pic icon and press Return. the name field will change and you can type in your new name. Hit Return again. That should make it "stick".  If you're trying to do it elsewhere, please post the steps that you've tried.
    As for your card: do you eject it properly? Either drag icon to trash or hit the eject symbol in the sidebar?

  • FF always goes back to top of page after using back button. can i disable this?

    is there a way to disable FFox going to the top of the site after i use the back button?
    If i am on a site and i click on a link then i use the back button, it always goes to the top of the screen or site, then i have to scroll all the way down again every time.

    I also have had the same problem for months now. The updates do not fix the problem. Is there anyone out there with an answer?
    Sometimes out of the blue I will click somewhere on the itunes store screen and it will stop doing it but, I can't repeat it the next time I open Itunes. It always just wants to stay scrolled all the way to the top on every itunes store page.

Maybe you are looking for