LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: I use
xscreensaver 41 89.13%
xlockmore 5 10.87%
Voters: 46. You may not vote on this poll

Reply
  Search this Thread
Old 11-16-2019, 05:57 PM   #31
rjj
LQ Newbie
 
Registered: Mar 2016
Location: Portugal
Distribution: Slackware64
Posts: 25

Rep: Reputation: Disabled

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

--
RJesus
 
1 members found this post helpful.
Old 11-18-2019, 01:09 PM   #32
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You should know that, well, the routines and API calls used by MPlayer, SDL, and other full-screen apps and games to suspend the screensaver when they're running? They don't work on xscreensaver. They do work on xlockmore.

I worked out the technical information here:

https://www.linuxquestions.org/quest...9/#post6033039

Last edited by dugan; 11-18-2019 at 05:34 PM.
 
1 members found this post helpful.
Old 11-18-2019, 04:37 PM   #33
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by dugan View Post
They don't work on xscreensaver. They do work on xlockmore.
VLC (at least the alien-compiled version I'm using) does work on xscreensaver.
For MPlayer I use a custom script to invoke it which surrounds the actual call with
Code:
xdg-screensaver suspend $WINDOWID
MPlayer <options> <filename(s)>
xdg-screensaver resume $WINDOWID
Does work rather well.
 
1 members found this post helpful.
Old 04-03-2020, 09:30 AM   #34
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
xlock boinc

Well just went to xlockmore from xscreensaver.

Due to covid-19, I decided to run BOINC on my laptop (on the server for a while) and I noticed between that and xscreensaver the CPU Temp spikes, even when using a blank screen.

I found this xidle/github.com and using that along with xlock (mode=blank) uses hardly any cpu cycles. The temp is higher than normal, but at least I cannot fry an egg on the CPU now
 
Old 04-03-2020, 09:37 AM   #35
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
xlockmore though.. I'd like a way to disable CTRL+ALT+BACKSPACE which can bypass X altogether when xlock is running.
 
Old 04-03-2020, 10:18 AM   #36
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Quote:
Originally Posted by tramtrist View Post
I'd like a way to disable CTRL+ALT+BACKSPACE which can bypass X altogether when xlock is running.
slock documents how to do this in its manpage

Code:
SECURITY CONSIDERATIONS
     To make sure a locked screen can not be bypassed by switching VTs or
     killing the X server with Ctrl+Alt+Backspace, it is recommended to dis‐
     able both in xorg.conf(5) for maximum security:

     Section "ServerFlags"
             Option "DontVTSwitch" "True"
             Option "DontZap"      "True"
     EndSection
 
1 members found this post helpful.
Old 04-03-2020, 12:35 PM   #37
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Thanks Flinch .. my understand is that will disable it completely. I'd only like to disable it while running the screensaver
I do use ctrl+alt+backspace out of habit after all these years legitimately sometimes...
 
Old 04-03-2020, 05:09 PM   #38
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Quote:
Originally Posted by tramtrist View Post
my understand is that will disable it completely. I'd only like to disable it while running the screensaver
I don't know if it's possible to change settings like this when Xorg is already running. I won't dare to claim it's not, but if it is and screensavers aren't doing it, isn't this a security flaw that's going for decades?

Quote:
Originally Posted by tramtrist View Post
I do use ctrl+alt+backspace out of habit after all these years legitimately sometimes...
Isn't hitting Ctrl-Alt-Backspace pretty much the same as doing `killall Xorg` in a console?
 
Old 04-03-2020, 05:16 PM   #39
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Ah that's true.. Maybe I'll do that.
 
Old 04-07-2020, 12:52 AM   #40
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I've been using plain old xlock since the 1990's.

In recent years I've wrapped an "xlament" shell script around it so I don't have to remember all the command line options, and I also added some killall commands to suspend/restore select processes while my system is locked:

Quote:
#!/bin/sh
killall -STOP dosbox freeciv-gtk3 freeciv-server palemoon
/usr/X11/bin/xlock -mode lament -display :0 -erasemode no_fade
killall -CONT dosbox freeciv-gtk3 freeciv-server palemoon
Am I missing anything by not using something more recent?
 
1 members found this post helpful.
Old 04-07-2020, 08:52 AM   #41
redneonglow
Member
 
Registered: Feb 2020
Location: PA
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 24
xscreensaver with Electric Sheep.
 
1 members found this post helpful.
Old 04-07-2020, 01:41 PM   #42
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by redneonglow View Post
xscreensaver with Electric Sheep.
Me too!
 
1 members found this post helpful.
Old 04-07-2020, 01:57 PM   #43
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Another vote for slock.
 
Old 04-07-2020, 01:59 PM   #44
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Quote:
Originally Posted by ttk View Post
I also added some killall commands to suspend/restore select processes while my system is locked
What's the exact implication of doing this? System using less CPU, thus computer using less power when locked?
 
Old 04-07-2020, 02:37 PM   #45
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by FlinchX View Post
What's the exact implication of doing this? System using less CPU, thus computer using less power when locked?
Yes, that's most of it. My laptop draws less power and generates less heat. Heat was less of an issue with my T530, but this new P73 runs a lot hotter, even with the CPU speed throttled.

Also, SIGSTOP'ing the browser helps stave off memory leaks. Pale Moon is a lot better about not leaking memory than Firefox, but it still happens a bit.

It makes locking my system a sort of half-way suspend, without the risks or overhead of suspend. All of the processes which would consume measurable CPU are denied CPU quanta by the kernel until SIGCONT is sent, so there's nothing going on.
 
1 members found this post helpful.
  


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
[SOLVED] slackware-current: xlockmore-5.51 broken marrowsuck Slackware 6 07-20-2017 04:28 AM
Can we have a chance to get one day, back, xlockmore into the debian stable? frenchn00b Debian 0 06-13-2009 12:40 AM
Xlockmore on FreeBSD mobydick *BSD 0 12-23-2008 01:22 PM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 01:06 PM
xlockmore locking up system php Slackware 2 06-26-2004 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:25 PM.

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