I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
Fully Functional RandomPIC screen saver implemented
screen saver, picture frame

New MessageFully Functional RandomPIC screen saver implemented (modified 1 times) Infinity
Profile
i have successfully implemented a RandomPic screen saver, it is fully functional without the use of libphoton.so.1 (1.4mb). this is what you need to do if you are using my 1.1 image:
1. download fireKey from this site http://www.geocities.com/bholio/
2. unzip the file and copy fireKey over to /nto/bin and do chmod +x fireKey
3. edit /nto/photon/savers/RandomPic.sh, it should look something like this
RandomPic /pics 10000
sleep 30
fireKey string=@ENT
4. edit /nto/photon/.ph/wm/saver.cfg
make sure the saver line looks like this
saver = RandomPic
5. go to screen saver in shelf under control panel and select RandomPic and set the time. voila you have yourself a fully functional RandomPic screen saver. tap screen to exit
The reason you need sleep 30 is wait for RandimPic to start, depending on your network you may get away with less or more time.
fireKey will simulate an Enter key. the exit reaction time is slower if your screen saver ran for a long time so you may need to wait a few seconds before the screen saver exits. enjoy

for jukebox's images you need more items.
1. you need to put saver and savercfg in /nto/photon/bin and saver.cfg in /nto/photon/.ph/wm and you need to put saver in /kojak/go or boot.sh so it loads saver when you boot. you can get those files off my 1.1 image or you can find them in RTP.
2. follow my instruction above except going into screen saver in shelf you need to execute savercfg in pterm since there is no screen saver item in shelf in juke's images.

I will have this integrated into my next update.

04-04-2002 15:59:09

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
forgot to add & to the RandomPic line so again:

i have successfully implemented a RandomPic screen saver, it is fully functional without the use of libphoton.so.1 (1.4mb). this is what you need to do if you are using my 1.1 image:
1. download fireKey from this site http://www.geocities.com/bholio/
2. unzip the file and copy fireKey over to /nto/bin and do chmod +x fireKey
3. edit /nto/photon/savers/RandomPic.sh, it should look something like this
RandomPic /pics 10000 &
sleep 30
fireKey string=@ENT
4. edit /nto/photon/.ph/wm/saver.cfg
make sure the saver line looks like this
saver = RandomPic
5. go to screen saver in shelf under control panel and select RandomPic and set the time. voila you have yourself a fully functional RandomPic screen saver. tap screen to exit
The reason you need sleep 30 is wait for RandimPic to start, depending on your network you may get away with less or more time.
fireKey will simulate an Enter key. the exit reaction time is slower if your screen saver ran for a long time so you may need to wait a few seconds or tap a few times before the screen saver exits. enjoy
for jukebox's images you need more items.
1. you need to put saver and savercfg in /nto/photon/bin and saver.cfg in /nto/photon/.ph/wm and you need to put saver in /kojak/go or boot.sh so it loads saver when you boot. you can get those files off my 1.1 image or you can find them in RTP.
2. follow my instruction above except going into screen saver in shelf you need to execute savercfg in pterm since there is no screen saver item in shelf in juke's images.

I will have this integrated into my next update.

04-04-2002 16:10:50

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) jukebox
Profile
Infiniti,
You are using one of my images and I wish you the best, but please stay away from my other images. The lib of 1.4 mg isn't there and I consider it a waste of space to implement it for a screen saver. So many other things can be done with that space, so limited in Audrey.
I will never advise someone about your images, I will refer them to you, if that ever happens.
Please mind your own business.
Puht mak

jukebox


http://www.prins.net/audrey/index.html
04-04-2002 19:02:48

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) davinci27
Profile
Hey jukebox, I'm not trying to get between you and infinity so don't take this the wrong way. There is one use I found for libphoton, that's phlip. Here's my comment from one of the other threads. Also just a side note, libphoton compresses down to about 450k.

Hey jukebox

phlip the networkcfg program, does work with audrey. I use it to set up
the network on my audrey without any problems.

I can switch between dhcp and static, and change my static address. I
haven't tried it with a dialup account as I don't have one to test. In
the future, I'd like to talk to you about geting the photon ppp to work.
I'd like to add this to my image so non network users could use MQNX.

There are several other files that must be included for phlip to work. I don't have the full list onhand, but it does work.
davinci27

04-04-2002 19:28:50

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) jukebox
Profile
infinity,
I just read how you have setup your screen saver without that 1.4 lib. If that works it's a great hack and I very well may use it in my images. If you describe those hacks in detail everybody, including myself will be gratefull. However I do want to have a chance at least to maintain my own images and from your description everybody who wants to implement it can do it, maybe even in an original out of the box Audrey.

jukebox


http://www.prins.net/audrey/index.html
04-04-2002 19:29:57

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) jukebox
Profile
davincy27,
If you have a network setup that works you can indeed change those features. However it uses the same 1.4 mg lib as screen saver and I consider
that a waste of space in my image, where you setup the network in a script as you like it with dhcp or a fixed ip and different nics and that's it. No
need for Network Cfg anymore.
In USB1 phlip behaves like a bank that wants to give you a loan when you don't need it and doesn't when you really need the loan. I put it in only
temporarely for testing purposes when you set up the network in the script.
I just read infinity sets up the screen saver without that same lib. That means phlip is the only user of an extra 1.4 mg lib.
Btw if you want to setup ppp for modem users you may have to choose for my script setup to setup the network. Check with neutrino sin in an old
Audrey and you'll see with Arg what the modem setup is. I don't believe you can easily use modem and network setup in one script. Give your email
address and I will email both scripts for modem and ethernet.

jukebox


http://www.prins.net/audrey/index.html
04-04-2002 19:43:44

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
There is no need for libphoton.so.1, you just need to set it up in a script that's how i got RandomPic to work as a screen saver. This screen saver can be used with all images, including the original audrey with the shell hack. And jukebox don't worry about me using your images again, i am planing to create a brand new image from scratch with USB support integrated as well. I don't like your attitude, you think your own everyone in the audrey community and instead of teamwork you choose to beat everyone to the finish line. you may be good in creating these images but there are people out there who can do the same or even better. Everyone can throw a bunch of files and libs together to form a semi-working image. Someone will create a better image and they will definitely tell your ass to stay the hell away from it too.
04-04-2002 20:41:29

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
Hey Infinity,

I unzipped the fireKey files and there were 3. I only ftp'd the one file fireKey into /nto/bin. I chmod +x fireKey. I edited /nto/photon/savers/RandomPic.sh like you said, and made sure that /nto/photon/.ph/wm/saver.cfg read saver = RandomPic.

I still can only get the blank screen saver to preview. Any ideas? My pictures are in a share called Pictures.

Thanks,


Audrey X3
04-04-2002 21:57:47

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
Okay, Got Screensaver running, but it's running in the background. I have to tap the screen to seen the pics. The next tap shuts it off. I was hoping this would start displaying pics with no intervention after the set time had elapsed, but no dice.

Any ideas?

Thanks,


Audrey X3
04-04-2002 22:58:08

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 1 times) Infinity
Profile
audreyx3,
your problem is that you didn't put an & after the RandomPic line in RandomPic.sh, i forgot that on my first post but corrected it on my second. without &, fireKey will not have a chance to run and can not simulate the keypress for you. The sleep function might not be needed if your network is fast enough, so comment out the sleep line and see if it still works.
http://home.attbi.com/~kenzhao8/index.html
04-05-2002 05:52:28

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
No, I did put the & after the RandomPic line in RandomPic.sh, so I must have another problem.

I'll keep trying things.

What happens now is that after I select Screen Saver, and pick okay, after my set time of 1 minute I see activity on my USB adapter, so the pictures are loading. They are just in the background. If I carefully tap the screen I can sometimes get the pictures to the front. Otherwise the tap closes the app.


Audrey X3
04-05-2002 07:43:59

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) bholio
Profile
Infinity,
Does your image still run the QNX web server? If so, could you put fireKey in the CGI directory? I originally wrote fireKey to run as a CGI so people (most likely, HA people) could send keystrokes remotely to maximize the web browser or wake up the machine from suspended state.

Having it in /nto/bin means that some people will have duplicate copies.

I realize that, for now, anyone can put fireKey anywhere they want, but if you include it in an image, please consider putting it where it belongs. That is, unless you have removed all of the other major security holes (such as shellex, sendMessage etc) in which case this would be a security hole and it should not sit in CGI.

04-05-2002 08:03:26

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
Bholio,
what i am trying to do is just to simulate a keystroke locally and do not require to access remotely from another machine that's why i did not put it in the CGI folder. if people are using homeseer they can simply create a link in /nto/bin to CGI, that way they don't need 2 copies of the same file.
audreyx3,
what you are describing is exactly what happens when you don't use the fireKey command, originally i had to hit a key to bring RandomPic to the foreground but with fireKey it will simulate a keypress for you and brings it to the foreground automatically. you might want to make sure your fireKey is working properly, test it out just by typing
fireKey string=@ENT in pterm, it should display some message and simulate an Enter key, so when it's done you will have 2
#
#
if you don't have that it is probably not working properly , make sure you transfer in binary mode when ftping.
you might also wanna check your /kojak/go and make sure there are &'s after shelf and saver. make sure your /config/SYSTEM_ScreenSaveSecs is not 0. if you are still having problems download the latest copy from my ftp and just change your path to the share and see.
04-05-2002 09:41:39

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
Thanks for the quick reply!

Yeah, I have a good transfer of fireKey. I have & located after shelf and saver, and /config/SYSTEM_ScreenSaveSecs is 900.

I'll keep looking.

Also, I have one Audrey that I'm going to mount on my exercise bike that will only be used for Voyager and playing MP3s with PhJuke using a share on my PC. I won't be using any streaming audio. Do I still need to keep PhPlaygen 0.5, and Photon Media Player?


Audrey X3
04-05-2002 10:00:17

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
oh since i got sleep 30 in there it goes to sleep for 30 seconds before simulating fireKey(fireKey with a CAP K) so you will have to wait for set time + sleep time before it will start running. if you hit a key or tap the screen during the sleep time it will come on and fireKey is no longer needed, sounds like you might have not waited long enough and tap the screen during the sleep time
04-05-2002 10:03:39

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
you can delete those if you are not streaming from the web. phjuke works great with shares.
04-05-2002 10:06:29

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 1 times) bretb
Profile
Infinity -

Thanks for figuring out the screen saver. You mentioned yesterday you will have it in your next update. Out of curiosity, any idea when that will be? Thanks again.

04-05-2002 11:55:01

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
my next update will be drastically different, it will have USB support, etc. it'll be a while before i release my next full update. Due to a conflict of interest between jukebox and I, my next update will start from scratch. As for the RandomPic screen saver, you can download 1.1 here http://www.audreyhacking.com/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=39
and implement the hack yourself, just follow my instructions above. The one available on my ftp has the fireKey(thanks to bholio for this great little util) file already and all you have to do is change the path to your pics, but i will close my ftp at the end of this week.
04-05-2002 13:47:29

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
The screen saver is running, it's just running in the background. I can see the activity light start working on my adapter after about a minute and a half, and if I touch the screen after that the picture shows up. So Screensaver is running; it's just in the background.

The BLANK SCREEN selection works with preview, but RandomPic doesn't.

Thanks,


Audrey X3
04-05-2002 14:54:55

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
there must be something that is missing, it sounds like fireKey is nto activating for you. you should be able to preview RandomPic perfectly too, you gotta select RandomPic and not RandomPic.sh in screen saver setup. you might be better off getting the image from my ftp and just replace the pics path with yours. keep trying i am sure it's just something small that you missed.
04-05-2002 15:00:46

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) AudreyX3
Profile
Thanks Infinity,

I got the Screen Saver working. Now I've got another question. After Screen Saver runs for a bit, say a few hours, I notice my pics start to open lower and lower down the screen. I converted all the pics in the file to 640 X 480. Some of the pics are LESS than 640 wide. Could this be causing my problem?

TIA,


Audrey X3
04-08-2002 12:22:07

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) davinci27
Profile
Just a extra thing. If you replace the path and time in your script wiht $1 $2 you can then use the options in the savercfg panel to give it the appropriate directory and speed.

You new script would look like this

RandomPic $1 $2&
sleep 30
fireKey string=@ENT

davinci27

04-08-2002 17:55:05

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
Here it is boys and gals, the perfect RandomPic screen saver. i've revised the script to check to see if there is a session of randompic running or not before launching a new session. if there is a running session it will not open a new session on top of the old one. my original script has a flaw, it will start a new session of screen saver ontop of a running one, so over time it will open many sessions and that's why it took multiple taps to exit. this new script requires wc, which you can download from my website. i posted the new script there as well. you might want to download the RandomPic.sh and just replace my old script, the spacing is critical. Here is the new RandomPic screen saver script. This is recommended because screen saver will crash if you leave audrey on for too long if you are using my original simplified script. more detail on my website. you must download wc in order for the new script to work, you can copy wc over from the RTP as well.

ps | grep RandomPic > pslog
psresult=`wc -l < pslog`
if [ "$psresult" = " 3" ];then
echo "RandomPic Screen Saver is already running"
fireKey string=@ENT
else
echo "Starting RandomPic Screen Saver Now"
RandomPic /pics 10000 &
fireKey string=@ENT
fi
exit 0;
done

04-08-2002 20:45:55

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
oops forgot my website, and to address the moving pics problem, you probably used the wrong options when converting your pics because i do not experience any problems like that. some programs fill the space in with a border. but you can also put -S m after RandomPic to have the screen saver maximized all the time. or you can use -w XXX -h YYY, XXX and YYY being slightly bigger than the audrey screen so you can get rid of the boarders all together.
http://home.attbi.com/~kenzhao8/index.html
04-08-2002 20:49:56

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Helix32314
Profile
I started out with a more-or-less Stock Audrey image (+shell)
I copied saver & savercfg into /ntp/photon/bin
I copied saver.cfg into /nto/photon/.ph/wm
I added saver into boot.sh

I copied RandomPic file into /nto/photon/savers/RandomPic
I then created in /nto/photon/savers/RandomPic.sh (With the contents described above).
RandomPic is chmod+x

Using savercfg, I select RandomPic.
---what do I see?
RandomPic seems to be executed when the timer runs out. Seems reasonable, but I really want RandomPic.sh to be executed so that fireKey will work, right? But if I select RandomPic.sh in savercfg, then nothing happens at all.

How is Audrey supposed to run RandomPic.sh instead of RandomPic?

in savercfg, I can "preview" RandomPic, so it is functionally working.

05-02-2002 19:17:36

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
you are missing one small step. it doesnt run randompic.sh it runs randompic. here's what you need.just do this:
ln -s /nto/bin/execv RandomPic
chmod +x RandomPic

RandomPic will run randompic.sh don't select randompic.sh in savercfg. ran randompic. follow the direction on my website.

05-02-2002 19:30:17

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Helix32314
Profile
is /nto/bin/execv a file that I should have? I could not find it on my image (Final + Shell) or on a PC that I installed QNX onto. I am assuming it is an executable of the "C" function of the same name? Running "itself+.sh"?
05-03-2002 07:28:16

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Infinity
Profile
it should be in the shell+ image too. i think you put RandomPic in the wrong place..if you don't have execv you can flash it with another image, copy execv to a share, flash it back to your own image then copy execv to /nto/bin

move RandomPic to /nto/bin
ln -s /nto/bin/execv /nto/photon/savers/RandomPic
chmod +x /nto/photon/savers/RandomPic

in savercfg, select RandomPic not RandomPic.sh
I don't recommend using my simple script to run randompic screen saver. Follow the directions on my website to use the more advanced script, you will need firekey and also wc to make it work and available on my site.


http://home.attbi.com/~kenzhao8/index.html
05-03-2002 08:06:28

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) davinci27
Profile
In your saver.cfg there should be a line "parameters=" put whatever command line arguments you want passed to the app here. You can also try PicSaver, it lets you setup and save your preferences, so you don't need to send any command line arguments. http://www.davinci27.org/audrey/software.html#PicSaver

davinci27

05-03-2002 09:29:42

New MessageRE:Fully Functional RandomPIC screen saver implemented (modified 0 times) Helix32314
Profile
Thanks! I got both Picture ScreenSavers running.
05-03-2002 14:44:31

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3