Full Screen Shared Mem Viewer

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Full Screen Shared Mem Viewer

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
nextime
Posts: 23
Joined: Thu Nov 29, 2007 9:20 pm

Re: Full Screen Shared Mem Viewer

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok ta.
are you saying it will run without x? i thought it needed that
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

got ya
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
kamand
Posts: 24
Joined: Fri Nov 28, 2003 10:04 am

Re: Full Screen Shared Mem Viewer

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Post by 50cc »

I'm trying to do the same. Anyone figured this out already?
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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.
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Post 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
Post Reply