dig computetr 512G 4Gcpu is it for obdsd ?

2017-01-24 Thread draken
i wat to byu i big comptre with 256G of menori and a 4G cpu is it a gret 
computer for OBSD




Re: make pf allow out on lo per user

2017-01-24 Thread Emille Blanc

On 24.01.2017 16:04, Luke Small wrote:

if I have:
"pass out quick on lo0 from self port 6379 to \ any user luke

block out quick on lo0 from self port 6379 to any

pass quick on lo0 from any to any"

a local connection to port 6379 will go to the last rule... isn't 
this a

useful feature to allow one of the first two rules to take effect?


Unless I'm missing something silly, the last matching rule wins. Per 
man pf.conf(5) [1]


"For each packet processed by the packet filter, the filter rules are 
evaluated in sequential order, from first to last. For block and pass, 
the last matching rule decides what action is taken"


If you want pass out, and block out to supersede your last catch-all 
rule, you'll need a quick statement on them to prevent any further rule 
processing on the packet.


[1] http://man.openbsd.org/OpenBSD-current/man5/pf.conf.5



make pf allow out on lo per user

2017-01-24 Thread Luke Small
if I have:
"pass out quick on lo0 from self port 6379 to \ any user luke

block out quick on lo0 from self port 6379 to any

pass quick on lo0 from any to any"

a local connection to port 6379 will go to the last rule... isn't this a
useful feature to allow one of the first two rules to take effect?



Re: Screen record software

2017-01-24 Thread Andrey Elizarov
Withdraw question, minutes later found nice OpenBSD screencasting guide:
http://eradman.com/posts/screencasting.html
Sorry for noise.

On Wed, Jan 25, 2017 at 1:20 AM, Andrey Elizarov  wrote:
> Any advice on how to record video recording?
> Trying to build xvidcap right now, but maybe there is a simpler solution.



Screen record software

2017-01-24 Thread Andrey Elizarov
Any advice on how to record video recording?
Trying to build xvidcap right now, but maybe there is a simpler solution.



Re: Can OpenBSD do mixed b/g/n mode in hostap?

2017-01-24 Thread Tom Murphy
On 15/01/17 20:13, Stefan Sperling wrote:
> On Sun, Jan 15, 2017 at 01:53:41PM +, Tom Murphy wrote:
>> Hi,
>>
>>   I was wondering if OpenBSD had a way to do mixed b/g/n mode with hostap?
>> Recently 802.11n support was added for athn(4). I have 4 802.11n devices,
>> but 1 device which only does 802.11g. If I use 'mode 11n' or even -mode,
>> the hostap is in 802.11n-only mode and the 802.11g device cannot connect.
>> Is it possible to do a mixed mode?
>>
>>   Also, is powersave working in hostap mode yet?
>>
>>  Thanks,
>>   Tom
>>
>> athn0 at pci5 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16
>> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address xx:xx:xx:xx:xx:xx
> 
> I did test an OpenBSD 11g-only device against my 11n AP. It worked.
> We always have compat with 11a/b/g enabled.
> There is no way to make OpenBSD run as 11n-only as far as I know.
> Perhaps your 11g device does not support WPA2?
> Try again after 'ifconfig athn0 wpaprotos wpa1,wpa2', and understand
> that running this command means your AP is using broken crypto.
> 
> Regarding your second question, yes, athn(4) does support power saving.
> 

Hi Stefan,

  I've done some more testing. I managed to get 802.11n working in
hostap mode for a while but then it crashed (not a kernel panic but the
driver dropped into ddb mode). Not sure if these help:

ddb{0}> trace
ieee80211_input_ba() at ieee80211_input_ba+0x1af
ar5008_rx_intr() at ar5008_rx_intr+0x2de
ar5008_intr() at ar5008_intr+0x22d
intr_handler() at intr_handler+0x67
Xintr_ioapic_level23() at Xintr_ioapic_level23+0xcd
--- interrupt ---
acpicpu_idle() at acpicpu_idle+0x13c
cpu_idle_cycle() at cpu_idle_cycle+0x10
end trace frame: 0x0, count: -7

ddb{0}> show panic
the kernel did not panic

ddb{0}> show registers
rdi   0x80a10840
rsi   0x80a10080
rbp   0x80002202cc78
rbx   0x80a10808
rdx0
rcx0x588hib_hlt_real+0x283
rax0x588hib_hlt_real+0x283
r80x80a10870
r9  0x80mptramp_gdt32_desc+0x5e
r10   0x80a1
r11   0xff00099ca002
r120
r13   0x80a10080
r140x8bbhib_hlt_real+0x5b6
r15   0x8071e048
rip   0x81235a9fieee80211_input_ba+0x1af
cs   0x8
rflags   0x10206mptramp_longmode+0x15e
rsp   0x80002202cc18
ss  0x10
ieee80211_input_ba+0x1af:   cmpq$0,0(%rax)

hostname.athn0:

inet 10.0.0.1 255.255.255.0 NONE media autoselect mediaopt hostap nwid
MyHome
wpa wpakey 'redacted' description "Wifi AP"

ifconfig athn0:

athn0: flags=8843 mtu 1500
lladdr 04:f0:21:14:c5:07
description: Wifi AP
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect (autoselect hostap)
status: active
ieee80211: nwid MyHome chan 1 bssid 04:f0:21:14:c5:07 wpakey
0xdeadbeef


dmesg:
OpenBSD 6.0-current (GENERIC.MP) #134: Fri Jan 13 07:10:19 MST 2017
bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error
ff
real mem = 4246003712 (4049MB)
avail mem = 4112740352 (3922MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf16d820 (7 entries)
bios0: vendor coreboot version "4.0" date 09/08/2014
bios0: PC Engines APU
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4)
PBR7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3)
UOH3(S3) UOH4(S3) UOH5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD G-T40E Processor, 1000.14 MHz
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,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: TSC frequency 1000140300 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD G-T40E Processor, 1000.00 MHz
cpu1:

Re: athn0: device timeout (AR9271 USB 2.0 Wifi-key as hostap)

2017-01-24 Thread mabi
Hi Stefan
Thanks for your input. It looks like the g2k16 modifications to the athn code 
from awolk@ did not make it into the 6.0 release. So there is still hope for 
6.1 ;-)
I suppose here that running a wifi host access point from a USB key is not a 
good idea. What a shame my firewall does not have any PCI or miniPCI 
interfaces...
Regards
M.





 Original Message 
Subject: Re: athn0: device timeout (AR9271 USB 2.0 Wifi-key as hostap)
Local Time: January 23, 2017 11:28 PM
UTC Time: January 23, 2017 10:28 PM
From: s...@stsp.name
To: mabi , misc@openbsd.org 

On Mon, Jan 23, 2017 at 11:19:31PM +0100, Stefan Sperling wrote:
> On Mon, Jan 23, 2017 at 04:27:32PM -0500, mabi wrote:
> > Hi,
> > I have an Atheros AR9271 Wifi USB 2.0 key on my OpenBSD 6.0 firewall in 
> > order to use as an access point. Unfortunately it happens nearly every day 
> > that the athn0 device times out, kernel log:
> >
> > athn0: device timeout
> >
> > and the only way to make the wireless work again is to reboot the firewall. 
> > I was told this would get better with 6.0 but I can't see any difference. 
> > Any ideas what's wrong? Below I post my hostname.athn0 and dmesg.
> >
> > Cheers,
> > Mabi
>
> These are known issues with athn on USB and hostap.
> I have already spent a lot of time digging into this and never got anywhere.
> Eventually I decided to document this in the man page which you apparently
> missed:
>
> [[[
> ATHN(4) Device Drivers Manual ATHN(4)
>
> NAME
> athn Atheros IEEE 802.11a/b/g/n wireless network device
> [...]
> BUGS
> Host AP mode does not work with USB devices.
> ]]]
>
> Sorry. Anybody, please let me know if you find a way to fix it.

I now recall that awolk@ was working on a patch for a similar problem.
See http://undeadly.org/cgi?action=article=20160906004915 and
https://marc.info/?l=openbsd-misc=144895556213390=2 which I had
already forgotten about ever having written.

Not sure what happened to the patch and if it is ready by now.
Also not sure if it will actually fix your problem or if Adam's problem
was caused by something else. Hard to tell without actually testing things.



Re: thinkpad X11 wheel emulation for middle button

2017-01-24 Thread Μάνος Πιτσιδιανάκης
Turns out it worked, but the emulation behaviour is really weird. It's 
*very*
difficult to scroll up or down. Is this expected behaviour? On linux the 
wheel

emulation was quite different.

Using xev I can see the button events register correctly and as fast as 
touchpad

scrolling

Στις 2017-01-24 20:10, edward wandasiewicz έγραψε:

Try

$ xinput --list-props "/dev/wsmouseX"

Where X is device of interest, before & after to verify changes.

On 24 Jan 2017 5:31 pm, "Μάνος Πιτσιδιανάκης"
 wrote:


Στις 2017-01-24 19:06, Kurt H Maier έγραψε:


I have this in my .xsession:

xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button"
2
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6
7 4 5


Hello,

Unfortunately this doesn't work for me, though the commands run
without errors. I suspect the
options are ignored, perhaps on the synaptics level? By the way,
xinput --list gives me the
following devices:

% xinput --list
⎡ Virtual core pointerid=2[master
pointer  (3)]
⎜   ↳ Virtual core XTEST pointerid=4
[slave  pointer  (2)]
⎜   ↳ /dev/wsmouse0 id=7
[slave  pointer  (2)]
⎜   ↳ /dev/wsmouse  id=8
[slave  pointer  (2)]
⎣ Virtual core keyboard   id=3[master
keyboard (2)]
↳ Virtual core XTEST keyboard id=5
[slave  keyboard (3)]
↳ /dev/wskbd  id=6
[slave  keyboard (3)]

Where /dev/wsmouse{,0} is the trackpoint and touchpad respectively.




Re: apmd

2017-01-24 Thread Jordon
> On Jan 24, 2017, at 12:54 PM, Stefan Sperling  wrote:
>
> On Tue, Jan 24, 2017 at 11:52:56AM -0600, Jordon wrote:
>>> OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
>>>   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
>>> cpu0: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class)
>> 3.30 GHz
>>
>>
>> A ‘6600’ would be a Skylake CPU, and skylake is not yet supported.
>> I’m seeing similar issues in my Skylake laptop - sleeps find but video
>> subsystem doesn’t wake properly.
>> I know myself and several others are ready to make a nice donation when
>> Skylake support drops.
>> Until then…
>>
>> Jordon
>
> Whether you donate today or tomorrow is irrelevant to Skylake support.
>
> If you have the extra cash already, then why not just make that donation
> right now? With a donation you are not buying a service or a product,
> it is a gift you make voluntarily. Or perhaps a gift you make to lower
> your taxable income. In any case, you have your own private reasons for
> donating which nobody else should care about.
>
> You have already been given a gift by the community which you can install
> and run today, no strings attached. It is this same mindset that donations
> are usually made with. Bragging about a donation to those who receive it
and
> even tying it to conditions makes it look not like a real donation, but
more
> like an effort to buy influence.

I guess that is one way to interpret my message.
I was just referencing a thread here a few weeks ago where multiple people
were mentioning they are very much interested in Skylake support and willing
to donate to make it happen.  I am very thankful for OpenBSD and have
purchased several versions on disk as a way of saying thank you.  I was not
bragging.  When a contribution is made that significantly increases the value
of OpenBSD for me, I will show appreciation by donating.

I really like this project and would like to make it my ‘daily driver’
system.

Jordon



Re: apmd

2017-01-24 Thread Otto Moerbeek
On Tue, Jan 24, 2017 at 07:54:44PM +0100, Stefan Sperling wrote:

> On Tue, Jan 24, 2017 at 11:52:56AM -0600, Jordon wrote:
> > > OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
> > >dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > > cpu0: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class)
> > 3.30 GHz
> > 
> > 
> > A ‘6600’ would be a Skylake CPU, and skylake is not yet supported.
> > I’m seeing similar issues in my Skylake laptop - sleeps find but video
> > subsystem doesn’t wake properly.
> > I know myself and several others are ready to make a nice donation when
> > Skylake support drops.
> > Until then…
> > 
> > Jordon
> 
> Whether you donate today or tomorrow is irrelevant to Skylake support.
> 
> If you have the extra cash already, then why not just make that donation
> right now? With a donation you are not buying a service or a product,
> it is a gift you make voluntarily. Or perhaps a gift you make to lower
> your taxable income. In any case, you have your own private reasons for
> donating which nobody else should care about.
> 
> You have already been given a gift by the community which you can install
> and run today, no strings attached. It is this same mindset that donations
> are usually made with. Bragging about a donation to those who receive it and
> even tying it to conditions makes it look not like a real donation, but more
> like an effort to buy influence.

What's more, a conditional donation might in some cases be regarded as
a payout for work by some tax office, and be taxed as such. A donation
with strings attached is not a donation.

-Otto



Re: apmd

2017-01-24 Thread Stefan Sperling
On Tue, Jan 24, 2017 at 11:52:56AM -0600, Jordon wrote:
> > OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
> >dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > cpu0: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class)
> 3.30 GHz
> 
> 
> A ‘6600’ would be a Skylake CPU, and skylake is not yet supported.
> I’m seeing similar issues in my Skylake laptop - sleeps find but video
> subsystem doesn’t wake properly.
> I know myself and several others are ready to make a nice donation when
> Skylake support drops.
> Until then…
> 
> Jordon

Whether you donate today or tomorrow is irrelevant to Skylake support.

If you have the extra cash already, then why not just make that donation
right now? With a donation you are not buying a service or a product,
it is a gift you make voluntarily. Or perhaps a gift you make to lower
your taxable income. In any case, you have your own private reasons for
donating which nobody else should care about.

You have already been given a gift by the community which you can install
and run today, no strings attached. It is this same mindset that donations
are usually made with. Bragging about a donation to those who receive it and
even tying it to conditions makes it look not like a real donation, but more
like an effort to buy influence.



Re: Loss of USB connection if I "wiggle the cable at device end"

2017-01-24 Thread Adam Van Ymeren
On January 24, 2017 12:34:35 PM EST, Alexander Keller 
wrote:
>Noted same issue on certain devices including a keyboard peripheral of
>mine. Have included a patch.
>
>[demime 1.01d removed an attachment of type image/jpeg which had a name
>of patch.jpg]


patch.jpg.  what.



Re: apmd

2017-01-24 Thread Jordon
> OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
>dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class)
3.30 GHz


A ‘6600’ would be a Skylake CPU, and skylake is not yet supported.
I’m seeing similar issues in my Skylake laptop - sleeps find but video
subsystem doesn’t wake properly.
I know myself and several others are ready to make a nice donation when
Skylake support drops.
Until then…

Jordon



apmd

2017-01-24 Thread jsg
  Have a Dell Optiplex Desktop that following suspend/sleep presents garbage 
while in x and
  needs rebooting to recover.

  apmd,apm and /var/log/daemon report that A/C status is not knowm.

  Anyone have this problem or a solutuon?

  dmesg.boot attached

  thanks in advance.
OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class) 3.30 
GHz
cpu0: 
FPU,V86,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,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
real mem  = 3670605824 (3500MB)
avail mem = 3587596288 (3421MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 11/01/15, SMBIOS rev. 2.8 @ 0xed980 (93 entries)
bios0: vendor Dell Inc. version "1.4.5" date 06/27/2016
bios0: Dell Inc. OptiPlex 5040
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT SSDT UEFI LPIT SSDT SSDT 
SSDT SSDT DBGP DBG2 SSDT SSDT TCPA DMAR ASF!
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) 
PS2K(S4) PS2M(S4) PXSX(S4) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) 
PXSX(S4) RP12(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
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, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class) 3.32 
GHz
cpu1: 
FPU,V86,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,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class) 3.32 
GHz
cpu2: 
FPU,V86,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,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz ("GenuineIntel" 686-class) 3.32 
GHz
cpu3: 
FPU,V86,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,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
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)
acpiprt21 at acpi0: bus -1 (RP14)
acpiprt22 at acpi0: bus -1 (RP15)
acpiprt23 at acpi0: bus -1 (RP16)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PG00, resource for PEG0
acpipwrres1 at acpi0: PG01, resource for PEG1
acpipwrres2 at acpi0: PG02, resource for PEG2
acpipwrres3 at 

Re: Loss of USB connection if I "wiggle the cable at device end"

2017-01-24 Thread Alexander Keller
Noted same issue on certain devices including a keyboard peripheral of
mine. Have included a patch.

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
patch.jpg]



Re: thinkpad X11 wheel emulation for middle button

2017-01-24 Thread Μάνος Πιτσιδιανάκης

Στις 2017-01-24 19:06, Kurt H Maier έγραψε:

I have this in my .xsession:

xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 
5



Hello,

Unfortunately this doesn't work for me, though the commands run without 
errors. I suspect the
options are ignored, perhaps on the synaptics level? By the way, xinput 
--list gives me the

following devices:

% xinput --list
⎡ Virtual core pointerid=2[master pointer  
(3)]
⎜   ↳ Virtual core XTEST pointerid=4[slave  
pointer  (2)]
⎜   ↳ /dev/wsmouse0 id=7[slave  
pointer  (2)]
⎜   ↳ /dev/wsmouse  id=8[slave  
pointer  (2)]
⎣ Virtual core keyboard   id=3[master keyboard 
(2)]
↳ Virtual core XTEST keyboard id=5[slave  
keyboard (3)]
↳ /dev/wskbd  id=6[slave  
keyboard (3)]



Where /dev/wsmouse{,0} is the trackpoint and touchpad respectively.



Re: Loss of USB connection if I "wiggle the cable at device end"

2017-01-24 Thread Mihai Popescu
> I am noticing a loss of USB connection if I accidentally / purposely wiggle 
> the cable near the USB > type-C device end, using 6.0-current #150.

Are you using OpenBSD cables?



Re: edge router lite with double NAT

2017-01-24 Thread trondd
On Tue, January 24, 2017 3:19 am, jungle boogie wrote:
> On 01/23/2017 05:43 PM, trondd wrote:
>>>
>>
>>
>> Maybe make rules that are very specific to the BBB and ERL IPs in
>> question.  And/or make sure 'egress' is the interface you thing it is.
>>
>
> Okay, at this point I'm blaming the ISP issued router. I can't add a
> static route and therefore, I think it's to blame for nothing in
> 172.16.13.0/24 to get out to the internet.
> Well the ERL may still collect dust, but it will give me more of a
> reason to replace the ISP router for something decent.
>
> Thanks for all the help!
>

Yeah, it's a problem if we have no idea what the ISP's router is doing,
but in theory, the ISP router should never see another IP besides the
ERL's.



Re: thinkpad X11 wheel emulation for middle button

2017-01-24 Thread Kurt H Maier
On Tue, Jan 24, 2017 at 07:01:45PM +0200, Μάνος Πιτσιδιανάκης wrote:
> I want to enable wheel emulation for the middle button in my Thinkpad 
> (T420s)

I have this in my .xsession:

xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5

This has worked for me on several machines, including the X250 I'm using
to send this message.

khm



thinkpad X11 wheel emulation for middle button

2017-01-24 Thread Μάνος Πιτσιδιανάκης
I want to enable wheel emulation for the middle button in my Thinkpad 
(T420s)


dmesg shows:

wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2


I have already tried:

Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
  Option "EmulateWheel" "true"
  Option "EmulateWheelButton" "2"
  Option "Emulate3Buttons" "false"
  Option "XAxisMapping" "6 7"
  Option "YAxisMapping" "4 5"
EndSection

Has anyone configured this successfully?



Loss of USB connection if I "wiggle the cable at device end"

2017-01-24 Thread edward wandasiewicz
I am noticing a loss of USB connection if I accidentally / purposely
wiggle the cable near the USB type-C device end, using 6.0-current
#150.

I have 2 USB-A male to type-C cables, one implements USB 2.1, the other USB
3.1

I get the same problem with both cables.

The problem doesn't happen all the time, about 1 in 10 when I try to
replicate it, and I haven't had this problem in the past.

I get 2 different types of messages when the problem occurs



1. uhub0: port 2 reset failed

2. uhub0: device problem, disabling port X



where "disabling port X" can be either port 2 or port 1 - see below

I've also attached a dmesg from boot

I can compile a kernel with UMASS_DEBUG if further output is needed

Edward.

#
# uhub0: port 2 reset failed
#

Jan 24 12:10:21 mousse /bsd: sd3 detached
Jan 24 12:10:21 mousse /bsd: scsibus5 detached
Jan 24 12:10:21 mousse /bsd: umass1 detached
Jan 24 12:10:23 mousse /bsd: uhub0: port 2 reset failed

#
# uhub0: device problem, disabling port 2
#
# suddenly connect, from 12:11:19 to 12:11:20
#
# detach and attach using same cable, USB 2.1
#

Jan 24 12:10:46 mousse /bsd: sd3 detached
Jan 24 12:10:46 mousse /bsd: scsibus5 detached
Jan 24 12:10:46 mousse /bsd: umass1 detached
Jan 24 12:11:19 mousse /bsd: uhub0: device problem, disabling port 2
Jan 24 12:11:20 mousse /bsd: umass1 at uhub0 port 2 configuration 1
interface 0 "Samsung Portable
SSD T3" rev 2.10/1.00 addr 5
Jan 24 12:11:20 mousse /bsd: umass1: using SCSI over Bulk-Only
Jan 24 12:11:20 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0
Jan 24 12:11:20 mousse /bsd: sd3 at scsibus5 targ 1 lun 0:  SCSI4
0/direct fixed serial.04e861f312345678E41F
Jan 24 12:11:20 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168
sectors
Jan 24 12:11:20 mousse /bsd: sd3 detached
Jan 24 12:11:20 mousse /bsd: scsibus5 detached
Jan 24 12:11:20 mousse /bsd: umass1 detached

#
# uhub0: device problem, disabling port 1
#
# suddenly connect, from 12:20:43 to 12:20:45
#
# detach and attach using different cables
#
# detach with USB 2.1 cable, attach with USB 3.1 cable
#

Jan 24 12:19:57 mousse /bsd: umass1 at uhub0 port 1 configuration 1
interface 0 "Samsung Portable
SSD T3" rev 2.10/1.00 addr 5
Jan 24 12:19:57 mousse /bsd: umass1: using SCSI over Bulk-Only
Jan 24 12:19:57 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0
Jan 24 12:19:57 mousse /bsd: sd3 at scsibus5 targ 1 lun 0:  SCSI4
0/direct fixed serial.04e861f312345678E41F
Jan 24 12:19:57 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168
sectors
Jan 24 12:19:59 mousse /bsd: sd3 detached
Jan 24 12:19:59 mousse /bsd: scsibus5 detached
Jan 24 12:19:59 mousse /bsd: umass1 detached
Jan 24 12:20:43 mousse /bsd: uhub0: device problem, disabling port 1
Jan 24 12:20:45 mousse /bsd: umass1 at uhub0 port 13 configuration 1
interface 0 "Samsung Portable
SSD T3" rev 3.00/1.00 addr 5
Jan 24 12:20:45 mousse /bsd: umass1: using SCSI over Bulk-Only
Jan 24 12:20:45 mousse /bsd: scsibus5 at umass1: 2 targets, initiator 0
Jan 24 12:20:45 mousse /bsd: sd3 at scsibus5 targ 1 lun 0:  SCSI4
0/direct fixed serial.04e861f312345678E41F
Jan 24 12:20:45 mousse /bsd: sd3: 476940MB, 512 bytes/sector, 976773168
sectors

#
# dmesg
#

OpenBSD 6.0-current (GENERIC.MP) #150: Tue Jan 17 17:41:15 MST 2017
bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17094049792 (16302MB)
avail mem = 16571342848 (15803MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7ce42020 (9 entries)
bios0: vendor coreboot version "(null)" date 04/02/2015
bios0: GOOGLE Samus
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG SSDT
acpi0: wakeup devices HDEF(S3) WLAN(S3) EHCI(S3) XHCI(S3) ATPA(S3)
CODC(S3) LID0(S5)
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) i7-5500U CPU @ 2.40GHz, 2394.83 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,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,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,IT
SC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2394830480 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) i7-5500U CPU @ 2.40GHz, 2394.46 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS

OpenBSD BFD Implementation

2017-01-24 Thread Uday MOORJANI
Dear Misc

Hope all is fine. I'm trying to find an implementation of BFD for OpenBSD
and I read Peter's  that is was still under development. My questions are:

- Has anyone tried OpenBFDd on OpenBSD?
- Same question but with BIRD's implementation of BFD? Read on a forum that
BIRD on OpenBSD doesn't support BFD, but I'm having doubts as the website
of BIRD says otherwise.

Thanks guys,

Uday



Re: Testing stability of internet connection for VPn tunnel

2017-01-24 Thread Markus Rosjat

Hi there,

 maybe its important to notice that the provider change also changed 
the way  we connect to the net.


we had a provider router that was basically transperent  so my soekris 
could add a static route with her internal ip and it worked.


now we have a modem7router that is not transperent and not manageable at 
all (telecolumbus for the german readers).


so I can define a route with the internal ip as gateway but its not 
really working for me, at least not with a ping. Beside that the traffic 
is going through somehow maybe because pf is doing some of the work here.



So maybe someone out there has some ideas how to overcome this problem too.

Regards

Markus

Am 24.01.2017 um 10:05 schrieb Markus Rosjat:

Hey there,

like the topic says I just need to get an idea how to really check if
the internet connection can handle the traffic over my vpn tunnel.

I was thinking of doing a ping with a bigger size of payload and check
how many packages get droped over a fixed amount of time but if there is
a better and more reliable way to do this then it wood be most
appreciated to hear it :)

Regards



--
Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Testing stability of internet connection for VPn tunnel

2017-01-24 Thread Markus Rosjat

Hey there,

like the topic says I just need to get an idea how to really check if 
the internet connection can handle the traffic over my vpn tunnel.


I was thinking of doing a ping with a bigger size of payload and check 
how many packages get droped over a fixed amount of time but if there is 
a better and more reliable way to do this then it wood be most 
appreciated to hear it :)


Regards

--
Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: edge router lite with double NAT

2017-01-24 Thread jungle boogie

On 01/23/2017 05:43 PM, trondd wrote:





Maybe make rules that are very specific to the BBB and ERL IPs in
question.  And/or make sure 'egress' is the interface you thing it is.



Okay, at this point I'm blaming the ISP issued router. I can't add a 
static route and therefore, I think it's to blame for nothing in 
172.16.13.0/24 to get out to the internet.
Well the ERL may still collect dust, but it will give me more of a 
reason to replace the ISP router for something decent.


Thanks for all the help!