Page 1 of 1

Full Screen Shared Mem Viewer

Posted: Sun Dec 02, 2007 10:49 pm
by jameswilson
being quite a fan is there a way to make this run full screen, and if so is there a way to disable power mgt and screen saver from the command line?
ie script to turn of pwr mgt
screen saver etc
run viewer

and even better if it isnt running then run it?

Re: Full Screen Shared Mem Viewer

Posted: Tue Dec 04, 2007 9:42 pm
by nextime
jameswilson wrote:being quite a fan is there a way to make this run full screen, and if so is there a way to disable power mgt and screen saver from the command line?
ie script to turn of pwr mgt
screen saver etc
run viewer

and even better if it isnt running then run it?
I simply launch xlib_shm from .xinitrc in the user home with sudo to get right permission on the device, without any window manager or desktop.
This way it get to fullscreen and you don't get any screensaver.

To turn off pwr management on the screen, simply set DPMS off in your xorg.conf file.

Posted: Tue Dec 04, 2007 10:08 pm
by jameswilson
ok ta.
are you saying it will run without x? i thought it needed that

Posted: Tue Dec 04, 2007 10:22 pm
by cordel
Hi James,
You still need x but, you don't need a window manager (gdm or kdm) or a desktop (gnome or kde). I like to run the zm server this way my self.

Posted: Tue Dec 04, 2007 11:47 pm
by jameswilson
got ya

Posted: Wed Dec 05, 2007 1:39 am
by jameswilson
just tried and failed dismally lol

how should i do this?

what ideally id like to achieve is after bootup i run the shared mem viewer to show all cams (say 9) in the split as it does, but every boot and full screen.

Thanks

James

Re: Full Screen Shared Mem Viewer

Posted: Wed Dec 05, 2007 6:40 am
by kamand
jameswilson wrote:being quite a fan is there a way to make this run full screen, and if so is there a way to disable power mgt and screen saver from the command line?
ie script to turn of pwr mgt
screen saver etc
run viewer

and even better if it isnt running then run it?
Partial answer:

Code: Select all

#!/bin/bash
xhost 127.0.0.1

# Turn off screen blanking
xset s off

# Disable DPMS energy saving
xset -dpms
xlibshm.....
with KDE you can do:
put file with:

Code: Select all

[Desktop Entry]
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=FILE_WHAT_YOU_WANT_TO_EXEC.sh
GenericName=Local client
GenericName[en_US]=Local client
Icon=
MimeType=
Name=XLIBSHM
Name[en_US]=XLIBSHM
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
into ~/.kde/Autostart
Regards
Andrew

Posted: Tue Mar 25, 2008 9:15 am
by jameswilson
I have done that and made a script, but could it be added to cron, ie what if im not using kde ?

Also can it be made to open fullscreen not windowed?

Posted: Mon Dec 08, 2008 9:48 pm
by 50cc
I'm trying to do the same. Anyone figured this out already?

Posted: Tue Dec 09, 2008 6:10 pm
by Lee Sharp
Yes. Lots of us. You would help if you say what you are using. But since you have not, I will fill in with my random guess.

Under Ubuntu, go to System --> Preferences --> Sessions. Add new session. Call the first one "Disable Screen Blank" and the command is "xset s off -dpms" Call the next one "Live Viewer" and the command is "xlib_shm -m1 -m2 -m3 -m4" And set it to autologin that user after 10 seconds. Now it will come up with the viewer running.

Posted: Tue Dec 09, 2008 9:13 pm
by 50cc
I will fill in with my random guess
:D

What you suggested does not work with XFCE, Thanks though!

I got a cool solution from here:
http://www.zoneminder.com/forums/viewto ... 7406#47406