LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-11-2009, 07:52 PM   #1
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99
Blog Entries: 39

Rep: Reputation: 19
Question xscreensaver(s) die on keypress when run in root window before WM is loaded


Currently I'm trying to use the xscreensaver 'barcode' (/usr/lib/xscreensaver/barcode) as my background. I'm running WindowMaker on a small-cd install of Debian as a speedy minimal system.

The computer is an old Compaq Evo with a pentium 3 installed and it takes 50 seconds from pressing the power button to the login-screen POST. Apart from a nice platform to do school-work on it is also a great way to show-up my friends running uber-hardware Vista laptops that lurch along.

My .xinitrc file:
Code:
# Xscreensaver background
/usr/lib/xscreensaver/barcode -root &

wmaker
Note that exec preceding wmaker isn't necessary unless I have code after 'wmaker' that I don't want to execute.

When I start X, everything is hunky dory. Because the screensaver only draws where it changes I had to set my root window as black in the WindowMaker preferences but that isn't a biggie.

However the second I press any key on my keyboard (probably not inlcuding Fn) barcode self-terminates. I tried some other screensavers in its place with the same result.

Executing barcode in a terminal once X and my window-manager has loaded the problem does not occur.

Seemingly by starting it before my window manager it somehow gets a hook on my keyboard input and does what it's designed to do: stop when the user does something. How can I either execute it after the WM starts (automatically) or stop it from getting any input from my keyboard?

As a final note, I chose barcode as it sucked up little system resources. I originally planned to use lockward to show up my Window-user friends but that basically ate my CPU and spat out the bones.

-whales
 
Old 10-20-2009, 05:13 AM   #2
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99

Original Poster
Blog Entries: 39

Rep: Reputation: 19
Found the answer
Code:
*windowmanager* & wmpid=$! # Gets the process ID

/usr/lib/xscreensaver/screensaver_executable

wait $wmpid # Halts the .xinit script until the WindowManager exits
 
  


Reply

Tags
barcode, windowmaker, xscreensaver



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
xscreensaver lock window theme the_mulletator Linux - General 3 12-21-2011 05:01 PM
XScreensaver stops when window not moving stocks29 Linux - Software 1 05-08-2006 04:58 AM
LXer: Open source must die die die LXer Syndicated Linux News 0 01-28-2006 08:16 PM
Different video drivers are loaded for root and non-root users triet Linux - Software 1 12-31-2004 02:20 PM
XScreenSaver Can't Run PICOspark Linux - General 2 12-03-2004 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:39 AM.

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