SliTaz SliTaz Forum

You are not logged in.

#1 2012-01-19 15:18:29

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Lock the desktop

Is there a package or applet I can install to lock the desktop once I am already logged on? I havent found anything yet.

Offline

#2 2012-01-19 15:26:42

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

Technically you can use xlockmore to do this, but you'll have to manually enter the command everytime you want to lock it. I'm looking into xautolock combined with xlockmore to help make a smaller screensaver/desktop locker package (compared to xscreensaver).

Offline

#3 2012-01-19 15:50:35

Raphael
Member
Registered: 2011-06-12
Posts: 109

Re: Lock the desktop

without a screensaver desktop

u can test

xtrlock

A very minimal X display lock program

Description:     It uses nothing except the Xlib library. Note that xtrlock currently does not work with shadow passwords. There is also no support for X resources or command-line arguments, and the timeouts and cursor bitmaps and colours cannot be modified.

screenshot here:

http://screenshots.debian.net/thumbnail-with-version//xtrlock/2.0-14

Offline

#4 2012-01-20 14:52:15

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

Here's a solution that might work.

First, download http://www.trixarian.net/downloads/xautolock-2.1.tazpkg and install it using tazpkg install. It should grab xlockmore as it goes.

Now got to "Red Spider Menu"---> Preference---> Auto started applications and click on the Configuration button. Add the following line to the bottom:

[c]xautolock -time 10 -locker "xlock -mousemotion -background black -foreground red" &[/c]

You can change the background and foreground to whatever colours that you want. And you can test it out by running the [c]xlock -mousemotion -background black -foreground red[/c] manually from the terminal. It will use your default login password while locking. You can also pick the screensaver you want with -mode "screensaver name", for example -mode matrix gives you a nice matrix looking screensaver. Adding all that in, the line you add to auto started applications will look like this:

[c]xautolock -time 10 -locker "xlock -mousemotion -background black -foreground red -mode matrix" &[/c] and the one you use to test will look like this: [c]xlock -mousemotion -background black -foreground red -mode matrix[/c]

You will need to restart for it to take full effect and it will lock the screen after 10 minutes of inactivity. You can force it to go into lock by typing [c]xautolock -locknow[/c] from a terminal.

Hope that helps wink

Offline

#5 2012-01-20 21:47:08

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

Thanks Trixar_za, That works great! Now I can walk away from the pc at work and not worry about it.

Offline

#6 2012-01-30 20:10:19

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

Trixar, It works great but not all the screensavers work on my HP NC8230, it has a decent enough video card, what isnt loaded to display these screensaverS?

Offline

#7 2012-01-30 20:20:49

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

Probably because they need the mesa packages (OpenGL driver) installed and configured into the xorg.conf file. I also noticed that the screen blanking still comes on after a while even with the screensaver running tongue

Offline

#8 2012-02-01 15:43:20

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

Well two things than, Can you tell me what packages I need for Open GL and how to configure them in xorg.conf?   And as far as screen blanking, thats not completely a bad thing.. What is the setting to configure the screen blanking time out, or is there one?

Im not opposed to having it go dark after 20 to 30 minutes.

Offline

#9 2012-02-02 01:12:47

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Lock the desktop

I didnt have time to try it yet so apologies if this supports that:

I would love to be able to relog to another user from the lock screen without unlogging the prior user (ie, be able to switch between users).

what would be the best way to do that ?

thanks

Offline

#10 2012-02-03 14:15:28

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

Trixar_za,

can you provide info on integrating the mesa packages into xorg.conf?

thanks

-Verault

Offline

#11 2012-02-03 21:54:28

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

This should tell you what to add to xorg.conf : http://vanilla.slitaz.org/index.php?p=/discussion/comment/11431#Comment_11431

As for the screen blanking, there is -enablesaver and -resetsaver fyou can use with the xlock, so it will probably look like this in Auto Started Applications:

[c]xautolock -time 10 -locker "xlock -mousemotion -background black -foreground red -enablesaver -resetsaver" &[/c]

Haven't tried it myself yet, but it should work tongue

Offline

#12 2012-02-04 08:41:31

erjo
Administrator
Registered: 2011-03-28
Posts: 86

Re: Lock the desktop

@Trixar: Why not push your receipt into the wok ?

Offline

#13 2012-02-04 11:31:14

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

@erjo It's a debian convert, so not sure if it would work in wok or not.

Offline

#14 2012-02-07 13:17:33

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

I am getting glxinfo: not found

my card is a ATI Technologies inc M24 1P [Radeon Mobility X600]

What modules am I missing?

Offline

#15 2012-02-07 14:02:57

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Lock the desktop

http://mirror.slitaz.org/pkgs/search.sh?file=glxinfo says :

# tazpkg get-install mesa-infos

Offline

#16 2012-02-07 16:31:17

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

The link point to mesa-demos

I will install that. since I cannot find mesa-info

Offline

#17 2012-02-07 16:38:48

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: Lock the desktop

You also have 2 other minimalist X display locker in the repo:

slock

lockdis

Both can be started via a standard *.desktop file or the cmdline. A receipt for xautolock would be welcome :-)

Offline

#18 2012-02-11 10:09:32

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Lock the desktop

Just had a look at them and here's my thoughts:

slock - I didn't like it that much. It just blanked my screen and waited for me to type my password in without any indication that I was doing it right hmm

lockdis - Now lockdis I liked. You set a password for it using [c]lockdis -p[/c] and then use [c]lockdis[/c] to lock it with a blank screen. When you type anything, a nice graphical screen pops up and you can see masked letters as you type. Using this with xautolock and you have a pretty clean locking system that looks great.

Offline

#19 2013-01-25 18:06:53

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Lock the desktop

How do I change the timeout settings for powersave when my lcd screen goes to sleep to give me more time, so I can view the screensaver for a period of time rather than turning off the screen?

Offline

#20 2013-01-25 19:46:23

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Lock the desktop

Xscreensaver has it's own DPMS settings

Troubleshooting / xscreensaver DPMS =>     ~/.xscreensaver

https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]