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

2016-04-26 Thread Michele Kipiel
Update: I seem to have solved the problem tweaking the udev commands as
follows:

SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/sbin/pm-powersave true"
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/sbin/pm-powersave true"

this way pm-powersave is executed every time a power source change
happens, allowing the if/else statement i put in the custom script to
take care of the rest.

I don't know whether this is a long-term solution, but it seems to be
working so far.

-- 
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:
  Confirmed

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 1461386] Re: pm-powersave is not triggered when unplugging charger

2016-04-26 Thread Michele Kipiel
Still present in 16.04.

Also: are custom pm files still allowed? It took me quite some time to
tune my XPS13 to perfection, it would suck if I had to throw everything
out of the window now.

File attached.

** Attachment added: "powertop_pm"
   
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1461386/+attachment/4648270/+files/powertop_pm

-- 
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:
  Confirmed

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 1461386] Re: pm-powersave is not triggered when unplugging charger

2016-03-19 Thread Pilot6
But this is not triggered on boot.

You will need to add

udevadm trigger -s power_supply

to rc.local

-- 
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:
  Confirmed

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 1461386] Re: pm-powersave is not triggered when unplugging charger

2015-07-02 Thread Alberto Salvia Novella
** Changed in: pm-utils (Ubuntu)
   Importance: Undecided = Medium

-- 
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:
  Confirmed

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 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 1461386] Re: pm-powersave is not triggered when unplugging charger

2015-07-01 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: pm-utils (Ubuntu)
   Status: New = Confirmed

-- 
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:
  Confirmed

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 1461386] Re: pm-powersave is not triggered when unplugging charger

2015-07-01 Thread Oscar Tiderman
Thanks Martin, that makes sense. With your file in place pm-powersave is
now triggered correctly when unplugging my charger.

-- 
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:
  Confirmed

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