xload empty at sleep start-5min-end>> xload = 2 white lines
xload empty at sleep start-5min-end>> xload = 2 white lines
hello folks,
when the compu resumed from sleep
it showed 2 white lines in the xload window.
when i slept it five minutes before, the xload
window was empty.
after waking, it took five minutes to
for the xload to drop to the thin red line
at the bottom of the display.
this has been going on for weeks, ie. not critical
but i'd to know what is going on in that sleep:
really busy dreams that the electrons
are having....
i'm running a live dvd of precise puppy 5.7.1,
saving back to the dvd. on a desktop imac.
it's been great fun running that puppy on this track:
Model Identifier:................ iMac7,1
Processor Name:...............Intel Core 2 Duo
Processor Speed:.............. 2.4 GHz
Number Of Processors:....1
Total Number Of Cores:... 2
L2 Cache:.......... 4 MB
Memory:.............. 3 GB
it's connected wirelessly by lan/cable modem
cheers, mm
when the compu resumed from sleep
it showed 2 white lines in the xload window.
when i slept it five minutes before, the xload
window was empty.
after waking, it took five minutes to
for the xload to drop to the thin red line
at the bottom of the display.
this has been going on for weeks, ie. not critical
but i'd to know what is going on in that sleep:
really busy dreams that the electrons
are having....
i'm running a live dvd of precise puppy 5.7.1,
saving back to the dvd. on a desktop imac.
it's been great fun running that puppy on this track:
Model Identifier:................ iMac7,1
Processor Name:...............Intel Core 2 Duo
Processor Speed:.............. 2.4 GHz
Number Of Processors:....1
Total Number Of Cores:... 2
L2 Cache:.......... 4 MB
Memory:.............. 3 GB
it's connected wirelessly by lan/cable modem
cheers, mm
Hi.
Open a terminal and typeThis way you can see the various settings available for xload.
Now for a standalone xload (meaning: it will have its own window), you
can try this, again from terminal:Please note the "update" setting at 1 second. That's probably the fishy
setting in your xload that's causing the quirk you reported.
Now to get xload working in your jwm bar, please open the .jwmrc-tray
file in /root. That's the parameters file for the jwm tray.
Find the "xload" command (should be between the end and 3/4 of the file.)
See if the update setting has an unusually high number. Should be at 1 or
2, 3 maximum, I'd say, to remain meaningful.
If you don't have any entry for xload in the /root/.jwmrc-tray file, here's
one to fiddle with or copy/paste from:
xload : the executable
-nolabel : as the name implies (we don't want to show the label in a
cramped space such as the jwm bar)
-scale 3 : the vertical space will be divided in three parts by two lines.
-update 2 : xload checks the system every two seconds.
-hl wheat : color of the division (highlight) lines
-bg black : color of background
-fg orange : color of foreground (this color is the indicator)
These colors will provide a good contrast between themselves. But you
may want to change them to fit your GTK and jwm themes.
(You'll find a list of ready-made colors that the system recognizes in file
/usr/share/X11/rgb.txt. You should have a link of that file as
/root/.rgb.txt, so the gcolor2 utility can read the colors when you click on
the "show saved colors" arrow.)
I hope this helps.
~~~~~~~~~~~~
bash code for pic below:You may want to have a link to the above script in your
/root/Startup directory.
Definition of xload in icewm's /root/.icewm/winoptions file would be set
as follows to hide its title bar:
Open a terminal and type
Code: Select all
xload --help
Now for a standalone xload (meaning: it will have its own window), you
can try this, again from terminal:
Code: Select all
xload -geometry 64x32-100-100 -nolabel -scale 3 -hl wheat -bg black -fg orange -update 1
setting in your xload that's causing the quirk you reported.
Now to get xload working in your jwm bar, please open the .jwmrc-tray
file in /root. That's the parameters file for the jwm tray.
Find the "xload" command (should be between the end and 3/4 of the file.)
See if the update setting has an unusually high number. Should be at 1 or
2, 3 maximum, I'd say, to remain meaningful.
If you don't have any entry for xload in the /root/.jwmrc-tray file, here's
one to fiddle with or copy/paste from:
The meanings are as follows:<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
xload : the executable
-nolabel : as the name implies (we don't want to show the label in a
cramped space such as the jwm bar)
-scale 3 : the vertical space will be divided in three parts by two lines.
-update 2 : xload checks the system every two seconds.
-hl wheat : color of the division (highlight) lines
-bg black : color of background
-fg orange : color of foreground (this color is the indicator)
These colors will provide a good contrast between themselves. But you
may want to change them to fit your GTK and jwm themes.
(You'll find a list of ready-made colors that the system recognizes in file
/usr/share/X11/rgb.txt. You should have a link of that file as
/root/.rgb.txt, so the gcolor2 utility can read the colors when you click on
the "show saved colors" arrow.)
I hope this helps.
~~~~~~~~~~~~
bash code for pic below:
Code: Select all
#!/bin/sh
# xload.sh
####
if [ "`cat /etc/windowmanager`" = "icewm" ];then
if [ "`pidof -s xload`" ];then
kill "`pidof -s xload`" >/dev/null 2>&1
sleep 0.5s
else
GeoM="geometry 150x40-111-50"
# ColoR="hl azure4 -bg "#193031" -fg AliceBlue"
# ColoR="hl wheat -bg black -fg orange"
ColoR="hl wheat -bg "#331209" -fg "#E89661""
xload -$GeoM -$ColoR -nolabel -scale 3 -update 1 &
fi
fi
/root/Startup directory.
Definition of xload in icewm's /root/.icewm/winoptions file would be set
as follows to hide its title bar:
Code: Select all
xload.dBorder: 1
xload.dTitleBar: 0
xload.allWorkspaces: 1
xload.ignoreTaskBar: 1
- Attachments
-
- xload_under_icewm_with_bmpanel2_2016-10-07.jpg
- (3.96 KiB) Downloaded 329 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
hi musher,
looked at xload --help
looked at the standalone xload
inserted:
<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
into ~/.jwmrc
on restart the right hand end of the tray, from the freememory
icon on was missing: xload, date, time gone.
tried restart jwm, tried restartx
commented out lines i'd inserted &
restarted from prompt, reran xorgwixard
all to no avail. cheers, mm
full reboot does not restore missing elements
looked at xload --help
looked at the standalone xload
inserted:
<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
into ~/.jwmrc
on restart the right hand end of the tray, from the freememory
icon on was missing: xload, date, time gone.
tried restart jwm, tried restartx
commented out lines i'd inserted &
restarted from prompt, reran xorgwixard
all to no avail. cheers, mm
full reboot does not restore missing elements
Ah.
I can't remember which version of jwm does that.
It "kills" its config file rather than let it be edited...
Anyway, before you change to another window manager
(ahem; icewm or pekwm for example!) ,
see if file /root/.jwmrc-tray.bak is bigger than 0 byte. If so, try
copying this back-up file as the original. In terminal, that's:OR
There's an "absolute" back-up of the system files in /initrd/pup_ro2/, etc.
So you could copy from there, like so:
You can edit your .jwmrc-tray file again but this time make a local copy
(in /root) with the ending .new. So you won't have the very same
trouble again.
(With this version of jwm, you will, partially, have the same trouble, but
at least you won't have to go fetch a replacement file in Timboctoo.
Speaking of jwm versions, perhaps install a more recent version of it?
Typeto get the version number. I have jwm version 2.2.2 on my Puduan pup
and it's working fine.)
Finally, you do not have to do a full system reboot to restart jwm.
Issuingin a terminal is enough for jwm to recycle itself.
IHTH.
I can't remember which version of jwm does that.
It "kills" its config file rather than let it be edited...
Anyway, before you change to another window manager
(ahem; icewm or pekwm for example!) ,
see if file /root/.jwmrc-tray.bak is bigger than 0 byte. If so, try
copying this back-up file as the original. In terminal, that's:
Code: Select all
cp -f /root/.jwmrc-tray.bak /root/.jwmrc-tray
There's an "absolute" back-up of the system files in /initrd/pup_ro2/, etc.
So you could copy from there, like so:
Code: Select all
cp -f /initrd/pup_ro2/root/.jwmrc-tray /root/.jwmrc-tray
(in /root) with the ending .new. So you won't have the very same
trouble again.
(With this version of jwm, you will, partially, have the same trouble, but
at least you won't have to go fetch a replacement file in Timboctoo.
Speaking of jwm versions, perhaps install a more recent version of it?
Type
Code: Select all
jwm -v
and it's working fine.)
Finally, you do not have to do a full system reboot to restart jwm.
Issuing
Code: Select all
jwm -restart
IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
no file /root/.jwmrc-tray.bak
copied from /initrd
copied at /root as .new
# jwm -v
JWM vgit-819 by Joe Wingbermuehle
compiled options: fribidi icons jpeg nls png shape svg xft xinerama xpm xrender
system configuration: /etc/system.jwmrc
#
i didn't think that more than a jwm restart
was required. it's just that i have known a
full reboot to resolve an issue, occasionally,
so i tend to give it a try.
hah, now the whole taskbar has vanished
no, there it is at the bottom of the screen
of course the initrd file does not have my mods:
i prefer looking up to the top of the screen
all previous tray elements are there.
file from /initr lacks -update,
ergo fresh /root/.jwmrc-tray lacks -update also.
how do i add -update# without banjaxing the tray
again?
thanks for the useful words, musher.
chow, cheers, mm
copied from /initrd
copied at /root as .new
# jwm -v
JWM vgit-819 by Joe Wingbermuehle
compiled options: fribidi icons jpeg nls png shape svg xft xinerama xpm xrender
system configuration: /etc/system.jwmrc
#
i didn't think that more than a jwm restart
was required. it's just that i have known a
full reboot to resolve an issue, occasionally,
so i tend to give it a try.
hah, now the whole taskbar has vanished
no, there it is at the bottom of the screen
of course the initrd file does not have my mods:
i prefer looking up to the top of the screen
all previous tray elements are there.
file from /initr lacks -update,
ergo fresh /root/.jwmrc-tray lacks -update also.
how do i add -update# without banjaxing the tray
again?
thanks for the useful words, musher.
chow, cheers, mm
hi flash, notification issue solved
hi flash,
notification issue solved.
i forgot to make sure that
the email service was putting
puppyforum items in the right place.
cheers, mm
notification issue solved.
i forgot to make sure that
the email service was putting
puppyforum items in the right place.
cheers, mm
Thank you for the report, mmr!mmmrr wrote:no file /root/.jwmrc-tray.bak
copied from /initrd
copied at /root as .new
# jwm -v
JWM vgit-819 by Joe Wingbermuehle
compiled options: fribidi icons jpeg nls png shape svg xft xinerama xpm xrender
system configuration: /etc/system.jwmrc
#
i didn't think that more than a jwm restart
was required. it's just that i have known a
full reboot to resolve an issue, occasionally,
so i tend to give it a try.
hah, now the whole taskbar has vanished
no, there it is at the bottom of the screen
of course the initrd file does not have my mods:
i prefer looking up to the top of the screen
all previous tray elements are there.
file from /initr lacks -update,
ergo fresh /root/.jwmrc-tray lacks -update also.
how do i add -update# without banjaxing the tray
again?
thanks for the useful words, musher.
chow, cheers, mm
Maybe we can get somewhere from here.
What I'd suggest as general procedure -- because jwm is fussy about
editing its config file directly -- is:
1) copy /root/.jwmrc-tray to /root/.jwmrc-tray.bak
Code: Select all
cp -f /root/.jwmrc-tray /root/.jwmrc-tray.bak
2) do your edits in your own personal back-up, the file
/root/.jwmrc-tray.new
3) when you're done, copy that to /root/.jwmrc-tray
Code: Select all
cp /root/.jwmrc-tray.new /root/.jwmrc-tray
4) restart -jwm
Code: Select all
jwm -restart
-- open /root/.jwmrc-tray.new for edit
Code: Select all
geany /root/.jwmrc-tray.new &
(back in a minute, I have to be in jwm to better explain)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Ok, I'm back!
To pick up where I left off:
> -- if you like to have the jwm panel on top, go to the first line...
the one that starts with:
your screen.
-- now search for the word "xload" in the file
it's probably from 3/4 to the end of the file. Typically, it looks like this:
at 56 pixels, but I think the original has "32".
The colors in my example are as in my previous post, but you can change
them. Just make sure the colors have good contrast between themselves,
in particular between the background (-bg) and foreground (-fg). Maybe
that's one reason you don't see the color indicator: if it does not have
good contrast with the background, you won't see it clearly.
The -scale setting: if you want three parts and two lines, put
-scale 3
if you want four parts and three lines, put
-scale 4 (and so on).
You can add the -update setting at the end of the line. (You can put it
anywhere on the line, but I think it's clearer that way.)
I like
-update 2 # (every two seconds)
It's not too fast and not too slow. It's fast enough for human reaction if
something goes wrong, but slow enough that it doesn't take very much
system resources under normal operation.
Once you are satisfied with your changes, save your own config file
/root/.jwmrc-tray.new and exit geany.
Now to outfox jwm, so it won't zap its new config file,
from a terminal opened in /root, type:
You should now have your jwm panel as you want it, at the top of the
screen, plus a clear contrasted line on the jwm panel to indicate your
system load -- a thick or thin line, as you advance in your Puppy session,
depending on what you are doing. (Browsers take typically more
resources, so the xload indicator line will get thicker while you are
browsing the Internet, for example.)
IHTH.
To pick up where I left off:
> -- if you like to have the jwm panel on top, go to the first line...
the one that starts with:
and change the y definition to y="0". That will put the jwm panel on top of<Tray autohide="false" insert="left" x="0" y="-1" halign="center"
your screen.
-- now search for the word "xload" in the file
it's probably from 3/4 to the end of the file. Typically, it looks like this:
First you change the width to your liking. I put mine<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
at 56 pixels, but I think the original has "32".
The colors in my example are as in my previous post, but you can change
them. Just make sure the colors have good contrast between themselves,
in particular between the background (-bg) and foreground (-fg). Maybe
that's one reason you don't see the color indicator: if it does not have
good contrast with the background, you won't see it clearly.
The -scale setting: if you want three parts and two lines, put
-scale 3
if you want four parts and three lines, put
-scale 4 (and so on).
You can add the -update setting at the end of the line. (You can put it
anywhere on the line, but I think it's clearer that way.)
I like
-update 2 # (every two seconds)
It's not too fast and not too slow. It's fast enough for human reaction if
something goes wrong, but slow enough that it doesn't take very much
system resources under normal operation.
Once you are satisfied with your changes, save your own config file
/root/.jwmrc-tray.new and exit geany.
Now to outfox jwm, so it won't zap its new config file,
from a terminal opened in /root, type:
Code: Select all
cp -f /root/.jwmrc-tray.new /root/.jwmrc-tray # and then:
jwm -restart
screen, plus a clear contrasted line on the jwm panel to indicate your
system load -- a thick or thin line, as you advance in your Puppy session,
depending on what you are doing. (Browsers take typically more
resources, so the xload indicator line will get thicker while you are
browsing the Internet, for example.)
IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
hi musher:
in /.jwmrc-tray, i have:
<Tray autohide="false" insert="right" x="0" y="0" border="1" height="28" >
instead of:
<Tray autohide="false" insert="left" x="0" y="-1" halign="center"
as in yr post; which adds 'halign="center" ' also does matter that ' >'
is not at the end of the line in yr post?
created:
<Swallow name="xload" width="56"> # left at 32 in case previous panel upset
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
changed y=-1 to y=0 in first line
rebooted:
panel still at bottom of screen but all there, xload in yr colours.
/.jwmrc-tray persists with y=0 despite repeated attempts by tray.new
to copy y=-1 using yr code.
eventually i reset panel via jwm config gui from desktop.
cheers, mm
in /.jwmrc-tray, i have:
<Tray autohide="false" insert="right" x="0" y="0" border="1" height="28" >
instead of:
<Tray autohide="false" insert="left" x="0" y="-1" halign="center"
as in yr post; which adds 'halign="center" ' also does matter that ' >'
is not at the end of the line in yr post?
created:
<Swallow name="xload" width="56"> # left at 32 in case previous panel upset
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
changed y=-1 to y=0 in first line
rebooted:
panel still at bottom of screen but all there, xload in yr colours.
/.jwmrc-tray persists with y=0 despite repeated attempts by tray.new
to copy y=-1 using yr code.
eventually i reset panel via jwm config gui from desktop.
cheers, mm
Hello, mmmr.
The ">" does matter on the line I mentioned, but I only gave the first part
of the line to help you find it in the file.
Here is the complete line that I have in my .jwmrc-tray file:
https://joewing.net/projects/jwm/config.shtml
under the "Trays" section.
halign="center" means that the panel will develop in both directions
horizontally from the middle (center) instead of developing from the left
side or from the right side.
With the y="-1" setting, the jwm panel will be at the bottom of the screen;
with y="0", the jwm panel should be at the top.
I am not sure why your panel stays at the bottom. Can you "quote" your
.jwmrc-tray file in a post below? The full text of the file may give a better
idea of what is missing (or not).
You say that later you used the gui utility for configuration? Did that
restore the panel to the top?
~~~~~~~
The border and the height in the line above are my customizations. You
can ignore them and leave the defaults. I like my jwm panel to be a bit
bigger than standard.
~~~~~~~
At least the xload now shows properly!
BFN.
The ">" does matter on the line I mentioned, but I only gave the first part
of the line to help you find it in the file.
Here is the complete line that I have in my .jwmrc-tray file:
"halign" means "horizontal alignment". It's explained here:<Tray autohide="true" insert="left" x="0" y="-1" halign="center" border="2" height="34" >
https://joewing.net/projects/jwm/config.shtml
under the "Trays" section.
halign="center" means that the panel will develop in both directions
horizontally from the middle (center) instead of developing from the left
side or from the right side.
With the y="-1" setting, the jwm panel will be at the bottom of the screen;
with y="0", the jwm panel should be at the top.
I am not sure why your panel stays at the bottom. Can you "quote" your
.jwmrc-tray file in a post below? The full text of the file may give a better
idea of what is missing (or not).
You say that later you used the gui utility for configuration? Did that
restore the panel to the top?
~~~~~~~
The border and the height in the line above are my customizations. You
can ignore them and leave the defaults. I like my jwm panel to be a bit
bigger than standard.
~~~~~~~
At least the xload now shows properly!
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
hi musher,
thanks for the reply.
i used desktop > jwm to put taskbar at top.
it worked, as it has done before and no doubt will again.
perhaps i was unclear at the beginning:
i was not having a problem with xload.
i was and am curious about why xload
was displaying such a level of activity
when the compu was called from sleep.
a sleep lasting 5 min. with virtually no
activity displyed by xload.
cheers, mm
thanks for the reply.
i used desktop > jwm to put taskbar at top.
it worked, as it has done before and no doubt will again.
perhaps i was unclear at the beginning:
i was not having a problem with xload.
i was and am curious about why xload
was displaying such a level of activity
when the compu was called from sleep.
a sleep lasting 5 min. with virtually no
activity displyed by xload.
cheers, mm
It's like anything that doesn't have a momentum. It's physics.
It takes a lot of energy to set something static in motion, to give it
momentum, to make it dynamic.
When we wake up in the morning. Or when you give the hockey puck its
initial impulse with your stick. Giving the first push to your bike or starting
your car are other examples.
After that, all those things or bodies ( ) have momentum and get easier
to move. Until they lose their momentum of course, and you have to restart
them again.
My 2 ¢. BFN.
It takes a lot of energy to set something static in motion, to give it
momentum, to make it dynamic.
When we wake up in the morning. Or when you give the hockey puck its
initial impulse with your stick. Giving the first push to your bike or starting
your car are other examples.
After that, all those things or bodies ( ) have momentum and get easier
to move. Until they lose their momentum of course, and you have to restart
them again.
My 2 ¢. BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)