refresh X instead of restart X - PET

Core libraries and systems
Post Reply
Message
Author
big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

refresh X instead of restart X - PET

#1 Post by big_bass »

refresh your X11 instead of restarting it

this way you dont lose what you have on the screen opened when you want to refresh 8)

http://www.puppy2.org/slaxer/xrefresh-1 ... 6-slxr.pet

just click on the refresh-X

simple and very small its so fast don't blink :D


updated 8-13-09
Last edited by big_bass on Fri 14 Aug 2009, 01:37, edited 2 times in total.

firepants-jr
Posts: 13
Joined: Thu 06 Aug 2009, 02:10
Location: Tulsa, OK, USA
Contact:

dead link

#2 Post by firepants-jr »

link to the pet doesn't work.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#3 Post by trio »

Big bass,

I'm in the middle of something, and maybe your script could help. But your link doesn't exist anymore.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#4 Post by big_bass »

trio wrote:Big bass,

I'm in the middle of something, and maybe your script could help. But your link doesn't exist anymore.
trio sent you a PM

and updated the first post to have a valid link of the repackaged app

Joe

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#5 Post by trio »

Joe

Thanks, I am trying to modify pcursorsel so we don't need to restart X to see it. Hope it can work out

Cheers

User avatar
Vyse
Posts: 30
Joined: Sat 15 Aug 2009, 15:30
Contact:

#6 Post by Vyse »

@Big_Bass,

This is a pretty neat .pet. Saves me the time to press ctrl+alt+backspace and then log in to X again. Even though it seem trivial, it does get annoying when you have to do it over and over and over...

Thanks a lot!!

User avatar
kiramm
Posts: 502
Joined: Fri 06 May 2016, 05:00
Location: http://murga-linux.com/puppy/viewtopic. ... 393#988393

#7 Post by kiramm »

good evening somebody know where to find this

xrefresh-1.0.2-i486-slxr.pet

or something simmilar:)?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Xrefresh is part of x11-xserver-utils. You can try this build from Trusty 14.04.

Stick it in /usr/bin or ~/my-applications/bin and run it >> xrefresh -none

You could just as well create a simple script and drag it to your desktop.
Attachments
xrefresh.gz
(3.63 KiB) Downloaded 290 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
kiramm
Posts: 502
Joined: Fri 06 May 2016, 05:00
Location: http://murga-linux.com/puppy/viewtopic. ... 393#988393

#9 Post by kiramm »

thank for answering

but this is not a pet sfs

stick it ...
what this means?

means save it? in bin DIR like in ms dos time?

i can use it as shortcut hotkey?

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#10 Post by Puppus Dogfellow »

xref64.pet


xref.pet

32 bit package was made from Semme's .gz and suggestion. 64 bit package is the same run code but uses the binary from the archlinux package found at https://www.archlinux.org/packages/extr ... -xrefresh/.

___

tested the 64 bit in tahr64--appears to work (screen flicked really quickly; no longer a need to dread hanging (mostly gxmenu) windows?).

xref in a terminal, click the script (icon for it in usr/share/applications can be dragged to the desktop), or activate it from the jwm desktop menu.

cool new feature/old thread bump.
:D

User avatar
kiramm
Posts: 502
Joined: Fri 06 May 2016, 05:00
Location: http://murga-linux.com/puppy/viewtopic. ... 393#988393

#11 Post by kiramm »

thank u verrry much for attention and sending me this
pet
i installed with click on but
just if i click on nothing happens maybe i make something wrong?
i downloaded pet without nr 64...
Attachments
snxapshot-2 copy.jpg
(146.27 KiB) Downloaded 396 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#12 Post by Puppus Dogfellow »

kiramm wrote:thank u verrry much for attention and sending me this
pet
i installed with click on but
just if i click on nothing happens maybe i make something wrong?
i downloaded pet without nr 64...
did you blink?

big_bass wrote:refresh your X11 instead of restarting it

this way you dont lose what you have on the screen opened when you want to refresh 8)

[...]

simple and very small its so fast don't blink :D
[...]
just checked the 32 bit version in xenial704--seems to have refreshed the screen (in the blink of an eye).

check to see if there's a green xrefresh cog and xref script in /my-applications/bin--desktop entry and icon call the script that relies on that cog (same if you stuck the thing on a taskbar, which is what i think i see in your pic). enter the command (xrefresh -none) in a terminal to see if there are error messages. archlinux link i posted has two deps listed--maybe your pup needs one or both.

User avatar
kiramm
Posts: 502
Joined: Fri 06 May 2016, 05:00
Location: http://murga-linux.com/puppy/viewtopic. ... 393#988393

#13 Post by kiramm »

thank u verry for ansering my diletant questions

if i put in blackscreen xref or xrefresh or all what u wrote i bracets
no wrong message that means it works allways same just different long names for same action?

i made a short cut but as u see on pic

is that ok?


seems not to be work for dead mouse
like x restart

or i made shorcut wrong??
i dont find always all i want to find in this bin where are other programs?


thank u so much
Attachments
fvvdsvsds-2017-03-15-09-46-03.jpg
(65.56 KiB) Downloaded 354 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#14 Post by Puppus Dogfellow »

kiramm wrote:thank u verry for ansering my diletant questions

if i put in blackscreen xref or xrefresh or all what u wrote i bracets
no wrong message that means it works allways same just different long names for same action?
i think the code defaults to the -none. xref calls xrefresh and asks it to do "-none," which is default, so yes, xref is short for xrefresh, which is a shorter version of xrefresh -none (i believe--i haven't checked over the documentation lately).

i made a short cut but as u see on pic

is that ok?
fine by me. how do you like it?
(i'm not familiar with your windows manager (xfce?), but if that's how it assigns keycuts, what could be wrong with it?)
seems not to be work for dead mouse
like x restart

or i made shorcut wrong??
i dont find always all i want to find in this bin where are other programs?


thank u so much
sorry i can't help you more, kiramm. one thing i can help with is the location of the files--/root/my-applications/bin is not the same place as /usr/bin (though that location would work and you could link or copy or move the file--the machine looks there first so it may even be a nanosecond or so quicker that way).

the mouse problem sounds like a driver issue--i had something similar that was related to monitor driver (disappearing cursor).

not sure how useful it is overall--it doesn't fully restart x, it merely refreshes it. fwiw, i got an error message when triggering an autosave. i used xref and it allowed the save to go through. haven't had the hanging gxmessage window i thought would be a good test of utility.

User avatar
kiramm
Posts: 502
Joined: Fri 06 May 2016, 05:00
Location: http://murga-linux.com/puppy/viewtopic. ... 393#988393

#15 Post by kiramm »

thank u very much for clear aswer
i just havent got clear for which problems or needs is this aplication
in case of freezing of pc ?or browser?

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#16 Post by Puppus Dogfellow »

kiramm wrote:thank u very much for clear aswer
i just havent got clear for which problems or needs is this aplication
in case of freezing of pc ?or browser?
from https://linux.die.net/man/1/xrefresh:
xrefresh(1) - Linux man page

Name

xrefresh - refresh all or part of an X screen
Synopsis

xrefresh [-option ...]
Description

Xrefresh is a simple X program that causes all or part of your screen to be repainted. This is useful when system messages have messed up your screen. Xrefresh maps a window on top of the desired area of the screen and then immediately unmaps it, causing refresh events to be sent to all applications. By default, a window with no background is used, causing all applications to repaint ''smoothly.'' However, the various options can be used to indicate that a solid background (of any color) or the root window background should be used instead.
i had a process interfere with another process. using xrefresh seemed to have fixed it (something in Iron browser was preventing a save2flash command from getting through, and i guess a re-send or refresh was all it took to clear the path for it? (my familiarity with this program is comprised of a few minutes here and there over the past few days, and my experience with linux isn't much either: about four years or so of using puppy coming from windows)).

it's no sure fix for All That Would Cause You To Restart Your Computer (or X) by any means, but it may be worth a shot before you give up all hope on a session.

hth

Post Reply