[Solved] Need some conky help

Hi,
I'm battling with two conky issues related to audacious & hddtemp.
EDIT: Feel a bit daft now, ${if_running audacious}${exec audtool current-song-tuple-data title} - ${exec audtool current-song-tuple-data artist} sorted the audacious issue out.
I cannot get HDD temperature to be displayed, it's just blank. I have hddtemp daemon running and I can get the details from the hdd with hddtemp and nc.
Temperature: ${alignr}${execi sudo hddtemp /dev/sda 127.0.0.1 7634 | cut -c20-21}°C
I've also tried using execi nc 127.0.0.1 7634 | cut -c20-21 but both just come up blank.
I'm probably missing something obvious, any ideas?
Last edited by mips1 (2011-07-18 22:31:00)

To answer the original question, just for future reference...
"execi" requires an interval before the command.  So instead of
Temperature: ${alignr}${execi sudo hddtemp /dev/sda 127.0.0.1 7634 | cut -c20-21}°C
you should use something like
Temperature: ${alignr}${execi 30 sudo hddtemp /dev/sda 127.0.0.1 7634 | cut -c20-21}°C
That would refresh the info every 30 seconds.

Similar Messages

  • Need some quick help - fairly urgent!

    I've just taken over a new job and have been the task of finishing the new brochure for Christmas, there's not a lot to do but a lot of the measurements need changing
    This is the layout I'm dealing with..
    All the boxes have been made in Illustrator
    The text has been done in In'Design and it seems every piece of text is it's own box if that makes sense
    My question is, if I select the whole specification box - copy, paste it into Adobe Illustrator and change the text there, then paste the edited box back into In-Design, will I lose quality when it gets printed?
    I'm worried if I do it this way it may come out blurred? Or am I just worrying about nothing?

    I couldn't find an Illy file in the end and have ended up creating tables in ID to replicate what was already there!
    Didn't take very long and I guess if I didn't do it now, I'd come across the same situation next time!
    Date: Wed, 30 Nov 2011 08:48:07 -0700
    From: [email protected]
    To: [email protected]
    Subject: Need some quick help - fairly urgent!
        Re: Need some quick help - fairly urgent!
        created by Peter Spier in InDesign - View the full discussion
    There certainly are viable "quick fix" solutions proposed here, and if the dealine is looming and this file never needs to be touched again I might be tempted, but they are only postponing the pain for a file that needs periodic updates, and I wouldn't waste effort on them, myself, when that time can be put toward a proper rebuild now if that's the ultimate goal.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4054725#4054725
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4054725#4054725. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in InDesign by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I need some help adding music to my slideshow in iPhoto.  When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

    When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

    When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

  • Replaced zd8000 motherboard and need some troubleshooting help please............

    Hello All,
     I just replaced the motherboard on our HP zd8000 (pentium 4, 3.0ghz, 2gb ram, Win XP) with a used but tested good MB and need some help with the following.
    1) I now cannot play DVD movies as the error no "dvd decoder" present which was not an issue before?  Where can I go to get a free decoder that will work, as Windows only shows paid versions?  We have the dvd burner/reader with lightscribe. SOLVED! CNET HAD DECODER.
    2) The internal temperature, according to SpeedFan, is running around 140 degrees with just some Internet browsing.  Is that a normal temperature because I only have one of three fans running on the laptop?  Is there anyway of making all three fans run to be sure there are no issues?  I am positive I hooked up everything but again only one fan seems to be running?
    3) I discovered some of the pins were damaged in the card reader.  I may get the Seller to give me a discount, no intention of tearing it apart simply for that, but is there any concern of short or otherwise?
    4) Our battery stopped charging years ago, these were notorious for such, but I purchased a new one last year and hoped the replacement MB would allow charging again.  No such luck though.  Is there anything I can do, BIOS update etc, to make the battery charge?
    5) Anything you folks can think of for me to test to insure the new motherboard is working properly?
    Thanks, Ralph 
    P.S. This was a correct replacement board according to MB serial numbers.  Everything else seems to be functioning properly other than mentioned.  Our graphics went out on the original MB.
    This question was solved.
    View Solution.

    Some of the wires had pushed out of the harness that connected the other two fans.  I double checked and re-attached those so now the laptop is running quite a bit cooler.
    EVERYTHING IS GOOD TO GO!

  • GT70 680m/8970m troubleshooting - need some experienced help!

    Hi!
    Looping for some serious help...
    After some erratic behavior my i7 3rd gen GT70 just stopped working with MSI 680m 4GB. The card shows on occasions in manager, but both - discrete and HD4000 have no installed drivers and wont work unless 680 is plugged out (then intel kicks in without prob). That happened after some automatic driver updates and possibly BIOS update. Tried a ton of these and Bioses, rather randomly, trying to solve the disappearance of my 680m from control panel, but non of them worked. To make the things worse, I've messed with EC firmware editions trying the "beta" t25,21,16,17 - one of them bricked the lappi for good... Had MSI re-flash the bios (couldn't do the blind flash myself) but they say they can't help me with 680 since it is from GT60 originally and it's not supported by GT70 (I switched it from 675 to 680 in the other MSI laptop some 8 months ago - both worked without a problem until the issue). Don't have access to check my 680m in another MSI to check if it's working and is no hardware failure, but have access to 8970m from CLEVO for some decent bucks - was wondering which bios should I install to run it in my GT70 or which bios/EC firmware to flash so my old 680 start working again... This or that... Any idea? Guys? Svet? Sure will make the donation if needed of course!
    J

    Quote from: pjaca on 12-April-15, 13:56:25
    Checked that out. What I need is some info which BIOS to use in GT70 0ND for 680m or 8970m, particularly. My 680m stopped working after the bios/ec firmware update, still shows in manager but tries to the same resources as integrated Intel HD resulting in both not working. Is there a bios that allows for permanently switching off optimus and integrated gpu? Or the bios that will accept radeon 8970m (that works perfectly in 2nd gen MSI gt780 by the way...). Any ideas?
    No special BIOS is required to support 680M. Just use the latest BIOS release for model GT70 0NE by MSI, it should be working on the machine as long as there is no other strange issue, like a malfunction VGA card/Mobo....

  • Remember me.....well i need some real help now....:)

    Hello guys,i hope that u remember me...if not i hope that u ll help me anyway....
    well,i had an assignment for my university...i posted it and u told to start reading several books and try to write some code....
    i came up with the following code:
    import java.util.Random;
    import java.util.*;
    import java.text.DateFormat;
    class Account {
         double initbal;
         double deposit;
         double withdraw;
    //Account constructor
    Account() {
         initbal=0;
         deposit=0;
         withdraw=0;
    //method for calculating the balance
    double balance() {
         return (initbal+deposit)-withdraw;
    class BankAccount {     
         double initbal;
         private double deposit;
         private double withdraw;
         public static void main(String args[]) {
         Account Dimitris=new Account();               //call the constructor
         CurrentAccount Over=new CurrentAccount();
    try {     //exception added for fault parameters
         Dimitris.initbal=Double.parseDouble(args[0]);     //string parsing into a double
         Dimitris.deposit=Double.parseDouble(args[1]);     //string parsing into a double
         Dimitris.withdraw=Double.parseDouble(args[2]);     //string parsing into a double
         } catch (ArrayIndexOutOfBoundsException e) {
              System.out.println("You must enter three values!!");
         } catch (NumberFormatException e) {
              System.out.println("Only numbers are allowed!!");
         double AvlOvr;
         double bal;
         bal=Dimitris.balance();          //method called
         System.out.println("Initial balance is: "+Dimitris.initbal);
         System.out.println("Deposit Amount is: "+Dimitris.deposit);
         System.out.println("Withdraw amount is: "+Dimitris.withdraw);
         System.out.println("Overdraft limit is: "+Over.AvlOvr);
    if (withdraw>(initbal+deposit)) {
         System.out.println("Insufficient Funds");
    else
         System.out.println("Balance is: "+bal);
         System.out.println("Available Funds is: "+(bal+Over.AvlOvr));
         //display the date and time for the current locale     
         Date date=new Date();
         DateFormat dateFormatter=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT);
         System.out.println(dateFormatter.format(date));
    class CurrentAccount extends BankAccount {
    private float accId;
    double AvlOvr;
    CurrentAccount() {
    double ovdr;
    ovdr=100;
    AvlOvr=ovdr;
    interface Personal {
    void Deposit ();
    void Withdraw ();
    the thing is that i need some help cause i cant find some sollutions....
    i d like to give to the user a random id....
    then at the CurrentAccount subclass i d like to add a Username to the user.Then Level 2 worries me as well.....I ll post u my assignment so u can have a look....If u could help me with Level 2 sollution and the thing that i told u before i d be grateful.......
    by the way..i hope that u all guys have nice holidays!!!
    Here is the assignment:
    JAVA LAB ASSIGNMENT � B241
    Bank Account
    Level 1
    Create a bank account that reads in the following information about a single customer
    account:
    Initial balance
    Deposit amount
    Withdraw amount
    Current Date
    Give the account holder a random account id number.
    Display error messages if the number of parameters is incorrect or negative parameters are
    entered.
    Verify that the amount being withdrawn is available (i.e. make sure that the initial balance +
    deposit amount is greater than or equal to the amount being withdrawn).
    Calculate the balance amount in the account after the transaction has been completed.
    Tasks:
    - Create a BankAccount class, which defines a bank account
    - Use command line arguments to read in the account information
    - The customer account values are private and accessible only through the
    BankAccount class
    - Use the file, InsufficientFundsException.java given to you (Location:
    /global_ro/rekha/B241/assignment) to create an Exception class called
    InsufficientFundsException.class that throws an exception if an
    InsufficientFundsException occurs in your BankAccount class. Make the necessary
    changes to the file if you feel the need to do so.
    - Print out the following information:
    2
    account holder�s id
    balance amount
    amount being withdrawn
    the current date and time
    (Hint: this will occur when the amount withdrawn is more than the total amount in the
    account. Your withdraw method throws the InsufficientFundsException exception which
    should be caught in your main program from where you are calling the withdraw method).
    Subclass the BankAccount class for the specifics of a CurrentAccount class that adds an
    additional field to the already existing information:
    User name
    The account balance and account id values should still be private and now accessible only
    through the CurrentAccount subclass.
    Allow the CurrentAccount class to provide overdraft protection of up to �100.
    Task:
    - Incorporate the additional functionalities into your initial program and print out the
    values as before.
    ********************************END OF LEVEL 1 **************************
    Level 2
    Add the following functionalities to your Level 1 program.
    Define an interface named Personal, consisting of two methods:
    Deposit
    Withdraw
    Read in the account information specified in Level 1 for more than one user through the
    command line parameters and display appropriate error messages as before.
    Calculate the balance amount in each account after the transaction has been completed.
    Tasks:
    - Increment the account id each time a customer is added (For instance, if the first
    customer id is 100, the next id should be 101 and so on).
    - Implement the Personal interface in the BankAccount class.
    - Print out the customer information for all customers as you did in Level 1.
    *****************************END OF LEVEL 2*****************************
    Level 3
    Extend the above features to add some more personal information about the customer such
    as:
    a. Name: surname first name
    b. Date of birth: day/month/year
    c. Address: street
    Town
    Postcode
    d. Phone: home number work number
    e. E-mail: e-mail address
    Customer�s data is stored in a file. It is retrieved from the file when the bank is opened and
    stored in a memory buffer. The memory buffer is updated after every transaction. The
    contents of the memory buffer are written into the file when the bank is closed.
    Design a data management structure of the bank with several customers. The bank performs
    �deposit� and �withdraw� transactions by using Java I/O streams.
    Use the SimpleClient.java and SimpleServer.java files (Location:
    /global_ro/rekha/B241/assignment) as a base for creating your own Client and Server
    windows. Make the necessary changes to the files for them to work within your programs.
    Tasks:
    - Create a non-graphical user interface to be able to
    o enter customer�s data
    o display customer�s personal and account data after every transaction
    - Write a JAVA program to read and write customers data from/to a file.
    - Create a client � server networking environment using Java�s networking capabilities
    such that data is entered through the server window and displayed by the client in the
    client window.

    Ela re si k eimaste k sinonomatoi...anyway...could you pleaze help me with my assignment...my other problem is that i've writen some more code for the 3rd part where it says add some more fields for the customers.I save them in a file and i restore them but i dont know how can i call them when the bank is opened....here's the rest of the code....
    import java.io.*;
    public class UserInfo {
    public static void main(String[] args)
    throws IOException {
         String k,l,m,n,o,p,q,r;
    BufferedReader stdin = new BufferedReader(
    new InputStreamReader(System.in));
    System.out.print("First name:");
         k=stdin.readLine();
         System.out.print("Last name:");
         l=stdin.readLine();
         System.out.print("D.O.B:");
         m=stdin.readLine();
         System.out.print("Address:");
         n=stdin.readLine();
         System.out.print("Town:");
         o=stdin.readLine();
         System.out.print("Postcode:");
         p=stdin.readLine();
         System.out.print("Phone:");
         q=stdin.readLine();
         System.out.print("E-Mail:");
         r=stdin.readLine();
         try {
    DataOutputStream out = new DataOutputStream(
    new BufferedOutputStream(
    new FileOutputStream("Data.txt")));
         out.writeUTF(k);
         out.writeUTF(l);
         out.writeUTF(m);
         out.writeUTF(n);
         out.writeUTF(o);
         out.writeUTF(p);
         out.writeUTF(q);
         out.writeUTF(r);
         out.close();
         DataInputStream in = new DataInputStream(
    new BufferedInputStream(
    new FileInputStream("Data.txt")));
         System.out.println(in.readUTF());
    System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         System.out.println(in.readUTF());
         } catch (NumberFormatException e) {
         System.out.println(e);
    }

  • Newbee in j2me needs some starter help

    Hi,
    I am a newbee in j2me and need a starter help.
    My aim is work on mobile applications/services and for that what stuff I need. I have already downloaded wireless kit. Does I require some additions softwares and what?
    Can I find tutorials and starter help and from where?
    Thanks in anticipation.
    Regards,
    Navin.

    You can refer to article 'Think small with J2ME at' -
    http://www-106.ibm.com/developerworks/wireless/library/wi-j2me/
    It shows by example deployment of a sample application using wireless toolkit.
    Manish.

  • My ipod is majorly screwed up and i need some serious help

    k well lets see
    error states 'can't mount ipod'
    so i tried checking all the wires, restoring the ipod (which didnt work because it couldnt find it) and i scanned all my files for viruses.
    my ipod also makes funny clicking noises when i dont even touch it...
    im just a kid guys.. i need some serious ipod whizz to help me out.. im desperate! ive tried everything

    Hi,
    Firstly please try to deal with "can't mount iPod" issue
    http://docs.info.apple.com/article.html?artnum=93499

  • I need some serious help with Oracle Database....PLEASE!!

    I am using Microsoft Virtual PC 2007 that has Oracle Database 10g and Wondows XP installed on it.
    Database instance is DOWN but that is not the problem
    Listener is UP
    Agent Connection to Instance is DOWN, and I cannot get this running!
    How can I fix this problem? I am not an expert, but I have been trying for a long time to fix this issue, but I can't. It just came to the point that I want to grab my pc and throw it across the room.
    Error message: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    Here is my LISTENER.ORA file:
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    Here is my TSNNAME.ORA file:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Once again, I am not an expert, so please try to explain it as simple as possible...I know, I am an idiot when it comes to networking issues.
    if you guys need some more information, just let me know!
    Thank you!

    What I mean is that I can get the Instance UP with no problem, but the Connection with the Instance is the problem.
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:38
    :06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: PAOLOSCAMARDELL, pid: 2576>
    (ADDRESS=(PROTOCOL=tcp)(HOST=paoloscamardell)(PORT=2307))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:52
    :03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 25-NOV-2009 11:50:27
    Uptime 0 days 10 hr. 1 min. 39 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.109)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>

  • Getting Started with Podcasting - need some direction/help

    hi,
    I need some information on how to get started Podcasting. Any good online resources, software, etc.
    I have looked at garageband3 on my iMac and it seems to be quite good, but what else is out there and does anyone have any tips or suggestions on getting started?
    Thanks in advance!!
    BCA

    I still have GB 2 so I don't know about GB's podcasting abilities (though some of the questions I see here suggest it's not all that wonderful).
    I use, and would recommend, Podcast Maker:
    http://www.potionfactory.com/podcastmaker/
    which is $29.95 and is available on a 30 day free trial.
    You make your podcast using GB or whatever program you want, and save it as an MP3 file. You then open it in Podcast Maker and add the summary and description fields, and if you want it to be an enhanced podcast you add chapters and the artwork. It will then upload it to your iDisk or the server of your choice, create the XML file, and ping the Apple Store if required. All this is seamless and easy to use.

  • [SOLVED] Need a little help with ACPI handler.sh script.

    By using ACPI I'm trying to get my laptop to hibernate at critical power state. So far I've made a few test scripts to test how to do this, with one of these scripts I'm stuck. My scripting skills are not that good to solve it.
    This is the script:
    if [ `awk '{print $3}' /proc/acpi/battery/C1E9/state` == "ok" ]
    then
    logger "battery is ok"
    else
    logger "battery is not ok"
    fi
    If I run the script I get an error (while "battery is not ok" is logged):
    ┌─[~]
    └─> ./test2
    ./test2: line 1: [: too many arguments
    ┌─[~]
    └─>
    When I run the awk-command from the script, I get the following output:
    ┌─[~]
    └─> awk '{print $3}' /proc/acpi/battery/C1E9/state
    ok
    discharging
    2341
    1824
    10969
    ┌─[~]
    └─>
    I think the problem lies in the multiple output of the awk-command, but I'm stuck in solving it.
    Any help would be great.
    Last edited by NeoXP (2009-11-16 22:40:45)

    @ skanky
    Thanks for the suggestion, but you're right I'm not gonna change a working script. It is working exactly as expected.
    @ all
    When interested this is my current handler.sh
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    # NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
    # modify it to not use /sys
    minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
    maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
    setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
    set $*
    case "$1" in
    button/power)
    echo "PowerButton pressed!">/dev/tty5
    case "$2" in
    PWRF) logger "PowerButton pressed: $2" ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/sleep)
    case "$2" in
    SLPB) echo -n mem >/sys/power/state ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    ac_adapter)
    case "$2" in
    AC)
    case "$4" in
    00000000)
    echo -n $minspeed >$setspeed
    #/etc/laptop-mode/laptop-mode start
    00000001)
    echo -n $maxspeed >$setspeed
    #/etc/laptop-mode/laptop-mode stop
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    battery)
    if [ `awk '{print $2}' /proc/acpi/ac_adapter/C1E8/state` == "off-line" ];
    then
    logger "battery discharging"
    if (( `awk '{if (NR==5) {print $3}}' /proc/acpi/battery/C1E9/state` >= "250" ))
    then
    logger "battery ok"
    else
    logger "battery not ok"
    /usr/sbin/pm-hibernate;
    fi
    else logger "battery charging"
    fi
    button/lid)
    if [ `awk '{print $2}' /proc/acpi/button/lid/C1ED/state` == "closed" ];
    then
    logger "ACPI lid closed"
    /usr/sbin/pm-suspend
    fi
    logger "ACPI group/action undefined: $1 / $2"
    esac
    Still working on it though

  • [SOLVED] Need some help getting the sound to work again

    Recently I changed the motherboard and CPU to an AM3 platform, everything works with my previous setup except sound.
    Reinstalling alsa-utils and rebooting had absolutely no effect. Google didn't help either.
    lspci -v
    00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
    Subsystem: ASUSTeK Computer Inc. Device 8415
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
    Memory at dfff4000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel modules: snd-hda-intel
    The motherboard documentation refers to it as "VIA VTI708S".
    VLC complains about alsa-lib. Reinstalling it also didn't help.
    aplay /usr/share/sounds/alsa/Front_Center.wav
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
    aplay: main:654: audio open error: No such file or directory
    alsamixer
    cannot open mixer: No such file or directory
    Edit:
    Damn ASUS font... It's "VIA VT1708S" (number one, not the letter "i") !  Duh. No wonder Google couldn't find any info.
    Still, any ideas ? Or would you just rather let me squirm a little and diagnose the problem myself ?
    Last edited by DSpider (2010-11-28 18:15:41)

    sudo modprobe snd-hda-intel
    (I think it's what you tried to tell me, igndenok)
    Great. It took the bulk of my day trying to figure out how to get this thing to work.
    VolWheel is now set to adjust "Master Front" (it was previously set to "Master" with the old motherboard) and the Sonata volume bar apparently works too, just like I wanted (adjusting the PCM volume by default). Good. Great ! Now I just need to set the "snd-hda-intel" module to load at boot so I don't have to type "sudo modprobe snd-hda-intel" all the time and this thread can be considered SOLVED.
    sudo nano /etc/rc.conf
    ...and add the following:
    MODULES="... snd-hda-intel ..."
    (also removed snd-ac97-codec from the list because that's what the old mobo used)
    THANKS FOR ALL YOUR HELP !
    PS: Just out of curiosity, why is it called "snd-hda-intel" ? Why intel ? The CPU is AMD, the chipset is Nvidia nForce, sound is VIA...
    Anyone know ? I'll subscribe to this topic just in case anyone knows. Thanks again.
    Last edited by DSpider (2010-11-28 18:16:36)

  • [SOLVED] Need some help with binaries move update/upgrade

    I'm a bit stumped by the upgrade instructions consequent on the decision to move things into /usr/bin and would like to ask some advice. First, I do get output from the command
    pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
    . The short list of files is
    grub 0.97-21
    gen-init-cpio 2.6.36-1
    grub 0.97-21
    lilo 23.2-3
    gnome-cups-manager 0.33-6
    lilo 23.2-3
    tcp_wrappers 7.6-12
    The first problem I have is how to "fix," as the directions stipulate, this situation. Does "fix" here mean manually moving some binaries to /usr/bin? Removing those packages (none of which I currently use) via pacman?
    I'm pretty sure I don't have any packages installed from non-official repos on this system, so I'm skipping the step that describes what to do in that case. The third command, i.e.,
    find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
    returns no results, so I should be ok there.
    Input will be appreciated.
    Last edited by jamtat (2013-06-06 01:40:13)

    I've run into a hang-up. It's true I wasn't running systemd on the laptop, so I took the steps outlined on the wiki to make the system do that. Then I removed the packages from the laptop that might interfere with the upgrade and ran
    pacman -Syu --ignore filesystem,bash
    per instructions. That resulted in a whole lot of updates/upgrades to the system. But then, when I went to run
    pacman -S bash
    , I got a failure: the system lost its wifi connection (to date managed by wicd) and I cannot get it to connect now. Even worse, it won't even go online through the wired NIC: it gets and IP, but no network traffic is traveling to or from the laptop. I don't think it will be a good idea to reboot the system without first upgrading bash, will it (the old bash won't know about the location of key binaries, correct?)? Suggestions about what to try next?
    Last edited by jamtat (2013-06-06 00:07:58)

  • HT204053 I can't get in to my icloud, I don't know what happening?, I need some body help or sent link to my e-mail address to solve.

    I can't get the application and data from icould , and i don't know how to solve the ploblem?

    It's not clear what you're trying to do.  On a computer you can log in to icloud at icloud.com.  You can't do that on a mobile device.  What is this about VPN?

  • Lenovo A6000 Softbricked? Needs some serious help--Please

    Hi My A6000 phone got factory reset and then I tried to recover some lost pics...but I was advised that my phone needs to be rooted first, so the software opened kingo root soft, It showed me the message that phone has been rooted and when it rebooted there was a notification of software update which I said ok and ever since then the phone is stuck on system recovery mode (not sure if it is called soft brick or not) and I have tried many things including choosing all the options starting from reboot system now, apply update from ADB, wipe data/factory reset, wipe cache partition, apply update from sdcard but nothing seems to work!!! oh I for got to mention on the top of the screen it says  Androoid system recovery <3e>Kraft -A6000_S035_150507 and then gives all the option and i have tried this following : https://boycracked.wordpress.com/2015/06/03/unbrick-lenovo-a6000/ but some how for the first solution it keeps on saying download failed, emergency recovery download failed...anyways it does not work  Is there any soultion to this!!! Please help if there is one!

    it worked the link from boycracked (mentioned above )actually worked the trick was to hold vol up+down key (while the phone is off) and then insert the usb into your computer, secondly my computer kept of saying that qualcomms --digital signatures not verified and the port is supposed to be Qualcomm Lenovo HS-USB QDLoader 9008 where as mine showed up to 9091, to solve this I uninstalled the drivers and then disabled digital signatures (use goggle how to disable signatures verification on whichever windows you are using) and it worked fine. Thank you all

Maybe you are looking for

  • Issues solved after a second install of Belle

    Hi. I have been advised to reinstall Belle on my Nokia E7. I've been told that after a second install of Belle most issues are gone. Do you know what specific issues are solved after that reinstall? I'm curious because I want to know if it is worthy

  • Nokia N95 (V20 Firmware) & Mail for Exchange

    Anyone else having problems? When i try to connect to my exchange server (Using Wifi or GPRS (3G)) It will just connect, say connected and then sit at idle? When seetting to always active as well im getting an error about my exchange server not suppo

  • Airport express & vista

    aloha...anybody out there get their aiport express to work w/ vista??? i can connect to the internet(unsecured) but i can't get the airport admin utility to work at all and the airport setup assistant does not exist.

  • Pico Pix 2330

    I just bought a Philips Pico Pix 2330 projector and as instructed on the booklet I conect my Iphone and chose the source icon but it shows "no signal". What can I do to make it work?

  • Missing files in discovrer plus lib

    I have installed oracle bi and the discovrer plus when loading in a java applet is failing because it is unable to find the following class file load: class oracle.disco.DiscoApplet.class not found the file that was downloaded was as_linux_x86_bi_101