xload empty at sleep start-5min-end>> xload = 2 white lines

Booting, installing, newbie
Post Reply
Message
Author
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

xload empty at sleep start-5min-end>> xload = 2 white lines

#1 Post by mmmrr »

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
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hi.

Open a terminal and type

Code: Select all

xload --help
This 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:

Code: Select all

xload -geometry 64x32-100-100 -nolabel -scale 3 -hl wheat -bg black -fg orange -update 1
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:
<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
The meanings are as follows:
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
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:

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)
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#3 Post by mmmrr »

thanks musher,
just saw yr reply when i checked the post;
though i checked the notify me of reply it
did not happen...
i will have time in a few hours to follow yr trail,
right now it's chores for me.
cheers, mm
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

mmmrr, is this the first time you've not received an email, or have you never received one?

You're running Precise Puppy from a multisession DVD in an iMac?
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#5 Post by mmmrr »

hi flash,
a few years ago i didn't get notification emails on another topic
but usually i have received them. i didn't receive notification that
i had received a private message on this topic, i saw that info when
i logged in.

precise pup571 from a multisession DVD in an iMac, precisely

cheers, mm
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

:?
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#7 Post by mmmrr »

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
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

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:

Code: Select all

cp -f /root/.jwmrc-tray.bak /root/.jwmrc-tray
OR
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
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?
Type

Code: Select all

jwm -v
to 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.
Issuing

Code: Select all

jwm -restart
in a terminal is enough for jwm to recycle itself.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#9 Post by mmmrr »

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
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

hi flash, notification issue solved

#10 Post by mmmrr »

hi flash,
notification issue solved.
i forgot to make sure that
the email service was putting
puppyforum items in the right place.
cheers, mm
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#11 Post by musher0 »

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
Thank you for the report, mmr!

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
(That will be jwm's own back-up. Now that it's done, don't touch it!) :)

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
AND
4) restart -jwm

Code: Select all

jwm -restart
Now for the specifics:
-- open /root/.jwmrc-tray.new for edit

Code: Select all

geany /root/.jwmrc-tray.new &
-- if you like to have to jwm panel on top, go to the first line and change
(back in a minute, I have to be in jwm to better explain)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#12 Post by musher0 »

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:
<Tray autohide="false" insert="left" x="0" y="-1" halign="center"
and change the y definition to y="0". That will put the jwm panel on top of
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:
<Swallow name="xload" width="56">
xload -nolabel -scale 3 -hl wheat -bg black -fg orange -update 2
</Swallow>
First you change the width to your liking. I put mine
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
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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#13 Post by mmmrr »

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
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#14 Post by musher0 »

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:
<Tray autohide="true" insert="left" x="0" y="-1" halign="center" border="2" height="34" >
"halign" means "horizontal alignment". It's explained here:
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)
User avatar
mmmrr
Posts: 184
Joined: Tue 03 Mar 2009, 05:26
Location: vancouver island, canada

#15 Post by mmmrr »

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
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#16 Post by musher0 »

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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Post Reply