Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Disable password after resume from suspend in Oneiric

  1. #11
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Disable password after resume from suspend in Oneiric

    Well, thanks for doing all that digging. I assure you a simple Google search yielded nothing for me.

    Kudos!

  2. #12
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Disable password after resume from suspend in Oneiric

    Quote Originally Posted by aysiu View Post
    I assure you a simple Google search yielded nothing for me.
    You've now blazed the path for successful future Google searches though!

    I've attached the script entries to my previous post.
    New to Wayland.

    Retired.

  3. #13
    Join Date
    Jun 2007
    Beans
    16,515

    Re: Disable password after resume from suspend in Oneiric

    The layout of using gsettings seems much simpler & logical to me vs. gconf. Though over the last several months it has grown so much that the schemas list has gotten imposing, seen in

    gsettings list-schemas

    But the layout of using is quite straightforward
    gsettings <command> <schemas> <key> <value>

    Man gsettings is quite imformative to get some of the useful commands -

    gsettings list-recursively <schemas> is very useful as is
    gsettings get <schemas> <key> and
    gsettings range <schemas> <key>
    It all flows pretty nicely after a bit

  4. #14
    Join Date
    May 2005
    Location
    Czestochowa, Poland
    Beans
    22

    Re: Disable password after resume from suspend in Oneiric

    Quote Originally Posted by drs305 View Post
    Code:
    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
    This will also disable the possibility to manually lock the screen either by using the CTRL-ALT-L shortcut or through the Lock Screen option in "power menu".
    Still searching for the solution to be able to only disable the post-resume screen lock.

  5. #15
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Disable password after resume from suspend in Oneiric

    Quote Originally Posted by cRoMo View Post
    This will also disable the possibility to manually lock the screen either by using the CTRL-ALT-L shortcut or through the Lock Screen option in "power menu".
    Still searching for the solution to be able to only disable the post-resume screen lock.
    This is correct so for those wanting to lock the screen without suspending this is not a viable option.

    As a workaround, I'm sure an enterprising forumite could write a suspend script. It would 'sed' this command to 'true' when a 'suspend' script was activated and then 'sed' it back to 'false' after the system has returned from suspend. Or you could probably more easily incorporate a script to run when the "Lock Screen" option is run, since it wouldn't have to deal with resuming from suspend issues.

    It shouldn't be necessary, but it could be done in this manner.
    New to Wayland.

    Retired.

  6. #16
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Disable password after resume from suspend in Oneiric

    In the ideal world, you would want the ability to keep those two things separate. Truthfully, it'd be rare to find someone so annoyed by having the screen locked upon resuming from suspend but who would want to lock the screen manually.

  7. #17
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Disable password after resume from suspend in Oneiric

    @ cRoMo,
    This will also disable the possibility to manually lock the screen either by using the CTRL-ALT-L shortcut or through the Lock Screen option in "power menu".
    Still searching for the solution to be able to only disable the post-resume screen lock.
    Not that you or anyone else was anxiously waiting for this, but...

    • Blanking the screen is invoked with "gnome-screensaver-command -l"
    • The command uses the dconf value set in the "disable lock screen" at the time of execution
    • You can enable and use the Compiz Config Settings manager to set a key binding command to a script which will would temporarily change the lock value immediately before the command is invoked, and change it back immediately thereafter. I used CTRL-ALT-. (period)
    • You will now have the lock on a manually blanked screen invoked by CTRL ALT . , but no lock for a suspended screen. (As aysiu stated, I'm not sure under what circumstances you might desire this action, but here it is.)


    The script to bind:
    #!/bin/bash
    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
    gnome-screensaver-command -l
    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
    exit
    With that, as Forrest Gump says, "That's all I have to say about that".

    Or does, "Stupid is as stupid does" more likely apply to me?...
    New to Wayland.

    Retired.

  8. #18
    Join Date
    Apr 2005
    Location
    Sintra, Portugal
    Beans
    835

    Re: Disable password after resume from suspend in Oneiric

    Another satisfied customer. Thanks a lot.

  9. #19
    Join Date
    Mar 2008
    Location
    Indianapolis
    Beans
    33
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Disable password after resume from suspend in Oneiric

    Thanks a million! That was really annoying me.

    And yes....I found it through a Google search! Viola!
    I spent 90% of my money on women and drink. The rest I wasted.

  10. #20
    Join Date
    Apr 2010
    Beans
    53
    Distro
    Ubuntu

    Re: Disable password after resume from suspend in Oneiric

    Quote Originally Posted by drs305 View Post
    I believe I've figured this one out.

    The setting is now in dconf: org.gnome.desktop.lockdown

    Either install dconf-tools and run dconf-editor to manually set it, or run this command:
    Code:
    gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
    Note: can also be run as root.
    Thank you thank you thank you!

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •