View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-13-2007, 12:30 PM   #1
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Lightbulb About X windows on concealed desktops and under screen savers

Once again, I apologize for posting a question only peripherally related to programming here.

My objective is to use xwd to capture images of windows created by perpetually running processes. This is intended to occur as a cron job, generating a series of time/date stamped images. My problem is that while the windows are 'visible' in the sense of being reported by 'xwininfo', they do not work with xwd unless they are actually visible on the screen. If the screen saver (tested only with KDE desktop) is active, or if the window is concealed on a different virtual desktop, then xwd reports
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  11101
  Current serial number in output stream:  11101
evidently meaning something like "I can't see that window".
So, is there any way to work around this? Some attribute or command that a window can be given to 'expose itself'? I would consider using an Xvfb in which to run the long-running X application, however the application requires some interactive configuration at startup, which is impossible without having a real pointing device and visible screen.

Any other forums where these kinds of questions are common? Looking for bright ideas here.

Any advice gratefully approeciated. Thanks.
--- rod.

Last edited by theNbomr; 06-13-2007 at 12:51 PM.
Old 06-14-2007, 05:21 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Not really a solution to your problem, but ... that application
that requires initial configuration: if it stores the setup
information somewhere (e.g. ~/.application), why not just copy
that file/directory from a machine that has a mouse and keyboard?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
more screen savers zchoyt Linux - Software 4 10-24-2004 02:29 PM
CL Screen savers??? trey85stang Slackware 7 12-27-2003 10:04 AM
Screen Savers CuteBug Linux - Newbie 1 11-13-2003 11:25 AM
Screen savers raees Linux - General 1 11-10-2003 10:19 AM
screen savers abc249 Linux - Software 4 04-28-2003 05:08 PM

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration