How to keep Ubuntu unlocked when some condition applies?How to disable lock screen based on which WIFI network I'm connected to?how to keep ubuntu on and unlocked while closing the laptop lid?Locked computer gets very hot despite no CPU-intensive tasks runningSuspend on lid close doesn't work 16.04How to disable lock screen based on which WIFI network I'm connected to?How do I call `dbus` code that monitors when screen is locked/unlocked?Screen lock shuts down all applications in 17.10Lubuntu 18.04 refuses to not dim the screen

What does exhaust smell on oil and transmission dipstick mean?

What's the most profitable use for an elemental transmuter?

How do I figure out how many hydrogens my compound actually has using a mass and NMR spectrum?

Define a command differently in inline vs display mode

Responsibility for arrangement of elements - frontend or backend?

Why do some switching regulator require tantalum or electrolytic capacitors instead of ceramic?

Can anyone give me a suggestion of a good monk sto study to learn Buddhism

How does kinetic energy work in braking a vehicle?

What term can we propose for someone who prioritizes equipment over musicianship?

Does animal blood, esp. human, really have similar salinity as ocean water, and does that prove anything about evolution?

How to answer to the "We do not want to create any precedent" argument in salary negotiation?

For a command to increase something, should instructions refer to the "+" key or the "=" key?

Relying on default values - is bad programming style?

Permissions using a TYPE as a Table Valued Parameter

Plain Hunt Bell-Ringing

Antonym for “boilerplate” or “cookie-cutter”

How can I filter an EntityClass by _not_ having a property?

Greek diacritic with English letter

What's a good strategy for offering low on a house?

Can Tankless & Conventional water heaters Join forces?

where does black come from in CMYK color mode?

instead of pressurizing an entire spacesuit with oxygen could oxygen just pressurize the head and the rest of the body be pressurized with water?

Equivalent of phrase 'emu parade' in other English-speaking places

Pass variable to sed and change backslash to forward slash



How to keep Ubuntu unlocked when some condition applies?


How to disable lock screen based on which WIFI network I'm connected to?how to keep ubuntu on and unlocked while closing the laptop lid?Locked computer gets very hot despite no CPU-intensive tasks runningSuspend on lid close doesn't work 16.04How to disable lock screen based on which WIFI network I'm connected to?How do I call `dbus` code that monitors when screen is locked/unlocked?Screen lock shuts down all applications in 17.10Lubuntu 18.04 refuses to not dim the screen






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?



Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.










share|improve this question


































    1

















    I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?



    Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.










    share|improve this question






























      1












      1








      1








      I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?



      Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.










      share|improve this question

















      I want to avoid having to re-enter my password after every few minutes of inactivity when my laptop is in a safe environment (e.g. docked - it's a ThinkPad with a Thunderbolt dock - or connected to my home wifi). How do I approach that problem?



      Is there some generic utility for this or does it have to be done differently for every definition of "safe environment"? I looked for relevant PAM modules but could not find anything, and not sure if that's even the right approach (ideally I'd want the window manager to not lock in the first place, not circumwent passwords for login). How to disable lock screen based on which WIFI network I'm connected to? is relevant but the answers given there (hook into network state changes and disable/reenable using a lock screen depending on what network we have just switched to) seems fragile and insecure - I'd imagine the ideal solution to leave the lock screen enabled but perform some kind of check before locking, and delay locking for another N minutes if that check succeeded.







      18.04 security laptop lock-screen






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 30 at 14:18









      Prince Kumar Barnwal

      1137 bronze badges




      1137 bronze badges










      asked May 30 at 10:54









      TgrTgr

      4375 silver badges12 bronze badges




      4375 silver badges12 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          1


















          You might want to use systemd like so:



          https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface



          Along with



          gnome-screensaver-command --inhibit





          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147381%2fhow-to-keep-ubuntu-unlocked-when-some-condition-applies%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1


















            You might want to use systemd like so:



            https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface



            Along with



            gnome-screensaver-command --inhibit





            share|improve this answer






























              1


















              You might want to use systemd like so:



              https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface



              Along with



              gnome-screensaver-command --inhibit





              share|improve this answer




























                1














                1










                1









                You might want to use systemd like so:



                https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface



                Along with



                gnome-screensaver-command --inhibit





                share|improve this answer














                You might want to use systemd like so:



                https://unix.stackexchange.com/questions/210604/how-to-write-a-systemd-service-unit-file-so-it-waits-until-a-specific-interface



                Along with



                gnome-screensaver-command --inhibit






                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Jul 20 at 17:19









                UnstuckUnstuck

                414 bronze badges




                414 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147381%2fhow-to-keep-ubuntu-unlocked-when-some-condition-applies%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

                    How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

                    Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü