Author Topic: Lock Screen On Beta3  (Read 2134 times)

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Lock Screen On Beta3
« on: September 15, 2006, 02:27:46 pm »
hi!

id like to have a tool to lock my screen with password protection

i installed xscreensaver-package from 760-new-feed for beta4 on my c3100 with beta3, in general it works fine BUT in order to lock the screen with "xscreensaver-command -lock" i first have to run "xscreensaver" which is a bit annoying

so my questions are:

is there a way to automatically start xscreensaver after starting x11 with "startx"? (i tried to modify mbsessions cause i thought that this is started every time after "startx" but that did not work [why not?]; i also tried a simple shellscript "S99screensaver" in /etc/rc.d/rc5/ to start sxcreensaver but that also did not work [why not?])

or: should i use any other (easier)  tool than xscreensaver to lock the screen?

regards
seb

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Lock Screen On Beta3
« Reply #1 on: September 15, 2006, 02:30:02 pm »
You could add it to...

Code: [Select]
# /home/root/.xinitrc
That is launched everytime you run "startx"

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Lock Screen On Beta3
« Reply #2 on: September 15, 2006, 02:37:15 pm »
thx for the quick answer

/home/root/.xinitrc is a link to /usr/bin/mbsession which is the script i modified in order to start "xscreensaver" which did not work

btw im not logged in as root but as a normal user with home directory /home/user1 ( i did cp /usr/bin/mbsession /home/user1/.xinitrc in order to get it running, so to be right on the point i added a new line "xscreensaver" to /home/user1/.xinitrc which was a copy of /usr/bin/mbsession before )

this did not work :-((

ratki

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Lock Screen On Beta3
« Reply #3 on: September 17, 2006, 05:57:08 pm »
Hi,

I've tried to use xscreensaver locking my Z automatically as I switch it to stand by. I couldn't managed it.

But you can start it with $HOME/.profile as follows. (It starts X11 at login and xscreensaver will be started with.)
Code: [Select]
# here you can do some settings...

if [ $TERM = "linux" ]; then
  (sleep 3; xscreensaver )&
  startx                    
  exit  
fi    

I have to say that I don't use it anymore, and this is only as I remember on it. (I didn't find any saving about my tests.)

I hope it helps you. Anyway I would use some minimal protection, too.

Best wishes,

Tamás

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Lock Screen On Beta3
« Reply #4 on: October 01, 2006, 03:22:57 am »
thx i'll give it a try!