[SOLVED] How to save monitor light level at xfce4?

Every time I reboot my machine, the monitor light level turn to max, and I have to use keyboard shortcut to make it down.
How to save monitor light level? I am using slim+xfce4 with kernel 3.10.9-1-ARCH, and the machine is thinkpad X230.
thanks for all reply.
Last edited by b4nst0n (2013-08-26 06:41:06)

WonderWoofy wrote:
I don't know of a native way to do this in xfce... though admittedly it has been a while since I have used any DE.  I typically use a pretty consistent brightness level though, so I just made a udev rule that waits for proper /sys path to show up and then sets the appropriate value. Here is what I have (though it is probably not going to be exactly the same):
ACTION=="add", KERNEL=="acpi_video0", SUBSYSTEM=="backlight", DRIVERS=="i915", ATTR{brightness}="4"
On the udev wiki page, there is a link in there to getting started using udev rules.  It is somewhat old, but everything about it still applies (since it is just the basics) with one exception.  The command is now udevadm.
As an alternative, you can use Xyne's relight.  I have not tried this myself, but it basically just writes the value of your brightness on shutdown and reapplies it the next boot.  I would imagine that this could probably be done with a couple quick and easy systemd.service files as well.  I think you could just model them somewhat after alsa-store.service and alsa-restore.service in terms of Wants, After's, Before's, etc.
Thanks! But it seems a systemd's bug like 65kid said, I would rather wait for it's fix

Similar Messages

  • [Solved] How to save a file in /usr/bin/local using gedit as an admin?

    In my attempt to run these two programs:
    https://github.com/kerchen/export_gr2evernote
    https://github.com/spiermar/bookmarks2evernote
    I noticed they assumed the default python is python 2. I have python 3.3.1 and 2.6.8. I'm following the instructions at: https://wiki.archlinux.org/index.php/Py … ld_scripts
    Created a file with this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/Dropbox/export_gr2evernote-master1/*|/home/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I then, tried to save it as p2 under /usr/local/bin/ where the only thing that's there is meteor, node, and npm, and it throws me an error saying I don't have enough permissions.
    How do I save p2 as an admin in /usr/bin/local using gedit?
    I've searched on the forums 'create a file in /usr/' and I haven't found anything. Can someone please help me?
    Last edited by jjshinobi (2013-04-23 05:20:47)

    jjshinobi wrote:
    sidneyk wrote:
    jjshinobi wrote:
    I moved p2 to bin, edited my projects path with the username in front of home, saved it as python, made it executable (#sudo chmod +x /usr/local/bin/python), removed p2. Ran:
    #python evernote2enex.py -m 10
    It's still referencing python 3...
    "python3: can't open file 'evernote2enex.py': [Errno 2] No such file or directory"
    My python file contains this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/<user>/Dropbox/export_gr2evernote-master1/*|/home/<user>/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I did everything exactly like the wiki said, what seems to be the problem?
    OK. Looking at the 2 scripts you quoted, neither one is using a shbang line to set a python version to call. Without that, the python intercept doesn't even come into play. The problem that I see is the way you are starting it:
    sudo nano /usr/local/bin/python
    Is root really necessary for these if they are in your /home/<user>/Dropbox/ directory. And it appears that you are assuming python3 when you start them that way. If you are going to use that method and they are indeed python2 scripts, then change your command to this:
    #python evernote2enex.py -m 10
    You might try it as your normal user too in case root isn't really required.
    I tested out the first ten with:
    #python2 export2enex.py -m 10
    it worked!
    then proceded with
    #python2 export2enex.py GStarred -n exported.enex
    The script is fully functional. Thanks man!
    Actually, you're not even using the script when starting your python scripts that way. You are explicitly calling either python3 (python) or python2 (python2) to run the indicated python script and not even touching the work around /usr/local/bin/python script. If your python script started with a line like either :
    #!/usr/bin/env python
    or:
    #!/usr/bin/python
    And was executable, such that you called it by it's name, i.e. "someprogram.py", then the python script in /usr/local/bin/ would take precedence and effectively intercept the python call and choose the appropriate version of python as long as the path to the directory where "someprogram.py" resides is specified in that /usr/local/bin/python script.
    Last edited by sidneyk (2013-04-25 15:40:19)

  • [SOLVED]How to add OAL driver level functionality in the AM335x BSP source code???

    Dear developers,
    Greetings!!!
    As, my platform is WinCE 7 with AM335x BSP and I would like to copy one driver and update the driver as per my requirements. The location from where I have taken the existing driver is - 
    BSP\SRC\CSP\COMMON_TI_AMXX\OAL --
    Existing diver is OALRTC and new driver is abc_I2C under the same location and I have tailored the driver according to my requirements.
    One funciton is OALIoCtlHalInitRTC and the call is made from BSP\SRC\OAL\oallib\ioctl.c and the calling funciton is BSPIoCtlHalInitRegistry
    In my case, I am calling my OAL API as OALIoCtlHalInitPHY..
    But the thing is that I am getting linking error during the time of compiling and is shown below -
    Error 6 Error(s) in directory "C:\WINCE700\platform\AM335x\SRC\OAL\OALEXE\". C:\WINCE700\build.log 2800
    Error 7 oal.lib(ioctl.obj) : error LNK2019: unresolved external symbol OALIoCtlHalInitPHY referenced in function BSPIoCtlHalInitRegistry C:\WINCE700\build.log 2801
    Error 8 fatal error LNK1120: 1 unresolved externals {log="C:\WINCE700\build.log(2802)"} C:\WINCE700\OSDesigns\Enventure\Enventure\Wince700\AM335x_ARMV7_Retail\cesysgen\platform\AM335x\target\ARMV7\retail\oal.exe
    Error 9 NMAKE : fatal error U1077: 'C:\WINCE700\sdk\bin\i386\ARM\link.EXE' : return code '0x460' C:\WINCE700\build.log 2803
    Error 10 TargetExeFiles -nologo BUILDMSG=Stop. BUILDROOT=C:\WINCE700\platform\AM335x LINKONLY=1 NOPASS0=1 failed - rc = 2. C:\WINCE700\build.log 2805
    Error 11 BLDDEMO: ERROR: There were errors building CEBASE. C:\WINCE700\build.log 2837
    As I searched but I am unable to solve the issue. 
    Any one suggest that how to solve the issue???

    Hello Friends,
    The above problem is self solved..

  • How to save a game level ?.....................

    I have created a game level.....now i want to add a feature that user players can save the game at any levels....and they can load it later on................can anybody help me to achieve this......

    This question is not related to Java 2D, and is too general.
    Try rephrasing the question to a specific set of questions.

  • [Solved] How to save changes with PDF files

    Hello
    I have pdf files which contain forms. The only issue is that I cannot save the changes I do with evince. Anyone has a solution ? Thanks in advance
    Last edited by tamikana (2010-04-23 17:42:52)

    this thread has some tips:
    http://bbs.archlinux.org/viewtopic.php?id=52084
    not sure if they mention it, but xournal may also kind of work (annotates pdfs by turning them into an image, basically)

  • How can one monitor the level of usage of Fact Sheet in SAP CRM?

    I am trying to understand how often users are actually using the Fact Sheet utility in our CRM instance.  Anyone know a way to gather this statistic?  Thanks

    Hello
    To my knowledge, CRM does not store any statistics. Some telephony software (BCM, Genesys, etc.) provide such statistics. Even I think that BI has a "reporting agent" report.
    Regards
    Joaquin

  • Light levels for editing

    When editing photos, especially the exposure, at what level should I set the computer monitor brightness to approximate the print values of the photo? I don't want to confuse the light levels of the printed photo by having the monitor value too high. And I don't want to find out when I buy a photo book that I have all the wrong values.
    Thanks

    Welcome to the Apple Discussions. It doesn't matter. The monitor light level affects all of the pixels in the photo whereas adjusting the exposure in iPhoto will change the levels as they relate to the other parts of the photo.
    If you increase the level in the monitor the white part of the photo will not wash out as it will do if you increase the exposure within iPhoto.
    I just adjust the monitor to a level that's comfortable to my eyes for the viewing conditions.
    OT

  • How to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    how to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    Because it was not possible to apply a gradient to a stroke in CS5. When you open the file in CS5, it is reduced to something that can be rendered in CS5.

  • How to save column widths in tag monitor and tag config editor?

    how to save column widths in tag monitor and tag config editor?

    The attached example may help.
    After launching the editor, I locate a reference to the front panel control named "Tag List".
    This is type cast as a multicolumn list box which then allows me to increment through all of the cells and set the widths as i go.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Set_Width2.vi ‏60 KB
    SET_WIDTH.JPG ‏94 KB

  • How to get script to save up one level

    Here is my basic script so far:
    if (activeDocument.width > activeDocument.height)
    doAction("WalletName H_Right","X-Key Logos.atn");
    else if (activeDocument.width < activeDocument.height)
    doAction("WalletName V_Right","X-Key Logos.atn");
    I want a script that will save my current edited Photoshop CS3 open document image (stored in a folder called Client/jpg) and save it into a Client/edit folder.  In other words I want it to go up one level from the jpg folder to the Client folder then save into the "edit" folder that is in the Client folder.
    I want it to save as Jpeg, Level 8.
    In another script I use this to save the file as jpg level 12 into the same folder and append to the name:
    var CurrentFolder = activeDocument.path;
    saveFile = new File(CurrentFolder + "/" + imgName + "_" + "wal")
       saveOptions = new JPEGSaveOptions();
       saveOptions.embedColorProfile = true;
       saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
       saveOptions.matte = MatteType.NONE;
       saveOptions.quality = 12; //ranges from 0 to 12
       AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
    But in this case I just want it to save with same name jpg but level 8 in a differnt folder.  The Client/jpg folder will be different everytime.  "Client" refers to the client's name so that folder is not always in the same location. So what snippet of code can be placed into the saveFile area to say go up one folder and save to "edit" folder with the open document's current name.

    Ok I am not sure where to put it.  This is what I got so far now:
    //Determint wether document is Horizontal or Vertical and run that action
    if (activeDocument.width > activeDocument.height)
    doAction("DigiPhoto H","X-Key Actions.atn");
    else if (activeDocument.width < activeDocument.height)
    doAction("DigiPhoto V","X-Key Actions.atn");
    // Write file up one level into "digipics".
    var CurrentFolder = activeDocument.path;
    var parentFolder = decodeURI(activeDocument.path.parent);
    $.writeln(parentFolder);
    saveFile = new File(parentFolder/digipics, imgName)
       saveOptions = new JPEGSaveOptions();
       saveOptions.embedColorProfile = true;
       saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
       saveOptions.matte = MatteType.NONE;
       saveOptions.quality = 8; //ranges from 0 to 12
       AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
    It does the first actions and saves but prompts for where and what size.  What exactly does this need to look like so that it saves level 8, jpg without prompting and saves to the up one level folder as discussed earlier.
    I have searched and can't find anything.

  • How to save battery life (ipad mini)

    When I'm away from home and I don't have my charger. What are some ways that will save my battery life? I know the basics like screen brightness and double tapping the home button to delete history. Are there more ways I can save lots of battery life?

    See some of the links below.
    Could be the charger, cable or iPad. Plug the USB cable into your computer. It may say "Not Charging", however, it is charging slowly and will verify that the cable is good.
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W (5W on Mini) USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- %20beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    iPhone: Hardware troubleshooting (Power/Battery section also applies to iPad)
    http://support.apple.com/kb/TS2802
    http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain
    http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    iOS 7 Battery Life Draining Too Fast? It’s Easy to Fix
    http://osxdaily.com/2013/09/19/ios-7-battery-life-fix/
    Poor battery life after installing iOS 7.1? Try these simple tips
    http://www.zdnet.com/poor-battery-life-after-installing-ios-7-1-try-these-simple -tips-7000027348/
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    iPad: Charging the battery
    http://support.apple.com/kb/HT4060
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Qosmio G40 - How do I monitor sound input?

    I have installed Adobe Audition on my Qosmio G40 but have been unable to monitor sound input or get Auditon to record. (It used to work fine on my xp pc) I have been able to record sound but cannot listen to it as its 'going in'. I also tried to install an external sound card: CREATIVE EXTIGY but cannot get the laptop to recognise that it is installed.
    Can EXTIGY work with my laptop?
    How do I monitor sound input?
    The installed sound card is Realtek
    Advice welcome.
    Sean.

    I presume you mean the menu when you right-click the volume control icon on the desktop toolbar. It does list the input devices and when a mini jack input is connected the simulated led lights respond to the volume of the input. I can record from the line input but I cannot hear it as it is going in. In other words it records it silently but plays it back okay.
    The device manager declares that the sound card is working without problems,
    Somehow I want to be able to hear the input as it is being recorded and I have not been able to find out how yet. Some people have been telling me that it is a vista problem. Others say that its the laptop manufacturers who set up the laptop so that when recording line input the sound is disabled to prevent feedback from the external mic on the laptop.
    Either way I am a bit astonished that I cannot resolve this problem and it is not a problem that has been mentioned before when you consider how many thousands of people are buying Toshiba laptops !!
    A few days ago I emailed Realtek but have not held my breathe for a reply.
    Its looking like I might have to uninstall vista and reinstall xp to solve this problem.

  • Please can someone tell me how to save a MP3 file from my email on my iPad so I can put in on Facebook? Thankyou

    Please can someone tell me how to save a MP3 file from my email on my iPad so I can put it on Faceboo? I use hotmail and please tell me step by step as I am not a tech guru lol. Thankyou

    Hi jscher200,
    Thank you for your reply, sorry for the VERY late late response, but I have just figured out how to control this separate 'panel'. I find it really useful for monitoring Google Analytics in as it can just sit there running. It does have its limitations, as it's a limited size (you can't expand it to full screen view), so you can only ever see a vertical section of a website and need to scroll to look to the right or left, but I have the live view of people accessing my website running on there and if the numbers start racking up at any time, I can scroll to look and see what pages they are accessing, where they've been referred from, etc.
    To get it to work, you save a website address in the Bookmarks Toolbar and when you can see it sitting on the toolbar at the top of the screen with its little icon, right click on it then click 'properties', then tick the box 'Load this bookmark in the sidebar'. The next time you click on this bookmark to open the website, it will load in this sidebar, which looks like a separate 'window' but is immovable. You can only have one sidebar application running at a time, but can change it by right clicking on the bookmark you want to load in there and it will then change to that one next time you click on that bookmark.
    I hope this might be useful to others, as I asked for help with this on loads of forums and not one person knew that this existed - even really skilled techies!

  • How to save info in a meta-data of a jpg file?

    hi, i need to know how to save info in a meta-data of a jpg file:
    this is my code (doesn't work):
    i get an exception,
    javax.imageio.metadata.IIOInvalidTreeException: JPEGvariety and markerSequence nodes must be present
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeNativeTree(JPEGMetadata.java:1088)
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeTree(JPEGMetadata.java:1061)
    at playaround.IIOMetaDataWriter.run(IIOMetaDataWriter.java:59)
    at playaround.Main.main(Main.java:14)
    package playaround;
    import java.io.*;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.imageio.*;
    import javax.imageio.metadata.IIOMetadata;
    import javax.imageio.metadata.IIOMetadataNode;
    import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
    import javax.imageio.stream.*;
    import org.w3c.dom.*;
    public class IIOMetaDataWriter {
    public static void run(String[] args) throws IOException{
    try {
    File f = new File("C:/images.jpg");
    ImageInputStream ios = ImageIO.createImageInputStream(f);
    Iterator readers = ImageIO.getImageReaders(ios);
    ImageReader reader = (ImageReader) readers.next();
    reader.setInput(ImageIO.createImageInputStream(f));
    ImageWriter writer = ImageIO.getImageWriter(reader);
    writer.setOutput(ImageIO.createImageOutputStream(f));
    JPEGImageWriteParam param = new JPEGImageWriteParam(Locale.getDefault());
    IIOMetadata metaData = writer.getDefaultStreamMetadata(param);
    String MetadataFormatName = metaData.getNativeMetadataFormatName();
    IIOMetadataNode root = (IIOMetadataNode)metaData.getAsTree(MetadataFormatName);
    IIOMetadataNode markerSequence = getChildNode(root, "markerSequence");
    if (markerSequence == null) {
    markerSequence = new IIOMetadataNode("JPEGvariety");
    root.appendChild(markerSequence);
    IIOMetadataNode jv = getChildNode(root, "JPEGvariety");
    if (jv == null) {
    jv = new IIOMetadataNode("JPEGvariety");
    root.appendChild(jv);
    IIOMetadataNode child = getChildNode(jv, "myNode");
    if (child == null) {
    child = new IIOMetadataNode("myNode");
    jv.appendChild(child);
    child.setAttribute("myAttName", "myAttValue");
    metaData.mergeTree(MetadataFormatName, root);
    catch (Throwable t){
    t.printStackTrace();
    protected static IIOMetadataNode getChildNode(Node n, String name) {
    NodeList nodes = n.getChildNodes();
    for (int i = 0; i < nodes.getLength(); i++) {
    Node child = nodes.item(i);
    if (name.equals(child.getNodeName())) {
    return (IIOMetadataNode)child;
    return null;
    static void displayMetadata(Node node, int level) {
    indent(level); // emit open tag
    System.out.print("<" + node.getNodeName());
    NamedNodeMap map = node.getAttributes();
    if (map != null) { // print attribute values
    int length = map.getLength();
    for (int i = 0; i < length; i++) {
    Node attr = map.item(i);
    System.out.print(" " + attr.getNodeName() +
    "=\"" + attr.getNodeValue() + "\"");
    Node child = node.getFirstChild();
    if (child != null) {
    System.out.println(">"); // close current tag
    while (child != null) { // emit child tags recursively
    displayMetadata(child, level + 1);
    child = child.getNextSibling();
    indent(level); // emit close tag
    System.out.println("</" + node.getNodeName() + ">");
    } else {
    System.out.println("/>");
    static void indent(int level) {
    for (int i = 0; i < level; i++) {
    System.out.print(" ");
    }

    Hi,
    Yes, you need store data to table, and fetch it when page is opened.
    Simple way is create table with few columns and e.g. with CLOB column and then create form based on that table.
    Then modify item types as you like, e.g. use HTML editor for CLOB column
    Regards,
    Jari

  • How to save pics from facebook in nokia lumia 625

    I am using Nokia Lumia 625
    please tell me how to save pics from Facebook
    while using thanks 

    Sure it does;
    Select (TAP) the post you  like to save;
    Then TAP AND HOLD to select the save option
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..
    Attachments:
    tap1.png ‏502 KB
    tap2.png ‏284 KB

Maybe you are looking for