| Author |
Message |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Wed 06 Jul 2011, 05:41 Post subject:
can a keypress activate the screensaver? [SOLVED] Subject description: to immediately darken screen, using JWM |
|
Can the screensaver be activated by a keypress to blank the screen immediately?
I asked this in the Wary thread, but it mustn't be sufficiently technical to prompt anyone to answer.
Wary doesn't have a MENU entry for the screensaver. I think older puppies did.
Last edited by Shep on Wed 13 Jul 2011, 10:32; edited 1 time in total
|
|
Back to top
|
|
 |
r1tz

Joined: 09 Sep 2010 Posts: 165 Location: In #puppylinux (IRC)
|
Posted: Wed 06 Jul 2011, 05:48 Post subject:
|
|
I'm sure screensaver isn't too hard.
But Im not sure what screen saver wary uses, so i cant help you there.
Instead, let me suggest this:
You could keybind this command to a key
But thats not screensaver you need to key in your password instead of just moving your mouse.
If might be better than a screensaver depending on what you want this keybind for...
Do you use openbox or jwm or icewm or...?
|
|
Back to top
|
|
 |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Wed 06 Jul 2011, 10:38 Post subject:
|
|
I don't need to lock the screen, just want it to go black immediately.
| r1tz wrote: | | Do you use openbox or jwm or icewm or...? |
JWM
|
|
Back to top
|
|
 |
rjbrewer

Joined: 22 Jan 2008 Posts: 4349 Location: merriam, kansas
|
Posted: Wed 06 Jul 2011, 10:58 Post subject:
Re: can a keypress activate the screensaver ? Subject description: to immediately darken screen |
|
| Shep wrote: | Can the screensaver be activated by a keypress to blank the screen immediately?
I asked this in the Wary thread, but it mustn't be sufficiently technical to prompt anyone to answer.
Wary doesn't have a MENU entry for the screensaver. I think older puppies did. |
Screensaver in Wary:
Desktop--pupx set properties of x.
_________________
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Full installs
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Wed 06 Jul 2011, 11:00 Post subject:
|
|
Shep, do you mean you want to go to suspend mode?
The title of your post indicates screensaver.
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Wed 06 Jul 2011, 11:38 Post subject:
|
|
I'd like to make the screen go blank with the press of a key, in addition to it going blank after 10 mins of inactivity. I don't want to suspend processing.
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Wed 06 Jul 2011, 13:34 Post subject:
|
|
So calling the screensaver with a blank image, prepared in advance.
I am not sure however if the back-light is cut-off.
Maybe acpitool has an option for this.
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: Thu 07 Jul 2011, 15:09 Post subject:
|
|
You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):
| Code: | | <Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key> |
_________________ What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
|
|
Back to top
|
|
 |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Fri 08 Jul 2011, 01:18 Post subject:
|
|
| Dougal wrote: | You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):
| Code: | | <Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key> |
|
That file doesn't exist, at the moment. Your Xlock suggestion might be ideal, because I would use its option to not mess with passwords:
| Code: | +/-nolock
The nolock option causes xlock to only draw the patterns and not lock the display. A key press or a mouse click will terminate the screen saver. |
I just want to blank the computer screen so I can more easily view the tv screen over the top of it.
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10816 Location: The Peoples Republic of California
|
Posted: Fri 08 Jul 2011, 01:33 Post subject:
|
|
Shep,
I think I had a little problem along activating a screen blank with a key press. I think I worked around it with a script and sleep for a split fraction of a second.
Bruce
~
_________________ New! Puppy Linux Links Page
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: Sat 09 Jul 2011, 15:11 Post subject:
|
|
| Shep wrote: | | Dougal wrote: | You probably want to create a JWM keybinding to run the xlock command.
For example, Alt+Esc (this goes in ~/.jwm/jwmrc-personal):
| Code: | | <Key mask="A" key="Esc">xlock `cat /root/.config/Xlock/xlockscreenparams`</Key> |
|
That file doesn't exist, at the moment. |
That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).
You should look in ~/.jwmrc for Include lines like: | Code: | | <Include>/root/.jwm/jwmrc-personal</Include> |
which should tell you where it is... (you could just add the keybinding to jwmrc, but it will disappear when it gets regenerated)
_________________ What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
|
|
Back to top
|
|
 |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Sun 10 Jul 2011, 11:16 Post subject:
|
|
| Dougal wrote: | That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).
You should look in ~/.jwmrc for Include lines like: | Code: | | <Include>/root/.jwm/jwmrc-personal</Include> |
|
There is no /root/.jwmrc
The only files in /root/.jwm are jwm_colors jwmrc-personal jwmrc-personal2 jwmrc-theme themes
There are no hidden files. The two personal files seem identical.
| Code: | # find / -name 'xlockscreenparams'
# |
When I put your alt esc idea into one of the personal files, it doesn't fire off xlock. When in a console the ALT-ESC combo produces:
| Code: | | display all 1493 possibilities? (y or n) |
Last edited by Shep on Sun 10 Jul 2011, 11:26; edited 1 time in total
|
|
Back to top
|
|
 |
Shep
Joined: 08 Nov 2008 Posts: 840 Location: GIRT-BY-SEA
|
Posted: Sun 10 Jul 2011, 11:19 Post subject:
|
|
To specify a control key, do I use "C"? Is shift "S"?
What about the windows key, how do I specify it?
|
|
Back to top
|
|
 |
r1tz

Joined: 09 Sep 2010 Posts: 165 Location: In #puppylinux (IRC)
|
Posted: Sun 10 Jul 2011, 13:25 Post subject:
|
|
For the windows key, it should be mod4
so you can use the number 4 like:
<Key mask="4"
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: Mon 11 Jul 2011, 08:58 Post subject:
|
|
| Shep wrote: | | Dougal wrote: | That's strange... if JWM is used that file should exist since it's what the configuration utility changes (and has some default settings).
You should look in ~/.jwmrc for Include lines like: | Code: | | <Include>/root/.jwm/jwmrc-personal</Include> |
|
There is no /root/.jwmrc
The only files in /root/.jwm are jwm_colors jwmrc-personal jwmrc-personal2 jwmrc-theme themes
There are no hidden files. The two personal files seem identical. |
Well, the "personal" files are what I mentioned in the first place: that's where you add the new keybinding.
If there's no /root/.jwmrc then you must not be using JWM...
| Quote: | | Code: | # find / -name 'xlockscreenparams'
# |
When I put your alt esc idea into one of the personal files, it doesn't fire off xlock. When in a console the ALT-ESC combo produces:
| Code: | | display all 1493 possibilities? (y or n) |
|
The xlockscreenparams file is created when you configure xlock... I just looked at Barry's xlock_gui package and it still seems to use it.
_________________ What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
|
|
Back to top
|
|
 |
|