LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-09-2023, 02:54 AM   #1
rokyo401
LQ Newbie
 
Registered: May 2023
Posts: 3

Rep: Reputation: 0
Question Lock screen but still show desktop - is it possible?


Hi,

I have a (probably) stupid question:

Is it possible (ideally in KDE) to lock the screen (i.e. not accept any inputs unless a username/password is provided) but still show the desktop? I'm not sure if "kiosk-mode" is the right word but that is what comes to mind.

I'm asking because I want to display stats on my monitor (one website and the KDE system monitor) but I don't want anyone to be able to interact with the machine unless they provide a valid username/password combination.

So far, I have not found out if this is possible. When I lock the screen in KDE, it shows the lockscreen (obviously), so I can't see my desktop. What I want is to show my desktop but if someone presses a key or moves the mouse, a password prompt should appear.

Does something like this exist?

Thanks in advance for any answers!
 
Old 05-09-2023, 07:49 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,375
Blog Entries: 28

Rep: Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162
I don't think it is possible. I have mucked about with a number of DEs--certainly all the major ones--and have not yet encountered a lock screen that did in some way blank the monitor or obscure the display.

The purpose of lock screen is not just to prevent others from using the machine, it's also to prevent others from seeing what's on the screen (think of computers in a work environment where confidential information may be on the screen when someone dashes off to lunch).

Just my two thoughts.
 
Old 05-10-2023, 01:06 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,015

Rep: Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340Reputation: 7340
if you want to do that you need to implement a screen saver (which will run while the screen is locked) and display whatever you want.
 
Old 05-10-2023, 10:59 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,619

Rep: Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555
Quote:
Originally Posted by frankbell View Post
I don't think it is possible. I have mucked about with a number of DEs--certainly all the major ones--and have not yet encountered a lock screen that did in some way blank the monitor or obscure the display.

The purpose of lock screen is not just to prevent others from using the machine, it's also to prevent others from seeing what's on the screen
s/The/A/

I can guarantee that it's possible - though I can't say how much work it will take.


rokyo401 - a few things to try:

Perhaps produce a 24-bit PNG with transparency and allocate it as the background image - probably it'll be overlaid on a plain background, but maybe the alpha channel will be applied and it'll continue to show the stuff behind.

Alternatively, if you're ok with compiling code, see what happens if you take a simple locker like slock and make the "lockscreen" function a no-op; it should still lock input, and might not obscure the display.

If all input is via USB and you have remote access to the machine, disabling the USB module in the kernel (modprobe) might be a valid choice.

Or... try xtrlock which aims to do exactly as requested: Lock X display until password supplied, leaving windows visible - the man page mentions issues on Wayland and that "some keyboard shortcuts may also continue to function", so you'll want to thoroughly test it before using it in a context where that matters.

 
Old 05-10-2023, 11:25 AM   #5
rokyo401
LQ Newbie
 
Registered: May 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
The purpose of lock screen is not just to prevent others from using the machine, it's also to prevent others from seeing what's on the screen (think of computers in a work environment where confidential information may be on the screen when someone dashes off to lunch).

Just my two thoughts.
Yes, that's what the lock screen is usually supposed to do. But this is about a machine that displays information that is needed to be seen by several people throughout the day, while these same people are not supposed to be able to interact with the machine or even the website that it displays. Kind of like those LED billboards at bus stations that display arrival times... just as a regular monitor displaying a website (and an app).

I could probably just physically lock the PC in some enclosure and only have the cable for the monitor come out of the enclosure, but the machine also regularly needs to be interacted with by personnel who has the password. Still would make me more comfortable if the machine was also locked in software. :-/
 
Old 05-10-2023, 11:27 AM   #6
rokyo401
LQ Newbie
 
Registered: May 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by boughtonp View Post
s/The/A/

Or... try xtrlock which aims to do exactly as requested: Lock X display until password supplied, leaving windows visible - the man page mentions issues on Wayland and that "some keyboard shortcuts may also continue to function", so you'll want to thoroughly test it before using it in a context where that matters.


The man page sounds pretty much like what I need. I think I remember something like this from an old Solaris maybe. I definitely have seen the cursor turning into a lock somewhere before.... ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GDM3 doesn't lock the screen (show login screen) shogun1234 Linux - Desktop 1 09-07-2021 09:00 PM
Theme problem. How to reset it ? I have tried to change all possible colors, but still the same; when mouse over i still see a black box . andrewysk Linux - Desktop 20 03-07-2021 03:46 PM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
GDM "Lock screen" item fails to lock down. Swan1 SUSE / openSUSE 9 02-03-2009 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration