PM-utils, WICD and KDEmod3

Hello folks,
Is there any way to integrate the pm-utils suite in Kdemod 3 instead of using the default acpi handler scripts?
Also, when I resume from sleep with PM-Utils, WICD never seems to be able to reconnect to my network. The tray icon just disappears. When I load it again, it fails to connect and I need to reboot to make it work.
Any input?
Thanks,
Pierre-Alexandre

I wrote a hook about oss4 and mpd:
#!/bin/bash
case $1 in
hibernate)
echo "Killing mpd and stopping oss4"
mpd --kill & /etc/rc.d/oss-linux-free stop
suspend)
echo "Killing mpd and stopping oss4"
mpd --kill & /etc/rc.d/oss-linux-free stop
thaw)
echo "Starting oss4 and mpd"
/etc/rc.d/oss-linux-free start & mpd
resume)
echo "Starting oss4 and mpd"
/etc/rc.d/oss-linux-free start & mpd
*) echo "Wrong call"
Create a file /etc/pm/sleep.d/66oss_mpd and put that text in it. Note that the file MUST start with 66 (That's the order sleep scripts are executed in)
Than chmod +x /etc/pm/sleep.d/66oss_mpd and voila Now when the computer goes to sleep it kills mpd and stops oss4 and on resume it starts oss4 and starts mpd.
P.P.Just remove the mpd part if you don't use mpd...

Similar Messages

  • I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    You need to use the computer's install disks to repair the hard drive or install a new OS.
    (58033)

  • [Solved]Problem with Wicd and D-bus

    I get this error at login:
    "could not connect wicd d-bus interface. Check thw wicd log for error messages"
    I restarted both wicd and dbus demons, but didnt work.
    bash-3.2# wicd-client
    Importing pynotify failed, notifications disabled.
    Has notifications support False
    Loading...
    Connecting to daemon...
    Can't connect to the daemon, trying to start it automatically...
    Connected.
    ERROR:dbus.proxies:Introspect error on :1.29:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
    warning: ignoring exception org.freedesktop.DBus.Error.ServiceUnknown: The name :1.29 was not provided by any .service files
    warning: ignoring exception org.freedesktop.DBus.Error.ServiceUnknown: The name :1.29 was not provided by any .service files
    bash-3.2#
    Last edited by Philip J. Fry (2009-06-29 20:05:33)

    If I'm running kdm, I have no issue at all with wicd-client loading, however if I log into a wm/de (usually openbox) without kdm running wicd-client will not load, even after trying the above solutions....
    Importing pynotify failed, notifications disabled.
    Has notifications support False
    Loading...
    Connecting to daemon...
    Can't connect to the daemon, trying to start it automatically...
    (gksudo:19015): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
    (gksudo:19015): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
    (gksudo:19015): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
    (gksudo:19015): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
    Connected.
    ERROR:dbus.proxies:Introspect error on :1.10:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1000 pid=19009 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.10" (uid=0 pid=19066 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
    warning: ignoring exception org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1000 pid=19009 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.wicd.daemon" member="GetConnectionStatus" error name="(unset)" requested_reply=0 destination=":1.10" (uid=0 pid=19066 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
    warning: ignoring exception org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1000 pid=19009 comm="python -O /usr/lib/wicd/wicd-client.py ") interface="org.wicd.daemon" member="GetNeedWiredProfileChooser" error name="(unset)" requested_reply=0 destination=":1.10" (uid=0 pid=19066 comm="python -O /usr/lib/wicd/wicd-daemon.py "))
    anubis@thor ~/ $

  • Why not Deprecate java.util.Date and java.util.Calendar

    With the introduction of java.time, why did you not flag java.util.Date and java.util.Calendar. These classes have been a bane to every Java developer and should never be used again with the introduction of Java 1.8.

    Adding the @Deprecated annotation would only just provide a warning about an old API and recommendation to the developer(s) to no longer use it. Doing so would not break any existing library out there; in fact quite a number of constructors and methods on the Date class have already been flagged deprecated.
    The new java.time package is far superior to Date/Calendar.

  • I have an iMac mid 2010. After Disk utilities said the drive was corrupt, I ran the hardware test (extended) 3 times. No problems. I than ran Disk utility again and got 2 messages in red-keys out of order, and --Volume corrupt, can't be repaired.  I tried

    I have an iMac mid 2010. After Disk utilities said the drive was corrupt, I ran the hardware test (extended) 3 times. No problems. I than ran Disk utility again and got 2 messages in red…keys out of order, and ……Volume corrupt, can't be repaired.
    I tried to do a system install, but message said…disk can't be changed. Will a complete erase and install fix this ?
    Everything is backed-up.

    There's hardware and software.
    Your drive could physically be in good condition but something has caused the file structure to be messed up (it just happens sometimes).  The directory that keep track of files is corrupt.  Disk Utility can help determine if that is the issue.  In some cases it can repair the problem but it cannot do it to a drive that is being used to boot the system while you are doing that.  You have to boot from another drive.  Some things DU cannot repair and you need to try a stronger utility such as Diskwarrior.
    A failing hard drive (one with mechanical issues) can be a cause of file structure issues but this is by no means always the case.  Apart from looking at the SMART diagnosis feature of Disk Utility (and smart isn't totally reliable) there often isn't a way to tell if a drive is failing until it suddenly happens, which is why you need to maintain backups.
    In your situation it does sound serious and not just minor directory corruption.  You can try erasing (formatting) the drive,  You may need to do this if it is really corrupt, in which case there could be underlying physical issues.  I use old technology but if you have the patience you can try erasing the drive with the security option of writing zeros once (don't do more unless you are going on a 3 week vacation).  This makes the drive not simply assume everything is okay by forcing it try every part of the drive by writing data.  If something is gong wrong you may find it marks a lot of bad sectors, or flat out refuses to format.  Then you know you need a new drive.

  • I just restarted my mac then suddenly when it boots,disk utility came and says different option like repair disk, get help, reinstall OSX and I tried to click disk repair but it says that I am um able to repair the disk

    i just restarted my mac then suddenly when it boots,disk utility came and says different option like repair disk, get help, reinstall OSX and I tried to click disk repair but it says that I am um able to repair the disk

    It sounds like your hard drive either has a software problem that Disk Utility cannot fix or that the HD has failed (mechanically).
    Your Mac may have booted either to your recovery partition or to internet recovery in an attempt to repair the drive- I can't tell from your post.
    I'll assume that it was the recovery partition.
    Try to boot into internet recovery (hold down option command R at restart), and see if you can repair your HD with Disk Utility. You should also repair permissions while you're there.
    If that doesn't work, try to boot into single user mode (restart, hold down ⌘S until you see a black screen with white text) and repair your hard drive. Here's a reference with directions: Repair Your Hard Disk in Single User Mode | Everything Macintosh
    If that doesn't work you have a few options:
    If your mac originally came with installation disks, you can try to boot from the installation disk and then see if you can repair the HD.
    There is a small chance that Techtool Pro 7  will be able to repair your HD if Disk Utility can't.
    If none of that works then your HD has probably failed and will need to be replaced, which is not too difficult to do yourself if you can use a screwdriver.

  • Java.util.Map and  java.util.HashMap samples

    Hi.
    Please, I need some code samples of java.util.Map and java.util.HashMap interfaces. I have problems to retreive objects in the map.
    Cheers,
    Cata

    Try the tutorial:
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Java.util.Date and java.sql.Date

    when i am trying to displaying date in my jsp page errors occurs saying that java.util.date and java.sql.date are matching..
    i have some sql statements which i need to execute in the page.so i cant delete that import sql statement.
    so what is the solution for this.
    i want to display the date as 19th april 2003....in the jsp page.
    thank u

    You should use full names.
    java.util.Date date;
    java.sql.Date sdate;
    ..And it may be a good idea to delete one of the two "import" declaration of packages.

  • Lib32-util-linux and lib32-util-linux-ng are in conflict

    hi
    i'm running a 64bit arch linux (with some 32bit apps)
    today i got a strange conflict - and the "solution" seems pretty dangerous to me, or am i wrong?
    [root:~]# pacman -S multilib/dwarffortress
    resolving dependencies...
    looking for inter-conflicts...
    :: lib32-util-linux and lib32-util-linux-ng are in conflict. Remove lib32-util-linux-ng? [y/N] Y
    Remove (1): lib32-util-linux-ng-2.18-3
    Total Removed Size: 0.58 MB
    Targets (41): lib32-libxfixes-4.0.5-3 lib32-libxdamage-1.1.3-3 lib32-pcre-8.10-3 lib32-dbus-core-1.4.0-2 lib32-glib2-2.26.1-2
    lib32-atk-1.32.0-1 lib32-pixman-0.20.2-1 lib32-cairo-1.10.0-3 lib32-pango-1.28.3-1 lib32-util-linux-2.19-1
    lib32-e2fsprogs-1.41.14-2 lib32-openssl-1.0.0.d-1 lib32-db-5.1.19-1 lib32-sqlite3-3.7.4-1 lib32-heimdal-1.3.3-3
    lib32-ncurses-5.7-6 lib32-readline-6.1.002-3 lib32-libgpg-error-1.9-4 lib32-libgcrypt-1.4.6-3 lib32-gnutls-2.10.4-1
    lib32-libtiff-3.9.4-3 lib32-gdk-pixbuf2-2.22.1-1 lib32-libcups-1.4.5-1 lib32-libxcursor-1.1.11-1
    lib32-libxrandr-1.3.1-1 lib32-libxi-1.4.1-1 lib32-libxcomposite-0.4.3-1 lib32-gtk2-2.22.1-2 lib32-libdrm-2.4.23-1
    lib32-libxxf86vm-1.1.1-1 lib32-libgl-7.10.1-1 lib32-mesa-7.10.1-1 lib32-sdl-1.2.14-8 lib32-sdl_image-1.2.10-3
    lib32-flac-1.2.1-7 lib32-libsndfile-1.0.23-2 openal-1.12.854-2 lib32-openal-1.12.854-4 sdl_ttf-2.0.10-1
    lib32-sdl_ttf-2.0.10-3 dwarffortress-0.31.21-1
    Total Download Size: 9.07 MB
    Total Installed Size: 79.96 MB

    ulukay wrote:
    ngoonee wrote:Firstly, searches are not cached, so noone would be able to view your link properly. However yes somehow I've seen that the other threads on this are not turning up, so I suggest instead searching for 'util-linux', not 'lib32-util-linux', you will find the solution then.
    1. thanks for not simply posting a link
    2. that search would return threads regarding this problem on 32bit hosts - i run a 64bit host. my main concern is that this would install incompatible 32bit binaries.
    1. You're welcome. Self-help is the best kind.
    2. If you'd done the search I recommended you would have seen that the problem is not related to arch at all, but is due to upstream renaming.

  • [Solved] util-linux and eject in conflict

    I have installed all updates smoothly for the past few weeks, but this morning I got this:
    :: util-linux and eject are in conflict. Remove eject? [y/N]
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: util-linux and eject are in conflict
    I accepted the default action, N. I had checked the News before installing. And, so far, I have been unable to find anything related in these forums.
    How should I go about fixing this?
    Tim
    Last edited by ratcheer (2012-09-24 11:50:09)

    I can't solve this problem here with KDE
    yaourt -Rs eject
    checking dependencies...                                                                                                                                                                                 
    error: failed to prepare transaction (could not satisfy dependencies)                                                                                                                                     
    :: udisks: requires eject
    and then :
    yaourt -Rs eject udisks                                                                                                                                                           
    checking dependencies...                                                                                                                                                                                 
    error: failed to prepare transaction (could not satisfy dependencies)                                                                                                                                     
    :: kdelibs: requires udisks                                                                                                                                                                               
    :: python2-udiskie: requires udisks
    How I can solve this ?

  • Need freelance certified dreamweaver 6(5) expert coder to build core site utilizing css2 and html5

    Need freelance certified dreamweaver 6 (or 5) expert coder to build core site utilizing css2 and html5. I need just the index and 1 content page, all graphics provided. I will duplicate pages and add content after the core pages and styling is created. Please see the linked pdf file for more details then call me at 321-246-8327 with your rates and availability. Thanks, Geoff
    https://dl.dropbox.com/u/30641657/PandE_website_Mockup.pdf

    Geoffrey,
    A site can be made in any program and imported into DW.  DW simply allows one to edit HTML/CSS/etc, and organize all site files within the application.  I think that was the confusion in Nancy's response of what you meant by certified. But to further what Nancy said, Spry has been openly discussed by Adobe and is no longer being developed ( http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l ) so your clients are actually setting themselves up for a bad situation especially if they go to upgrade their software. The same could be said for the widget browser.
    I'm assuming since this client is not doing the job themselves, that they might not have the resources to keep making manual updates on the backend in Dreamweaver. Might it not be worthwhile to propose to them that you outsource developing a site in a CMS like a Wordpress, Drupal, Joomla, Pyrocms, Perch, etc, etc. (the list goes on). Then they wouldn't even need DW to make changes to the website and the website would be programmed into the system so all they would need to do is add/remove options from the backend as necessary not interacting with the code. And from the looks of it, this is not a site that is going to be overly dynamic or need to be updated a lot so templating for 2 pages on a CMS would be fairly easy work.

  • We use one windows machine and two mbp's (post 2012) at home. We have a modem *** router from a  non apple vendor that airport utility finds and connects with absolute ease. But doesn't stay connected. The signal drops often, what can I do?

    We use one windows machine and two mbp's (post 2012) at home. We have a modem *** router from a  non apple vendor that airport utility finds and connects with absolute ease. But doesn't stay connected. The signal drops often, what can I do?

    No, not all network clients -- only the two mac portables and they run together very rarely. The windows machine is hardwired to the modem router combo, and that's always sailing smooth. The mbp that is most used is perhaps 20 feet max from the router - and in another room. But it also happens when I take in into the same room as the router. On occassion, I have noticed while using network diagnostics, that one digit in the IP number sometimes appears to go awry. I then try to set up manually - and it works for a bit but is hugely erratic.
    I rigged a hand me down airport express and set up a separate network for the two macs and it ran beautifully for some weeks, but that little piece is now dead and none of the retailers in my suburb seem to have one in stock. I don't want to be forced to buy an airport extreme and here in India, there's no trustworthy online ordering option.
    The man from the ISP's been here several times and I don;t think it is a modem/dsl issue because the smartphone connects and the macbook drops when both are the same distance from the router? I am truly foxed and intensely irritated! :-(

  • HP Laserjet utility starts and fails to go away after print job

    I have an HP Laserjet 1300 hooked to an Airport base station. After the Leopard install (a default, Upgrade install from 10.4.10), I had to re-ADD that printer in the Print & FAX Preferences panel -- it wasn't simply remembered. That went fine, and printing works as expected.
    EXCEPT: The HP Laserjet 1300 "utility" application (for managing the print queue) now activates with each print job -- not just when there is a problem such as "out of paper" as before. No problems are actually reported during or after the print job. And when the print job finishes, it doesn't go away. I have to manually Quit it.
    I can't find any option to have the "utility" activate only when it has some problem to report (i.e., the way it worked under Tiger), or to make it go away automatically when all print jobs are finished. Any suggestions?
    NOTE: When ADDing the printer in the Print & FAX utility, it did go looking for "new drivers", but didn't announce it found or installed anything new.

    Thank you. That's what I was looking for:
    Right click on the printer utility icon in the dock when you see it still sitting in there. Select "Auto Quit" from the pop up menu. Click on the utility to select it and open its queue window. Manually quit the utility.
    After those steps it appears the utility now activates in the dock and then goes away after each print job that finishes normally.
    Solved!

  • [solved] problem with wicd and broadcom

    I have a compaq 515 with broadcom wireless
    lspci:
    03:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
    I installed the b43 firmware from AUR
    parts of rc.conf:
    MODULES=(b43 ssb !b43legacy fglrx)
    DAEMONS=(@syslog-ng !network dbus netfs @crond @alsa wicd)
    iwconfig:
    lo no wireless extensions.
    eth0 no wireless extensions.
    wlan0 IEEE 802.11bg Mode:Managed Access Point: Not-Associated
    Tx-Power=20 dBm
    Retry long limit:7 RTS thr:off Fragment thr:off
    Power Management:off
    ifconfig:
    eth0 Link encap:Ethernet HWaddr 18:A9:05:85:D4:D1
    inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::1aa9:5ff:fe85:d4d1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:7173 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5175 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:8792798 (8.3 Mb) TX bytes:631272 (616.4 Kb)
    Interrupt:16
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    wlan0 Link encap:Ethernet HWaddr 0C:60:76:6C:96:8A
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    sudo iwlist wlan0 scan:
    wlan0 No scan results
    wicd tells me it can't find wireless networks, wired works fine and it's managed with wicd
    wireless works right on kubuntu, but not on arch
    can anyone help me?
    Last edited by rolo2005 (2010-07-17 06:45:14)

    sorry but after reboot everything works fine
    mods: delete this thread if you want

  • Can Disk Utility warnings and odd behavior be ignored safely?

    I have  a late 2012 Mac mini with a fusion drive. which will not repair using Disk Utility. In addition, I have been unable to partition it. When I try to verify the disk I get: Unable to bootstrap transaction group 461088: invalid field value
    No valid commit checkpoint found
    The volume CEF34A3F-08C3-45A5-9A87-C383B300541E was found corrupt and needs to be repaired.
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    If I run disk repair it goes into a loop saying that the disk needs to be repaired.
        I took it to the Apple store where they were also unable to partition it, but they did say that there is nothing wrong with the disk. Can the above  warning and behavior be safely ignored? Oh yes, I forgot to mention that the mini often hangs when I restart from the Apple menu.

    The problem is solved,
       I took the Mac mini to the
    Apple store again and this time they rebuilt the fusion drive and installed a fresh copy of OSX. After copying my stuff over from a Time Machine backup and running Disk Utility again a get a nice reassuring green text saying that; 'the volume appears to be o.k.'
       Thanks to all.

Maybe you are looking for

  • SRS5 / SRSS 4.2 FOG on SLES 10: utdevmgr does not update /tmp/SUNWut/units

    We are running SRSS 4.2 with Patch 140995-01 on SLES 10 SP3 32-bit with 3 hosts in a FOG and 49 SunRay2-P8-DTUs, FW 4.2_140993-01_2010.01.21.17.35 on a dedicated interconnect. We do not use kiosk-functionality, all sessions (smartcard and non-smartca

  • Re :- What is the Importance of Group Currency

    My client maintained two company codes having different currencies. But they want to maintain reports only for local currency . In that case I am Activated Groups currencies for the both the company codes. It is correct or wrong.

  • Workflow template PE_Approve01 not being triggered when attendee is booked

    Hello Have copied and configured the workflow template for approval of bookings. When i test the workflow from tcode swdd it is executed, but when i try and book an attendde for an event using tcode pv00 the workflow is not triggered. Is this the cor

  • How kann I store a very big file in to Oracle XML DB?

    Hello, I´m looking for a fast method to store a XML file in to a oracle 10g XE. I had try to store the 500 kb file in to the database as a xmltype or a clob, but I still have the same Error: "ORA-01704: string literal too long". I´m looking for a lon

  • Weird keyboard behaviour in TO; field

    My keyboard behaves very weirdly when I try to enter a second address to the To: field. It will type multiple characters like: aararararararararararararararararararararararararar when I hit the letter a once followed by the delete key. I can not ente