Feature request, but must be universallly accepted by ALL blanker authors

Alan Coopersmith alan.coopersmith at oracle.com
Sun Oct 4 19:10:03 UTC 2020


On 10/3/20 1:08 AM, Gene Heskett wrote:
> On Friday 02 October 2020 16:28:45 Alan Coopersmith wrote:
>> Fortunately, there's already an existing script which knows about the
>> most common screensaver implementations and how to suspend them:
>>
>> https://linux.die.net/man/1/xdg-screensaver
>> https://gitlab.freedesktop.org/xdg/xdg-utils/-/blob/master/scripts/xdg
>> -screensaver.in
>>
>> So LinuxCNC could call xdg-screensaver suspend with the ID of its
>> control window.
> 
> On the machines own monitor, isn't that display 0:0?

:0.0 is the display, not the window.  "xwininfo -tree -root" will list all
the window ids on that display.

> Example command line please?

  xdg-screensaver suspend `xwininfo -name xlogo | awk '/Window id/ {print $4}'`

But if LinuxCNC is calling it directly, it knows its own window ids already and
doesn't have to use xwininfo to find them.

-- 
	-Alan Coopersmith-               alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc


More information about the xorg mailing list