Re: Getting screen to lock on suspend with Lenovo Thinkpad X1 Carbon

2019-09-03 Thread Trey Sizemore
On Tue, Sep 3, 2019, at 8:54 PM, joshua stein wrote:
> On Tue, 03 Sep 2019 at 19:41:40 -0400, Trey Sizemore wrote:
> > One remaining issue is getting the screen to lock when the laptop lid is 
> > closed and the laptop suspends.  The screen does not lock and just resumes 
> > to the XFCE4 desktop.
> > 
> > I have the following in my .xsession:
> > 
> > bsd$ cat .xsession
> > xidle -timeout 300 -program "/usr/local/bin/slock" &
> > 
> > Any help greatly appreciated.
> 
> xidle locks on SIGUSR1, so you could send it such a signal upon 
> suspend.
> 
> With apmd enabled, add "pkill -USR1 xidle" to /etc/apm/suspend
> 
>

Thank you.  I should have said, I have the following:

bsd# cat /etc/apm/suspend   

 
#!/bin/sh
pkill -USR1 xidle

and that file is executable.



Getting screen to lock on suspend with Lenovo Thinkpad X1 Carbon

2019-09-03 Thread Trey Sizemore
Hi-

I've install OpenBSD 6.5 on my Lenovo Thinkpad X! carbon (5th gen).

I have installed XFCE4 and have most features working well.

One remaining issue is getting the screen to lock when the laptop lid is closed 
and the laptop suspends.  The screen does not lock and just resumes to the 
XFCE4 desktop.

I have the following in my .xsession:

bsd$ cat .xsession
xidle -timeout 300 -program "/usr/local/bin/slock" &

Any help greatly appreciated.

-- 
  Trey Sizemore
  t...@fastmail.fm



Installing bootloader on first slice/partition of drive

2011-04-28 Thread Trey Sizemore
I'm doing an install of openbsd 4.8 on a desktop machine with 3 SATA
drives.  I want to use the 2nd drive (sdb in linux, sd1 on openbsd).
This is a multi-boot machine, so I don't want to install the bootloader
on the MBR, but would like to install it on the first slice/partition of
sd1.

In that case, should I choose to use the entire disk (previously home to
a linux install that I no longer want to use) and am I then able to
choose where to install the bootloader?

--
Cheers,
Trey


I've touch'd the highest point of all my greatness;
And from that full meridian of my glory
I haste now to my setting.  I shall fall,
Like a bright exhalation in the evening
And no man see me more.
 -- Shakespeare

Darwin tbook-2.local 10.7.0 i386
 8:13  up 5 days, 17:42, 4 users, load averages: 0.20 0.22 0.17

[demime 1.01d removed an attachment of type application/pgp-signature]



OpenBSD 3.9 as a desktop

2006-05-09 Thread Trey Sizemore
I received my OpenBSD 3.9 CD set today and did the initial install with
no problem. Now, I'd like to set this box up for desktop use. The CD's
include a number or i386 packages including a number of kde packages,
such as kdebase, kdelibs, kdeedu, and kdegames.

I want to setup kde with kdm when I login. Eventually , I'd like to add
gnomestuff to this as well.

At this point, I've got kdm working when the box starts, and I can
choose KDE from the kdm session menu, but when I login, I get what
looks to be twm (or some other minimilist window manager). I have
installed the 4 KDE packages from the OpenBSD 3.9 disk.

I've also created a ~/.xinitrc file for my user account and put 'exec
startkde' in that file.

Following the instructions at www.openbsdsupport.org/obsd_desktop I'm
able to get xdm up at startup (nice little Puffy icon and Welcome
screen) but there does not appear to be a way to get to choose what
session to start.

I have added the sessions to /etc/X11/xdm/Xsession as listed on that
page and added xdm_flags="" to /etc/rc.conf.local.

I can manually run /usr/local/bin/startkde, so that *does* work. Just
can't seem to choose to launch it from xdm (or kdm/gdm, but I haven't
gotten that far yet ;-) )

So, my question is, what did I leave out to get this working? Also, if
there's a good "How to setup OpenBSD for the desktop" out there to
point me to, that'd be great as well.

Especially some of the things I've still got to do around fonts and the
FontPath section of xorg.conf.

-- 
Cheers,
Trey

 
San Francisco, n.:
Marcel Proust editing an issue of Penthouse.
 
Linux laptop 2.6.16-8-smp i686 GNU/Linux
  9:43am  up 3 days 23:40,  5 users,  load average: 0.79, 0.46, 0.32