Re: NFS mounted but shows nothing even df -h has it

2023-05-31 Thread Jon Fineman
What do you get if you run the below commands? OpenBSD defaults to
using UDP for NFS. Linux I believe defaults to using TCP. I would have
expected a more explicit Portmap error though if it was that.

showmount -e hostname

rpcinfo -t hostname mountd
rpcinfo -u hostname mountd
rpcinfo -t hostname nfs
rpcinfo -u hostname nfs


Jazzi Hong  writes:

> You made the point, thank you Maksim.
>
> I checked /mnt/hdd and nothing there.
>
>> # cat /etc/fstab
> 1593ab2ee369c420.b none swap sw
> 1593ab2ee369c420.a / ffs rw 1 1
> 1593ab2ee369c420.e /var ffs rw,nodev,nosuid 1 2
> 2b6c2b5b929f9a55.i /mnt/hdd ffs rw,noexec,nosuid,nodev 0 0
>
>> # doas sysctl hw.disknames
> hw.disknames=sd0:2b6c2b5b929f9a55,sd1:1593ab2ee369c420
>
>> # doas fdisk sd0
>
> Disk: sd0 geometry: 121601/255/63 [1953525168 Sectors]
> Offset: 0 Signature: 0xAA55
>
> Starting Ending LBA Info:
>
>  #: id  C   H   S -  C   H   S [   start:size ]
>
> ---
>
>  0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>
>  1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>
>  2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>
> *3: A6  0   1   2 - 121601  80  63 [  64:  1953525104 ] OpenBSD
>
>
> 
> So /dev/sd0 is my NFS share hard disk, and when I tried to mount it manually:
>
>> # doas mount /mnt/hdd
> mount_ffs: 2b6c2b5b929f9a55.i on /mnt/hdd: Invalid argument
>
> +++
> The error message mentioned about "Invalid argument" of mount, anything wrong?
>
> So the problem now is why can not mount the drive even it's detected?
>
> Thank you,
> jazzi
>
> On Wed, May 31, 2023 at 2:38 PM Maksim Rodin  wrote:
>>
>> The /mnt/hdd partition on your NFS server might just be not mounted
>> which does not prevent nfs service from successfully serving an empty
>> directory.
>> Or one of your two nfs clients might have deleted all your files and you
>> did not notice this.
>>
>> On Wed May 31 09:27:04 2023, Maksim Rodin wrote:
>> > Hello,
>> > Silly question but...
>> > Are you sure that your NFS server still has any files on /mnt/hdd?
>> >
>> > On Wed May 31 09:07:15 2023, Jazzi Hong wrote:
>> > > Hello,
>> > >
>> > > I have OpenBSD 7.2 installed and NFS service running on Cubieboard2,
>> > > one Linux client and one MacOS client, everything works fine for the
>> > > last 6 months.
>> > >
>> > > Yesterday as usual I mounted NFS share and showed mounting
>> > > successfully even command `df -h` got it, but `ls /Users/jazzi/nfs`
>> > > showed nothing. Tried on both Linux and MacOS.
>> > >
>> > > OpenBSD is 24*7 running and I didn't do anything to change the system,
>> > > maybe it's too hot so I shut it down for the whole night and power on
>> > > the next day but it didn't work.
>> > >
>> > > +++
>> > > Here is how I mount it on MacOS:
>> > >
>> > > > sudo mount -t nfs -o 
>> > > > resvport,async,nolocks,locallocks,soft,wsize=32768,rsize=32768 
>> > > > 192.168.31.231:/mnt/hdd /Users/jazzi/nfs
>> > >
>> > > +++
>> > > Here is the settings on OpenBSD NFS server:
>> > >
>> > > # $ cat /etc/exports
>> > >
>> > > # For Macbook Air
>> > > /mnt/hdd -alldirs -mapall=root 192.168.31.76
>> > >
>> > > # For Linux desktop
>> > > /mnt/hdd -alldirs -mapall=root 192.168.31.77
>> > >
>> > > 
>> > >
>> > > Any help will be appreciated, thank you.
>> > >
>> > >
>> > >
>> > > --
>> > > jazzi
>> > >
>> > > Best Regard,
>> > >
>> >
>> > --
>> > С уважением,
>> > Родин Максим
>>
>> --
>> С уважением,
>> Родин Максим
>
>
>
> -- 
> jazzi
>
> Best Regard,



Re: Problem to set a printer with cups and foo2zjs documentation not up to date for foo2zjs

2023-05-10 Thread Jon Fineman
Does not work in what way? If you define it as a similar model does 
anything print?


HP's web site says it is fully supported.
<https://developers.hp.com/hp-laserjet-p1005-printer>


On Wed, May 10, 2023 at 02:30:31PM +0200, BESSOT Jean-Michel wrote:


Hello

hplip does not work with this printer the P1005, that is why I need foo2zjs.

The problem is when I download the driver I don't get a ppd file but 
an img file and I don't know what to  do with it. I tried to mount 
it but it didn't work.There is no explication in the foo2zjs doc.


bye

On 09/05/2023 19:16, Jon Fineman wrote:

I have a HP Office Jet 6970 (ink jet) and all I did was install cups
and hplip (which is in ports).

To get lpr to work without cups is a little more adventurous. The
three scripts below should get you started. They depend on unix2dos (I
forget which tools bundle this is from) and gs (which is in
ghostscript). Printing just PS is pretty straight forward. However you
should be aware that firefox and friends are hard coded to use a cups
defined printer. At least I haven't figured out how to fool their
print dialog box. Follow the man pages for setting up lpd.


You need to create an /etc/printcap entry similar to to:
lp|hp_prt:\
:lp=9100@hp_prt:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/hp_prt:\
:if=/usr/local/libexec/f_smart:\
:lf=/var/log/lpd-errs:

And f_smart is:
#!/bin/sh
#
#  sfif - Print PDF or PostScript or plain text on a PCL printer
#
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

case "$first_two_chars" in
%!|\033%%|%P)
# %! or ESC% or %P : PostScript or ? or PDF job, convert it to PCL.
( echo "$first_line" ; cat ) | /usr/local/libexec/f_ps2pcl && exit 0
exit 2
;;
*)
# otherwise just print it followed by a form feed to eject page
( echo "$first_line" ; cat ) | \
/usr/local/bin/unix2dos && printf "\f" && exit 0
exit 2
;;
esac

And f_ps2pcl:
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -




BESSOT Jean-Michel  writes:


Hello

I have a hp P1005 ( I know hp) and I try to install it on opennbsd. So I
installed cups and foo2zjs but foo2zjs download an img file and I don't
know what to do with it. There is no mention of img file in the INSTALL
file.

What do I need to do to make the printer work with the openbsd lpr or cups ?

Bye




Re: Problem to set a printer with cups and foo2zjs documentation not up to date for foo2zjs

2023-05-09 Thread Jon Fineman
I have a HP Office Jet 6970 (ink jet) and all I did was install cups
and hplip (which is in ports).

To get lpr to work without cups is a little more adventurous. The
three scripts below should get you started. They depend on unix2dos (I
forget which tools bundle this is from) and gs (which is in
ghostscript). Printing just PS is pretty straight forward. However you
should be aware that firefox and friends are hard coded to use a cups
defined printer. At least I haven't figured out how to fool their
print dialog box. Follow the man pages for setting up lpd.


You need to create an /etc/printcap entry similar to to:
lp|hp_prt:\
:lp=9100@hp_prt:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/hp_prt:\
:if=/usr/local/libexec/f_smart:\
:lf=/var/log/lpd-errs:

And f_smart is:
#!/bin/sh
#
#  sfif - Print PDF or PostScript or plain text on a PCL printer
#
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

case "$first_two_chars" in
%!|\033%%|%P)
# %! or ESC% or %P : PostScript or ? or PDF job, convert it to PCL.
( echo "$first_line" ; cat ) | /usr/local/libexec/f_ps2pcl && exit 0
exit 2
;;
*)
# otherwise just print it followed by a form feed to eject page
( echo "$first_line" ; cat ) | \
/usr/local/bin/unix2dos && printf "\f" && exit 0
exit 2
;;
esac

And f_ps2pcl:
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -




BESSOT Jean-Michel  writes:

> Hello
>
> I have a hp P1005 ( I know hp) and I try to install it on opennbsd. So I 
> installed cups and foo2zjs but foo2zjs download an img file and I don't 
> know what to do with it. There is no mention of img file in the INSTALL 
> file.
>
> What do I need to do to make the printer work with the openbsd lpr or cups ?
>
> Bye



emacs letter s

2023-03-11 Thread Jon Fineman
I upgraded from #1092 to #1103 and am using Emacs version 28.2, with X
and awesomewm.

When I launch emacs -q and type lower case s in the scrath window only
the bottom part of the s (ie the curve) is displayed. Capital S
displays and lower case bolded (I think) displays fine.

Any thoughts on how to debug this?


kern.version=OpenBSD 7.3-beta (GENERIC.MP) #1103: Fri Mar 10 11:01:48 MST 2023
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP




doas.conf example

2023-02-02 Thread Jon Fineman
I was following the doas.conf example in


Specially I added the below:
permit nopass setenv { \
FTPMODE PKG_CACHE PKG_PATH SM_PATH SSH_AUTH_SOCK \
DESTDIR DISTDIR FETCH_CMD FLAVOR GROUP MAKE MAKECONF \
MULTI_PACKAGES NOMAN OKAY_FILES OWNER PKG_DBDIR \
PKG_DESTDIR PKG_TMPDIR PORTSDIR RELEASEDIR SHARED_ONLY \
SUBPACKAGE WRKOBJDIR SUDO_PORT_V1 } :wsrc

Above these I have my regular conf of:
permit :wheel
permit persist keepenv root
permit persist keepenv jjf as root
permit nopass jjf cmd reboot

I find that with that I can run the below commands without being
prompted for a password from doas. Is that expected from the above
settings? The description implies that this is helpful for building
ports.

$ doas su root
$ doas sysupgrade
$ doas pkg_add -u

Without the example settings I am prompted for a password for the
above commands.

I am on:
kern.version=OpenBSD 7.2-current (GENERIC.MP) #1005: Sun Jan 29 21:01:12 MST 
2023
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP



Re: mailx in pipeline mode: add fields to the EMail header?

2023-01-03 Thread Jon Fineman
Take a look at sendmail. If you have flexibility in what command you 
use and the syntax it might work. Though I don't think you can control 
where the added header ends up.


sendmail -f fropm-id j...@example.com
X-test: testing
Subject: test

hello  





On Tue, Jan 03, 2023 at 08:33:22AM +0100, Harald Dunkel wrote:

Hi folks,

is there some way for OpenBSD's mailx (reading an EMail to send from
stdin) to add fields to the EMail header, e.g.

Auto-Submitted: auto-generated

for generated EMails, according to the recommendation in RFC 3834?
Or maybe

Precedence: bulk

Maybe some custom fields like

X-monitoring-severity: disaster
?

This could help to avoid a lot of unnecessary vacation responses,
support automatic filtering, etc.

The mailx command line could be

echo hello | \
mailx -s hello -a "Auto-Submitted: auto-generated" j...@example.com

I thought about making "Auto-Submitted: auto-generated" the default
for reading an EMail from stdin (if its not a tty), but this might
break existing code.


Regards

Harri





how to compile neomutt+gpgme

2022-09-27 Thread Jon Fineman
I wanted to compile neomutt in ports and add gpgme. In the Makefile I 
set FLAVOR as below.

FLAVOR?=gpgme

But when I run make it builds 
/usr/ports/pobj/neomutt-20220429/build-amd64

without gpgme. See neomutt -v below.

When I build the FLAVOR for notmuch I get my expected module in:
/usr/ports/pobj/neomutt-20220429-notmuch

I don't see a path of:
/usr/ports/pobj/neomutt-20220429-gpgme

desktop(/usr/ports/pobj)$: ls -ltrd neomutt-20220429*
drwxr-xr-x  5 jjf  jjf  1024 Sep 26 15:02 neomutt-20220429-notmuch
drwxr-xr-x  5 jjf  jjf  1024 Sep 27 12:05 neomutt-20220429


What am I missing on setting? My goal is to build gpgme+notmuch.

Thanks.

I am on:
kern.version=OpenBSD 7.2 (GENERIC.MP) #748: Thu Sep 22 11:46:36 MDT 
2022

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

I ran cvs -q up -Pd -A after sysupdate.


neomutt info:

desktop(/usr/ports/pobj/neomutt-20220429/build-amd64)$: ./neomutt -v
NeoMutt 20220429
Copyright (C) 1996-2022 Michael R. Elkins and others.
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt 
-vv'.

NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: OpenBSD 7.2 (amd64)
ncurses: ncurses 5.7.20081102 (compiled with 5.7.20081102)
libiconv: 1.17
libidn2: 2.3.0 (compiled with 2.3.0)
LibreSSL: LibreSSL 3.6.0
OpenSSL: LibreSSL 3.6.0
storage: kyotocabinet, tdb

Configure options: --mandir=/usr/local/man --with-ui=ncurses 
--docdir=/usr/local/share/doc/neomutt --with-lock=flock --idn=0 --idn2 
--fmemopen --ssl --tdb --debug --kyotocabinet


Compilation CFLAGS: -O2 -pipe -g  -I/usr/local/include -std=c99 
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -DNCURSES_WIDECHAR


Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug 
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap 
+index_color 
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail 
+nntp +pop 
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser 
+sidebar 
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash 


Compile options:
  -autocrypt -fcntl +flock +fmemopen +futimens +getaddrinfo -gnutls 
-gpgme -gss 
  +hcache -homespool +idn -inotify -locales_hack -lua -mixmaster +nls 
-notmuch 
  +openssl +pgp +regex -sasl +smime -sqlite +sun_attachment 


MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/usr/local/etc"


I have gpgme and gnutls installed.
desktop(~/)$: pkg_info -D snap -Q gpgme
gpgme-1.18.0 (installed)
gpgme-qt-1.18.0
ruby27-gpgme-2.0.20
ruby30-gpgme-2.0.20
ruby31-gpgme-2.0.20
desktop(~/nuc)$: pkg_info -D snap -Q gnutls
debug-gnutls-3.7.7
gnutls-3.7.7 (installed)




pkg_add issues

2022-01-02 Thread Jon Fineman
Yesterday (1 Jan 2022) I was running pkg_add -u after a sysupgrade and 
on most of the larger downloads I was getting premature end of file on 
archive and other networking issues and generally poor performance. 
This started around 7am and I stepped away around 9am, then continued 
trying around 10pm.


My installurl is set to:
https://cdn.openbsd.org/pub/OpenBSD

I finally changed it to (Rochester NY):
https://ftp.usa.openbsd.org/pub/OpenBSD/

and the updates were able to complete and the performance was as 
usual.


I am in New Jersey. Is there a way for me to tell what the cdn was 
pointing to to help find the slow/sick server?


As of now it still appears overly slow.

Thanks.

Jon



7.0 upgrade dmesg confusion

2021-10-15 Thread Jon Fineman

I was on 6.9 release, and I did a sysupgrade, which went smooth. Did a sysmerge
and pkg_add -u.

uuname gives me the expected output:


desktop(~/nuc)$: uname -a
OpenBSD desktop.xxx.com 7.0 GENERIC.MP#232 amd64



I was preparing the dmesg to send off and I noticed it looks like the old
message from 6.9. How could that occur? What did I miss?


desktop(~/nuc)$: dmesg | head -10
OpenBSD 6.9 (GENERIC.MP) #4: Tue Aug 10 08:12:23 MDT 2021

r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17047867392 (16258MB)
avail mem = 16515817472 (15750MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8b1d7000 (57 entries)
bios0: vendor Intel Corp. version "SYSKLi35.86A.0042.2016.0409.1246" date 
04/09/2016
desktop(~/nuc)$: 




Base64.c: loadable library and perl binaries are mismatched

2021-05-03 Thread Jon Fineman
I just upgraded from 6.8 to 6.9 and am getting the following error when 
upgrading my packages. Any thoughts on how to resolve this?

Thanks.

Jon


$: doas pkg_add -u
Base64.c: loadable library and perl binaries are mismatched (got handshake key 
0xb60, needed 0xec0)
$: 
OpenBSD 6.8 (GENERIC.MP) #5: Mon Feb 22 04:36:10 MST 2021

r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17047867392 (16258MB)
avail mem = 16516169728 (15751MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8b1d7000 (57 entries)
bios0: vendor Intel Corp. version "SYSKLi35.86A.0042.2016.0409.1246" date 
04/09/2016
bios0: Intel corporation NUC6i5SYB
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET LPIT SSDT SSDT SSDT SSDT DBGP 
DBG2 SSDT SSDT UEFI SSDT BGRT DMAR
acpi0: wakeup devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PEGP(S4) 
SIO1(S3) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) PXSX(S4) RP12(S4) 
PXSX(S4) RP13(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz, 1796.46 MHz, 06-4e-03
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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,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 24MHz
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-6260U CPU @ 1.80GHz, 1715.11 MHz, 06-4e-03
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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz, 1696.05 MHz, 06-4e-03
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,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz, 1696.05 MHz, 06-4e-03
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,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpihpet0 at acpi0: 2399 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus -1 (RP09)
acpiprt5 at acpi0: bus -1 (RP10)
acpiprt6 at acpi0: bus -1 (RP11)
acpiprt7 at acpi0: bus -1 (RP12)
acpiprt8 at acpi0: bus -1 (RP13)
acpiprt9 at acpi0: bus -1 (RP01)
acpiprt10 at acpi0: bus -1 (RP02)
acpiprt11 at acpi0: bus -1 (RP03)
acpiprt12 at acpi0: bus -1 (RP04)
acpiprt13 at acpi0: bus 1 (RP05)
acpiprt14 at acpi0: bus -1 (RP06)
acpiprt15 at acpi0: bus -1 (RP07)
acpiprt16 at acpi0: bus -1 (RP08)
acpiprt17 at acpi0: bus -1 (RP17)
acpiprt18 at acpi0: bus -1 (RP18)
acpiprt19 at acpi0: bus -1 (RP19)
acpiprt20 at acpi0: bus -1 (RP20)

Re: X11 VESA Driver Config Question

2020-08-14 Thread Jon Fineman


- Original message -
From: Chris Bennett 
To: Jon Fineman , misc@openbsd.org
Subject: Re: X11 VESA Driver Config Question
Date: Wednesday, August 12, 2020 4:33 AM

On Tue, Aug 11, 2020 at 08:17:01PM -0400, Jon Fineman wrote:
> I just upgraded from 6.6 to snapshot via sysupgrade -s
> 
> After reboot I get the various emails the upgrade goes fine, no errors,
> the firmware is upgraded.
> 
> About 30 seconds after I get the login prompt the laptop powers off.
> 
> I turned in on and at the boot prompt typed boot -c and disable amdgpu 
> Subjectively I got more than 30 seconds after the boot prompt. I was
> able to log in and look around a bit and it powered off.
> 
> Same thing with booting into single user mode.
> 
> Thoughts? Suggestions on how to get any data?
> 
> Jon
> 

> sysctl.conf needs
> machdep.allowaperture=2
> 
> if you can't mount from another computer, burn 6.6 onto a USB stick and
> mount from that. Don't even try from running -current.
> You can probably get /var/run/dmesg.boot. Plus /var/log/Xorg.0.log if
> you manage to get to X. (Good luck with that :-{ )
> 
> I was given advice in the past to build with a certain change, but I was
> unable to build that on my laptop due to very little memory.
> 
> There is newer firmware, X, etc.. Hopefully someone will chime in with
> something to try for a build
> 
> Chris Bennett


As suggested I installed 6.7 Release on a USB drive and booted from that. 
I was able to get /var/log/messages which I appended at the bottom. The only
other logs were install.resp and pflog which was empty.

Jon


> 
> 
> On Mon, 10 Aug 2020 20:28:34 -0500
> Chris Bennett  wrote:
> 
> > On Sun, Aug 09, 2020 at 10:02:24PM -0400, Jon Fineman wrote:
> > > I have an Acer Aspire A315 laptop that freezes every once in a
> > > while. I think it is GPU related, but have not been able to get any
> > > logs. In addition a while ago (roughly when 6.7 came out) I tried
> > > to upgrade from 6.6 to 6.7 and the laptop would turn off just after
> > > getting the log in prompt. Again no logs.
> > > 
> > > One thought was in my xorg.conf file to change the driver from
> > > AMDGPU to vesa. However that is producing an error. Log and dmesg
> > > below.
> > > 
> > > Any thoughts on how to proceed?
> > >   
> > 
> > There is an excellent chance that we have the same problem.
> > I was running -current for a long while, when I had the same problem
> > with sudden unexpected shutdown. This was a good while back.
> > I have 50GB of install66.iso from current back then. They are on one
> > of my servers. Unfortunately, I just don't have access to enough
> > bandwidth or data to download them to hopefully find the date that
> > there was a change that messed things up.
> > 
> > Try boot -c then disable amdgpu
> > Might help. Also try boot -s and wait. If it shuts down there too,
> > probably have the same problem. Or not. :-)
> > 
> > I'm stuck at 6.6 -stable for now.
> > 
> > Chris Bennett
> > 
> > 
> > > Thnaks.
> > > 
> > > Jon
> > > 
> > > 
> > > xorg.conf:
> > > Section "Device"
> > > Identifier "graphicsdriver"
> > > #Driver "AMDGPU"
> > > #Option "TearFree" "true"
> > > Driver "vesa"
> > > EndSection
> > > 
> > > 
> > > 
> > > Xorg.0.log:
> > > [124569.415] (--) checkDevMem: using aperture driver /dev/xf86
> > > [124569.425] (--) Using wscons driver on /dev/ttyC4
> > > [124569.446] 
> > > X.Org X Server 1.20.5
> > > X Protocol Version 11, Revision 0
> > > [124569.446] Build Operating System: OpenBSD 6.6 amd64 
> > > [124569.446] Current Operating System: OpenBSD laptop.jonjfineman.me
> > > 6.6 GENERIC.MP#3 amd64 [124569.447] Build Date: 30 July 2020
> > > 11:25:30AM [124569.447]  
> > > [124569.447] Current version of pixman: 0.38.4
> > > [124569.447]  Before reporting problems, check
> > > http://wiki.x.org to make sure that you have the latest version.
> > > [124569.447] Markers: (--) probed, (**) from config file, (==)
> > > default setting, (++) from command line, (!!) notice, (II)
> > > informational, (WW) warning, (EE) error, (NI) not implemented, (??)
> > > unknown. [124569.447] (==) Log file: "/var/log/Xorg.0.log", Time:
> > > Sun Aug  9 05:48:55 2020 [124569.447] (==) Using config file:
> > > "/etc/X11/xorg.conf" [124569.447]

Re: X11 VESA Driver Config Question

2020-08-11 Thread Jon Fineman
I just upgraded from 6.6 to snapshot via sysupgrade -s

After reboot I get the various emails the upgrade goes fine, no errors,
the firmware is upgraded.

About 30 seconds after I get the login prompt the laptop powers off.

I turned in on and at the boot prompt typed boot -c and disable amdgpu 
Subjectively I got more than 30 seconds after the boot prompt. I was
able to log in and look around a bit and it powered off.

Same thing with booting into single user mode.

Thoughts? Suggestions on how to get any data?

Jon



On Mon, 10 Aug 2020 20:28:34 -0500
Chris Bennett  wrote:

> On Sun, Aug 09, 2020 at 10:02:24PM -0400, Jon Fineman wrote:
> > I have an Acer Aspire A315 laptop that freezes every once in a
> > while. I think it is GPU related, but have not been able to get any
> > logs. In addition a while ago (roughly when 6.7 came out) I tried
> > to upgrade from 6.6 to 6.7 and the laptop would turn off just after
> > getting the log in prompt. Again no logs.
> > 
> > One thought was in my xorg.conf file to change the driver from
> > AMDGPU to vesa. However that is producing an error. Log and dmesg
> > below.
> > 
> > Any thoughts on how to proceed?
> >   
> 
> There is an excellent chance that we have the same problem.
> I was running -current for a long while, when I had the same problem
> with sudden unexpected shutdown. This was a good while back.
> I have 50GB of install66.iso from current back then. They are on one
> of my servers. Unfortunately, I just don't have access to enough
> bandwidth or data to download them to hopefully find the date that
> there was a change that messed things up.
> 
> Try boot -c then disable amdgpu
> Might help. Also try boot -s and wait. If it shuts down there too,
> probably have the same problem. Or not. :-)
> 
> I'm stuck at 6.6 -stable for now.
> 
> Chris Bennett
> 
> 
> > Thnaks.
> > 
> > Jon
> > 
> > 
> > xorg.conf:
> > Section "Device"
> > Identifier "graphicsdriver"
> > #Driver "AMDGPU"
> > #Option "TearFree" "true"
> > Driver "vesa"
> > EndSection
> > 
> > 
> > 
> > Xorg.0.log:
> > [124569.415] (--) checkDevMem: using aperture driver /dev/xf86
> > [124569.425] (--) Using wscons driver on /dev/ttyC4
> > [124569.446] 
> > X.Org X Server 1.20.5
> > X Protocol Version 11, Revision 0
> > [124569.446] Build Operating System: OpenBSD 6.6 amd64 
> > [124569.446] Current Operating System: OpenBSD laptop.jonjfineman.me
> > 6.6 GENERIC.MP#3 amd64 [124569.447] Build Date: 30 July 2020
> > 11:25:30AM [124569.447]  
> > [124569.447] Current version of pixman: 0.38.4
> > [124569.447]Before reporting problems, check
> > http://wiki.x.org to make sure that you have the latest version.
> > [124569.447] Markers: (--) probed, (**) from config file, (==)
> > default setting, (++) from command line, (!!) notice, (II)
> > informational, (WW) warning, (EE) error, (NI) not implemented, (??)
> > unknown. [124569.447] (==) Log file: "/var/log/Xorg.0.log", Time:
> > Sun Aug  9 05:48:55 2020 [124569.447] (==) Using config file:
> > "/etc/X11/xorg.conf" [124569.447] (==) Using system config directory
> > "/usr/X11R6/share/X11/xorg.conf.d" [124569.447] (==) No Layout
> > section. Using the first Screen section. [124569.447] (==) No
> > screen section available. Using defaults. [124569.447] (**)
> > |-->Screen "Default Screen Section" (0) [124569.447] (**) |
> > |-->Monitor "" [124569.448] (==) No device
> > specified for screen "Default Screen Section". Using the first
> > device section listed. [124569.448] (**) |   |-->Device
> > "graphicsdriver" [124569.448] (==) No monitor specified for screen
> > "Default Screen Section". Using a default monitor configuration.
> > [124569.448] (==) Automatically adding devices
> > [124569.448] (==) Automatically enabling devices
> > [124569.448] (==) Not automatically adding GPU devices
> > [124569.448] (==) Max clients allowed: 256, resource mask: 0x1f
> > [124569.448] (==) FontPath set to:
> > /usr/X11R6/lib/X11/fonts/misc/,
> > /usr/X11R6/lib/X11/fonts/TTF/,
> > /usr/X11R6/lib/X11/fonts/OTF/,
> > /usr/X11R6/lib/X11/fonts/Type1/,
> > /usr/X11R6/lib/X11/fonts/100dpi/,
> > /usr/X11R6/lib/X11/fonts/75dpi/
> > [124569.448] (==) ModulePath set to "/usr/X11R6/lib/modules"
> > [124569.448] (II) The server relies on wscons to provide the list of
> > input devices. If no dev

X11 VESA Driver Config Question

2020-08-09 Thread Jon Fineman
I have an Acer Aspire A315 laptop that freezes every once in a while. I
think it is GPU related, but have not been able to get any logs. In
addition a while ago (roughly when 6.7 came out) I tried to upgrade
from 6.6 to 6.7 and the laptop would turn off just after getting the
log in prompt. Again no logs.

One thought was in my xorg.conf file to change the driver from AMDGPU
to vesa. However that is producing an error. Log and dmesg below.

Any thoughts on how to proceed?

Thnaks.

Jon


xorg.conf:
Section "Device"
Identifier "graphicsdriver"
#Driver "AMDGPU"
#Option "TearFree" "true"
Driver "vesa"
EndSection



Xorg.0.log:
[124569.415] (--) checkDevMem: using aperture driver /dev/xf86
[124569.425] (--) Using wscons driver on /dev/ttyC4
[124569.446] 
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[124569.446] Build Operating System: OpenBSD 6.6 amd64 
[124569.446] Current Operating System: OpenBSD laptop.jonjfineman.me
6.6 GENERIC.MP#3 amd64 [124569.447] Build Date: 30 July 2020  11:25:30AM
[124569.447]  
[124569.447] Current version of pixman: 0.38.4
[124569.447]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[124569.447] Markers: (--) probed, (**) from config file, (==) default
setting, (++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[124569.447] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug  9
05:48:55 2020 [124569.447] (==) Using config file: "/etc/X11/xorg.conf"
[124569.447] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d" [124569.447] (==) No Layout section.
 Using the first Screen section. [124569.447] (==) No screen section
available. Using defaults. [124569.447] (**) |-->Screen "Default Screen
Section" (0) [124569.447] (**) |   |-->Monitor ""
[124569.448] (==) No device specified for screen "Default Screen
Section". Using the first device section listed.
[124569.448] (**) |   |-->Device "graphicsdriver"
[124569.448] (==) No monitor specified for screen "Default Screen
Section". Using a default monitor configuration.
[124569.448] (==) Automatically adding devices
[124569.448] (==) Automatically enabling devices
[124569.448] (==) Not automatically adding GPU devices
[124569.448] (==) Max clients allowed: 256, resource mask: 0x1f
[124569.448] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[124569.448] (==) ModulePath set to "/usr/X11R6/lib/modules"
[124569.448] (II) The server relies on wscons to provide the list of
input devices. If no devices become available, reconfigure wscons or
disable AutoAddDevices. [124569.448] (II) Loader magic: 0xc3982ca3000
[124569.448] (II) Module ABI versions:
[124569.448]X.Org ANSI C Emulation: 0.4
[124569.448]X.Org Video Driver: 24.0
[124569.448]X.Org XInput driver : 24.1
[124569.448]X.Org Server Extension : 10.0
[124569.448] (--) PCI:*(0@0:1:0) 1002:98e4:1025:1192 rev 218, Mem @
0xe000/268435456, 0xf000/8388608, 0xf0d0/262144, I/O @
0x3000/256, BIOS @ 0x/131072 [124569.448] (II) LoadModule:
"glx" [124569.449] (II) Loading
/usr/X11R6/lib/modules/extensions/libglx.so [124569.451] (II) Module
glx: vendor="X.Org Foundation" [124569.451] compiled for
1.20.5, module version = 1.0.0 [124569.451] ABI class: X.Org
Server Extension, version 10.0 [124569.451] (II) LoadModule: "vesa"
[124569.452] (II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.so
[124569.452] (II) Module vesa: vendor="X.Org Foundation" [124569.452]
compiled for 1.20.5, module version = 2.3.4 [124569.452]
Module class: X.Org Video Driver [124569.452]   ABI
class: X.Org Video Driver, version 24.0 [124569.452] (II) VESA: driver
for VESA chipsets: vesa [124569.452] (II) Loading sub module "vbe"
[124569.452] (II) LoadModule: "vbe"
[124569.453] (II) Loading /usr/X11R6/lib/modules/libvbe.so
[124569.453] (II) Module vbe: vendor="X.Org Foundation"
[124569.453]compiled for 1.20.5, module version = 1.1.0
[124569.453]ABI class: X.Org Video Driver, version 24.0
[124569.453] (II) Loading sub module "int10"
[124569.453] (II) LoadModule: "int10"
[124569.455] (II) Loading /usr/X11R6/lib/modules/libint10.so
[124569.455] (II) Module int10: vendor="X.Org Foundation"
[124569.455]compiled for 1.20.5, module version = 1.0.0
[124569.455]ABI class: X.Org Video Driver, version 24.0
[124569.455] (II) VESA(0): initializing int10
[124569.455] (EE) VESA(0): Cannot read int vect
[124569.455] (II) UnloadModule: "vesa"
[124569.455] (II) UnloadSubModule: "int10"
[124569.455] (II) Unloading int10
[124569.455] (II) UnloadSubModule: "vbe"
[124569.455] (II) Unloading vbe
[124569.455] (EE) Screen(s) found, but none have a usable configuration.

wsmouse0 detached ttyc0

2020-05-24 Thread Jon Fineman
A while back there were several threads going on about wsmouse0 issues 
on the console port.


After installing 6.7 I chose to move away from xfce4 and use Awesome as 
my window manager. I noticed I don't receive these errors anymore.



wsmouse0 detached
ums0 detached
uhidev0 detached
uhidev0 at uhub2 port 3 configuration 1 interface 0 "PixArt USB Optical 
Mouse" rev 2.00/1.00 addr 5

uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0


Jon



Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Jon Fineman

On 2020-04-23 08:40, Alexandre Ratchov wrote:

On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote:


Is there a way to set the mic to one channel and the speakers to
another? Or merge the speakers from channel rsnd/0 and rsnd/1
together and have them output on rsnd/0?


Sorry, two devices can't be combined into a single one on OpenBSD.



What started me down this path was that I can't get chromium or firefox 
to recognize the webcam if it is using rsnd/1. Changing it to rsnd/0 
allowed the browsers to see it.


Am I doing something wrong with configuring things? I am on 6.7 
GENERIC.MP#128 amd64.


If the browser recognizes the webcam on rsnd/1 I could then get a combo 
headphone and mic and plug that into rsnd/0, assuming the browser will 
recognize the audio on rsnd/0.




Using a C310 Logitech webcam mic with internal speakers

2020-04-22 Thread Jon Fineman
I would like to use my webcam and its built in mic with my headphones plugged 
into the internal audio of my NUC. I don't have a combo headphones + mic.

The C310 mic is on rsnd/1. When I change the default to this my speakers on 
rsnd/0 don't work as they get set to the C310, which doesn't have any speakers.

Is there a way to set the mic to one channel and the speakers to another? Or 
merge the speakers from channel rsnd/0 and rsnd/1 together and have them output 
on rsnd/0?

Thanks.

The DMESG snipit:
uhub1 at uhub0 port 3 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" 
rev 2.10/b.e0 addr 2
uvideo0 at uhub1 port 1 configuration 1 interface 0 "Logitech Webcam C310" rev 
2.00/0.12 addr 3
video0 at uvideo0

uaudio0 at uhub1 port 1 configuration 1 interface 3 "Logitech Webcam C310" rev 
2.00/0.12 addr 3
uaudio0: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio1 at uaudio0

"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Realtek/0x0283, Intel/0x2809, using Realtek/0x0283
audio0 at azalia0



Re: ttyC0 floods with error messages

2019-12-31 Thread Jon Fineman
"Raymond, David"  wrote:

> I get similar stuff on console 1 but not on the others on all my
> OpenBSD machines.  As I use X windows and have clean consoles 2-4
> available if necessary, I just ignore it.
> 
> Dave Raymond
> 
> 
> On 12/16/19, putridsou...@gmail.com  wrote:
> > The error does not seem to be a faulty mouse and I
> > don't use a KVM switch anyway so it is not the source.
> > Following on pervious reply, I tried on a new mouse.
> > But was greeted with the same error:
> >
> > wsmouse0 detached
> > ums0 detached
> > uhidev0 detached
> > uhidev0 at uhub0 port 4 configuration 1 interface 0 "PixArt USB Optical
> > Mouse" rev 2.00/1.00 addr 2
> > uhidev0: iclass 3/1
> > ums0 at uhidev0: 3 buttons, Z dir
> > wsmouse0 at ums0 mux 0
> >
> > Unless I'm the unfortunate person destined to own all faulty
> > mice in the world, I look forward to a solution. Is there
> > anyone here who uses a desktop setup with a mouse, not greeted
> > with these pesky errors. Are experts on here sure this is not
> > a bug, or lack of proper driver. More info on the latter, this
> > test consisted of Logitech M90 and Dell MS111-P mouse.
> >
> >
> 
> 
> -- 
> David J. Raymond
> david.raym...@nmt.edu
> http://physics.nmt.edu/~raymond

I get this also on my Intel NUC with the mouse connected via an Anker 7 port
HUB extender. I was tidying up my cables yesterday and moved my mouse cable to
one of the NUC's ports and I haven't been spammed since.

The dmesg that was sent in looked like it had a USB HUB and then someone
mentioned a KVM switch. So not sure if the mice or host don't like how they are
connected.



Nail viewing HTML messages

2019-12-24 Thread Jon Fineman
I am having trouble viewing an HTML message. Nail natively seems to work with
simple HTML messages that I create and email to myself. However commercially
created emails with multi-part doesn't render in lynx.

I have nail version v14.9.15, 2019-08-17 (built for OpenBSD) and I am working
through the example in the man page below (without the ? marks). The second
part viewing PDFs works fine. The first part to view a fancy HTML doesn't work.
I installed lynx. I think the issue is with mathml which I don't quite
understand what that is doing with regard to the first part of defining a pipe
to lynx. I don't see anything related to mathml in the packages.

When I view an HTML message with the "p" command it views the text displayable
version, as expected. When I use the mimeview command it just displays a blank
or two of lines and no text.


? if [ "$features" !% +filter-html-tagsoup ]
?   #set pipe-text/html='?* elinks -force-html -dump 1'
?   set pipe-text/html='?* lynx -stdin -dump -force_html'
?   # Display HTML as plain text instead
?   #set pipe-text/html=?
? endif
? mimetype ? application/mathml+xml mathml
? wysh set pipe-application/pdf='?&=? \
trap "rm -f \"${MAILX_FILENAME_TEMPORARY}\"" EXIT;\
trap "trap \"\" INT QUIT TERM; exit 1" INT QUIT TERM;\
mupdf "${MAILX_FILENAME_TEMPORARY}"'

Am I misunderstanding how this macro works?

Thanks.

Jon



Re: s-nail copying deleted imap messages to trash

2019-12-23 Thread Jon Fineman
Steffen Nurpmeso  wrote:

> Even better would be
> 
>   \copy "$@" /tmp/undelete.mbox
>   \delete `
> 
> since the messages are collected only once.
> 

Thanks.

I was focused on searching for a built in similiar to the way sent uses
"record", that I didn't consider creating a function.

Jon



s-nail copying deleted imap messages to trash

2019-12-23 Thread Jon Fineman
For current s-nail is there a way with an imap account to copy messages that I
delete to my ISPs trash folder like the set record=+Sent command copies sent
message to my sent folder?

Currently they are being permanently deleted.

Thanks.

Jon



Re: After sysupgrade to 6.6 from 6.5, xfce display alternates between desktop and app

2019-11-11 Thread Jon Fineman
"Jon Fineman"  wrote:

> So I read through the two threads below which both point to the third link 
> about xfwm4 composter.
> I am not sure if I have the exact same issue. While you could say my screen 
> flickers - what it really
> does is randomly (to my eyes) show the desktop and then show any open apps I 
> might have while hiding
> the title bar. If I click around or move the cursor around the title bar area 
> it will alternate between the desktop
> and apps. If I leave the display alone every 1-4 seconds the display will 
> flip.
> 
> Via .xsessions turning the composter off or setting it to xpresent freezes 
> the screen to show just
> the desktop. Clicking doesn't change the view or bring forward or hide any 
> apps.
> However I found if I switch to a non XFCE tty and back the display will 
> change to what I tried to click on.
> 
> Any thoughts on what I might experiment with or investigate further?
> 
> Thanks.
> 
> Jon
> 
> 


I was able to resolve this.

I turned off the compositor via the GUI.

I added this section in /etc/X11.xorg.conf to force TearFree:

Section "Device"
Identifier "graphicsdriver"
Driver "AMDGPU"
Option "TearFree" "true"
EndSection



After sysupgrade to 6.6 from 6.5, xfce display alternates between desktop and app

2019-10-21 Thread Jon Fineman
So I read through the two threads below which both point to the third link 
about xfwm4 composter.
I am not sure if I have the exact same issue. While you could say my screen 
flickers - what it really
does is randomly (to my eyes) show the desktop and then show any open apps I 
might have while hiding
the title bar. If I click around or move the cursor around the title bar area 
it will alternate between the desktop
and apps. If I leave the display alone every 1-4 seconds the display will flip.

Via .xsessions turning the composter off or setting it to xpresent freezes the 
screen to show just
the desktop. Clicking doesn't change the view or bring forward or hide any apps.
However I found if I switch to a non XFCE tty and back the display will change 
to what I tried to click on.

Any thoughts on what I might experiment with or investigate further?

Thanks.

Jon


https://marc.info/?l=openbsd-misc=157150424810780=2

https://www.reddit.com/r/openbsd/comments/dk675z/chrome_slow_high_cpu_on_openbsd_66/

https://git.xfce.org/xfce/xfwm4/tree/COMPOSITOR#n114



My dmesg:

OpenBSD 6.6 (GENERIC.MP) #372: Sat Oct 12 10:56:27 MDT 2019
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 5978714112 (5701MB)
avail mem = 5784797184 (5516MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xdf266000 (27 entries)
bios0: vendor Insyde Corp. version "V1.00" date 03/20/2017
bios0: Acer Aspire A315-21
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP MSDM BOOT HPET MCFG WDAT UEFI SSDT IVRS SSDT SSDT SSDT 
UEFI SPCR SSDT CRAT TPM2 FPDT ASF! WDRT VFCT SSDT APIC SSDT BGRT
acpi0: wakeup devices GPP1(S4) GPP4(S4) GFX0(S4) GFX1(S4) GFX2(S4) GFX3(S4) 
GFX4(S4) EHC1(S3) XHC0(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.81 MHz, 15-70-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,CPCTR,DBKP,PERFTSC,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,XSAVEOPT
cpu0: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.38 MHz, 15-70-00
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,CPCTR,DBKP,PERFTSC,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,XSAVEOPT
cpu1: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 1, core 0, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins, remapped
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins, remapped
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus 2 (GPP1)
acpiprt3 at acpi0: bus 3 (GPP2)
acpiprt4 at acpi0: bus -1 (GPP3)
acpiprt5 at acpi0: bus -1 (GPP4)
acpiprt6 at acpi0: bus -1 (GFX0)
acpiprt7 at acpi0: bus -1 (GFX1)
acpiprt8 at acpi0: bus -1 (GFX2)
acpiprt9 at acpi0: bus -1 (GFX3)
acpiprt10 at acpi0: bus -1 (GFX4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@400 io@0x414), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x414), C1(@1 halt!), PSS
acpipwrres0 at acpi0: WRST
acpipwrres1 at acpi0: P0U3, resource for XHC0
acpipwrres2 at acpi0: P3U3, resource for XHC0
acpipwrres3 at acpi0: P0U2, resource for EHC1
acpipwrres4 at acpi0: P3U2, resource for EHC1
acpipwrres5 at acpi0: P0SD, resource for SDIO
acpipwrres6 at acpi0: P3SD, resource for SDIO
acpipwrres7 at acpi0: P0ST, resource for SATA
acpipwrres8 at acpi0: P3ST, resource for SATA
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: PWRB
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpibtn1 at acpi0: SLPB
acpiac0 at acpi0: AC unit