OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: net_bh on April 24, 2004, 10:30:12 pm
-
Hi all,
It might seem strange...but I would like to boot my zaurus in a console mode like a regular linux machine for a project i am doing.
What i want to achieve is the following:
1. Boot into console mode with automatic user login (any user)
2. Networking should be up as normal
3. Start a \'vlc\' instance that will fetch data off the network and display it onto the screen.
I started by disabling qpe.sh, but i get \"ld respawing\" messages. Also i cant seem to find where qpe.sh is called...definitely not in /etc/rc.d
I am using a 5600 with zynergy ROM.
Thanks for your time.
Regards,
A
-
ewww .. you\'re weird
-
This thread should help you out. http://www.zaurususergroup.com/index.php?n...iewtopic&t=3242 (https://www.oesf.org/forums/index.php?showtopic=3242)
-
You wont say that once you see the demo of multiple zaurii booting up and displaying streaming video
-
Thanks tapjpa
This does help.....but it still requires manual intervention. I am looking to create a runlevel that simply completes all the initialization (sdcard, network, yada yada..), but instead of launching qpe, it launches the \"vlc\" application.
-
Not sure if it is the same on the 5600, but on the Cxx0 the script /etc/rc.d/rc.rofilesys or /root/etc/rc.d/rc.rofilesys (there are 2 for some reason and they are sometimes different on differnt roms) has a line at the bottom the reads
echo $LAUNCH > /home/sharp/etc/launch.default
where by default $LAUNCH is \"q\" also /etc/inittab has the following
ln:345:respawn:survive -l 6 /sbin/launch
meaning that for run levels 3,4 and 5 (the default) it runs /sbin/launch, whick looks in /home/sharp/etc/launch.default for a single letter to choose what to run. By default it runs /home/QtPalmtop/qpe.sh.
When you disable qpe.sh, it respawns and launch tries to run qpe.sh again, fails, respawns etc etc etc.
So you need to
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel
Hope that helps
Stu
-
Not sure if it is the same on the 5600, but on the Cxx0 the script /etc/rc.d/rc.rofilesys or /root/etc/rc.d/rc.rofilesys (there are 2 for some reason and they are sometimes different on differnt roms) has a line at the bottom the reads
echo $LAUNCH > /home/sharp/etc/launch.default
where by default $LAUNCH is \"q\" also /etc/inittab has the following
ln:345:respawn:survive -l 6 /sbin/launch
meaning that for run levels 3,4 and 5 (the default) it runs /sbin/launch, whick looks in /home/sharp/etc/launch.default for a single letter to choose what to run. By default it runs /home/QtPalmtop/qpe.sh.
When you disable qpe.sh, it respawns and launch tries to run qpe.sh again, fails, respawns etc etc etc.
So you need to
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel
Hope that helps
Stu
Why cant you just edit launch.conf?
-
OK this worked on my sl-5500 running tkc rom 1.0.
Edit the launch.conf, and make the line marked as \"q\" look like this:
q \"Qtopia \" e /sbin/getty getty 9600 tty1 #x /sbin/qt qt
Hope this helps
JP
-
Thanks Stubear and Joshp. That gives some insight.
I get \"getty\" working, but an application like \"vlc\" doesnt seem to work there. It complains about:
QSocket::writeBlock: Socket is not open
So i tried letting the system come up as normal in runlevel 5 and checked all the running processes where I found a \"qeserver\" and a \"qpe\". I let \"qpeserver\" run and killed \"qpe\". That kills the desktop that we see and which is what i want. Also, vlc now runs in that environment.
How can i now make it respawn if it crashes? Since we are not using inittab, there has to be another program that allows that. Any tips would be helpful.
Regards,
A
-
Hi,
Since \"runqpe\" in /home/QtPalmtop/qpe.sh never returns, where can I call my vlc program to be executed on bootup? It seems that it needs to be *after* qpe, otherwise it doesnt start up. I have successfully tried this from the commandline. If I put it in rc.local which executes before qpe, \"vlc\" doesnt start up.
Are there any scripts accessed by the runqpe command? Or is there any way to register a callback that checks every few minutes/seconds to see if vlc is running and if not, runs it? Since we dont have \"cron\" and \"at\" doesnt seem to understand the \"now\" syntax i am at a deadend.
Thanks for your time.
Regards,
A
-
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel
Any changes to /etc/inittab seem to be ignored on my c860. Option a) works, however.
-
Why cant you just edit launch.conf?
Well, on my c860 such changes would be ignored.
-
You could try replacing runqpe with your own script. On the C760 /home/Qtpalmtop/bin/runqpe is a symlink to /usr/QtPalmtop.rom/bin/runqpe - delete the link and create a script that runs qpeserver and vlc - that way it should happily respawn
Stu
-
I\'ve been trying to do this with the TkcRom and VirutalBoy gameboy emulator on the 5600 to see if I can get it to run better with out Qt running. I replace the runqpe script with something like:
qeserver
VirtualBoyAdvanced /mnt/card/game.gba
but it allways just sits at that start up screen. Am I missing something here? Also insted of calling a direct program, is it possible to just load the terminal window and get a shell with out all the overhead of Qt and it\'s apps running?