[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2019-02-24 Thread PabloAB
It seems there is no issue filed upstream. The closest thing I'd found is:
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/111
Nothing about lid-close-ac-action and lid-close-battery-action.
I'm not sure if an upstream bug issue should be filed.

I read [this][1] and [this][2] on but only locks when lid-close.

  [1]: https://unix.stackexchange.com/a/307498/209677
  [2]: https://help.gnome.org/users/gnome-help/stable/power-closelid.html.en

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in GNOME Settings Daemon:
  Confirmed
Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions

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


[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2018-08-20 Thread Josh Hill
Can you modify this script so that it works when an external monitor is
connected or the laptop is docked? gsd overrides logind, and prevents
the computer from suspending in these cases.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in GNOME Settings Daemon:
  Confirmed
Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions

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


[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2017-11-20 Thread Bug Watch Updater
** Changed in: gnome-settings-daemon
   Status: Unknown => Confirmed

** Changed in: gnome-settings-daemon
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in GNOME Settings Daemon:
  Confirmed
Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions

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


[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2017-11-20 Thread Kim Nguyễn
** Bug watch added: GNOME Bug Tracker #790607
   https://bugzilla.gnome.org/show_bug.cgi?id=790607

** Also affects: gnome-settings-daemon via
   https://bugzilla.gnome.org/show_bug.cgi?id=790607
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in GNOME Settings Daemon:
  Unknown
Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions

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


[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2017-10-14 Thread Kim Nguyễn
I'm attaching a proof of concept python script that restores the
behaviour (in case it's useful to others).

The script should be launched as:
systemd-inhibit --who=me --why=because --mode=block --what=handle-lid-switch 
/path/to/custom_suspend.py

from the session startup (gnome-session-properties)

This is public domain and only lightly tested. It relies on existing
gnome/systemd commands to perform the underlying action

** Attachment added: "custom_suspend.py"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+attachment/4970889/+files/custom_suspend.py

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+subscriptions

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


[Desktop-packages] [Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery

2017-10-12 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: gnome-settings-daemon (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1722286

Title:
  Same action is forced for lid-close on AC and lid-close on battery

Status in gnome-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  Note: I'm flagging this as a bug in gnome-settings-daemon, but the
  program itself is not buggy. It's rather the usage of this program
  instead of unity-settings-daemon in ubuntu 17.10 that causes a system
  regression.

  ---
  Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed 
suspend policy in the default graphic session (Unity). Unity-settings-daemon is 
a fork of (an old version of) gnome-settings-daemon.
  Now that gnome-shell is the default environment, session management is 
handled by gnome-settings-daemon. In particular, the action to perform when the 
lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as 
it was by unity-settings-daemon).

  With unity-settings-daemon, two dconf keys where honored (lid-close-
  ac-action and lid-close-battery-action, under org/gnome/settings-
  daemon/power ) to specify what action are performed when the user
  closes the laptop lid, depending on whether the laptop is plugged or
  on battery.

  In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless
  their value is 'ignore') and delegate actions to systemd-logind. The
  latter has no knowledge on whether the laptop is plugged or not and
  apply the same action regardless.

  This is a regression in a useful (and I believe popular)
  functionality. It is common to want the laptop to suspend when
  unplugged but expecting it to remain running when plugged (I believe
  this is the default on MacOS and windows and both system can be
  configured to distinguish between on-AC and on-Battery).

  The functionality can be restored with a bit of sweat with either
  hooks for acpid (or maybe a session script using the gnome framework
  to detect events and apply the correct policy, acpid-scripts run as
  root), but this is clearly not something the average user should have
  to tinker with.

  
  At the *very least* release note should advertise this regression (as a new 
feature ?) but ideally provide a compatibility layer to restore this 
functionality.

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gnome-settings-daemon 3.26.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
  Uname: Linux 4.13.0-11-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  9 16:15:54 2017
  InstallationDate: Installed on 2015-06-03 (859 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+subscriptions

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