Active Topics

 



Notices


Reply
Thread Tools
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#1
XLOCKMORE
For those unfamiliar xlockmore is a screensaver like application.
http://www.tux.org/~bagleyd/xlockmore.html

I am starting by saying, I am not a developer, I can not change c code, this is a straight compile of a few programs and hacked together to get a screensaver.

DISCLAIMER, THIS IS MY RANTINGS AND HACKINGS ON THE N800. This is intended for the sole purpose to share my experiences, and fun with others. Do this at your own risk, dont scream at me if this procedure causes you to need to reflash. It worked on, mine, I tested it against multiple images, and I think all the bugs are worked out. You should always take a fresh backup before making any major changes on your system. ALSO NOTE No DEBS will be coming unless you are making them. It is what it is.

LOCKING
Password is limited to escape characters. A separate users is setup "xlock" to run xlock, with a password only of escape characters, however many you would like. I added a small test in .profile, if you login from ssh using xlock, it will kick you out. I did not want people to be able to login remotely with that account. probably better way to handle this, and I am sure someone will point it out.


to install this you need the following setup

becomeroot needs to be installed
http://eko.one.pl/maemo/dists/mistra....1-2_armel.deb

You need to make sure this line is in /etc/sudoers , or this will not work

user ALL = (ALL) NOPASSWD: ALL

If you do not, after installing becomeroot,

Start xterm

run
sudo gainroot

cp and paste this command in next to add it
echo "user ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers


Now we need to add a user

As the root user in xterm run the following

useradd -u 19999 -g 29999 xlock


You now need to set this users password.

passwd xlock

The only password you can use is some number of "esc" keys. The escape key is the only key that works inside password field, in xlock. I set mine to "esc""esc""esc""esc""esc" (hit escape key five time for the password, then enter)

UPDATED EDIT ----~~~~-----
Note at this point you should ssh into the n800 as the xlock user, the password is the number of "esc" characters you set the password to.
DO NOT CONTINUE UNTIL PASSWORD IS VERIFIED THROUGH SSH or you could get locked out of your N800


Now that the user is add and root access is all setup, untar my archive.
http://penguinbait.com/archive.tar

cd /
tar xvf /path/to/tar/archive.tar


This is whats in the tar archive, its 2.8MB, su is added because busybox su does not support "-c" and I was having issues switching to xlock user

Nokia-N800-51:~/test# find . -type f -exec ls -l {} \;
-rwxr-xr-x 1 root root 52 Feb 4 02:38 ./usr/bin/xlock.sh
-rwsr-sr-x 1 root root 2468556 Feb 3 20:29 ./usr/bin/xlock
-rwxr-xr-x 1 root root 40123 Feb 4 02:38 ./usr/bin/su
-rw-r--r-- 1 root root 85484 Feb 3 18:03 ./usr/lib/libXmu.so.6
-rw-r--r-- 1 root root 56132 Feb 3 18:03 ./usr/lib/libXpm.so.4
-rw-r--r-- 1 root root 246108 Feb 3 18:03 ./usr/lib/libXt.so.6
-rw-r--r-- 1 root root 106 Feb 4 01:53 ./usr/share/applications/hildon/0777_xlock.desktop
-rwxr-xr-x 1 root root 420 Feb 4 02:38 ./etc/init.d/xlock
-rwxr-xr-x 1 root root 417 Feb 4 01:55 ./etc/rc2.d/S71xlock
-rw-r--r-- 1 root root 379 Feb 4 02:26 ./home/xlock/.profile
-rwxr-xr-x 1 root root 412 Feb 4 03:30 ./home/xlock/.bashrc
Nokia-N800-51:~/test# du -sh
2.6M .



FYI - libs were pulled from scratchbox, and were needed for xlock, I just copied the files it complained about. So its not a link, not sure if it should be.

You should now have all you need. There should be an option on the menu to start xlock, it will also startup on boot, about 5-10 seconds after login. I tried to get it to start earlier, but it kept killing the system and rebooting. So we'll see. This needs to be picked up by a developer, its really cool. You can change the script to call a specific screensaver, currently its random.


Run it from the menu, reboot, let me know how it goes.




Additional info
when it prompts for password, hit the escape key the correct number of times, then the middle of the dpad to enter the password. Thats it your in!!!!!!!!!


xlock -help

xlock -mode matrix
(use matrix screensaver, if you use the help, it will tell you the others you can set it to also)


Edit the files to add mode or other options
menu /usr/bin/xlock.sh
boot /etc/init.d/xlock


Before someone asks, the escape key on the n800, is the circle shaped arrow key turning to the left.!!!!!!!!!

Hopefully someone finds this fun or usefull, I did....

I would love to see someone make the virtual keyboard pop up on this

Last edited by penguinbait; 2007-02-04 at 17:05.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#2
I just wanted to point out, that you should probably be ssh'ed into the n800 when doing this. Test the menu option before rebooting, if you have not properly set the password on the xlock account you could get locked out and need to reflash without ssh installed and wifi autoconnect. As you would have no way to kill the xlock process.

I will put an edit above to point this out also!!!
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#3
One other issue I have noticed over the time I have been playing with. There are a bunch of screensavers included inside xlock, they run pretty zippy, but there appears to be some that are CPU hogs. The default behavior is for the screensavers to be cycled through, so it runs great until it hits the one screensaver that will crash after 5 minutes running "balls out". When this happens you will see the normal screen again and you can click but it stays locked. It seems to leave the Display in an odd state, reboot is the only thing that fixes it. You can use ssh all day long, but you can not get past the screen. even if you kill the process, the Display set wrong and nothing will open.

How to avoid this
EDIT = See next post, this is resolved. I updated the two shortcuts mentioned below to "xlock -modelist one,two,three" and so on.... I only included low cpu screen savers in the list. They are all still here and you can enable any of them, as stated below. I was just trying to avoid crashing xlock.
EDIT OVER

Pick the screensaver you like and use it.

if you run
xlock -help | more

It will print all kinds of stuff, there is a ton of options and different screen savers.

here is a list of the screen savers available

set it by
"xlock -mode matirx"
or
"xlock -mode ball"

Some of these will put your CPU att 100% which is what is causing the problem. Find one you like and set it to use that one.

Bootup
/etc/init.d/xlock

Change,
/usr/bin/su - xlock -c /usr/bin/xlock
to
/usr/bin/su - xlock -c "/usr/bin/xlock -mode matrix"

Menu

/usr/bin/xlock.sh

Change,
/usr/bin/sudo /root/su - xlock -c /usr/bin/xlock
to
/usr/bin/sudo /root/su - xlock -c "/usr/bin/xlock -mode ant"


anemone
ant
ant3d
apollonian
ball
bat
blot
bouboule
bounce
braid
bubble
bug
clock
coral
crystal
daisy
dclock
decay
deco
deluxe
demon
dilemma
discrete
dragon
drift
euler2d
eyes
fadeplot
fiberlamp
flag
flame
flow
forest
galaxy
goop
grav
helix
hop
ico
ifs
image
juggle
julia
kaleid
kumppa
laser
life
life1d
life3d
lightning
lisa
lissie
lyapunov
mandelbrot
marquee
matrix
maze
mountain
munch
nose
pacman
penrose
petal
petri
polyominoes
puzzle
pyro
qix
roll
scooter
shape
sierpinski
slip
solitare
space
sphere
spiral
spline
star
starfish
strange
swarm
swirl
t3d
tetris
thornbird
tik_tak
toneclock
triangle
tube
turtle
vines
voters
wire
world
worm
xcl
xjack
blank
bomb
random

Last edited by penguinbait; 2007-02-04 at 20:18.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#4
It seems like I am having a conversation with myself, but I dont really care, its documented for posterity!! hehe

/etc/init.d/xlock
and
/usr/bin/xlock.sh

have been updated inside archive.tar

Now they exclude the CPU hogs, I choose not to include anything that uses more than 10-15 percent of cpu consistently. You can still edit the files as you like and use whatever modes you want.


Has anyone played around yet, its pretty cool, I think?

Last edited by penguinbait; 2007-02-04 at 21:11.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#5
OK, here is some video if anyone wants to see, sorry if its slow, its only comcast connection. Continuing conversation with myself


They were converted for play on 770/800

http://penguinbait.com/xlock/DSCF1872.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1873.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1874.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1875.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1876.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1877.AVI.nokia770.avi
http://penguinbait.com/xlock/DSCF1878.AVI.nokia770.avi

948K DSCF1872.AVI.nokia770.avi
1.5M DSCF1873.AVI.nokia770.avi
1.3M DSCF1874.AVI.nokia770.avi
5.3M DSCF1875.AVI.nokia770.avi
3.8M DSCF1876.AVI.nokia770.avi
1.5M DSCF1877.AVI.nokia770.avi
1.5M DSCF1878.AVI.nokia770.avi
 
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#6
Thanks for the documentation penguinbait!

Since i never use the desktop applets, my preferred use would be to have them running in 'root window' / desktop space when i'm idling, and to shut off when i run something in foreground

btw the guy behind the xscreensaver / xlock tradition is Jamie Zawinsky (www.jwz.org).
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#7
It works, but was a little janky, I was hoping to prompt some developers to develop a maemo solution. I would really like to see a multi-user bootup interface developed
 
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#8
penguinbait... I have to say you have put lots of efforts in to this grate software including the multi environment you have created (ROX, KDE, etc...) and I have to say that every one of them I enjoy very much! If you send me your pay pal info I will be more than glad to donate to all your efforts!!!

Thank You!!!!
 

The Following User Says Thank You to SeRi@lDiE For This Useful Post:
torx's Avatar
Posts: 231 | Thanked: 21 times | Joined on May 2007 @ Singapore
#9
Yea, we need more people like you.

Cheers!
 
tolou's Avatar
Posts: 87 | Thanked: 1 time | Joined on Mar 2006
#10
Yes, appreciate it.
I still have ROX installed and are also able to execute the nice xlock while on Hildon desktop. I've saved some of my favorite screensavers e.g Galaxy in the loadapplet command run for convenient access.
__________________
Naboo
__________________
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:16.