[Touch-packages] [Bug 1455097] Re: pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

2015-07-01 Thread Martin Thornton
Was caused by switch to systemd from upstart.  Instead of pm-suspend,
systemd uses systemd-sleep.  Instead of running scripts in
/etc/pm/sleep.d/ and /usr/lib/pm-utils/sleep.d/ it runs scripts in
/lib/systemd/system-sleep/.  However, no script is installed here to
call pm-powersave, and systemd doesn't seem to have an alternative to
it, so I added my own.

For example, I converted the /usr/lib/pm-utils/sleep.d/00powersave as
follows:

###UPSTART:
#!/bin/sh
. "${PM_FUNCTIONS}"
ARCH=`uname -m`
command_exists pm-powersave || exit $NA
case $1 in
suspend|hibernate) [ "$ARCH" != "${ARCH#arm}" ] || pm-powersave false ;;
resume|thaw)   pm-powersave ;;
*) exit $NA ;;
esac
exit 0

###SYSTEMD:
#!/bin/sh
case $1 in
post)   pm-powersave ;;
*) [ "$ARCH" != "${ARCH#arm}" ] || pm-powersave false ;;
esac
exit 0


It was necessary to remove the lines:
> . "${PM_FUNCTIONS}"
> command_exists pm-powersave || exit $NA
and note that parameters to script differ, see man systemd-sleep.  


** Attachment added: "pm-powersave hook for systemd, save as 
/lib/systemd/system-sleep/00powersave"
   
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1455097/+attachment/4422954/+files/00powersave

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1455097

Title:
  pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

Status in pm-utils package in Ubuntu:
  Confirmed

Bug description:
  I added a new script in /etc/pm/sleep.d/ that worked fine before the
  upgrade to vivid. I was wondering why it doesn't work and I find out
  that /var/log/pm-suspend.log is empty, and pm-powersave.log too (last
  logs from pm-suspend were on Apr 28, when I upgraded from utopic to
  vivid.

  The laptop suspends and wakes fine, it just seems that no pm scripts
  are run after suspend/powersave.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: pm-utils 1.4.1-15
  ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
  Uname: Linux 3.19.0-16-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu May 14 15:36:26 2015
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-precise-amd64-20120703-2
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-03-12 (792 days ago)
  InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 
20120703-15:08
  PackageArchitecture: all
  SourcePackage: pm-utils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1455097/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1458390] Re: script in /etc/pm/sleep.d/ is not executed on resume

2015-07-01 Thread Martin Thornton
Almost certain is same bug as https://launchpad.net/ubuntu/+source/pm-
utils/+bug/1455097.  Caused by switch to systemd from upstart.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1458390

Title:
  script in /etc/pm/sleep.d/ is not executed on resume

Status in pm-utils package in Ubuntu:
  Confirmed

Bug description:
  I'm trying to reload a module (hid_multitouch) on resume.

  For this I've put an executable script in /etc/pm/sleep.d/ , but it is
  not executed on resume.

  If I execute the script explicitly via command-line, the module is
  releaded as expected:

  sven@svenBlack:/usr/lib/pm-utils/sleep.d$ more ./99_touchscreen
  #!/bin/sh

  case $1 in
  resume)
  modprobe -r hid_multitouch
  modprobe hid_multitouch
  ;;
  esac

  sven@svenBlack:/usr/lib/pm-utils/sleep.d$ sudo ./99_touchscreen resume

  
  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: pm-utils 1.4.1-15
  ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
  Uname: Linux 3.19.0-18-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sun May 24 22:19:15 2015
  InstallationDate: Installed on 2015-04-27 (27 days ago)
  InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 
(20150422)
  PackageArchitecture: all
  SourcePackage: pm-utils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1458390/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1461386] Re: pm-powersave is not triggered when unplugging charger

2015-07-01 Thread Martin Thornton
Caused by switch from upstart to systemd.

Copy attachment (requires root) to /etc/udev/rules.d/powersave.rules.

See also bug https://bugs.launchpad.net/ubuntu/+source/pm-
utils/+bug/1455097 for same problem with suspend/resume

Still always assumes on battery at boot though.

** Attachment added: "pm-powersave hook for systemd using udev for ac on/off"
   
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1461386/+attachment/4422959/+files/powersave.rules

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1461386

Title:
  pm-powersave is not triggered when unplugging charger

Status in pm-utils package in Ubuntu:
  New

Bug description:
  Not sure at all which package to file this bug against, hopefully
  someone can help me tag the right package. There is no pm-powersave
  event triggered when plugging or unplugging my charger, none of the
  powersave scripts are therefore triggered. I'm on a Lenovo Yoga 2 Pro.
  This must be a regression in Vivid, has worked fine in both Trusty and
  Utopic. I can manually run sudo pm-powersave true to trigger the
  scripts

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: pm-utils 1.4.1-15
  ProcVersionSignature: Ubuntu 3.19.0-20.20-generic 3.19.8
  Uname: Linux 3.19.0-20-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  Date: Wed Jun  3 07:05:30 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-03-30 (429 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  PackageArchitecture: all
  SourcePackage: pm-utils
  SystemImageInfo:
   current build number: 0
   device name: ?
   channel: daily
   last update: Unknown
  UpgradeStatus: Upgraded to vivid on 2015-04-30 (33 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1461386/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1455097] Re: pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

2015-07-01 Thread Martin Thornton
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1458390 is
probably a duplicate bug.

https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1461386 is a
related issue concerning calling pm-powersave on AC loss/connection.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1455097

Title:
  pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

Status in pm-utils package in Ubuntu:
  Confirmed

Bug description:
  I added a new script in /etc/pm/sleep.d/ that worked fine before the
  upgrade to vivid. I was wondering why it doesn't work and I find out
  that /var/log/pm-suspend.log is empty, and pm-powersave.log too (last
  logs from pm-suspend were on Apr 28, when I upgraded from utopic to
  vivid.

  The laptop suspends and wakes fine, it just seems that no pm scripts
  are run after suspend/powersave.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: pm-utils 1.4.1-15
  ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
  Uname: Linux 3.19.0-16-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu May 14 15:36:26 2015
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-precise-amd64-20120703-2
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-03-12 (792 days ago)
  InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 
20120703-15:08
  PackageArchitecture: all
  SourcePackage: pm-utils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1455097/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1455097] Re: pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

2015-07-01 Thread Martin Thornton
Improved previous attachment.  You'll also need to:
sudo cp [FILENAME] /lib/systemd/system-sleep/00powersave
sudo chown root.root /lib/systemd/system-sleep/00powersave
sudo chmod u+x /lib/systemd/system-sleep/00powersave

** Attachment added: "pm-powersave hook for systemd, save as 
/lib/systemd/system-sleep/00powersave v2"
   
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1455097/+attachment/4423008/+files/00powersave

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1455097

Title:
  pm-suspend.log and pm-powersave.log not updated since upgrade to vivid

Status in pm-utils package in Ubuntu:
  Confirmed

Bug description:
  I added a new script in /etc/pm/sleep.d/ that worked fine before the
  upgrade to vivid. I was wondering why it doesn't work and I find out
  that /var/log/pm-suspend.log is empty, and pm-powersave.log too (last
  logs from pm-suspend were on Apr 28, when I upgraded from utopic to
  vivid.

  The laptop suspends and wakes fine, it just seems that no pm scripts
  are run after suspend/powersave.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: pm-utils 1.4.1-15
  ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
  Uname: Linux 3.19.0-16-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu May 14 15:36:26 2015
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-precise-amd64-20120703-2
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-03-12 (792 days ago)
  InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 
20120703-15:08
  PackageArchitecture: all
  SourcePackage: pm-utils
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1455097/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp