Re: pkg_info -Q not finding all entries?

2023-01-30 Thread Matthias Schmidt
Hi,

* David Demelier wrote:
> Hello,
> 
> While searching for sqlite3 I've realized that pkg_info -Q sqlite3
> finds some php packages but not everything available in the remote
> repository:
> 
> # cat /etc/installurl 
> https://ftp.fr.openbsd.org/pub/OpenBSD/
> # pkg_info -Q sqlite3
> debug-php-sqlite3-7.4.32p0
> debug-php-sqlite3-7.4.33
> debug-php-sqlite3-8.0.24p0
> debug-php-sqlite3-8.0.25
> debug-php-sqlite3-8.0.26
> debug-php-sqlite3-8.0.27
> debug-php-sqlite3-8.1.11p0
> debug-php-sqlite3-8.1.12
> debug-php-sqlite3-8.1.13
> debug-php-sqlite3-8.1.14
> php-sqlite3-7.4.32p0
> php-sqlite3-7.4.33
> php-sqlite3-8.0.24p0
> php-sqlite3-8.0.25
> php-sqlite3-8.0.26
> php-sqlite3-8.0.27
> php-sqlite3-8.1.11p0
> php-sqlite3-8.1.12
> php-sqlite3-8.1.13
> php-sqlite3-8.1.14

What you see above are the sqlite3 packages from the 7.2
packages-stable/ directory.  When you do the same on a -current you get
much more results and presumably what you expected.

$ pkg_info -Q sqlite3 | wc -l
 20

I assume pkg_info looks only in the stable directory and not in both to
builds a set between updated and not updates packages...

Cheers

Matthias



TLS certs for open{bgpd,ntpd}.org expired

2023-01-01 Thread Matthias Schmidt
Hi,

in case the admin is subscribed here or someone can deliver a ping.  The
certs for the above mentioned web sites expired on 20221225.

Cheers

Matthias



trunk failover with detachable device (ure)

2022-05-15 Thread Matthias Schmidt
Hi everyone,

I have a Laptop with iwx(4) only and using an ure(4) device in case I need
wired Ethernet.  I failed to create a trunk(4) port with iwx as master
and ure as failover since the latter is usually not connected and only
gets connected on demand.

Is it possible at all to have a failover/trunk setup with a detachable device
or does someone has a best practice here?  I could imagine to build
something with hotplugd...

Cheers and thanks

Matthias



Re: Another kernel fault incident on a Vultr OpenBSD VM

2022-04-19 Thread Matthias Schmidt
Hi,

* Mihai Popescu wrote:
> > It lowers my confidence in Vultr as a reliable OpenBSD host.
> 
> Very well, it will match the confidence of running OpenBSD on a virtual 
> machine.

I have all my public OpenBSD instances running as virtual machines at
IONOS (ionos.com).  Their VPS product is based on VMWare ESXI and I have
my machines running there since early 6.x.  So far all rock stable, one
can upload custom ISOs, has KVM access and you can even type your
softraid passphrase via keyboard and no need to use the softkeyboard (as
with others).

Cheers

Matthias



Re: No sound on ThinkPad X220 using current snapshot

2022-02-16 Thread Matthias Schmidt
Hi,

* Alexandre Ratchov wrote:
> On Mon, Feb 14, 2022 at 01:11:09PM +0100, Dirk-Wilhelm Peters wrote:
> > Hi,
> > 
> > after a recent update to the latest snapshot on my ThinkPad X220, there
> > is no sound after returning from suspend mode. The problem persists
> > even after a reboot. I have to shutdown/restart the machine to enable
> > audio output again. Headphone output is not affected.
> > 
> 
> This is recent regression, right?
> 
> FWIW mixer settings are saved during suspend and restored on
> resume. Working headphones suggests this may be caused by parts of the
> system (speaker amplifiers) not being powered.

FYI, I had the same issue with a Thinkpad X250 and the recent snapshot
from this morning fixed it for me.

OpenBSD 7.0-current (GENERIC) #336: Wed Feb 16 01:14:53 MST 2022

Cheers

Matthias



Re: Upgrade to 7.0

2021-11-23 Thread Matthias Schmidt
Hi,

* pas...@pascallen.nl wrote:
> I'm trying to upgrade to 7.0 but it fails.
> The upgrade quide shows: 
>Check available disk space in /usr. Verify that the /usr partition
>has a size of at least 1.1G. With less space the upgrade may fail
>and you should consider reinstalling the system instead.
> 
> Well theres space. But _sysupgrade folder is DL in /home. And /home is
> encrypted. Gets mounted after I give the password.
> When I don't have sysupgrade dl in the mounted /home/_sysupgrade. It
> goes in the folder /home on /
> Which doesn't have 1.1G spare.

I have the same setup here (two disks and one contains the encrypted
/home).  I solved it as follows:

* On my encrypted home partition, /home/_sysupgrade is a symlink to
  /var/_sysupgrade
* On the root (/) partition, /home/_sysupgrade is a symlink to
  /mnt/var/_sysupgrade

With these two symlinks I can run sysupgrade as usual when logged in.
After booting into bsd.upgrade the script can find the data sets since
/var/_sysupgrade will be mounted in /mnt on the ramdisk.

This is a hack that's not officially supported and works for me!

Cheers

Matthias



Re: OpenBSD 6.9 on Hetzner cloud server

2021-07-22 Thread Matthias Schmidt
Hi,

* Hrvoje Popovski wrote:
> Hi all,
> 
> I'm thinking of getting Hetzner cloud server and install OpenBSD stable
> on it...
> 
> Does anyone have experience with it? Is it complicated to install
> OpenBSD on it? And of course, is it stable?

I ran OpenBSD -stable on a Hetzner cloud server (previously known as
VPS) for several years and it was rock stable and easy to install.  I
moved away from Hetzner since their IP space has a bad reputation and is
often on deny-lists by default.  Even if your server is well maintained
you end up on such a list as collateral damage.

Nowadays, I have all my servers with IONOS.  Their IP space has better
reputation and their VPS product is much much faster (it's based on
VMWare and not on KVM).  OpenBSD easy is simple since you can upload
custom ISOs and have remote console access.

Cheers

Matthias



Re: libexpat.so.14.0 missing in latest -current

2021-05-27 Thread Matthias Schmidt
Hi,

* Anthony Campbell wrote:
> After upgrading to -current today I found that xenodm would not run
> because of a missing /usr/lib/libexpat.so.14.0_ Various other things
> didn['t work either, including vim.

Had the same.  Just fetch latest sets again and all is working.
ftp.hostserver.de has the latest sets with the new libexpat.

Cheers

Matthias



Re: tmux 80% CPU

2021-01-22 Thread Matthias Schmidt
Hi Jan,

* Jan Stary wrote:
> This is current/amd64, freshly upgraded on a Thinkpad T400.
> tmux is eating 80% CPU, but gets back down.
> Same thing happened a few minutes ago.
> Is anyone seeing the same?

Yes, I have the same effect here and I thought about the correct how to
report it :)

I am running on a Thinkpad T450s

OpenBSD 6.8-current (GENERIC.MP) #284: Wed Jan 20 02:40:03 MST 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

and noticed it the first time when I fetched the OpenBSD sources from
github.  tmux within an xterm stalls and the CPU consumption goes up and
up.  Stalling in the sense that the whole window is frozen.  Frozen
means that I cannot create new windows, etc. tmux just doesn't react on
commands anymore.  After some time the command succeeds and the CPU load
drops to a normal level.

At the beginning, I thought it was git.  The second time I recognized
the behaviour was when I upgraded a Linux server via ssh in a tmux
window and xterm froze and tmux showed increasing CPU consumption.
After a while the Linux update was suddenly complete, the xterm unfroze
and the CPU usage decreased.

It sounds totally weird but that's what I (and obviously Jan) observe
ATM.

Cheers

Matthias


OpenBSD 6.8-current (GENERIC.MP) #284: Wed Jan 20 02:40:03 MST 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 12765265920 (12173MB)
avail mem = 12363071488 (11790MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9cbfd000 (65 entries)
bios0: vendor LENOVO version "JBET73WW (1.37 )" date 08/14/2019
bios0: LENOVO 20BX0049GE
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT PCCT SSDT TCPA SSDT UEFI MSDM BATB FPDT UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 798.29 MHz, 06-3d-04
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 798.16 MHz, 06-3d-04
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "45N" serial 16646 type LiP oem "SONY"
acpibat1 at acpi0: BAT1 model "45N1777" serial   410 type LION oem "SANYO"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0: version 1.0
tpm0 at acpi0 TPM_ addr 0xfed4/0x5000, device 0x104a rev 0x4e
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT340F" at acpi0 not configured
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 128 degC
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2201, 2200, 2100, 2000, 

Re: static IPv6 setup is not working stable

2020-08-06 Thread Matthias Schmidt
Hi,

* kug1977 wrote:
> 
> Is this something wrong configured on OpenBSD server or is this something
> the provider has to check on the gateway side?

I also have a VM at the exact same provider (netcup) and face
the same problem.  Since all of my VMs at different providers are
identical (base install + conf via ansible) and I don't see the issue at
other providers (IONOS, Hetzner) I suspect it has nothing to do with
OpenBSD...

Cheers

Matthias



Re: ThinkPad X220 Trackpoint Pointer Wheel Emulation Issues

2018-10-17 Thread Matthias Schmidt

Hi,

On 17.10.2018 03:45, Charles Daniels wrote:


I've recently installed OpenBSD 6.3 on my Thinkpad X220. I'm happy to
report that almost everything seems to work the way it should
(suspend/resume, wireless, volume controls, etc.). However, I've been
having some difficulty with the TrackPoint.

The TrackPoint works fine as a pointing device, however the "WS
Pointer Wheel Emulation" emulation feature is not working. For those
unfamiliar, this allows the middle mouse button to be held down, and
while it is held, the TrackPoint can be used to scroll vertically or
horizontally.


I am using the following setting to enabled TrackPoint scrolling on
my T450s. 8 is the ID of my Trackpoint.

# Speed up trackpint
xinput set-prop 8 'Device Accel Constant Deceleration' 0.7
# Enabled trackpoint scrolling
xinput set-prop 8 'WS Pointer Wheel Emulation' 1
# Scroll with middle button and trackpad
xinput set-prop 8 'WS Pointer Wheel Emulation Button' 2
# Natural scrolling with Trackpoint
xinput set-button-map 8 1 2 3 5 4 7 6

Cheers and HTH

 Matthias



Re: vmd: use -b option with an existing vm.conf entry

2018-02-13 Thread Matthias Schmidt
Hi Mike,

* Mike Larkin wrote:
> 
> Not sure if it's a "bug" per se, but this is behaving the way it should.
> 
> Now, whether or not that is really the best way is open for discussion.
> There was talk long ago about specifying some way of letting users
> supply override information for certain vm.conf parameters, but nobody
> ever implemented that.

Thanks for the explanation!

> A somewhat simpler way is to not use the -b option and instead boot
> bsd.rd from inside the VM at the boot> prompt. Of course that requires
> the ability to use seabios in vmm (necessitating a post-Nehalem CPU that
> has unrestricted guest capability).
> 
> If you don't want to do that (or can't due to an older CPU), yes, you're
> doing things the "right" way presently by editing that file and reloading.
> You could also just start a VM manually as root in that case by specifying a
> different name on the cmd line (and not have to edit the file):

That's a neat trick I'll definitely use the next time.

Cheers and thanks

Matthias



vmd: use -b option with an existing vm.conf entry

2018-02-13 Thread Matthias Schmidt
Hi,

while upgrading one of my vmm(4) VMs I noticed the following behaviour and
wondering whether it's a bug or a feature.

I have the following test VM defined:

vm "obsd-1" {
disable
memory 1024M
owner xhr
boot "/bsd"
disk "/home/xhr/VMs/obsd-vmm-1.img"
interface {
switch "local"
}
}

When I now want to upgrade the VM, I need to start the VM with bsd.rd as
kernel.  However, I have to change the boot option in vm.conf to bsd.rd
and cannot supply bsd.rd as argument to vmctl start:

$ vmctl start obsd-1 -c -b /tmp/bsd.rd
vmctl: starting without disks
vmctl: starting without network interfaces
vmctl: start vm command failed: Operation already in progress

Wouldn't it be easier to just supply -b from the CLI and get the
remaining info from vm.conf?  ATM I am changing vm.conf and reloading
vmd as root.  Or am I overlooking sth here?

Cheers

Matthias



Re: New default setup for touchpads in X

2017-12-23 Thread Matthias Schmidt
* Matthias Schmidt wrote:
> Hi Ulf,
> 
> * Ulf Brosziewski wrote:
> > If you're following -current, or if you upgrade your system with the
> > next or a future snapshot, please note that the default setup for
> > touchpads in X will change.
> 
> Finally, I found the time to switch from Synaptics to the ws driver.
> Running current from Dec 23 here.
> 
> mouse.type=synaptics
> mouse.rawmode=0
> mouse.scale=1266,5676,1096,4758,0,45,68
> mouse.tp.tapping=0
> mouse.tp.scaling=0.160
> mouse.tp.swapsides=0
> mouse.tp.disable=0
> mouse1.type=ps2
> 
> Using a Thinkpad T450s here.  So far, I tested two-finger scrolling and
> the usual touchpad actions.  I noticed two things:
> 
> 1. The pointer speed seems a bit slow for me.  Can I somehow
> increase the speed?

Ignore this.  While I looked at the man page I overlooked the misc@
posting.

Cheers

Matthias



Re: New default setup for touchpads in X

2017-12-23 Thread Matthias Schmidt
Hi Ulf,

* Ulf Brosziewski wrote:
> If you're following -current, or if you upgrade your system with the
> next or a future snapshot, please note that the default setup for
> touchpads in X will change.

Finally, I found the time to switch from Synaptics to the ws driver.
Running current from Dec 23 here.

mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1266,5676,1096,4758,0,45,68
mouse.tp.tapping=0
mouse.tp.scaling=0.160
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2

Using a Thinkpad T450s here.  So far, I tested two-finger scrolling and
the usual touchpad actions.  I noticed two things:

1. The pointer speed seems a bit slow for me.  Can I somehow
increase the speed?
2. Two-finger scrolling takes more 'activation energy' compared to the
Synaptic driver.  With the latter I only needed to lightly scroll over
the touchpad to trigger scrolling.  With ws I need to push the fingers
harder on the trackpad.  Example: With ws I need 7 scroll actions to
scroll down the entire "Install FAQ" article.  With synaptics I only
need 4 scroll actions.

Cheers

Matthias



Re: ping -R causes panic

2017-09-20 Thread Matthias Schmidt

Hi,

On 20.09.2017 14:28, George Brown wrote:
I can reproduce this after updating to the Sept 18th snapshot, I did 
not

observe this on my Aug 20 snapshot install if that aids in narrowing
down when this was introduced.


I am by no means a kernel developer but I would assume that the bug has 
been introduced in the following commit:


Author: mpi 
Date:   Fri Sep 1 15:05:31 2017 +

Change sosetopt() to no longer free the mbuf it receives and change
all the callers to call m_freem(9).

From the diff it seems a call to m_dup_pkt() snuck in:

-   goto bad;
-   *pcbopt = m;
-   return (0);
+   return (EINVAL);
+   *pcbopt = m_dup_pkt(m, 0, M_NOWAIT);
+   if (*pcbopt == NULL)
+   return (ENOBUFS);

Cheers

   Matthias



Re: reused group key update received

2017-09-18 Thread Matthias Schmidt
Hi,

* Matthias Schmidt wrote:
> Hi,
> 
> today I saw the following message in my logs browsing by:
> 
> Sep 18 19:55:17 sigma /bsd: iwm0: reused group key update received from 
> 9c:c7:a6:56:3e:69
> 
> I remembered that this message has been added by stsp@ at August 17th
> and he's interested in seeing this message.  However, the message
> appeared in my private WLAN at home and not in some suspicious open
> WLAN.
> 
> The MAC address is not the one of my local FritzBox but close.  They
> only differ in the last part, my FrizBox has :67 and not :69.

Apparently that statement is wrong.  My router's MAC address indeed ends
with :69, however, the arp -a output shows the wrong MAC:

$ arp -an
Host Ethernet AddressNetif ExpireFlags
172.16.1.1   9c:c7:a6:56:3e:67iwm0 19m56s



reused group key update received

2017-09-18 Thread Matthias Schmidt
Hi,

today I saw the following message in my logs browsing by:

Sep 18 19:55:17 sigma /bsd: iwm0: reused group key update received from 
9c:c7:a6:56:3e:69

I remembered that this message has been added by stsp@ at August 17th
and he's interested in seeing this message.  However, the message
appeared in my private WLAN at home and not in some suspicious open
WLAN.

The MAC address is not the one of my local FritzBox but close.  They
only differ in the last part, my FrizBox has :67 and not :69.

Anything else I should do?  An arping to the address does not revealed
any results.  Also nothing in my Router-logs.

Cheers

Matthias



Re: touchpad input driver: testing needed

2017-08-09 Thread Matthias Schmidt
Hi,


* Marcus MERIGHI wrote:
> Hello, 
> 
> just as Josh I have a X220 which works fine, thanks!
> 
> notes: two-finger-scrolling has changed; it takes a little more to
> start scrolling; it scrolls a little slower; it stops scrolling
> instantly when I lift my fingers (formerly, if I scrolled with a swing
> and then released the touchpad it kept scrolling and slowed down slowly,
> unless I tapped the touchpad).

Same HW here and all works as excepted.  Interestingly my touchpad keeps
scrolling when I lift my fingers.

$ doas  wsconsctl | grep 'mouse'
wsconsctl: Use explicit arg to view keyboard.map.
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5472,1408,4448,0,75,129
mouse.tp.tapping=0
mouse.tp.scaling=0.183
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2

Cheers

Matthias

OpenBSD 6.1-current (GENERIC.MP) #52: Tue Aug  8 23:36:00 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80
real mem = 17041059840 (16251MB)
avail mem = 16518242304 (15753MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011
bios0: LENOVO 4290W1B
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT 
SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.28 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2492279720 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus -1 (EXP7)
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"LEN0020" at acpi0 not configured
"SMO1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "45N1029" serial76 type LION oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2200, 2000, 1800, 1600, 
1400, 1200, 1000, 800 MHz
pci0 at mainbus0 

Re: Robust ThinkPad suggestions for running OpenBSD.

2017-07-12 Thread Matthias Schmidt

Hi,

Am 12.07.2017 12:18 schrieb J. Misc.:

Hello, everyone.

I'm here to ask for input on a hardware purchase that I believe
seasoned OpenBSD users could provide some valuable insight into.

I am looking to purchase a ThinkPad to exclusively run OpenBSD on. The
intent here is to have a dedicated machine to explore and play with
OpenBSD, and eventually promote it as my primary day-to-day
workstation.

A little background: I own a T460s, and it's an excellent machine, but
I feel it to be too fragile to use in harsh environments, like
outdoors or hackerspaces with a lot of rough objects around.


I haven't used the T460s yet, however, I do own a T450s and that
runs very well with OpenBSD [1]. Besides being my day-to-day
workhorse I already used this model on camping trips (OK, it was a
hacker camp :)), outdoors and it survived long-range travel.

So far, I am pretty impressed with the quality.  Of course, you cannot
compare it to the good old Thinkpad T40 but that was a different
area.

Cheers

Matthias

[1] https://gist.github.com/thexhr/a8e159514c87a04b98aced2c4245f6dc



Running 6.1 on a Lenovo Thinkpad T450s

2017-07-01 Thread Matthias Schmidt
Hi,

since my last OpenBSD on laptop testimony is a bit older [1] I decided
to share some more recent news :)

I installed OpenBSD 6.1 on a Lenovo Thinkpad T450s and wanted
to share my experiences FYI.  The tl;dr version is that 6.1 runs really
awesome, no need for special stunts or configuration.  So kudos to the
team for the great work.

Battery
---

Suspend to RAM works OOTB and the machine resumes flawlessly even after
longer uptimes.  Of course, this includes suspend from a running X.  I
have the 3-cell built-in battery and an external 6-cell battery and with
my current configuration I get around 9-10 hours on a single charge.

Network
---

As expected, both iwm and em work OOTB.

Multimedia
--

I have the full HD version running X with drm.  Playing full HD videos
works but mpv hangs from time to time.  Audio also works although I had
to pass "-f rsnd/1" to sndiod.  Touchpad, two-finger scrolling and the
Thinkpad special keys work.

HW sensors
--

Work for temperature, battery.

What I haven't tested
-

Webcam, Bluetooth, SD-Card slot.

[1] 
https://cvsweb.openbsd.org/cgi-bin/cvsweb/www/Attic/i386-laptop.html.diff?r1=1.56=1.57

OpenBSD 6.1-current (GENERIC.MP) #56: Tue Jun 27 00:52:29 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 12572401664 (11989MB)
avail mem = 12185575424 (11621MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9cbfd000 (65 entries)
bios0: vendor LENOVO version "JBET55WW (1.20 )" date 12/23/2015
bios0: LENOVO 20BX0049GE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT PCCT SSDT TCPA SSDT UEFI MSDM BATB FPDT UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2195.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2195272860 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.93 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.93 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.93 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: