** Description changed:

- Context:
- ----------------------------------------
- I usually set the lock delay to 30 minutes, and do it via gsettings since 
GNOME Settings allows values of 15 min max.
+ [ Impact ]
  
- Problem:
- ----------------------------------------
- This value is reset to "uint32 0" (zero) when I click the tab Privacy & 
Security in GNOME Settings. Since the change happens silently the user will not 
be aware of it.
+ I usually set the lock delay to 30 minutes, and do it via gsettings
+ since GNOME Settings allows values of 15 min max.
  
- Example to replicate:
- ----------------------------------------
+ This value is reset to "uint32 0" (zero) when I click the tab Privacy &
+ Security in GNOME Settings. Since the change happens silently the user
+ will not be aware of it.
  
- 1. Open terminal and set a custom delay value (30 min in this case):
+ This is fixed by ensuring that custom idle-delay values, not listed in the
+ `Privacy & Security -> Screen Lock -> Blank Screen Delay` drop-down, are 
handled gracefully. If the value is not in the list, the drop-down will default 
to
+ showing no selection instead of falling back to zero.
  
- $ gsettings set org.gnome.desktop.session idle-delay 1800
+ [ Test Plan ]
  
- 2. Monitor the key for change:
+ * Open terminal and set a custom delay value (30 min in this case):
  
- $ gsettings monitor org.gnome.desktop.session idle-delay
+   $ gsettings set org.gnome.desktop.session idle-delay 1800
  
- 3. Open GNOME Settings and click "Privacy & Security"
+ * Open GNOME Settings and click "Privacy & Security"
  
- 4. The key is changed, on step 3, to "uint32 0" as seen in the terminal
- monitoring the key:
+ * Verify that the idle-delay value has remained the same
  
- $ gsettings monitor org.gnome.desktop.session idle-delay
- idle-delay: uint32 0
+   $ gsettings get org.gnome.desktop.session idle-delay
+   uint32 1800
  
- More info:
- ----------------------------------------
- The option to lock the screen after a delay can be set in (at least) three 
different locations:
+ [ Where problems could occur ]
+ 
+ The scope of the change is limited to the `Blank Screen Delay` and
+ `Automatic Screen Lock Delay` settings. A bug may prevent these options
+ to be set, or at worst crash the Settings app.
+ 
+ [ Other Info ]
+ 
+ The option to lock the screen after a delay can be set in (at least)
+ three different locations:
  
  1. Settings -> Power -> Screen Blank
  
  2. Settings -> Privacy & Security -> Screen Lock -> Blank Screen Delay
  
  3. $ gsettings set org.gnome.desktop.session idle-delay 1800
  
  (1 and 2 are drop-down lists going from "Never" up to "15 minutes". In
  3, I used "1800" = 30 min.)
  
  The issue only happens when I click the tab "Privacy & Settings" (I
  believe this tab is new in Ubuntu 24.04, I don't recall seeing it in
  20.04 or 22.04). I can click all other tabs, including the tab "Power",
  without problem.
  
  I was able to replicate the issue in another laptop, also with Ubuntu
  24.04.
  
  Machine details:
  ----------------------------------------
  $ lsb_release -rd
  No LSB modules are available.
  Description:  Ubuntu 24.04.1 LTS
  Release:      24.04
  
  $ apt-cache policy gnome-shell
  gnome-shell:
    Installed: 46.0-0ubuntu6~24.04.5
    Candidate: 46.0-0ubuntu6~24.04.5
    Version table:
   *** 46.0-0ubuntu6~24.04.5 500
          500 http://pt.archive.ubuntu.com/ubuntu noble-updates/main amd64 
Packages
          100 /var/lib/dpkg/status
       46.0-0ubuntu6~24.04.3 500
          500 http://security.ubuntu.com/ubuntu noble-security/main amd64 
Packages
       46.0-0ubuntu5 500
          500 http://pt.archive.ubuntu.com/ubuntu noble/main amd64 Packages
  
  $ apt-cache policy gnome-screensaver
  gnome-screensaver:
    Installed: (none)
    Candidate: 3.6.1-13ubuntu4
    Version table:
       3.6.1-13ubuntu4 500
          500 http://pt.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
  
  Note I thought the idle-delay was part of package gnome-screensaver but
  it turns out I don't even have it installed. The package description
  says "This package is not necessary in the GNOME desktop environment,
  because GNOME Shell contains its own screen lock implementation. (...)"
  so I filled this bug under gnome-shell.

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

Title:
  Screen Blank delay (idle-delay) is set to zero (uint32 0) on clicking
  Privacy & Security tab in Settings

Status in gnome-control-center package in Ubuntu:
  Fix Released
Status in gnome-control-center source package in Noble:
  Triaged

Bug description:
  [ Impact ]

  I usually set the lock delay to 30 minutes, and do it via gsettings
  since GNOME Settings allows values of 15 min max.

  This value is reset to "uint32 0" (zero) when I click the tab Privacy
  & Security in GNOME Settings. Since the change happens silently the
  user will not be aware of it.

  This is fixed by ensuring that custom idle-delay values, not listed in the
  `Privacy & Security -> Screen Lock -> Blank Screen Delay` drop-down, are 
handled gracefully. If the value is not in the list, the drop-down will default 
to
  showing no selection instead of falling back to zero.

  [ Test Plan ]

  * Open terminal and set a custom delay value (30 min in this case):

    $ gsettings set org.gnome.desktop.session idle-delay 1800

  * Open GNOME Settings and click "Privacy & Security"

  * Verify that the idle-delay value has remained the same

    $ gsettings get org.gnome.desktop.session idle-delay
    uint32 1800

  [ Where problems could occur ]

  The scope of the change is limited to the `Blank Screen Delay` and
  `Automatic Screen Lock Delay` settings. A bug may prevent these
  options to be set, or at worst crash the Settings app.

  [ Other Info ]

  The option to lock the screen after a delay can be set in (at least)
  three different locations:

  1. Settings -> Power -> Screen Blank

  2. Settings -> Privacy & Security -> Screen Lock -> Blank Screen Delay

  3. $ gsettings set org.gnome.desktop.session idle-delay 1800

  (1 and 2 are drop-down lists going from "Never" up to "15 minutes". In
  3, I used "1800" = 30 min.)

  The issue only happens when I click the tab "Privacy & Settings" (I
  believe this tab is new in Ubuntu 24.04, I don't recall seeing it in
  20.04 or 22.04). I can click all other tabs, including the tab
  "Power", without problem.

  I was able to replicate the issue in another laptop, also with Ubuntu
  24.04.

  Machine details:
  ----------------------------------------
  $ lsb_release -rd
  No LSB modules are available.
  Description:  Ubuntu 24.04.1 LTS
  Release:      24.04

  $ apt-cache policy gnome-shell
  gnome-shell:
    Installed: 46.0-0ubuntu6~24.04.5
    Candidate: 46.0-0ubuntu6~24.04.5
    Version table:
   *** 46.0-0ubuntu6~24.04.5 500
          500 http://pt.archive.ubuntu.com/ubuntu noble-updates/main amd64 
Packages
          100 /var/lib/dpkg/status
       46.0-0ubuntu6~24.04.3 500
          500 http://security.ubuntu.com/ubuntu noble-security/main amd64 
Packages
       46.0-0ubuntu5 500
          500 http://pt.archive.ubuntu.com/ubuntu noble/main amd64 Packages

  $ apt-cache policy gnome-screensaver
  gnome-screensaver:
    Installed: (none)
    Candidate: 3.6.1-13ubuntu4
    Version table:
       3.6.1-13ubuntu4 500
          500 http://pt.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

  Note I thought the idle-delay was part of package gnome-screensaver
  but it turns out I don't even have it installed. The package
  description says "This package is not necessary in the GNOME desktop
  environment, because GNOME Shell contains its own screen lock
  implementation. (...)" so I filled this bug under gnome-shell.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2083869/+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

Reply via email to