https://bugs.kde.org/show_bug.cgi?id=461400

PK <pieterkristen...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pieterkristen...@gmail.com

--- Comment #47 from PK <pieterkristen...@gmail.com> ---

(In reply to ioo+kde from comment #42)
> I do not expect this bug will get addressed soon.
> 
> I have been trying a work around of trying to automate the task by runing
> akonadictl from the systemd sleep script when the laptop resumes from sleep
> from here: /usr/lib/systemd/system-sleep/.
> 
> It is no easy task, I cannot find a way to run the process so that it
> attaches to the current user session. I have tried exporting several
> environmental variables but akonadi always crashes or reports that it is not
> started. I think I need the DBUS_SESSION_BUS_ADDRESS but it isn't easy to
> get.
> 
> Has anyone else tried a similar workaround?

Not an easy task indeed! I tried all sorts of things but they all didn't work.
Finally I looked in the folder /usr/lib/systemd/system-sleep/ and there is
another file named "hdparm". In this file I find:

#!/bin/sh

case $1 in
  post)
    /usr/lib/pm-utils/power.d/95hdparm-apm resume
    ;;
esac

So now I copied this file change the name and changed the content to:

#!/bin/sh

case $1 in
  post)
    /usr/bin/akonadictl restart
    ;;
esac

I thought perhaps I found the golden key. But this also didn't work...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to