Lock Screen without Affecting Background Programs?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
unL33T
Posts: 22
Joined: Fri Jan 22, 2021 11:09 pm
Has thanked: 6 times
Been thanked: 2 times

Lock Screen without Affecting Background Programs?

Post by unL33T »

Hello all,

I've been locking my screen with the lock icon on the desktop which uses xlock but I've now noticed it messes up my background programs, specifically BOINC. If I lock the screen with this all running tasks in BOINC fail with "computation error" and they won't send the results or start running new tasks until the screen is unlocked again. From reading up on xlock this is probably expected behavior.

Is there a way to prevent this behavior or an alternative way to lock the screen with a password?

Thanks!

HerrBert
Posts: 356
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 125 times

Re: Lock Screen without Affecting Background Programs?

Post by HerrBert »

Not sure if this is what you're looking for...
From the xlock man pages:

-/+allowaccess
This option is required for servers which do not allow clients to modify the host access control list. It is also useful if you need to run x clients on a server which is locked for some reason... When allowaccess is true, the X11 server is left open for clients to attach and thus lowers the inherent security of this lock screen. A side effect of using this option is that if xlock is killed -KILL, the access control list is not lost.

To add this option to your default xlock configuration you have to edit the file /root/.config/Xlock/xlockscreenparams and insert the option -allowaccess in front of the -mode option (not necessarily in front of, but for compatibility with xlock setup application)
Not tested here, since i don't need or use applications in background if my screen is locked...

unL33T
Posts: 22
Joined: Fri Jan 22, 2021 11:09 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Lock Screen without Affecting Background Programs?

Post by unL33T »

HerrBert wrote: Mon Nov 22, 2021 10:40 pm

Not sure if this is what you're looking for...
From the xlock man pages:

-/+allowaccess
This option is required for servers which do not allow clients to modify the host access control list. It is also useful if you need to run x clients on a server which is locked for some reason... When allowaccess is true, the X11 server is left open for clients to attach and thus lowers the inherent security of this lock screen. A side effect of using this option is that if xlock is killed -KILL, the access control list is not lost.

To add this option to your default xlock configuration you have to edit the file /root/.config/Xlock/xlockscreenparams and insert the option -allowaccess in front of the -mode option (not necessarily in front of, but for compatibility with xlock setup application)
Not tested here, since i don't need or use applications in background if my screen is locked...

Thanks! I think this worked. I did find it on my own earlier but from the description I wasn't sure if it was what I needed nor did I know how to implement it properly.

unL33T
Posts: 22
Joined: Fri Jan 22, 2021 11:09 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Lock Screen without Affecting Background Programs?

Post by unL33T »

Hmm didn't seem to work after all. Got the same results when locking the screen. When unlocked it still works fine.

unL33T
Posts: 22
Joined: Fri Jan 22, 2021 11:09 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Lock Screen without Affecting Background Programs?

Post by unL33T »

I ended up using "slock". Seems to work. Had to install "make" to build it which took a bit to figure out but it worked out in the end.

https://tools.suckless.org/slock/

User avatar
bigpup
Moderator
Posts: 6980
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 902 times
Been thanked: 1520 times

Re: Lock Screen without Affecting Background Programs?

Post by bigpup »

Any time you post, always, always, always, tell us what specific Puppy version you are using.

All Puppy versions have two additional SFS packages, you can load, to give you the needed files and programs, to compile software.
devx SFS
kernel sources SFS

Programs like make are in these SFS packages.
Because Puppy loads all of the OS into memory and most of the time, this stuff is not needed.
The SFS packages, allows it to be loaded, only when needed to compile, and then unloaded.

Usually info on where to get them, is in the specific topic, on the specific Puppy version.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Beginners Help”