Mdls + grep + output

Hi Folks,
I have a large directory of images whose dimensions and filename I need to output to a text file.
Using the following from the command line, I can get the results of one of the fields:
#mdls filename.jpg | grep kMDItemPixelHeight > ~/Desktop/mdls.out
However, I'd like to grab three fields from each file, and separate them each on a row (separated/delimited by comma or tab), so they will look like this:
filename.jpg 500 300
filename2.jpg 515 301
filename3.jpg 503 299
etc, etc
The fields I need to grep from mdls are:
kMDItemPixelHeight
kMDItemPixelWidth
kMDItemDisplayName
Any help, suggestions most appreciated.
Best, Doug

Camelot wrote:
Once you have the mdls command giving you the output you want, there are a number of tools that will convert it into the format you want.
Here's one example that uses awk:
<pre class=command>mdls -name kMDItemPixelHeight -name kMDItemPixelWidth -name kMDItemDisplayName *jpg| awk '/jpg/ {name=$3;getline;height=$3;getline;width=$3;print (name, height, width)}'</pre>
Hmm. I can't get that to work on my computer. I get this:
"Blanca-PowerBookBW.jpg" 900
"Blanca-PowerBookColor.jpg" 900
"TL-BlackCanyon.jpg" 341
But if I mess with it a bit, I can do it all in one line like this (using part of what you posted):
mdls -name kMDItemPixelHeight -name kMDItemPixelWidth -name kMDItemDisplayName *jpg | sed 's/"//g' | awk '/=/ {name=$3;getline;height=$3;getline;width=$3;printf("%s     %s     %s
",name, height, width)}' > ~/Desktop/mdls.out

Similar Messages

  • [SOLVED] grep output matching parts only

    I want grep to output only what it matched, but according the man page, it will put each matching part on a separate line, which does not work for me. I am matching two numbers, but they don't get output together, but each on a separate line. Any idea how to fix this?
    Here is my code:
    [x@arch ~]$ sudo hddtemp /dev/sda|cut -f4 -d" "|grep [[:digit:]+] -o
    4
    6
    Last edited by awayand (2012-03-31 05:08:06)

    awayand wrote:
    genius. thanks, dev/zero!
    sudo hddtemp /dev/sda |cut -f4 -d" "|tr -cd [:digit:]
    Haha, the actual solution you found is more elegant than the one I had in mind!
    sudo hddtemp /dev/sda | cut -f4 -d" " | grep [[:digit:]+] -o | tr '\n' ' ' | sed 's| ||g'

  • Grep output looks odd or has typos

    Is there a grep maintenance group? I did not find any contact info in the man page for grep.
    I was playing with grep and got the following:
    #and hte coment after is ignored.
    #You can also use a comment ot "disable"

    my bad, please ignore.

  • Sending output to 2 pipelines in shell script?

    I have a large file to process using grep, however the same output of grep
    will be used by 2 different programs. Processing the large input file twice
    will be a waste of time. Is there a way to duplicate the output data and send it
    to 2 separate pipelines?
    As a resolution saving the grep output to a temporary file and reading the file twice
    will do the job. But I would like to know if there is a possibility to avoid using
    tmp files.

    mksoft wrote:The tee command will help you with it, google will have some examples, here's one:
    http://linux.byexamples.com/archives/14 … processes/
    That's wonderful
    However process substitution is not part of the POSIX standard. I think that's why I didn't
    see it in some of my scripting textbooks.

  • Can't call or execute of different class files in a main program

    Hi, I got a main program which can call 3 different classes. The main program have an implicit-choice List as a starting menu. If one of the file is selected, the files will call out and display it. However, i managed to call the 1st 2 files, and the 3rd files can't display anything after selected.
    I enclosed my code as below:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class Catalogues extends Form implements CommandListener {
         private Displayable parent;
         private Display display;
         private List Cata;
         private Boots bo;
         private Higheels hHeels;
         private Sandals sand;
         private Slippers sp;
        private Command backCommand = new Command("Back", Command.BACK, 1);
        private Command viewCommand = new Command("View", Command.SCREEN, 1);
        private String[] options = {"Boots", "High Heels","Sandals", "Slippers"};
         public Catalogues(Display d, Displayable p) {
              super("Welcome to Footwear World");
              Cata = new List("Select Option", List.IMPLICIT, options, null);
              display = d;
            parent = p;
              addCommand(backCommand);
              addCommand(viewCommand);
              setCommandListener(this);
         public void commandAction(Command c, Displayable d) {
         if(d==parent && c==List.SELECT_COMMAND){
              switch(parent.getSelectedIndex()){
                   case 0:
                           if(bo==null){
                              bo = new Boots(display,parent);
                             display.setCurrent(bo);
                              break;
                   case 1:
                           if(hHeels==null){
                              hHeels = new Higheels(display,parent);
                             display.setCurrent(hHeels);
                              break;
                   case 2:
                           if(sand==null){
                              sand = new Sandals(display,parent);
                             display.setCurrent(sand);
                              break;
                   case 3:
                           if(sp==null){
                              sp = new Slippers(display,parent);
                             display.setCurrent(sp);
                              break;
                   default:
             else if (c==backCommand) {
                       display.setCurrent(parent);
    }If the 3rd option is selected, i'll display above mentioned layout which contain a list to select too.
    After build this project on WToolkit. It shown an error message which is as below:
    Project settings saved
    Building "SelectCustest"
    C:\WTK22\apps\SelectCustest\src\Catalogues.java:29: cannot resolve symbol
    symbol : method getSelectedIndex ()
    location: class javax.microedition.lcdui.Displayable
    switch(parent.getSelectedIndex()){
    ^
    1 error
    com.sun.kvem.ktools.ExecutionException
    Build failed
    May i know what is problem am i facing now? And how to solve it.
    Thanks.

    Thanks to all for your thoughts and replies. I liked the xargs suggestion, so I tried that first. I would have (may still) try the stdin suggestion, followed by writing the grep output to a file.
    xargs does work, in a way I didn't expect it to, but that could be due to my inexperience with the workings of the shell.
    here's a line from my test script
    cat file | grep foo | xargs java com.company.test.TEchoArghere's the contents of 'file'
    123foo
    abc
    qafoozv
    qaz
    wsx
    qwefoort
    zxcfooh
    sdfghhere's the output from the test class, which just echos any arguments
    ::number of args: 4
    ::args[0] 123foo
    ::args[1] qafoozv
    ::args[2] qwefoort
    ::args[3] zxcfoohso xargs appends all the values from grep into an argument list and call the java class once.
    when I took xargs out of the script, nothing was passed to the class:
    ::number of args: 0this was really interesting and something to keep in my back pocket for future use.
    Thanks again to all.
    Tom

  • [SOLVED] ACPI handler.sh no longer working (Thinkpad X60 Tablet)

    Hello there,
    I recently did a few updates on my system to reduce power usage and get hdaps working. For some reason one of these changes must have broken ACPID in some way so that what I wrote in handler.sh no longer has any effect when I e.g. press the configured buttons to lock my screen or shut down, but I have no clue which.
    I'm not really familiar with where ACPI and ACPID keeps all their logs either, and which parts in there might mean something for me. I don't even know how I can check if ACPI is running properly and just ACPID isn't, for instance (both are running thought, confirmed with ps -A).
    Here's what I can remember of what I did:
    -full system update
    -install cpufreq to redcude power usage with acpi_cpufreq
    -install HDAPS with Thinkpad driver, as described on the Wiki
    -tweak my laptop-mode settings, e.g. disable VGA output when in laptop mode
    -enable AHCI for my hard drive in kernel image and BIOS
    Would be great if you could help me troubleshoot this somehow, as I really don't have a clue on how to fix this. Here's some output that might be helpful for starters:
    cat /etc/acpi/handler.sh
    #!/bin/sh
    set $*
    case "$1" in
    button/power)
    #echo "PowerButton pressed!">/dev/tty5
    case "$2" in
    PWRF)
    #Power off
    shutdown -h now
    logger "ACPI action undefined: $2"
    esac
    ibm/hotkey)
    #echo "Display swiveled">/dev/tty5
    case "$2" in
    HKEY)
    case "$4" in
    00005009)
    #Swiveling down
    /bin/sh /etc/acpi/actions/swivel-down
    0000500a)
    #Swiveling up
    /bin/sh /etc/acpi/actions/swivel-up
    00001002)
    #Lock screen
    xscreensaver-command -lock
    #run_once xtrlock &
    00001004)
    #Standby button
    xscreensaver-command -lock ; s2ram
    00001005)
    #Network button
    /etc/rc.d/net-auto-wireless restart
    00001009)
    #Reboot
    shutdown -r now
    00007000)
    #WLan button switched
    /etc/rc.d/net-auto-wireless restart
    fi
    esac
    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)
    #laptop mode should take care of this alone!
    #/etc/rc.d/laptop-mode start
    00000001)
    #/etc/rc.d/laptop-mode stop
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    battery)
    case "$2" in
    BAT0)
    case "$4" in
    00000000) #echo "offline" >/dev/tty5
    00000001) #echo "online" >/dev/tty5
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    #echo "LID switched!">/dev/tty5
    case "$2" in
    LID)
    if [[ `cat /proc/acpi/button/lid/LID/state | awk '{print $2}'` = "closed" ]]
    then
    #run_once xtrlock &
    xscreensaver-command -lock
    fi
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    dmesg | grep acpi
    BIOS-e820: 000000007f6d0000 - 000000007f6df000 (ACPI data)
    BIOS-e820: 000000007f6df000 - 000000007f700000 (ACPI NVS)
    modified: 000000007f6d0000 - 000000007f6df000 (ACPI data)
    modified: 000000007f6df000 - 000000007f700000 (ACPI NVS)
    ACPI: RSDP 000f67c0 00024 (v02 LENOVO)
    ACPI: XSDT 7f6d11e8 0008C (v01 LENOVO TP-7J 00001140 LTP 00000000)
    ACPI: FACP 7f6d1300 000F4 (v03 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20090903/tbfadt-526)
    ACPI Warning: Optional field Gpe1Block has zero address or length: 000000000000102C/0 (20090903/tbfadt-557)
    ACPI: DSDT 7f6d1690 0D56F (v01 LENOVO TP-7J 00001140 MSFT 0100000E)
    ACPI: FACS 7f6f4000 00040
    ACPI: SSDT 7f6d14b4 001DC (v01 LENOVO TP-7J 00001140 MSFT 0100000E)
    ACPI: ECDT 7f6debff 00052 (v01 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI: TCPA 7f6dec51 00032 (v02 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI: APIC 7f6dec83 00068 (v01 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI: MCFG 7f6deceb 0003C (v01 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI: HPET 7f6ded27 00038 (v01 LENOVO TP-7J 00001140 LNVO 00000001)
    ACPI: SLIC 7f6dee62 00176 (v01 LENOVO TP-7J 00001140 LTP 00000000)
    ACPI: BOOT 7f6defd8 00028 (v01 LENOVO TP-7J 00001140 LTP 00000001)
    ACPI: SSDT 7f6f2603 0025F (v01 LENOVO TP-7J 00001140 INTL 20050513)
    ACPI: SSDT 7f6f2862 000A6 (v01 LENOVO TP-7J 00001140 INTL 20050513)
    ACPI: SSDT 7f6f2908 004F7 (v01 LENOVO TP-7J 00001140 INTL 20050513)
    ACPI: SSDT 7f6f2dff 001D8 (v01 LENOVO TP-7J 00001140 INTL 20050513)
    ACPI: Local APIC address 0xfee00000
    ACPI: PM-Timer IO Port: 0x1008
    ACPI: Local APIC address 0xfee00000
    ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
    ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
    ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
    ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    ACPI: IRQ0 used by override.
    ACPI: IRQ2 used by override.
    ACPI: IRQ9 used by override.
    Using ACPI (MADT) for SMP configuration information
    ACPI: HPET id: 0x8086a201 base: 0xfed00000
    ACPI: Core revision 20090903
    ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
    ACPI: bus type pci registered
    ACPI: EC: EC description table is found, configuring boot EC
    ACPI: Interpreter enabled
    ACPI: (supports S0 S3 S4 S5)
    ACPI: Using IOAPIC for interrupt routing
    ACPI: EC: GPE = 0x1c, I/O: command/status = 0x66, data = 0x62
    ACPI: Power Resource [PUBS] (on)
    ACPI: ACPI Dock Station Driver: 3 docks/bays found
    ACPI: PCI Root Bridge [PCI0] (0000:00)
    pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6 ACPI/GPIO/TCO
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP0._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP1._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP2._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.EXP3._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
    ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 *11)
    ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 *11)
    PCI: Using ACPI for IRQ routing
    pnp: PnP ACPI init
    ACPI: bus type pnp registered
    pnp: PnP ACPI: found 11 devices
    ACPI: ACPI bus type pnp unregistered
    acpi device:01: registered as cooling_device0
    ACPI: Video Device [VID] (multi-head: yes rom: no post: no)
    ACPI: Lid Switch [LID]
    ACPI: Sleep Button [SLPB]
    ACPI: Power Button [PWRF]
    i915 0000:00:02.0: power state changed by ACPI to D0
    ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    ACPI: SSDT 7f6f1ccc 001FE (v01 PmRef Cpu0Ist 00000100 INTL 20050513)
    ACPI: SSDT 7f6f1f4f 006B4 (v01 PmRef Cpu0Cst 00000100 INTL 20050513)
    ACPI: SSDT 7f6f1c04 000C8 (v01 PmRef Cpu1Ist 00000100 INTL 20050513)
    ACPI: SSDT 7f6f1eca 00085 (v01 PmRef Cpu1Cst 00000100 INTL 20050513)
    ehci_hcd 0000:00:1d.7: power state changed by ACPI to D0
    uhci_hcd 0000:00:1d.0: power state changed by ACPI to D0
    uhci_hcd 0000:00:1d.2: power state changed by ACPI to D0
    ACPI: Thermal Zone [THM0] (56 C)
    ACPI: Thermal Zone [THM1] (59 C)
    ACPI: AC Adapter [AC] (on-line)
    ACPI: Battery Slot [BAT0] (battery present)
    thinkpad_acpi: ThinkPad ACPI Extras v0.23
    thinkpad_acpi: http://ibm-acpi.sf.net/
    thinkpad_acpi: ThinkPad BIOS 7JET29WW (1.14 ), EC 7JHT13WW-1.04
    thinkpad_acpi: Lenovo ThinkPad X60 Tablet, model 6363WDK
    thinkpad_acpi: WARNING: Outdated ThinkPad BIOS/EC firmware
    thinkpad_acpi: WARNING: This firmware may be missing critical bug fixes and/or important features
    thinkpad_acpi: ACPI backlight control delay disabled
    thinkpad_acpi: radio switch found; radios are enabled
    thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
    thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
    thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
    Registered led device: tpacpi::thinklight
    Registered led device: tpacpi::power
    Registered led device: tpacpi::standby
    Registered led device: tpacpi::thinkvantage
    thinkpad_acpi: Standard ACPI backlight interface available, not loading native one.
    ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    cat /var/log/acpid.log
    Feb 28 13:19:28 damnation acpid: exiting
    Mar 1 12:48:43 damnation acpid: starting up
    Mar 1 12:48:43 damnation acpid: 4 rules loaded
    Mar 1 12:48:43 damnation acpid: waiting for events: event logging is off
    Mar 1 12:48:44 damnation acpid: client connected from 1737[82:82]
    Mar 1 12:48:44 damnation acpid: 1 client rule loaded
    Mar 1 12:49:39 damnation acpid: client connected from 2523[0:0]
    Mar 1 12:49:39 damnation acpid: 1 client rule loaded
    Mar 1 12:49:56 damnation acpid: exiting
    Mar 1 12:49:56 damnation acpid: starting up
    Mar 1 12:49:56 damnation acpid: 4 rules loaded
    Mar 1 12:49:56 damnation acpid: waiting for events: event logging is off
    Mar 1 12:49:57 damnation acpid: client connected from 2523[0:0]
    Mar 1 12:49:57 damnation acpid: 1 client rule loaded
    Mar 1 12:50:01 damnation acpid: client connected from 1737[82:82]
    Mar 1 12:50:01 damnation acpid: 1 client rule loaded
    Mar 2 10:23:50 damnation acpid: client 2523[0:0] has disconnected
    Mar 2 10:23:50 damnation acpid: client connected from 2523[0:0]
    Mar 2 10:23:50 damnation acpid: 1 client rule loaded
    Mar 2 10:52:18 damnation acpid: client 2523[0:0] has disconnected
    Mar 2 10:52:18 damnation acpid: client connected from 2523[0:0]
    Mar 2 10:52:18 damnation acpid: 1 client rule loaded
    Mar 2 17:00:21 damnation acpid: client 2523[0:0] has disconnected
    Mar 2 17:00:21 damnation acpid: client connected from 2523[0:0]
    Mar 2 17:00:21 damnation acpid: 1 client rule loaded
    Mar 3 09:54:32 damnation acpid: client 2523[0:0] has disconnected
    Mar 3 09:54:32 damnation acpid: client connected from 2523[0:0]
    Mar 3 09:54:32 damnation acpid: 1 client rule loaded
    Mar 3 10:28:14 damnation acpid: exiting
    Mar 3 10:28:14 damnation acpid: starting up
    Mar 3 10:28:14 damnation acpid: 4 rules loaded
    Mar 3 10:28:14 damnation acpid: waiting for events: event logging is off
    Mar 3 10:28:15 damnation acpid: client connected from 2523[0:0]
    Mar 3 10:28:15 damnation acpid: 1 client rule loaded
    Mar 3 10:28:19 damnation acpid: client connected from 1737[82:82]
    Mar 3 10:28:19 damnation acpid: 1 client rule loaded
    Mar 3 10:37:44 damnation acpid: exiting
    Mar 3 10:37:44 damnation acpid: starting up
    Mar 3 10:37:44 damnation acpid: 4 rules loaded
    Mar 3 10:37:44 damnation acpid: waiting for events: event logging is off
    Mar 3 10:37:45 damnation acpid: client connected from 2523[0:0]
    Mar 3 10:37:45 damnation acpid: 1 client rule loaded
    Mar 3 10:37:49 damnation acpid: client connected from 1737[82:82]
    Mar 3 10:37:49 damnation acpid: 1 client rule loaded
    Mar 3 12:22:44 damnation acpid: exiting
    Mar 3 12:23:44 damnation acpid: starting up
    Mar 3 12:23:45 damnation acpid: 4 rules loaded
    Mar 3 12:23:45 damnation acpid: waiting for events: event logging is off
    Mar 3 12:23:46 damnation acpid: client connected from 3417[82:82]
    Mar 3 12:23:46 damnation acpid: 1 client rule loaded
    Mar 3 12:24:40 damnation acpid: client connected from 4287[0:0]
    Mar 3 12:24:40 damnation acpid: 1 client rule loaded
    Mar 3 12:24:55 damnation acpid: exiting
    Mar 3 12:24:55 damnation acpid: starting up
    Mar 3 12:24:55 damnation acpid: 4 rules loaded
    Mar 3 12:24:55 damnation acpid: waiting for events: event logging is off
    Mar 3 12:24:56 damnation acpid: client connected from 4287[0:0]
    Mar 3 12:24:56 damnation acpid: 1 client rule loaded
    Mar 3 12:25:00 damnation acpid: client connected from 3417[82:82]
    Mar 3 12:25:00 damnation acpid: 1 client rule loaded
    Mar 3 12:40:54 damnation acpid: exiting
    Mar 3 12:49:47 damnation acpid: starting up
    Mar 3 12:49:47 damnation acpid: 4 rules loaded
    Mar 3 12:49:47 damnation acpid: waiting for events: event logging is off
    Mar 3 12:49:49 damnation acpid: client connected from 3396[82:82]
    Mar 3 12:49:49 damnation acpid: 1 client rule loaded
    Mar 3 12:50:12 damnation acpid: client connected from 5224[0:0]
    Mar 3 12:50:12 damnation acpid: 1 client rule loaded
    Mar 3 12:50:59 damnation acpid: exiting
    Mar 3 12:50:59 damnation acpid: starting up
    Mar 3 12:50:59 damnation acpid: 4 rules loaded
    Mar 3 12:50:59 damnation acpid: waiting for events: event logging is off
    Mar 3 12:51:00 damnation acpid: client connected from 5224[0:0]
    Mar 3 12:51:00 damnation acpid: 1 client rule loaded
    Mar 3 12:51:04 damnation acpid: client connected from 3396[82:82]
    Mar 3 12:51:04 damnation acpid: 1 client rule loaded
    Mar 3 13:21:42 damnation acpid: exiting
    Mar 3 13:21:42 damnation acpid: starting up
    Mar 3 13:21:42 damnation acpid: 4 rules loaded
    Mar 3 13:21:42 damnation acpid: waiting for events: event logging is off
    Mar 3 13:21:43 damnation acpid: client connected from 5224[0:0]
    Mar 3 13:21:43 damnation acpid: 1 client rule loaded
    Mar 3 13:21:47 damnation acpid: client connected from 3396[82:82]
    Mar 3 13:21:47 damnation acpid: 1 client rule loaded
    Mar 3 13:22:21 damnation acpid: exiting
    Mar 3 13:22:21 damnation acpid: starting up
    Mar 3 13:22:21 damnation acpid: 4 rules loaded
    Mar 3 13:22:21 damnation acpid: waiting for events: event logging is off
    Mar 3 13:22:22 damnation acpid: client connected from 5224[0:0]
    Mar 3 13:22:22 damnation acpid: 1 client rule loaded
    Mar 3 13:22:26 damnation acpid: client connected from 3396[82:82]
    Mar 3 13:22:26 damnation acpid: 1 client rule loaded
    Mar 3 13:23:03 damnation acpid: client 5224[0:0] has disconnected
    Mar 3 13:23:03 damnation acpid: client connected from 5224[0:0]
    Mar 3 13:23:03 damnation acpid: 1 client rule loaded
    Mar 3 13:25:00 damnation acpid: exiting
    Mar 3 13:25:00 damnation acpid: starting up
    Mar 3 13:25:00 damnation acpid: 4 rules loaded
    Mar 3 13:25:00 damnation acpid: waiting for events: event logging is off
    Mar 3 13:25:01 damnation acpid: client connected from 5224[0:0]
    Mar 3 13:25:01 damnation acpid: 1 client rule loaded
    Mar 3 13:25:05 damnation acpid: client connected from 3396[82:82]
    Mar 3 13:25:05 damnation acpid: 1 client rule loaded
    Mar 3 13:29:52 damnation acpid: client connected from 21588[1000:100]
    Mar 3 13:29:52 damnation acpid: 1 client rule loaded
    Mar 3 13:30:27 damnation acpid: client 21588[1000:100] has disconnected
    Mar 3 13:36:15 damnation acpid: exiting
    Mar 3 13:37:54 damnation acpid: starting up
    Mar 3 13:37:54 damnation acpid: 4 rules loaded
    Mar 3 13:37:54 damnation acpid: waiting for events: event logging is off
    Mar 3 13:37:56 damnation acpid: client connected from 3419[82:82]
    Mar 3 13:37:56 damnation acpid: 1 client rule loaded
    Mar 3 13:38:28 damnation acpid: client connected from 4292[0:0]
    Mar 3 13:38:28 damnation acpid: 1 client rule loaded
    Mar 3 13:39:24 damnation acpid: exiting
    Mar 3 13:39:24 damnation acpid: starting up
    Mar 3 13:39:24 damnation acpid: 4 rules loaded
    Mar 3 13:39:24 damnation acpid: waiting for events: event logging is off
    Mar 3 13:39:25 damnation acpid: client connected from 4292[0:0]
    Mar 3 13:39:25 damnation acpid: 1 client rule loaded
    Mar 3 13:39:29 damnation acpid: client connected from 3419[82:82]
    Mar 3 13:39:29 damnation acpid: 1 client rule loaded
    Mar 3 13:44:09 damnation acpid: client connected from 4488[1000:100]
    Mar 3 13:44:09 damnation acpid: 1 client rule loaded
    Mar 3 13:45:42 damnation acpid: client 4488[1000:100] has disconnected
    Mar 3 13:58:17 damnation acpid: exiting
    Mar 3 13:58:17 damnation acpid: starting up
    Mar 3 13:58:17 damnation acpid: 4 rules loaded
    Mar 3 13:58:17 damnation acpid: waiting for events: event logging is off
    Mar 3 13:58:18 damnation acpid: client connected from 4292[0:0]
    Mar 3 13:58:18 damnation acpid: 1 client rule loaded
    Mar 3 13:58:22 damnation acpid: client connected from 3419[82:82]
    Mar 3 13:58:22 damnation acpid: 1 client rule loaded
    (are all these "client has disconnected" messages normal?)
    Last edited by Natanji (2010-03-07 11:03:54)

    I don't know if it works for everyone but i have just fixed the acpi rotate for my x60t
    /usr/bin/xrotate
    #!/bin/sh
    output=LVDS1
    if [ "$XROT_OUTPUT" ]
    then
    output=$XROT_OUTPUT;
    fi
    devices="stylus eraser"
    geomnbr=0
    xrandr=normal
    wacom=normal
    if [ "$1" == "-" ] || [ "$1" == "+" ] || ! [ "$1" ];
    then
    operator="$1";
    [ "$1" ] || operator='+';
    case `xrandr --verbose | grep "^$output " | sed "s/^[^ ]* [^ ]* [^ ]* ([^(]*) \([a-z]*\).*/\1/"` in
    normal) geom=0;;
    left) geom=1;;
    inverted) geom=2;;
    right) geom=3;;
    esac
    let geom=${geom}${operator}1+4
    let geom=${geom}%4
    else
    geom="$1"
    fi
    case $geom in
    1) wacom=CCW; xrandr=left ;;
    2) wacom=HALF; xrandr=inverted ;;
    3) wacom=CW; xrandr=right ;;
    *) wacom=NONE; xrandr=normal ;;
    esac
    echo "xrandr to $xrandr, xsetwacom to $wacom" >&2
    if xrandr --output "$output" --rotate "$xrandr"; then
    for device in $devices
    do
    xsetwacom set "$device" Rotate "$wacom"
    done
    fi
    #workaround for linuxwacom bug
    if [ "`xsetwacom get stylus Mode`" == '1' ]; then
    for decive in $devices
    do
    xsetwacom set stylus CoreEvent "off"
    xsetwacom set stylus Mode "off"
    done
    { sleep 1;
    for device in $devices
    do
    xsetwacom set stylus Mode "on"
    xsetwacom set stylus CoreEvent "on"
    done; } &
    fi
    /etc/acpi/thinkpad-swivel-up.sh       
    #!/bin/bash
    XAUTHORITY=/var/lib/gdm/\:0.Xauth DISPLAY=:0.0 /usr/bin/xrotate 0
    /etc/acpi/thinkpad-swivel-down.sh       
    #!/bin/bash
    XAUTHORITY=/var/lib/gdm/\:0.Xauth DISPLAY=:0.0 /usr/bin/xrotate 1
    The problem was that my acpid starts long before xorg.
    System:
    Thinkpad x60 tablet
    xorg 1.8
    acpid 1.0.10

  • [Solved] Running mpd as user mpd with systemd without using mpd.conf

    Maybe this is tivial, but I searched about an hour without any results. I want to run mpd as user mpd. I cant use the mpd config file since mpd set the UID and GID explicitely resulting in mpd not having the necessary supplementary groups to access the locally shared music on my pc. Well I tried to run mpd with systemd by
    # systemctl start mpd
    and  the systemd contains the user mpd
    $ cat /etc/systemd/system/default.target.wants/mpd.service
    [Unit]
    Description=Music Player Daemon
    After=network.target sound.target
    [Service]
    User=mpd
    ExecStart=/usr/bin/mpd --no-daemon
    # allow MPD to use real-time priority 50
    LimitRTPRIO=50
    LimitRTTIME=-1
    # move MPD to a top-level cgroup, as real-time budget assignment fails
    # in cgroup /system/mpd.service, because /system has a zero real-time
    # budget; see
    # http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
    ControlGroup=cpu:/mpd
    # assign a real-time budget
    ControlGroupAttribute=cpu.rt_runtime_us 500000
    [Install]
    WantedBy=default.target
    but it did not run as mpd.
    Well how can I run mpd as mpd? Is there a way to do it like with dropbox: dropbox@<user>.service
    Last edited by manuelschneid3r (2015-03-25 12:52:52)

    Glad you solved it. Was just typing a response and I'll still add two remarks:
    The ps|grep output showed that you run grep as root, not mpd itself (which won't have a space in the command -- the second time it only worked because the mpd group is preceded by a space).
    It sounds like it took you a while to find the drop-in configuration snippet in the mpd.service.d directory. These drop-in are shown in `systemctl status`, which is something you'd normally check in situations like these, and that might help to discover them more quickly.
    Last edited by Raynman (2015-03-25 12:58:36)

  • Log4j does not find properties file (but its in the classes directory)

    I am using eclipse, I have created a log4j object:
         private static Logger logger = Logger.getLogger(Http.class.getName());When I try to run the test case, I get:
    log4j:WARN No appenders could be found for logger (com.cable.comcast.nsec.common.Http).
    log4j:WARN Please initialize the log4j system properly.I usually run into this problem when the log4j.properties file is not in the 'classes' directory, but this time it is.
    atlantis@atlantis-laptop:~/workspace/ArborAPI$ cat .classpath | grep output
            <classpathentry kind="output" path="classes"/>
    atlantis@atlantis-laptop:~/workspace/ArborAPI$ ls -la classes/
    total 16
    drwxr-xr-x 3 atlantis atlantis 4096 2008-02-06 16:44 .
    drwxr-xr-x 7 atlantis atlantis 4096 2008-02-06 17:08 ..
    drwxr-xr-x 3 atlantis atlantis 4096 2008-02-06 16:35 com
    -rw-r--r-- 1 atlantis atlantis 2603 2008-02-06 16:44 log4j.propertiesAm I missing something?

    Sorry I was really busy the last few days. Thank you for your answers!
    I probably should have left out all the specifics of what the software was that I was packaging, because I think what I was really asking did not come across clearly. What I really wanted to know is:
    Why do I have to provide the "-I /usr/include/headers_dir" compiler option for some libraries but not for others, although the header files for each lie in a level 1 subdir of /usr/include?
    I thought that maybe there was some kind of index of installed libraries that I didn't know about, which I could have updated from within PKGBUILD (so I guess that's why I included it originally). Seems to me now, though, that this is not the case.
    I did put in some google time (but not lots b/c 1. hard to google and 2. busy) to find an answer, but to no avail and it's not really top priority right now (and quite honestly never will be, since there is the -I option), so I guess it'll have to wait, unless someone knows...
    ---EDIT---
    So, right after I posted this (stupid me) I had a little think and I finally understand, whats happening.
    1. Headers are not found without specifying the directory they are in.
    2. I need the -I option because easykf headers are not well formed.
    Thanks a lot!
    Last edited by maximax (2013-09-27 00:26:03)

  • Cleaner apparently doing opposite of intention

    Hi all,
    I'm currently observing some very strange cleaner behaviour with BDB JE 5.0.55. Basically, my environment size has recently been getting unexpectedly large. When I shut down my DB to run some diagnostics, it shrank from ~80GB to 40GB upon graceful close.
    I took a copy to diagnose (I suspected something may have been going on internally), however, when I restarted my server (and reopened the env), I noticed there was a sizeable cleaner backlog.
    Upon cleaning, the log steadily got larger (rather than smaller) as the cleaner backlog approaches 0. File deletion backlog is also 0, see below for grepped output:
         cleanerBackLog=695
         totalLogSize=44,222,447,351
         cleanerBackLog=692
         totalLogSize=44,007,839,334
         cleanerBackLog=677
         totalLogSize=44,161,745,419
         cleanerBackLog=683
         totalLogSize=44,489,202,186
         cleanerBackLog=663
         totalLogSize=44,822,143,619
         cleanerBackLog=637
         totalLogSize=44,916,840,541
         cleanerBackLog=604
         totalLogSize=44,548,090,588
         cleanerBackLog=583
         totalLogSize=45,535,576,874
         cleanerBackLog=559
         totalLogSize=46,309,369,095
         cleanerBackLog=544
         totalLogSize=47,198,028,965
         cleanerBackLog=536
         totalLogSize=48,132,504,517
         cleanerBackLog=521
         totalLogSize=48,817,762,947
         cleanerBackLog=508
         totalLogSize=49,725,425,757
         cleanerBackLog=492
         totalLogSize=50,570,879,399
         cleanerBackLog=476
         totalLogSize=51,465,010,051
         cleanerBackLog=466
         totalLogSize=52,347,693,773
         cleanerBackLog=460
         totalLogSize=53,143,565,971
         cleanerBackLog=450
         totalLogSize=54,061,257,446
         cleanerBackLog=440
         totalLogSize=54,973,962,944
         cleanerBackLog=437
         totalLogSize=55,757,981,268
         cleanerBackLog=429
         totalLogSize=56,508,152,158
         cleanerBackLog=425
         totalLogSize=57,289,083,547
         cleanerBackLog=417
         totalLogSize=57,900,740,776
         cleanerBackLog=414
         totalLogSize=58,712,600,029
         cleanerBackLog=411
         totalLogSize=59,522,908,676
         cleanerBackLog=406
         totalLogSize=60,472,507,769
         cleanerBackLog=401
         totalLogSize=61,418,812,558
         cleanerBackLog=402
         totalLogSize=62,334,769,591
         cleanerBackLog=397
         totalLogSize=63,138,168,923
         cleanerBackLog=402
         totalLogSize=64,055,868,441
         cleanerBackLog=398
         totalLogSize=64,982,882,494
         cleanerBackLog=401
         totalLogSize=65,904,303,917
         cleanerBackLog=395
         totalLogSize=66,725,704,868
         cleanerBackLog=392
         totalLogSize=67,603,991,723
         cleanerBackLog=397
         totalLogSize=68,538,767,238
         cleanerBackLog=395
         totalLogSize=69,472,262,950
         cleanerBackLog=479
         totalLogSize=70,383,584,273
         cleanerBackLog=444
         totalLogSize=71,247,189,752
         cleanerBackLog=410
         totalLogSize=72,191,040,670
         cleanerBackLog=372
         totalLogSize=73,101,233,310
         cleanerBackLog=340
         totalLogSize=73,912,683,883
         cleanerBackLog=305
         totalLogSize=74,792,141,198
         cleanerBackLog=270
         totalLogSize=75,750,888,363
         cleanerBackLog=237
         totalLogSize=76,685,553,473
         cleanerBackLog=205
         totalLogSize=77,493,814,220
         cleanerBackLog=172
         totalLogSize=78,358,968,699
         cleanerBackLog=142
         totalLogSize=79,191,961,498
         cleanerBackLog=109
         totalLogSize=80,082,532,825
         cleanerBackLog=82
         totalLogSize=80,954,944,721
         cleanerBackLog=61
         totalLogSize=81,895,138,184
         cleanerBackLog=43
         totalLogSize=82,921,752,555
         cleanerBackLog=28
         totalLogSize=83,923,249,685
         cleanerBackLog=17
         totalLogSize=84,879,197,438
         cleanerBackLog=5
         totalLogSize=85,871,665,824
         cleanerBackLog=0
         totalLogSize=86,933,060,983
         cleanerBackLog=0
         totalLogSize=87,074,231,796
         cleanerBackLog=0
         totalLogSize=87,074,231,796
         cleanerBackLog=0
    I would say that they're independent events (ie: something else is causing the log to grow quickly), however, if I close the DB, it instantly shrinks back down to ~42GB again, then slowly grows as I reopen it and the cleaner backlog approaches 0.
    I suspect there may be something internally wrong with my database but am in which directly do head diagnosis-wise to prove/disprove this.
    Any thoughts/guidance welcome -
    Cheers,
    fb.

    fb,
    This doesn't seem related to the cleaner problem to me.
    Are you certain that you're calling DatabaseConfig.setTransactional(true) for the database, and that no data was written to the database in the past when DatabaseConfig.setTransactional(true) was not called?
    And, just to confirm, you are not using a custom key comparator of any kind, and no data was written to the database in the past using a custom key comparator, correct?
    If you're certain of both of these things, the only explanation I know of is that an unknown problem occurred earlier and the residual side effect is this corruption (which is what you're saying also). In this case, there really should have been an earlier exception. Can you find any earlier exceptions in your logs or the je.info logs?
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [solved]pacman output piped to grep with color result?

    Hi.  Thanks for reading. I am looking for a command with the following function:
    1. It searches only the pacakge name, not the description.
    2. However, when a package's name matches the search pattern, it shows the description of this package as well.
    After searching in the forum, now I am using something like:
    pacman -Ss test_string | grep --color=always -B1 -v '^ ' | less -R
    It works nicely in terms of my two requirements. However, I could not get the color output (I have pacman color option) from pacaman even if I used less.
    On the contrary, the following command has normal color output
    ls --color | grep test_string | less -R
    Did I do anything wrong?
    Thanks...
    Last edited by shallpion (2013-09-22 04:55:33)

    Mr.Elendig wrote:
    shallpion wrote:Did I do anything wrong?
    Yes, you are not using expac.
    expac -S '%r/%n\n %d' python
    extra/python
    Next generation of the python high-level scripting language
    community/pypy3
    A Python3 implementation written in Python, JIT enabled
    Note that it will match provides as well as the package name.
    Sidenote: kittypack will 'soon' have this feature too, but it uses https://archlinux.org/packages so it is independent of the status of your sync db.
    Sorry I am confused... I know expac but it doesn't look like the function I was looking for... I wanted to search those packages whose *name* contains a string. For example the pypy3 is not what I wanted since it only has "python" in its description...

  • Mdls command: issue with attribute "kMDItemTotalBitRate" output

    All,
    I 'm using  mdls command to fetch the Total bit-rate for all media files(mp3,mov,m4v etc.). I want to compare the output with a set threshold (XY Kbps) and raise a flag if the bit-rate exceeds XY for a media file. The issue is that the output doesn't denote if it's in Kbps or bits per second. For example I ran the mdls command on 2  files test1.m4a and test2.mp3 :
       mdls -name kMDItemTotalBitRate test1.m4a  
       Output -> kMDItemTotalBitRate = 249
       mdls -name kMDItemTotalBitRate test2.mp3  
       Output -> kMDItemTotalBitRate = 192000
    On checking in iTunes , I saw that the number was 249 Kbps for the former and 192 Kbps for the latter. How can I force the mdls command to output kMDItemTotalBitRate in bits per second only so that the output is uniform for all files and removes confusion?

    Hi,
    test1.m4a is a song I purchased from iTunes Store. Its not just this file. I have many other files(m4v,m4a etc.) where the kMDItemTotalBitRate output is similar to test1.m4a above. As a result of this, I can't compare the bitrate reliably against my threshold XY. I'm using the command afinfo now to get the bit rate in bits per second for audio files. I need to find a similar command for video files

  • When grep pmon | whats is the 3,4,5,6,7,8 column meaning in this output?

    # ps -ef | grep pmon
    oracle 7065 1 0 00:10:39 ? 0:00 ora_pmon_msgdb1
    oracle 27604 1 0 May 05 ? 51:32 ora_pmon_msgdb2
    whats is the 3,4,5,6,7,8 column meaning in this output?

    Have you ever tried 'ps -ef' without the grep? (Perhaps "ps -ef | more".) Many commands actually output the column name.
    Have you ever tried 'man ps' to see what the designers of your OS have decided to output in your specific OS?
    (Totally off topic - why are you using root? Most professional organizations would slap fingers for doing that, and people who really want to study Oracle will practice to be proficient in the ways of the real world. <g>)

  • Grep in IOS Output

    Grep in IOS Output
    I would like to campaign for &quot;grep&quot; support in the Cisco IOS! It would be really awesome to type a command like sh run to get the configs for all dial-peers with a specific session target ip.
    Posted by WebUser ?????? ?? ??????? from Cisco Support Community App

    A quick reply would be of great use to me . Thanks in advance !
    Posted by WebUser ?????? ?? ??????? from Cisco Support Community App

  • /proc/cpuinfo | grep vmx  -- output changing between OVM Server 2.1 and 2.2

    Have not seen this issue before.
    I have a Dell 2950 with 2 Intel Xeon Quad-Core CPUs , with Virtualization enabled in the BIOS.
    When I install OVM Server 2.1.5, my cpus support virtualization (based on "cat /proc/cpuinfo | grep vmx" returning data)
    When I upgrade to OVM Server 2.2, my cpus no longer support virtualization ( based on "cat /proc/cpuinfo | grep vmx" returning NO data)
    If I do a clean install of OVM Server 2.2, my cpus do not support virtualization ( based on "cat /proc/cpuinfo | grep vmx" returning NO data)
    I have to be missing something simple.

    Thanks Herb.
    # xm dmesg | grep -i vm
    (XEN) VMX: Supported advanced features:
    (XEN) HVM: VMX enabled
    That is what I was looking for. They need to update Metalink Doc 468463.1.

  • HP LaserJet P1102W - no print output in Linux Mint 17.1 Cinnamon Desktop

    I've just done a default install of Linux Mint 17.1 - as feared, no print output.
    I'm guessing I need to install a driver - but I couldn't find anything easily on HP site, only Windows/Mac OS stuff. Are HP printers generally linux friendly? Where can I download drivers if they are? More over, I'm a total linux newbie, so any drivers need to be easily installed! I'm not currently familiar with Terminal windows and line commands!
    My printer does have wireless enabled, but I have it connected via direct USB also.
    Linux Mint did offer to run a diagnostic tool/debugging tool which gave a great deal of what means nothing to me. Debug output is below if it is helpful, but hoping a simple driver install will cure all ...
    Debug Output:
    Page 1 (Scheduler not running?):
    {'cups_connection_failure': False}
    Page 2 (Is local server publishing?):
    {'local_server_exporting_printers': False}
    Page 3 (Choose printer):
    {'cups_dest': <cups.Dest HP-LaserJet-Professional-P-1102w (default)>,
     'cups_instance': None,
     'cups_queue': u'HP-LaserJet-Professional-P-1102w',
     'cups_queue_listed': True}
    Page 4 (Check printer sanity):
    {'cups_device_uri_scheme': u'hp',
     'cups_printer_dict': {'device-uri': u'hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a',
                           'printer-info': u'Hewlett-Packard HP LaserJet Professional P 1102w',
                           'printer-is-shared': True,
                           'printer-location': u'Leela',
                           'printer-make-and-model': u'HP LaserJet Professional P 1102w, hpcups 3.14.3, requires proprietary plugin',
                           'printer-state': 3,
                           'printer-state-message': u'',
                           'printer-state-reasons': [u'none'],
                           'printer-type': 167948,
                           'printer-uri-supported': u'ipp://localhost:631/printers/HP-LaserJet-Professional-P-1102w'},
     'cups_printer_remote': False,
     'hplip_output': (['',
                       '\x1b[01mHP Linux Imaging and Printing System (ver. 3.14.3)\x1b[0m',
                       '\x1b[01mDevice Information Utility ver. 5.2\x1b[0m',
                       'Copyright (c) 2001-13 Hewlett-Packard Development Company, LP',
                       'This software comes with ABSOLUTELY NO WARRANTY.',
                       'This is free software, and you are welcome to distribute it',
                       'under certain conditions. See COPYING file for more details.',
                       '\x1b[01mHP Linux Imaging and Printing System (ver. 3.14.3)\x1b[0m',
                       '\x1b[01mSystem Tray Status Service ver. 2.0\x1b[0m',
                       'Copyright (c) 2001-13 Hewlett-Packard Development Company, LP',
                       'This software comes with ABSOLUTELY NO WARRANTY.',
                       'This is free software, and you are welcome to distribute it',
                       'under certain conditions. See COPYING file for more details.',
                       '\x1b[01mhp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a\x1b[0m',
                       '\x1b[01mDevice Parameters (dynamic data):\x1b[0m',
                       '\x1b[01m  Parameter                     Value(s)                                                  \x1b[0m',
                       '  agent1-ack                    False                                                     ',
                       '  agent1-desc                   Black toner cartridge                                     ',
                       '  agent1-dvc                    0                                                         ',
                       '  agent1-health                 0                                                         ',
                       '  agent1-health-desc            Good/OK                                                   ',
                       '  agent1-hp-ink                 False                                                     ',
                       '  agent1-id                     0                                                         ',
                       '  agent1-kind                   4                                                         ',
                       '  agent1-known                  False                                                     ',
                       '  agent1-level                  100                                                       ',
                       '  agent1-level-trigger          0                                                         ',
                       '  agent1-sku                    85A                                                       ',
                       '  agent1-type                   1                                                         ',
                       '  agent1-virgin                 False                                                     ',
                       '  back-end                      hp                                                        ',
                       "  cups-printers                 ['HP-LaserJet-Professional-P-1102w']                      ",
                       '  cups-uri                      hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W',
                       '                                4037X5PR1a                                                ',
                       '  dev-file                                                                                ',
                       '  device-state                  1                                                         ',
                       '  device-uri                    hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W',
                       '                                4037X5PR1a                                                ',
                       '  deviceid                      MFG:Hewlett-Packard;MDL: LaserJet Professional P          ',
                       '                                1102w;CMD:ZJSJS,URF,PCLm,PJL,ACL,HTTCLSLSRINTER;DEHPHP  ',
                       '                                LaserJet Presessional P 110;F;FWVER:20110826;             ',
                       '  duplexer                      0                                                         ',
                       '  error-state                   0                                                         ',
                       '  host                                                                                    ',
                       '  in-tray1                      1                                                         ',
                       '  in-tray2                      1                                                         ',
                       '  is-hp                         True                                                      ',
                       '  media-path                    1                                                         ',
                       '  panel                         0                                                         ',
                       '  panel-line1                                                                             ',
                       '  panel-line2                                                                             ',
                       '  photo-tray                    0                                                         ',
                       '  port                          1                                                         ',
                       '  r                             0                                                         ',
                       '  revision                      254                                                       ',
                       '  rg                            000                                                       ',
                       '  rr                            000000                                                    ',
                       '  rs                            000000000                                                 ',
                       '  serial                        000000000W4037X5PR1a                                      ',
                       '  status-code                   1000                                                      ',
                       '  status-desc                   Idle                                                      ',
                       '  supply-door                   1                                                         ',
                       '  top-door                      1                                                         ',
                       '\x1b[01m',
                       'Model Parameters (static data):\x1b[0m',
                       '\x1b[01m  Parameter                     Value(s)                                                  \x1b[0m',
                       '  align-type                    0                                                         ',
                       '  clean-type                    0                                                         ',
                       '  color-cal-type                0                                                         ',
                       '  copy-type                     0                                                         ',
                       '  embedded-server-type          0                                                         ',
                       '  fax-type                      0                                                         ',
                       '  fw-download                   False                                                     ',
                       '  icon                          HP_LaserJet_1012.png                                      ',
                       '  io-mfp-mode                   6                                                         ',
                       '  io-mode                       1                                                         ',
                       '  io-support                    10                                                        ',
                       '  job-storage                   0                                                         ',
                       '  linefeed-cal-type             0                                                         ',
                       '  model                         HP_LaserJet_Professional_P_1102w                          ',
                       '  model-ui                      HP LaserJet Professional P 1102w                          ',
                       '  model1                        HP LaserJet Professional P 1102w Printer                  ',
                       '  monitor-type                  0                                                         ',
                       '  panel-check-type              0                                                         ',
                       '  pcard-type                    0                                                         ',
                       '  plugin                        1                                                         ',
                       '  plugin-reason                 1                                                         ',
                       '  power-settings                0                                                         ',
                       '  pq-diag-type                  0                                                         ',
                       '  r-type                        0                                                         ',
                       '  r0-agent1-kind                4                                                         ',
                       '  r0-agent1-sku                 85A                                                       ',
                       '  r0-agent1-type                1                                                         ',
                       '  scan-src                      0                                                         ',
                       '  scan-type                     0                                                         ',
                       '  status-battery-check          0                                                         ',
                       '  status-dynamic-counters       0                                                         ',
                       '  status-type                   8                                                         ',
                       '  support-released              True                                                      ',
                       '  support-subtype               2202411                                                   ',
                       '  support-type                  2                                                         ',
                       '  support-ver                   3.12.6                                                    ',
                       "  tech-class                    ['LJZjsMono']                                             ",
                       "  tech-subclass                 ['NoAutoDuplex']                                          ",
                       '  tech-type                     3                                                         ',
                       '  usb-pid                       4138                                                      ',
                       '  usb-vid                       1008                                                      ',
                       '  wifi-config                   3                                                         ',
                       'Done.',
                      ['\x1b[35;01mwarning: No display found.\x1b[0m',
                       '\x1b[31;01merror: hp-info -u/--gui requires Qt4 GUI support. Entering interactive mode.\x1b[0m',
                       '\x1b[35;01mwarning: No display found.\x1b[0m',
                       '\x1b[31;01merror: hp-systray requires Qt4 GUI and DBus support. Exiting.\x1b[0m',
                       '\x1b[35;01mwarning: Unable to connect to dbus. Is hp-systray running?\x1b[0m',
                      0),
     'is_cups_class': False,
     'local_cups_queue_attributes': {'charset-configured': u'utf-8',
                                     'charset-supported': [u'us-ascii', u'utf-8'],
                                     'color-supported': True,
                                     'compression-supported': [u'none', u'gzip'],
                                     'copies-default': 1,
                                     'copies-supported': (1, 9999),
                                     'cups-version': u'1.7.2',
                                     'device-uri': u'hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a',
                                     'document-format-default': u'application/octet-stream',
                                     'document-format-supported': [u'application/octet-stream',
                                                                   u'application/pdf',
                                                                   u'application/postscript',
                                                                   u'application/vnd.adobe-reader-postscript',
                                                                   u'application/vnd.cups-pdf',
                                                                   u'application/vnd.cups-pdf-banner',
                                                                   u'application/vnd.cups-postscript',
                                                                   u'application/vnd.cups-raster',
                                                                   u'application/vnd.cups-raw',
                                                                   u'application/x-cshell',
                                                                   u'application/x-csource',
                                                                   u'application/x-perl',
                                                                   u'application/x-shell',
                                                                   u'image/gif',
                                                                   u'image/jpeg',
                                                                   u'image/png',
                                                                   u'image/tiff',
                                                                   u'image/urf',
                                                                   u'image/x-bitmap',
                                                                   u'image/x-photocd',
                                                                   u'image/x-portable-anymap',
                                                                   u'image/x-portable-bitmap',
                                                                   u'image/x-portable-graymap',
                                                                   u'image/x-portable-pixmap',
                                                                   u'image/x-sgi-rgb',
                                                                   u'image/x-sun-raster',
                                                                   u'image/x-xbitmap',
                                                                   u'image/x-xpixmap',
                                                                   u'image/x-xwindowdump',
                                                                   u'text/css',
                                                                   u'text/html',
                                                                   u'text/plain'],
                                     'finishings-default': 3,
                                     'finishings-supported': [3],
                                     'generated-natural-language-supported': [u'en-us'],
                                     'ipp-versions-supported': [u'1.0',
                                                                u'1.1',
                                                                u'2.0',
                                                                u'2.1'],
                                     'ippget-event-life': 15,
                                     'job-creation-attributes-supported': [u'copies',
                                                                           u'finishings',
                                                                           u'ipp-attribute-fidelity',
                                                                           u'job-hold-until',
                                                                           u'job-name',
                                                                           u'job-priority',
                                                                           u'job-sheets',
                                                                           u'media',
                                                                           u'media-col',
                                                                           u'multiple-document-handling',
                                                                           u'number-up',
                                                                           u'output-bin',
                                                                           u'orientation-requested',
                                                                           u'page-ranges',
                                                                           u'print-color-mode',
                                                                           u'print-quality',
                                                                           u'printer-resolution',
                                                                           u'sides'],
                                     'job-hold-until-default': u'no-hold',
                                     'job-hold-until-supported': [u'no-hold',
                                                                  u'indefinite',
                                                                  u'day-time',
                                                                  u'evening',
                                                                  u'night',
                                                                  u'second-shift',
                                                                  u'third-shift',
                                                                  u'weekend'],
                                     'job-ids-supported': True,
                                     'job-k-limit': 0,
                                     'job-k-octets-supported': (0, 476568600),
                                     'job-page-limit': 0,
                                     'job-priority-default': 50,
                                     'job-priority-supported': [100],
                                     'job-quota-period': 0,
                                     'job-settable-attributes-supported': [u'copies',
                                                                           u'finishings',
                                                                           u'job-hold-until',
                                                                           u'job-name',
                                                                           u'job-priority',
                                                                           u'media',
                                                                           u'media-col',
                                                                           u'multiple-document-handling',
                                                                           u'number-up',
                                                                           u'output-bin',
                                                                           u'orientation-requested',
                                                                           u'page-ranges',
                                                                           u'print-color-mode',
                                                                           u'print-quality',
                                                                           u'printer-resolution',
                                                                           u'sides'],
                                     'job-sheets-default': (u'none', u'none'),
                                     'job-sheets-supported': [u'none',
                                                              u'classified',
                                                              u'confidential',
                                                              u'form',
                                                              u'secret',
                                                              u'standard',
                                                              u'topsecret',
                                                              u'unclassified'],
                                     'jpeg-k-octets-supported': (0, 476568600),
                                     'jpeg-x-dimension-supported': (0, 65535),
                                     'jpeg-y-dimension-supported': (1, 65535),
                                     'marker-change-time': 0,
                                     'media-bottom-margin-supported': [423, 547],
                                     'media-col-default': u'(unknown IPP value tag 0x34)',
                                     'media-col-supported': [u'media-bottom-margin',
                                                             u'media-left-margin',
                                                             u'media-right-margin',
                                                             u'media-size',
                                                             u'media-source',
                                                             u'media-top-margin',
                                                             u'media-type'],
                                     'media-default': u'iso_a4_210x297mm',
                                     'media-left-margin-supported': [423, 635],
                                     'media-right-margin-supported': [423, 635],
                                     'media-size-supported': [u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)'],
                                     'media-source-supported': [u'auto',
                                                                u'manual'],
                                     'media-supported': [u'iso_a6_105x148mm',
                                                         u'iso_a5_148x210mm',
                                                         u'jpn_hagaki_100x148mm',
                                                         u'om_double-postcard_148.17x200.03mm',
                                                         u'om_jb5_182.12x257.05mm',
                                                         u'na_executive_7.25x10.5in',
                                                         u'om_16k195x270_195.09x269.88mm',
                                                         u'om_16k184x260_184.15x260mm',
                                                         u'oe_16k197x273_7.75x10.75in',
                                                         u'na_letter_8.5x11in',
                                                         u'iso_a4_210x297mm',
                                                         u'oe_flsa_8.5x13in',
                                                         u'na_legal_8.5x14in',
                                                         u'na_monarch_3.875x7.5in',
                                                         u'iso_dl_110x220mm',
                                                         u'na_number-10_4.125x9.5in',
                                                         u'iso_c5_162x229mm',
                                                         u'om_env-b5_176.04x250.12mm',
                                                         u'custom_min_3x5in',
                                                         u'custom_max_17x36in'],
                                     'media-top-margin-supported': [423, 547],
                                     'media-type-supported': [u'stationery'],
                                     'multiple-document-handling-supported': [u'separate-documents-uncollated-copies',
                                                                              u'separate-documents-collated-copies'],
                                     'multiple-document-jobs-supported': True,
                                     'multiple-operation-time-out': 300,
                                     'natural-language-configured': u'en-us',
                                     'notify-attributes-supported': [u'printer-state-change-time',
                                                                     u'notify-lease-expiration-time',
                                                                     u'notify-subscriber-user-name'],
                                     'notify-events-default': [u'job-completed'],
                                     'notify-events-supported': [u'job-completed',
                                                                 u'job-config-changed',
                                                                 u'job-created',
                                                                 u'job-progress',
                                                                 u'job-state-changed',
                                                                 u'job-stopped',
                                                                 u'printer-added',
                                                                 u'printer-changed',
                                                                 u'printer-config-changed',
                                                                 u'printer-deleted',
                                                                 u'printer-finishings-changed',
                                                                 u'printer-media-changed',
                                                                 u'printer-modified',
                                                                 u'printer-restarted',
                                                                 u'printer-shutdown',
                                                                 u'printer-state-changed',
                                                                 u'printer-stopped',
                                                                 u'server-audit',
                                                                 u'server-restarted',
                                                                 u'server-started',
                                                                 u'server-stopped'],
                                     'notify-lease-duration-default': 86400,
                                     'notify-lease-duration-supported': (0,
                                                                         2147483647),
                                     'notify-max-events-supported': [100],
                                     'notify-pull-method-supported': [u'ippget'],
                                     'notify-schemes-supported': [u'dbus',
                                                                  u'mailto',
                                                                  u'rss'],
                                     'number-up-default': 1,
                                     'number-up-supported': [1, 2, 4, 6, 9, 16],
                                     'operations-supported': [2,
                                                              4,
                                                              5,
                                                              6,
                                                              8,
                                                              9,
                                                              10,
                                                              11,
                                                              12,
                                                              13,
                                                              14,
                                                              16,
                                                              17,
                                                              18,
                                                              19,
                                                              20,
                                                              21,
                                                              22,
                                                              23,
                                                              24,
                                                              25,
                                                              26,
                                                              27,
                                                              28,
                                                              34,
                                                              35,
                                                              37,
                                                              38,
                                                              56,
                                                              57,
                                                              59,
                                                              16385,
                                                              16386,
                                                              16387,
                                                              16388,
                                                              16389,
                                                              16390,
                                                              16391,
                                                              16392,
                                                              16393,
                                                              16394,
                                                              16395,
                                                              16396,
                                                              16397,
                                                              16398,
                                                              16399,
                                                              16423,
                                                              14],
                                     'orientation-requested-default': None,
                                     'orientation-requested-supported': [3,
                                                                         4,
                                                                         5,
                                                                         6],
                                     'output-bin-default': u'face-down',
                                     'output-bin-supported': [u'face-down'],
                                     'page-ranges-supported': True,
                                     'pages-per-minute': 1,
                                     'pages-per-minute-color': 1,
                                     'pdf-k-octets-supported': (0, 476568600),
                                     'pdf-versions-supported': [u'adobe-1.2',
                                                                u'adobe-1.3',
                                                                u'adobe-1.4',
                                                                u'adobe-1.5',
                                                                u'adobe-1.6',
                                                                u'adobe-1.7',
                                                                u'iso-19005-1_2005',
                                                                u'iso-32000-1_2008',
                                                                u'pwg-5102.3'],
                                     'pdl-override-supported': [u'attempted'],
                                     'port-monitor': u'none',
                                     'port-monitor-supported': [u'none'],
                                     'ppd-timestamp': u'*',
                                     'print-color-mode-default': u'color',
                                     'print-color-mode-supported': [u'monochrome',
                                                                    u'color'],
                                     'print-quality-default': 4,
                                     'print-quality-supported': [3, 4],
                                     'printer-commands': u'none',
                                     'printer-current-time': u'(IPP_TAG_DATE)',
                                     'printer-dns-sd-name': u'Hewlett-Packard HP LaserJet Professional P 1102w @ Leela',
                                     'printer-error-policy': u'retry-job',
               

    Hi @durandal,
    I read your post and see that you need the drivers for the P1102w printer. I can provide the website for you.
    Here is the link for the HP Linux Imaging and Printing website. HP Linux imaging and printing.
    Here is the link for the P1102w drivers. HP LaserJet Professional p1102w Printer.
    If you need more information, please post your questions at the Linux Distribution Forums.
    If you appreciate my efforts, please click the Thumbs up button below.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for