$ ls -lrt /etc/apm/suspend
-rwxr-xr-x  1 root  wheel  49 Apr 10 00:47 /etc/apm/suspend

Still not locking...

Stuart, full disk encryption would not be a problem to update on a new
release? looks tempting...

2016-04-11 9:15 GMT+02:00 Peter Hessler <phess...@theapt.org>:
> Is /etc/apm/suspend executable?  apmd expects it to be an executable, so
> you may need to chmod +x the file.
>
> On 2016 Apr 10 (Sun) at 17:02:03 +0200 (+0200), Pau Amaro-Seoane wrote:
> :you are right... sorry
> :
> :I am starting X with xdm to avoid leaving a terminal open from which I
> :run startx
> :
> :Then, in my .xsession, I have
> :
> :xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace
> :BackSpace BackSpace"
> :xset -b
> :pkill xidle
> :xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 90 &
> :exec startxfce4
> :
> :# pgrep xidle
> :2834
> :
> :Is running, but still no locking after resuming...
> :Pau
> :---
> :Group Leader of Theoretical Astrophysics
> :Max Planck Institute Gravitational Physics
> :Albert Einstein Institute http://astro-gr.org
> :
> :
> :2016-04-10 11:06 GMT+02:00 Marcus MERIGHI <mcmer-open...@tor.at>:
> :> pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 22:46 
> (CEST):
> :>> Hello:
> :>>
> :>> thanks for the replies.
> :>>
> :>> I tried creating a script in /etc
> :>>
> :>> # cat /etc/apm/suspend
> :>> #!/bin/sh
> :>
> :> I'd recommend "#!/bin/sh -e" for shebang; this way the shell (/bin/sh)
> :> stops when an error occurs.
> :>
> :>> pkill -USR1 xidle
> :>
> :> This will only work if xidle(1) is running; does it run?
> :> (run "pgrep xidle")
> :>
> :>> and then I added this to my .xsession
> :>>
> :>> $ cat .xsession
> :>> xidle &
> :>>
> :>> Still, when resuming, my session is exposed.
> :>>
> :>> This is my .xinitrc:
> :>>
> :>> xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace
> :>> BackSpace BackSpace"
> :>> xset -b
> :>> exec startxfce4
> :>> #exec cwm
> :>>
> :>> What am I doing wrong?
> :>
> :> No idea so far; are you starting X via startx(1) or via xdm(1)? You are
> :> mixing .xsession (for xdm(1)) and .xinitrc (for startx(1)).
> :>
> :> Bye, Marcus
> :>
> :>> 2016-04-09 18:37 GMT+02:00 Marcus MERIGHI <mcmer-open...@tor.at>:
> :>> > Hello Pau,
> :>> >
> :>> > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 12:01 
> (CEST):
> :>> >> Dear all:
> :>> >>
> :>> >> I prefer to use stable releases of OpenBSD and use a /home encrypted
> :>> >> and I was wondering whether it is possible to keep that partition from
> :>> >> release to release. I mean, I would like to avoid the work of
> :>> >> encrypting a huge partition every time that I update the OS.
> :>> >
> :>> > If you use bsd.rd (install kernel downloaded and booted) and select
> :>> > "Upgrade" then your /home won't be newfs(8)ed.
> :>> >
> :>> > I have (on my single user notebook) /home unencrypted, my users home dir
> :>> > encrypted but just 1GB and a user/data mount with the big one.
> :>> >
> :>> > This way you get quick access to your home dir when fsck(8) has to be
> :>> > run.
> :>> >
> :>> > How do you unlock your encrypted /home before log in?
> :>> > How do you fsck your encrypted /home before log in?
> :>> > How do you mount your encrypted /home before log in?
> :>> >
> :>> >> I have seen this web page:
> :>> >> http://<notrepeated>.com/posts/openbsd-workstation.html
> :>> >> and I was wondering whether I could follow this to keep a separate 
> partition.
> :>> >>
> :>> >> If this can be done, what would be the steps when I update to 6.0? I
> :>> >> would appreciate a dummy, step-by-step guide assuming that I am 5
> :>> >> years old.
> :>> >
> :>> > See above. Use your OpenBSD installation to download bsd.rd of the
> :>> > version you want. Move it to /bsd.rd. Reboot, enter "boot bsd.rd" at the
> :>> > boot prompt. Follow the instructions. Select "Upgrade".
> :>> >
> :>> >> Another question I have is how to bind a key to xlock + zzz, so that I
> :>> >
> :>> > Which window manager? Stock fvwm?
> :>> >
> :>> >> can lock the screen before suspending, or how to force xlock to be run
> :>> >> after resuming. The indications give in that page are not working for
> :>> >> me.
> :>> >
> :>> > apmd(8) can run scripts on wakeup/resume/standby/...
> :>> > But what you might really want is -startCmd of xlock(1).
> :>> >
> :>> > What about your encrypted partition when suspending?
> :>> >
> :>> > Bye, Marcus
> :>> >
> :>> >>
>
> --
> The human animal differs from the lesser primates in his passion for
> lists of "Ten Best".
>                 -- H. Allen Smith



-- 
Pau
---
Group Leader of Theoretical Astrophysics
Max Planck Institute Gravitational Physics
Albert Einstein Institute http://astro-gr.org
_______________________________________________
Openbsd-newbies mailing list
Openbsd-newbies@sfobug.theapt.org
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to