Almost solved, just need help with a service file!

Hey all,
For some time now my systemd sleep hook has stopped working (e.g. only killing my program and not relaunching it when waking up). Only now I have time to look into it, though, so I can't really say if any update caused this.
I had a custom sleep hook in /usr/lib/systemd/system-sleep/dwmstatus.sh, which killed my dwm-status program before going to sleep/suspend and started it again when waking up. It looked like this:
#!/bin/sh
case $1 in
pre) killall dwm-status
post) dwm-status
esac
exit
I've been looking into it and noticed the example on the Wiki (my previous script above was a direct copy of the old example) got updated, so I updated mine accordingly. It now looks like this:
#!/bin/sh
case $1/$2 in
pre/*)
echo "Going to $2, killing dwm-status"
killall dwm-status
echo "dwm-status killed"
post/*)
echo "Waking up from $2, starting dwm-status"
exec /usr/bin/dwm-status &
echo "dwm-status started"
esac
But that's not working either. (The echos are just here for debugging this). I first tried using just dwm-status to start it again, but it didn't work. Then I tried the full path without result too and now with exec I still am not getting anywhere. Can someone explain to me why it's not working anymore?
Last edited by Unia (2012-12-24 13:31:46)

Now that I have solved all the outstanding issues and integrated quite a bunch of new features into dwmst (rename of dwm-status) it's only this issue that needs to be resolved. I still can't get dwmst to launch again after suspend/hibernate.
I checked journalctl but it comes up without any errors whatsoever:
┌─[jente @ lappy ~] 20:07:40
└─■ sudo journalctl -b -u systemd-suspend
-- Logs begin at wo, 2012-10-31 12:43:25 CET, end at wo, 2012-12-19 20:08:36 CET. --
dec 19 20:08:10 lappy systemd-sleep[1174]: xset: unable to open display ""
dec 19 20:08:10 lappy systemd-sleep[1174]: Suspending system...
dec 19 20:08:19 lappy systemd-sleep[1174]: System resumed.
dec 19 20:08:19 lappy systemd-sleep[1174]: ERROR: could not open display
dec 19 20:08:19 lappy systemd-sleep[1174]: xset: unable to open display ""
Or is it that xset error?
EDIT: I just removed my script from /usr/lib/systemd/system-sleep to check the output, and I still get the xset error but not the ERROR line:
dec 19 20:12:12 lappy systemd-sleep[1329]: xset: unable to open display ""
dec 19 20:12:12 lappy systemd-sleep[1329]: Suspending system...
dec 19 20:12:21 lappy systemd-sleep[1329]: System resumed.
dec 19 20:12:21 lappy systemd-sleep[1329]: xset: unable to open display ""
So I guess that ERROR: could not open display is the error dwmst generates when it tries to launch it? Further investigation will have to follow, but in the meantime I'm open for pointers!
EDIT2: The ERROR line is not related to dwmst. I put some echo lines before and after killing and launching dwmst and the ERROR line appears after the echo's:
dec 19 20:16:57 lappy systemd-sleep[1443]: System resumed.
dec 19 20:16:57 lappy systemd-sleep[1443]: starting dwmst
dec 19 20:16:57 lappy systemd-sleep[1443]: started dwmst
dec 19 20:16:57 lappy systemd-sleep[1443]: ERROR: could not open display
dec 19 20:16:57 lappy systemd-sleep[1443]: xset: unable to open display ""
Last edited by Unia (2012-12-19 19:18:34)

Similar Messages

  • I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    You mean an image such as a scanned document?
    If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
    You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat.

  • [SOLVED] VIM - need help with keymapping

    As the header says, I need help with creating a key mapping in my vimrc. What I would like is a
    mapping to<F8> that would toggle between " :set paste and :set nopaste. " Any and all help
    would be appreciated
    Last edited by orphius1970 (2010-03-02 07:50:22)

    YES!!!!  Thank you! Exactly what I was hoping for. I am new to vim so all these config options
    are a little intimidating for now. Thank you again!!!!

  • [Need help with a swf file]

    Hello,
    I need help with a flash demo that I am creating. I have a
    main swf file that contains links to other sub swfs that I have
    created. What I really want this to do is... when I click on one of
    the link on the browser, the other swf have to load in the window.
    I tried to code it with .loadMovie,.... but for some weird reason,
    it is not showing up.
    Can anyone help me on this?
    Thanks

    you might have a security violation and you do have a
    load-target issue. remove that "_parent": there's no 2nd parameter
    in the loadMovie() method.
    if you want to replace the main swf with that url, loading
    into _root is fine. otherwise, you want to use a different
    target.

  • Need help with .cr2 RAW-files

    Hi,
    I've installed Aperture 2.1.2, and the newest RAW compability update (2.5).
    However, when I try to work with RAW files from my Canon EOS 1000D camera (nothing big, I know), all I see is "Unsupported image format".
    I really need help with this quick. The RAW files are in .cr2 format.

    as a last resort ...
    this is the update that added support for 1000d ... however the 3 releases post this should have it too ...
    http://www.apple.com/downloads/macosx/apple/application_updates/digitalcameraraw compatibilityupdate22.html
    but you can roll back your raw compatibility and see if that works ... then progressively go forward to current and see if/where the problem lies ...
    you could try a re-install of 2.5 ...
    http://support.apple.com/downloads/DigitalCamera_RAW_Compatibility_Update_25
    info on rolling back the update is in this thread:
    http://discussions.apple.com/thread.jspa?messageID=9097867

  • [SOLVED, Thanks]Need help with pacman post install

    Hi
    It took me a bit of time to install arch but i finally did it, turns out i just needed to disable ipv6. Anyway yesterday everything worked fine and now that i try to complete the install by downloading a wm suddenly pacman refuse to download anything, it says it can't synchronise.  Can anybody help pls ?
    http://www.hostingpics.net/viewer.php?i … roblem.png
    Last edited by oozernem (2015-05-09 08:15:51)

    Head_on_a_Stick wrote:
    Have you tried:
    # systemctl start dhcpcd.service
    If that brings your connection up, use:
    # systemctl enable dhcpcd.service
    https://wiki.archlinux.org/index.php/Be … uide#Wired
    Thanks m8, it fixed it
    Thanks to everybody else who replied in the thread.

  • I need help with a backup file that was deleted and now undeleted from my hard drive

    Last month (May 6, 2011), I was updating my iPod Touch 4G with the new software that came out. I always make a backup of my iPod's data before I update it. While my iPod was updating I left my iPod and computer alone and was doing things around the house with my mom. And when I was done I went in my room to see if it was done and my computer decides that it was going to freeze and crash on me (with my iPod plugged in and stuck on the updating or verifying software mode.) I managed to get my iPod back to working condition again but losing everything on my iPod. I formatted my computer hard drive but I managed to get back the backup I lost. I need help on getting the backup into iTunes so I can get my data back. I am not Jailbroken and I plan not to Jailbreak. I however saved the backup file in a folder other than the Mobilesync folder. I am also running on Windows XP. Someone please help me and thank you in advance!

    I was able to backup my iPod and I tried to restore my iPod again and it goes through the process and everything but it restores the temporary data that I had on there. It didn't restore application data or the current photos and videos that I had saved in Camera Roll before this all had happened. It is almost like it goes back to factory settings but I have some photos that were saved on the other backup that I was temporarily running on. The backup that I am looking to restore is the only backup file in the Mobilesync folder as of right now the others are saved somewhere safe for right now. Why doesn't it restore my application data or my Camera Roll pictures and videos that I saved before my computer crashed last month? Can this problem be fixed?

  • I need help with this zip file so that I can let Dreamweaver do what it do.

    I need help. I bought a web design from a company called Envato. And file is zip, I heard that you use Abobe Illustrator to unzip the file, but I've tried that and got nothing. I've just download Dreamweaver with hopes that would work and again nothing. I NEED HELP!!!!

    To unZip a folder of files, you need to use a decompression utility such as WinZip, StuffIt or 7-UP.  Do you have either of those on your system?  If not get one & install it now.
    Open ZIP in your utility and EXTRACT all contents to your DW Local Site Folder.  If you have not defined a Local Site Folder in DW yet, do that now by going to Site > New Site.
    Nancy O.

  • Need Help With Exporting EPS Files That Will Be Opened In Another Program

    I am trying to export some files from Illustrator in EPS format, to be used in another program called "Blufftitler". Their documentation is pretty sparse and doesn't go into much detail. It only mentions the following:
    "Limited support
    BluffTitler has limited EPS support. It only imports filled shapes built out of lines and curves from uncompressed, unoptimized EPS files."
    No matter what settings I try in Illustrator when exporting the EPS file, it won't open in Blufftitler, and keeps throwing me errors. I tried Choosing "Illustrator 3" as the format, and turning off the preview option. I also tried "expanding" the shape itself several times too. Is there some other way in Illustrator to just export a bare-bones EPS files without any extras or other stuff that might cause problems with other programs?
    The funny thing is, when I create EPS files with another program, such as Vector Magic, they work fine in Blufftitler - it just seems to have a problem with EPS files created in Illustrator specifically.
    Any help would be greatly appreciated, thanks in advance!

    The main problem is with BluffTitler is it doesn't have a very good eps handler as it can really only import eps files that are about 10k each and are not overly complex. If you look at all the sample .eps files that come with it, each one is about 1 or 2k each. A simple circle in Illustrator, even when saved as v3 without a preview, is around 258k. The reason for the larger file sizes is due to the extra things being saved in the file that aren't even on the page, such as brush presets and graphic styles. The sample .eps files that come with BluffTitler don't have these presets so the files are already smaller.
    Something you may want to try is to open up one of the sample eps files and use that file for your vector work but save the file with a new name. I found that by doing this I could get the files down to a much smaller size. You may also want to setup any vectors in Illustrator first, save them, and then open the files in InkScape, http://www.inkscape.org. From what I've read, InkScape can get you fairly small file sizes so it's something you should check out.

  • Need help with warranty service on ThinkPad Yoga

    Sorry for the seemingly angry headline but I am quite irritated at this point. Around three weeks ago I lost one of the rubber feet off my Thinkpad Yoga 2. After looking on Amazon, the Lenovo store and on Ebay I tried to ask here for advice around two weeks ago but I still have not received an answer (I don't know if this forum is run by Lenovo mods or by a Lenovo "community" of some sorts). I saw a similar question for missing feet on the S1 but the OP had not received an answer either.
    Yesterday another rubber foot came off so now both rubber feet on the back are missing thereby also partly blocking the air intake (I will glue it back on!). I therefore decided to call Lenovo to get some new ones. They put me through to IBM customer service which told me that it is not possible to buy rubber feet separately so in order to get two new rubber feet I have to buy a new base cover for the mere price of €80.50 which is just taking the piss out of people, especially when my laptop is 6 months old and still under warranty.
    The rubber foot which came off yesterday was so badly glued that it was almost a joke! Since I bought a laptop which has **bleep**ty rubber feet I have to buy a new bottom cover for €80 in order to solve the problem? If that is not taking the piss out of your customers than please tell me what is?
    Admin edit - retitled thread

    Hi Mark,
    Sorry for the angry rant above. Thanks for the reply and thank you for looking into the matter.
    Best, 
    Dan

  • Need help with Oracle Service Registry HTTPS configuration

    I have installed the Oracle Service Registry on a separate OC4J instance called registry without errors. I have also done the following steps to configure HTTPS given in the user guide.
    1. Delete the file <OC4J_HOME>/j2ee/home/keystore if it exists.
    2. Generate the server identity into <OC4J_HOME>/j2ee/home/keystore using the Java keytool as follows:
    keytool -genkey -keyalg RSA -alias oracle -keystore <OC4J_HOME>/j2ee/home/keystore -storepass
    <PASSWORD>
    3. Enabling SSL in the Oracle Application Server Standalone
    4. Copy <OC4J_HOME>/j2ee/home/config/http-web-site.xml to <OC4J_HOME>/j2ee/home/config/secure-website.
    xml.
    5. Edit <OC4J_HOME>/j2ee/home/config/secure-web-site.xml by changing the port and adding the parameter secure="
    true" to the <web-site> element; for example:
    <web-site port="4443" ... secure="true">
    6. Add the following element into the into the <web-site> element, use absolute path to keystore file, for example:
    <ssl-config keystore="<OC4J_HOME>/j2ee/home/keystore" keystore-password="<PASSWORD>"/>
    7. Add the path reference to secure-web-site.xml into the file server.xml; for example:
    <web-site path="./secure-web-site.xml" />
    8. You have to change the <web-app> definition for the OracleAS Service Registry n both files, http-web-site and
    secure-web-site, so the OracleAS does not create independent instances for each of the websites. Add a
    shared="true" attribute to the <web-app> elements for the OracleAS Service Registry application.
    After following these steps, I restarted OPMN. I am able to get the Oracle Service Registry console. When I click on the Publish link, it shows the Security Alert Window. After I click on Yes in the security alert window, it just shows "Page cannot be displayed". The same happens for all the secure links such as login. I even tried exporting the certificate through the Security Alert window, but still it does not work. All the HTTP links in the Service Registry console are working and the HTTPS links are all not working. I believe this should be an SSL configuration issue. Please let me know whether I have missed any steps in the security configuration.
    Thanks,
    Sathish

    Any replies to this please?
    Has anyone successfully installed and configured the Oracle Service Registry with all the links in the service registry console working fine? Is any one able to publish web services into the oracle service registry?
    Thanks.

  • Need help with Gateway / Services

    Running a standalone OWSM install - 10g 10.1.3
    We have been through the Gateway config and deployment several times.
    Also have a test service registered to the gateway, however, no matter what we try, we continue to get a 500 Internal Server Error when attempting to access the service URL: Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Which application log do I need to look at? The gateway log doesn't register any errors...
    I'm sure I'm missing something, but I can't find it...

    I'm not sure why or how, but it's fixed...
    I set logging to 'FINEST' and restarted everything and suddenly it all started working as expected.
    Set logging back to INFO and restarted - still working.
    No idea why it would just start working...

  • Need Help with Directory Services?

    Hello I am a student taking Email Server Admin and we are working with setting up a server for a fake company so as you see I have everything installed the problem I am facing is I can't go to the /certsrv website and we I do I get the message below that
    there is no network, my professor has told me just keep removing and installing ADCS but that doesn't make much sense nor does it clear off the no network, I have websites set up for some reason I was able to make single server certificates and attach them
    to my websites but we were working now with other things and I am pretty out of touch I googled it and tried several things but I can't figure out what is stopping the network when I get to certsrv, can anyone help me here maybe if I post the lab you will
    understand where I am going with this

    Hi,
    If you have a LAN network, you can set up a few test machines to perform some simple tests.
    Since the contents of your daily study plan are a lot, which makes this thread difficult to read, do you mind making it short by deleting some irrelevant posts?
    Best Regards,
    Amy

  • Need help with Web Services SDK.

    I am new to Web Services SDK can I get documentation on same.

    For documentation about the BOE XI R2 SP2 Web services go to our DevLibrary: http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    then locate the Web Services topic under which, you will find the necessary info to help you deal with BOE Web Services.
    Cheers
    Alphonse

  • Need help with Shared Services Role

    Hello,
    I am trying to create a Native Directory group which will allow the users extract all the Application Elements, but restrict them from loading anything to the system. This group should only have the ability to view the objects and not edit them. It should also have the extract functionality.
    By removing the role 'Load System', we can restrict the users from loading the artifacts, but once this role is removed, the users are not able to extract the Application Elements (Security, Memberlists and Rules file).
    Can you please let me know if there is any other way/setup that would allow the users to perform the required functinalities with out the 'Load System' role?
    Any help would be appreciated.
    Thanks,

    Sorry but I have the same issue and I cannot do anything...
    We have to ask from the admin team to extract and send us the metadata....
    Regards,
    Thanos

Maybe you are looking for

  • Help to solve javax.mail.AuthenticationFailedException: EOF on socket

    I am trying to get hotmail emails and store in Oracle 10g database. When I am executing receivemail procedure from Oracle 10g database. I am getting following error. connect to ESIMSCO_UTIL_OWNER SQL> set serveroutput on SQL> SQL> Declare 2 v_error_m

  • How can I know the username of a user that logged in?(Authorization)

    I have a problem with authorization. In our system, everyone could take some reports. But we must restrict the data that a user can see. So, I must know what is the username of the logged in user. I have tried :XDO_USER_NAME variable in SQL statement

  • A12E1 Error on Failed Install of Adobe Application Manager

    I am running Mac OSX 10.8.3 and I am trying to install Adobe Application Manager, the install goes most of the way through then fails and gives me an Error code: A12E1. What is this and how do I get around it?

  • Export web HTML4 to a new web HTML5

    Hi, i have a site. This is a old site. The site is in HTML4 OLD. I use the Dreamweaver CC 2014. How can i export the site to HTML5 format? responsive? Thanks.

  • Quicktime reinstall

    Due to compatibilty issue i have to install quicktime 7 again but I already had quicktime pro. how do i go about reinstalling quicktime so i can get my pro account back. on the quicktime download page what do i click to download?