Re: [PD] Turning on/off an installation
On 26 Jun 2007, at 4:40 AM, Max Neupert wrote: the sleep script works nicely, but the logoff one fails - shut down and sleep are valid for Finder in an Applescript, but log out isn't. first i think you need to activate UI-Scripting. http://www.apple.com/applescript/uiscripting/01.html you'll have in your “System events” applescript library a “power suite” folder with log out found them - they are under System Events but not Finder - so the proper Applescript syntax is: tell application System Events log out end tell now the script works properly, plus using [open /Users/simon/sleep.app( | [ggee/shell] works - Pd quits first, then the system sleeps or logs out or whatever next. The pd quit unexpectedly error message still gets displayed, it seems to be a [shell] problem - I seem to remember a thread about that a year or so ago - I'll search for it, but it doesn't matter if I just want to log out or shut down - thanks for that, my next installations will be cleaner! Do you know a way (in OSX) to create Logout Items similar to Login Items in the Accounts Preferences? to set up timed events I've used CronniX from http:// www.abstracture.de/cronnix (easy + free GUI to create crontabs = schedule events eg the Applescripts above) simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Am 26.06.2007 um 01:49 schrieb simon wise: Do you know a way (in OSX) to create Logout Items similar to Login Items in the Accounts Preferences? not that i can think of now.. to set up timed events I've used CronniX from http:// www.abstracture.de/cronnix (easy + free GUI to create crontabs = schedule events eg the Applescripts above) apple advices to migrate from cron to their open source effort and cron replacement launchd. http://developer.apple.com/macosx/launchd.html and you can actualy use iCal to set up any automatisation at any time calling scripts or etc. works great. otherwhise use http://lingon.sourceforge.net/ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
HI all ! Nice thread, no doubt. Will read more later... My concern is about creating a simple way so that anyone that is allowed can easily turn on and off and installation. I mean the whole power, not just the sound or video. Of course, I am more into lasting installations too. ;) For a window manager. I benchmarked a bit, and I found that Icewm is faster than Fluxbox and some other similar (blackbox and madwm, I think). It looks like Win98, though... For this time, I want no X11 at all, though. a 2007/6/26, simon wise [EMAIL PROTECTED]: On 26 Jun 2007, at 4:40 AM, Max Neupert wrote: the sleep script works nicely, but the logoff one fails - shut down and sleep are valid for Finder in an Applescript, but log out isn't. first i think you need to activate UI-Scripting. http://www.apple.com/applescript/uiscripting/01.html you'll have in your System events applescript library a power suite folder with log out found them - they are under System Events but not Finder - so the proper Applescript syntax is: tell application System Events log out end tell now the script works properly, plus using [open /Users/simon/sleep.app( | [ggee/shell] works - Pd quits first, then the system sleeps or logs out or whatever next. The pd quit unexpectedly error message still gets displayed, it seems to be a [shell] problem - I seem to remember a thread about that a year or so ago - I'll search for it, but it doesn't matter if I just want to log out or shut down - thanks for that, my next installations will be cleaner! Do you know a way (in OSX) to create Logout Items similar to Login Items in the Accounts Preferences? to set up timed events I've used CronniX from http:// www.abstracture.de/cronnix (easy + free GUI to create crontabs = schedule events eg the Applescripts above) simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Alexandre Quessy http://alexandre.quessy.net http://www.puredata.info/Members/aalex ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On 26 Jun 2007, at 4:12 PM, Max Neupert wrote: http://developer.apple.com/macosx/launchd.html and you can actualy use iCal to set up any automatisation at any time calling scripts or etc. works great. otherwhise use http://lingon.sourceforge.net/ Lingon and the docs above are very useful - I'm just about to try to cut back on background system processes on some MiniMacs I've got playing QT video files using GEM - they seem to intermittently miss frames, there are 5 intel machines running and usually 3 or 4 are playing cleanly and 1 or 2 dropping frames for a while. I'm hoping that cutting out some background stuff will help. I think that it is a problem that was not there with G4 MiniMacs, but will check - any hints as to what I should be looking for that can be safely turned off? or is the new architecture with the intel grahpics chipsets etc just not up to the job? simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On 26/06/2007, at 8.17, Alexandre Quessy wrote: For a window manager. I benchmarked a bit, and I found that Icewm is faster than Fluxbox and some other similar (blackbox and madwm, I think). It looks like Win98, though You might like evilwm (or papuawm, which is a fork of it) if you want a small wm. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
What type of video files and at what size? How many clips are playing on one machine at the same time? What is the display resolution? The Intel graphics have some problems above usual desktop sizes and shader performance is really horrible too. Try increasing the gemwin frame rate above 30 or to run it at the refresh rate fo the display (60 for LCD). On 6/26/07, simon wise [EMAIL PROTECTED] wrote: - I'm just about to try to cut back on background system processes on some MiniMacs I've got playing QT video files using GEM - they seem to intermittently miss frames, there are 5 intel machines running and usually 3 or 4 are playing cleanly and 1 or 2 dropping frames for a while. I'm hoping that cutting out some background stuff will help. I think that it is a problem that was not there with G4 MiniMacs, but will check - any hints as to what I should be looking for that can be safely turned off? or is the new architecture with the intel grahpics chipsets etc just not up to the job? simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On 24 Jun 2007, at 7:31 AM, Max Neupert wrote: here an example how to switch the computer off/to sleep from pd the sleep script works nicely, but the logoff one fails - shut down and sleep are valid for Finder in an Applescript, but log out isn't. Another problem I have is that with [shell] I get an error dialogue saying pd quit unexpectedly when I use the examples in shell- help.pd - I guess it refers to the process triggered by [shell] ending, since pd continues on happily. When I try your patch the system sleeps before pd can quit, it quits just after the system wakes up. Adding delay 5 to the start of the applescript doesn't help - it just adds a delay after wake up before pd quits, followed by the error dialogue. Trying to split off the shell process by; [ /Users/simon/sleep.app( | [ggee/shell] does not work, Console says the isn't recognised (it's ok in Terminal) - pd quits, but sleep.app isn't run. I guess [shell] isn't using the same shell as Terminal, it probably needs a bash script or a .command file or something similar to get a process split off so that it can keep going and let pd quit first. I'm using autobuild: Pd-0.40.2-extended-2007-05-01 on OSX 10.4.8 and a G4 Powerbook simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Am 25.06.2007 um 11:35 schrieb simon wise: On 24 Jun 2007, at 7:31 AM, Max Neupert wrote: here an example how to switch the computer off/to sleep from pd the sleep script works nicely, but the logoff one fails - shut down and sleep are valid for Finder in an Applescript, but log out isn't. first i think you need to activate UI-Scripting. http://www.apple.com/applescript/uiscripting/01.html you'll have in your “System events” applescript library a “power suite” folder with log out restart shut down sleep then also you need to make a .app out of the script i've sent in the last mail by saving it in the Scripteditor Another problem I have is that with [shell] I get an error dialogue saying pd quit unexpectedly when I use the examples in shell- help.pd - I guess it refers to the process triggered by [shell] ending, since pd continues on happily. When I try your patch the system sleeps before pd can quit, it quits just after the system wakes up. Adding delay 5 to the start of the applescript doesn't help - it just adds a delay after wake up before pd quits, followed by the error dialogue. Trying to split off the shell process by; [ /Users/simon/sleep.app( | [ggee/shell] does not work, Console says the isn't recognised (it's ok in Terminal) - pd quits, but sleep.app isn't run. i think you should do [open /Users/simon/sleep.app( | [shell] ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On 23 Jun 2007, at 7:20 AM, Kyle Klipowicz wrote: Does anyone have a similar workflow for OS X? I am struggling with this problem right now for an installation I've helped with.( OSX seems very tolerant of just turning the power off, at least my laptop has a faulty connector to the battery and has lost power and crashed many times without problems rebooting, and a few installations I've got running do get turned off from time to time accidentally without problems rebooting. Settings are: 1/ make sure your file system is journalled (it is by default) - use Disk Utility 2/ set 'Restart automatically after power failure' in SystemPreferences:EnergySaver:Options 3/ set a schedule for automatic sleeps etc in SystemPreferences:EnergySaver:Schedule 4/ set system to login to YourUser automatically in SystemPreferences:Accounts:LoginOptions 5/ set Pd to start or a script to run on login in SystemPreferences:Accounts:YourUser:LoginItems I guess that the file system journalling is helping to prevent corruption, but I still don't rely on that and either leave it running or use the schedule to sleep and startup as required, Note that if you shutdown manually (or by the schedule) then later turn the power off then on again it is not a 'power failure' and the system won't reboot automatically, it only does so when it lost power while running. Also you have to make sure Pd quits before any automatic shutdown because it does not quit when the system asks it to during normal shutdowns. You could also try mounting drives read only etc - but I haven't tested that and would like to know more possibilities in this area! simon ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Thanks for this! Interesting thread. I kind of came to the same conclusions via the method of trial and error. I'm currently compiling a tutorial on building 'curatorial friendly' boxes for art students...so this discussion helps a lot... Question: Is fluxbox necessary? X alone has been working fine for me although troubleshooting can be a pain... Question #2: On PPC/linux how does one turn OFF 'hibernate/sleep'. Suggestions? Thanks again! mark --- Derek Holzer [EMAIL PROTECTED] wrote: Hi Ben, Alexandre, I think Alex is worried about his file system. The answer is simple: 1) Mount all drives read-only in /etc/fstab 2) Put a startup script so that whenever the machine is booted, it starts your patch (check PD archives for this, there was lots of discussion. My solution is pasted below***) 3) Museum/gallery people can *never* be bothered to learn how to start/stop things safely, so if you do the above they can hit the power button/turn off the circuitbreaker/pull the plug/do whatever to it every night and you shouldn't have any problems. I've run several installations in this way before. best, d. *** I used .xinitrc to start everything: #~/.xinitrc # make sure your system is set up so that X starts when the machine boots, and it autologs you as this user! # first set LADSPA_PATH for [plugin~] # open alsamixer to set soundcard levels # make sure jackd isn't running already by killing it # start jackd [if PD uses it in your case] # start pd [optional: use -open /path/to/installation.patch.pd if it's not in your ~/.pdrc or ~/.pdsettings] export LADSPA_PATH=/usr/lib/ladspa fluxbox xterm -exec alsamixer killall jackd jackd -d alsa r 44100 pd # end ~/.xinitrc B. Bogart wrote: Are you worried about wearing out the HW? (mechanical parts?) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 169: Use filters ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list mark edward grimm | m.f.a | ed.m megrimm.net | socialmediagroup.org .com [EMAIL PROTECTED] | 585.509.8703 __ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Thanks for this! Interesting thread. I kind of came to the same conclusions via the method of trial and error. I'm currently compiling a tutorial on building 'curatorial friendly' boxes for art students...so this discussion helps a lot... Question: Is fluxbox necessary? X alone has been working fine for me although troubleshooting can be a pain... Question #2: On PPC/linux how does one turn OFF 'hibernate/sleep'. Suggestions? Thanks again! mark --- Derek Holzer [EMAIL PROTECTED] wrote: Hi Ben, Alexandre, I think Alex is worried about his file system. The answer is simple: 1) Mount all drives read-only in /etc/fstab 2) Put a startup script so that whenever the machine is booted, it starts your patch (check PD archives for this, there was lots of discussion. My solution is pasted below***) 3) Museum/gallery people can *never* be bothered to learn how to start/stop things safely, so if you do the above they can hit the power button/turn off the circuitbreaker/pull the plug/do whatever to it every night and you shouldn't have any problems. I've run several installations in this way before. best, d. *** I used .xinitrc to start everything: #~/.xinitrc # make sure your system is set up so that X starts when the machine boots, and it autologs you as this user! # first set LADSPA_PATH for [plugin~] # open alsamixer to set soundcard levels # make sure jackd isn't running already by killing it # start jackd [if PD uses it in your case] # start pd [optional: use -open /path/to/installation.patch.pd if it's not in your ~/.pdrc or ~/.pdsettings] export LADSPA_PATH=/usr/lib/ladspa fluxbox xterm -exec alsamixer killall jackd jackd -d alsa r 44100 pd # end ~/.xinitrc B. Bogart wrote: Are you worried about wearing out the HW? (mechanical parts?) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 169: Use filters ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list mark edward grimm | m.f.a | ed.m megrimm.net | socialmediagroup.org .com [EMAIL PROTECTED] | 585.509.8703 __ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Thanks for the information Simon! A few more details I'd like to ask you if you don't mind. On 6/23/07, simon wise [EMAIL PROTECTED] wrote: 1/ make sure your file system is journalled (it is by default) - use Disk Utility 2/ set 'Restart automatically after power failure' in SystemPreferences:EnergySaver:Options 3/ set a schedule for automatic sleeps etc in SystemPreferences:EnergySaver:Schedule 4/ set system to login to YourUser automatically in SystemPreferences:Accounts:LoginOptions These are all simple enough, but what about this next one? 5/ set Pd to start or a script to run on login in SystemPreferences:Accounts:YourUser:LoginItems I looked into /LIbrary/StartupItems/iScroll2 for a startup example. Would I just modify the following shell script and create a /Library/StartupItems/Pd to get things working? #!/bin/sh daemonpath=/Library/StartupItems/iScroll2 daemonname=iScroll2Daemon daemonpidfile=/var/run/${daemonname}.pid . /etc/rc.common StartService () { ConsoleMessage Starting iScroll2 ${daemonpath}/${daemonname} ConsoleMessage -S } StopService () { ConsoleMessage Stopping iScroll2 kill $(cat ${daemonpidfile}) ConsoleMessage -S } RestartService () { StopService; StartService; } How well would this work with a bundled *.app file, say Pd-extended.app? How do I choose the proper patch to launch? Thanks a lot for any answers you can provide, I've never had to deal with this before so I am learning a ton from the advice on this list. ~Kyle I guess that the file system journalling is helping to prevent corruption, but I still don't rely on that and either leave it running or use the schedule to sleep and startup as required, Note that if you shutdown manually (or by the schedule) then later turn the power off then on again it is not a 'power failure' and the system won't reboot automatically, it only does so when it lost power while running. Also you have to make sure Pd quits before any automatic shutdown because it does not quit when the system asks it to during normal shutdowns. You could also try mounting drives read only etc - but I haven't tested that and would like to know more possibilities in this area! simon -- - - - -- http://perhapsidid.wordpress.com ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
mark edward grimm wrote: Question: Is fluxbox necessary? X alone has been working fine for me although troubleshooting can be a pain... Probably fluxbox isn't required. It's so light that I don't think it hurts to add it. Procedure could be different with X alone. Question #2: On PPC/linux how does one turn OFF 'hibernate/sleep'. Suggestions? Check out pbbuttonsd (powerbook buttons daemon). http://pbbuttons.sourceforge.net/projects/pbbuttonsd/ There's a GTK GUI for it too. Also PowerPrefs. good luck, d. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 58: Do we need holes? ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On 6/23/07, Kyle Klipowicz [EMAIL PROTECTED] wrote: These are all simple enough, but what about this next one? 5/ set Pd to start or a script to run on login in SystemPreferences:Accounts:YourUser:LoginItems Kyle you are overdoing it! Just drag Pd.app into the Login Items in the Accounts pref pane and then add -open /path/to/my/patch.pd to the Pd startup. Easy. I looked into /LIbrary/StartupItems/iScroll2 for a startup example. Would I just modify the following shell script and create a /Library/StartupItems/Pd to get things working? #!/bin/sh daemonpath=/Library/StartupItems/iScroll2 daemonname=iScroll2Daemon daemonpidfile=/var/run/${daemonname}.pid . /etc/rc.common StartService () { ConsoleMessage Starting iScroll2 ${daemonpath}/${daemonname} ConsoleMessage -S } StopService () { ConsoleMessage Stopping iScroll2 kill $(cat ${daemonpidfile}) ConsoleMessage -S } RestartService () { StopService; StartService; } How well would this work with a bundled *.app file, say Pd-extended.app? How do I choose the proper patch to launch? Thanks a lot for any answers you can provide, I've never had to deal with this before so I am learning a ton from the advice on this list. ~Kyle I guess that the file system journalling is helping to prevent corruption, but I still don't rely on that and either leave it running or use the schedule to sleep and startup as required, Note that if you shutdown manually (or by the schedule) then later turn the power off then on again it is not a 'power failure' and the system won't reboot automatically, it only does so when it lost power while running. Also you have to make sure Pd quits before any automatic shutdown because it does not quit when the system asks it to during normal shutdowns. You could also try mounting drives read only etc - but I haven't tested that and would like to know more possibilities in this area! simon -- - - - -- http://perhapsidid.wordpress.com ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Hi Alexandre, I've always kept my machines on, and my projectors/screens are the things that get switched on and off. Most of my installations deal with previous days anyhow... I've has installations running for many weeks on constantly. The current one uses [shell] to turn dpms on and off on the monitor to make it suspend, and turns off the camera movement according to a schedule in the patch. Are you worried about wearing out the HW? (mechanical parts?) B. Bogart Alexandre Quessy wrote: Hi all, I was wondering if someone has an idea on how one could create a switch to turn on and off an installation. I was thinking about either a push button to turn it off, or a web interface. Maybe one of those two things could make Pd (or PHP) write to a file that would be parsed by a cron job every minute. That cron job should be owned by root in order to be able to halt the computer. Then, to turn it on, I guess one could set the bios to turn on the computer automagically when the power gets down and then up again... Or one could use the computer power button (but in this case, it is an laptop that I want to hide deeply...) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. Any suggestion ? ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Hi Ben, Alexandre, I think Alex is worried about his file system. The answer is simple: 1) Mount all drives read-only in /etc/fstab 2) Put a startup script so that whenever the machine is booted, it starts your patch (check PD archives for this, there was lots of discussion. My solution is pasted below***) 3) Museum/gallery people can *never* be bothered to learn how to start/stop things safely, so if you do the above they can hit the power button/turn off the circuitbreaker/pull the plug/do whatever to it every night and you shouldn't have any problems. I've run several installations in this way before. best, d. *** I used .xinitrc to start everything: #~/.xinitrc # make sure your system is set up so that X starts when the machine boots, and it autologs you as this user! # first set LADSPA_PATH for [plugin~] # open alsamixer to set soundcard levels # make sure jackd isn't running already by killing it # start jackd [if PD uses it in your case] # start pd [optional: use -open /path/to/installation.patch.pd if it's not in your ~/.pdrc or ~/.pdsettings] export LADSPA_PATH=/usr/lib/ladspa fluxbox xterm -exec alsamixer killall jackd jackd -d alsa r 44100 pd # end ~/.xinitrc B. Bogart wrote: Are you worried about wearing out the HW? (mechanical parts?) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 169: Use filters ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
On shutdown sync is also your friend sync; sleep 3; halt; if you don't want the patch running as root (if on network) then sudo the shutdown script. On Fri, 22 Jun 2007 21:03:02 +0200 Derek Holzer [EMAIL PROTECTED] wrote: Hi Ben, Alexandre, I think Alex is worried about his file system. The answer is simple: 1) Mount all drives read-only in /etc/fstab 2) Put a startup script so that whenever the machine is booted, it starts your patch (check PD archives for this, there was lots of discussion. My solution is pasted below***) 3) Museum/gallery people can *never* be bothered to learn how to start/stop things safely, so if you do the above they can hit the power button/turn off the circuitbreaker/pull the plug/do whatever to it every night and you shouldn't have any problems. I've run several installations in this way before. best, d. *** I used .xinitrc to start everything: #~/.xinitrc # make sure your system is set up so that X starts when the machine boots, and it autologs you as this user! # first set LADSPA_PATH for [plugin~] # open alsamixer to set soundcard levels # make sure jackd isn't running already by killing it # start jackd [if PD uses it in your case] # start pd [optional: use -open /path/to/installation.patch.pd if it's not in your ~/.pdrc or ~/.pdsettings] export LADSPA_PATH=/usr/lib/ladspa fluxbox xterm -exec alsamixer killall jackd jackd -d alsa r 44100 pd # end ~/.xinitrc B. Bogart wrote: Are you worried about wearing out the HW? (mechanical parts?) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 169: Use filters ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Use the source ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Does anyone have a similar workflow for OS X? I am struggling with this problem right now for an installation I've helped with.( (Shameless plug: http://perhapsidid.wordpress.com/2007/06/19/calm-dome-photos/) ~Kyle On 6/22/07, Derek Holzer [EMAIL PROTECTED] wrote: Hi Ben, Alexandre, I think Alex is worried about his file system. The answer is simple: 1) Mount all drives read-only in /etc/fstab 2) Put a startup script so that whenever the machine is booted, it starts your patch (check PD archives for this, there was lots of discussion. My solution is pasted below***) 3) Museum/gallery people can *never* be bothered to learn how to start/stop things safely, so if you do the above they can hit the power button/turn off the circuitbreaker/pull the plug/do whatever to it every night and you shouldn't have any problems. I've run several installations in this way before. best, d. *** I used .xinitrc to start everything: #~/.xinitrc # make sure your system is set up so that X starts when the machine boots, and it autologs you as this user! # first set LADSPA_PATH for [plugin~] # open alsamixer to set soundcard levels # make sure jackd isn't running already by killing it # start jackd [if PD uses it in your case] # start pd [optional: use -open /path/to/installation.patch.pd if it's not in your ~/.pdrc or ~/.pdsettings] export LADSPA_PATH=/usr/lib/ladspa fluxbox xterm -exec alsamixer killall jackd jackd -d alsa r 44100 pd # end ~/.xinitrc B. Bogart wrote: Are you worried about wearing out the HW? (mechanical parts?) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. -- derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista ---Oblique Strategy # 169: Use filters ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- - - - -- http://perhapsidid.wordpress.com ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Turning on/off an installation
Hi all, I was wondering if someone has an idea on how one could create a switch to turn on and off an installation. I was thinking about either a push button to turn it off, or a web interface. Maybe one of those two things could make Pd (or PHP) write to a file that would be parsed by a cron job every minute. That cron job should be owned by root in order to be able to halt the computer. Then, to turn it on, I guess one could set the bios to turn on the computer automagically when the power gets down and then up again... Or one could use the computer power button (but in this case, it is an laptop that I want to hide deeply...) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. Any suggestion ? -- Alexandre Quessy http://alexandre.quessy.net http://www.puredata.info/Members/aalex ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Hallo, Alexandre Quessy hat gesagt: // Alexandre Quessy wrote: I was wondering if someone has an idea on how one could create a switch to turn on and off an installation. I was thinking about either a push button to turn it off, or a web interface. Maybe one of those two things could make Pd (or PHP) write to a file that would be parsed by a cron job every minute. That cron job should be owned by root in order to be able to halt the computer. Then, to turn it on, I guess one could set the bios to turn on the computer automagically when the power gets down and then up again... Or one could use the computer power button (but in this case, it is an laptop that I want to hide deeply...) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. You can use the powerbutton actually to savely switch off the computer, if it has ACPI enabled. On Debian/Ubuntu you should check what's in /etc/acpi/events/powerbtn This script normally just calls /etc/acpi/powerbtn.sh which as default calls /sbin/shutdown -h now but you could also put other stuff there. In the BIOS of your machine you need to set up that the powerbutton doesn't immediatly switch off the machine, but only creates that button event. I think, most modern machines are set up like that anyways. Just try it! After synching and closing everything of course. ;) Ciao -- Frank Barknecht _ __footils.org_ __goto10.org__ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
Le mardi 19 juin 2007 à 09:50 -0400, Alexandre Quessy a écrit : Hi all, I was wondering if someone has an idea on how one could create a switch to turn on and off an installation. I was thinking about either a push button to turn it off, or a web interface. Maybe one of those two things could make Pd (or PHP) write to a file that would be parsed by a cron job every minute. That cron job should be owned by root in order to be able to halt the computer. Then, to turn it on, I guess one could set the bios to turn on the computer automagically when the power gets down and then up again... Or one could use the computer power button (but in this case, it is an laptop that I want to hide deeply...) The whole idea behind this is to avoid to suddenly turn off the computer, which would probably corrupt the file system at some point. Of course I use GNU/Linux : probably Ubuntu Server or Debian. Any suggestion ? hi alex, I lately setup a video installation using a Debian Lenny box on a mini-PC, that's hidden in the ceiling because of noise and visual distrubance. Of course the ACPI button is very difficult to reach, Bios has been setup to restart after a power failure. The power cord is over 10m long and connected to a switchable power adaptor. Shell access is granted from the artist's laptop running windoze thanks to Putty. Pd is started/stopped from the command line. The box is shutdown thanks to the magical sudo halt command line. I used to connect that machine to an UPC, but never had enough time to have it commanded over serial port which a very good solution to both protect your machine from data loss and have it start/stop at will. ++ O. signature.asc Description: Ceci est une partie de message numériquement signée ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Turning on/off an installation
enabling power on by lan (in the bios) should allow remote control (along with shutting down via ssh or telnet i expect) all the best adam ___ All New Yahoo! Mail Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list