terminals + tmux + vim: ESC + arrows unexpected behaviour

2017-05-14 Thread frantisek holop
there seems to be some unexpected behaviour (at least
for me) in terminal vim running under tmux:

pressing ESC and right after that the arrow keys to
move around (vim purist need not comment on this) get
interpreted as different vim commands: for example UP
will enter insert mode again, LEFT, RIGHT send some
deleting commands, DOWN moves the cursor around in
mysterious ways.

reproduced this in these environments:
openbsd -current: urxvt + tmux + vim
openbsd -current: xterm + tmux + vim
osx: iterm2 + tmux 2.4 + vim 8.0.596

could not reproduce this on: openbsd 6.0 release

leaving tmux always fixes the issue, so i am included
to think it might be a tmux issue.  any ideas?

-f
-- 



Re: terminals + tmux + vim: ESC + arrows unexpected behaviour

2017-05-14 Thread frantisek holop
Andreas Kusalananda Kähäri, 14 May 2017 14:28:
> tmux has an "escape-time" setting:
> 
> escape-time time
>  Set the time in milliseconds for which tmux waits
>  after an escape is input to determine if it is part
>  of a function or meta key sequences.  The default
>  is 500 milliseconds.
> 
> You are probably pressing the arrow keys within this timeframe.  Try
> decreasing it to something like 100:
> 
> set-option escape-time 100

thanks, this seems to help.
is there a downside to setting this to 0?

-f
-- 



Re: mini itx from intel

2015-10-02 Thread frantisek holop
thanks everyone for the dmesg.
i bought 2 of these with 8G of RAM
and intel SSD drives.

they will be used as headless servers,
so DRM is not an issue, i was aware of that.

they are remote, so openbsd is not installed
on them yet, and i had the techie remove
the wlans, as they will be in a small
server room connected to a switch,
so hopefully overheating won't be a problem.

i was surprised they have fans,
i was aiming for a fanless configuration,
but the offer is not that big here in
the eu, at least from what i saw.

i know they are not powerhouses,
but compared to what i have now,
they actually are.

-f
-- 



Re: mini itx from intel

2015-10-02 Thread frantisek holop
frantisek holop, 02 Oct 2015 17:55:
> thanks everyone for the dmesg.
> i bought 2 of these with 8G of RAM
> and intel SSD drives.

and of course by "2 of these"
i meant DN2820FYKH

-f
-- 
he has a train of thought.  you have a tricycle...



turning off the touchscreen

2016-02-21 Thread frantisek holop
i have installed openbsd -current on an older
generation of dell xps 17.  this model has a
touchscreen, but a faulty one. no amount of
calibration helps and needs to be disabled
also in windows and linux.

i am having difficulties disabling it in openbsd.

please find the dmesg, and Xorg.log attached.

$ doas wsconsctl | grep mouse
wsconsctl: Use explicit arg to view keyboard.map.
wsconsctl: Use explicit arg to view keyboard1.map.
wsconsctl: Use explicit arg to view keyboard2.map.
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5398,1408,4728,0,42,70
mouse1.type=touch-panel
mouse1.rawmode=1
mouse1.scale=0,9600,0,7200,0,0,0
mouse2.type=touch-panel
mouse2.rawmode=1
mouse2.scale=0,9600,0,7200,0,0,0
mouse3.type=touch-panel
mouse3.rawmode=1
mouse3.scale=0,9600,0,7200,0,0,0

$ xinput
⎡ Virtual core pointerid=2[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointerid=4[slave  pointer 
 (2)]
⎜   ↳ /dev/wsmouse  id=11   [slave  pointer 
 (2)]
⎜   ↳ /dev/wsmouse0 id=7[slave  pointer 
 (2)]
⎜   ↳ /dev/wsmouse3 id=10   [slave  pointer 
 (2)]
⎜   ↳ /dev/wsmouse2 id=9[slave  pointer 
 (2)]
⎜   ↳ /dev/wsmouse1 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)]

i have tried:

$ xinput --disable 8
$ xinput --disable 9
$ xinput --disable 10
$ xinput --disable 11

id=11 obviously disables the touchscreen but also the
touchpad and the external usb mouse...

i can use the touchpad with this:

$ xinput --disable 11
$ xinput --enable 7

but it would be nice to have the usb mouse.

-f
-- 
OpenBSD 5.9 (GENERIC.MP) #1880: Sat Feb 20 16:48:33 MST 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8462589952 (8070MB)
avail mem = 8201916416 (7821MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9360 (70 entries)
bios0: vendor Dell Inc. version "A19" date 09/07/2012
bios0: Dell Inc. Dell System XPS L702X
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT ASF! HPET APIC MCFG SSDT SSDT SSDT UEFI UEFI 
UEFI
acpi0: wakeup devices P0P1(S4) EHC1(S3) EHC2(S3) HDEF(S3) PXSX(S4) RP01(S3) 
PXSX(S4) RP02(S3) PXSX(S4) RP04(S1) PXSX(S4) RP05(S3) PXSX(S4) RP06(S4) 
PEG0(S4) PEGP(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-2450M CPU @ 2.50GHz, 2494.70 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
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.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz, 2494.34 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,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-2450M CPU @ 2.50GHz, 2494.34 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,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-2450M CPU @ 2.50GHz, 2494.34 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,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,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
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 2

timestamp of 'logfile turned over' lines

2018-01-08 Thread frantisek holop
hello and happy new year,

during the christmas holidays i have upgraded my
openbsd servers to 6.2 and i have noticed that
the timestamps for newsyslog 'logfile turned over' lines
changed to something like ISO 8601:

$ zgrep turned /var/log/messages*
messages:2017-12-31T23:00:01.258Z selene newsyslog[32157]: logfile turned over
messages.0.gz:Dec  1 00:00:01 selene newsyslog[4410]: logfile turned over
messages.0.gz:2017-12-31T23:00:01.258Z selene newsyslog[32157]: logfile turned 
over
messages.1.gz:Nov  1 00:00:01 selene newsyslog[27587]: logfile turned over
messages.1.gz:Dec  1 00:00:01 selene newsyslog[4410]: logfile turned over
messages.2.gz:Oct  1 00:00:01 selene newsyslog[73773]: logfile turned over
messages.2.gz:Nov  1 00:00:01 selene newsyslog[27587]: logfile turned over

i have a monthly rotation set up in newsyslog.conf

is anybody else seeing this?

-f
-- 



Re: sudoedit for doas?

2018-03-01 Thread frantisek holop
Paul de Weerd, 01 Mar 2018 15:06:
> Hi Nick, others,
> | what is the reason for your obsession with sudoedit or visudo or
> | anything other than just editing the $%&^& file, saving your change and
> | testing them on another terminal window?  Like is done on almost every
> | other config file in a Unix environment?
> | 
> | There is no pfconfedit, daily.localedit, virc.conf, dhcpd.confedit, and
> | we do just fine without it.
> 
> crontab -e! :-)

disklabel -E (not -e ;p)
fdisk -e

:}

-- 



Re: py3-qt5

2018-03-02 Thread frantisek holop
Daniel Jakots, 01 Mar 2018 21:50:
> On Thu, 1 Mar 2018 21:40:57 -0500, Z Ero 
> wrote:
> 
> > Not showing in pip3 --list after installed with pkg_add. Not available
> > module. Why?
> > 
> 
> pip and pkg_add are two different package manager. If you run pkg_info,
> you should see the package list which would mean it's installed.
> You should probably read the FAQ: https://www.openbsd.org/faq/faq15.html

this is not true for python.  all correctly pkg_add'ed
python packages/libs (e.g. py-jinja2) go to
`site-packages` and thus should show up in the
site-wide pip list.

$ pkg_info | grep py-
py-MarkupSafe-1.0   implements an XML/HTML/XHTML markup safe string
py-jinja2-2.8.1 fast, optionally sandboxed, Python template engine
py-pip-9.0.1p0  Python easy_install replacement
py-setuptools-28.6.1p0v0 simplified packaging system for Python modules
py-virtualenv-15.1.0p0 virtual Python environment builder

$ pip2.7 list
Jinja2 (2.8.1)
MarkupSafe (1.0)
pip (9.0.1)
setuptools (28.6.1)
virtualenv (15.1.0)


-f
-- 



would like: unix user and softraid crypto sharing same password

2018-03-04 Thread frantisek holop
hello,

macOS has this rather user friendly operating mode
where one is able to set the volume's FileVault
(apple's full disk encryption) password to be the same
as their user password and the password is asked only
once.  after bootup i get a login screen, enter my
password, and voila, i am both logged in, and can
access the encrypted volume.  this works with a boot
volume as well.

i would like to achieve something similar on OpenBSD
but in a bit simpler setup.  my softraid crypto volume
is just a "data" mount under my home, the system and /home
are not encrypted.  this setup came to be partly
because it's a pain in the ass to always mount the
encrypted folder after logging in, so i left some
common stuff unencrypted (yes, i know, keydisks...).

but it would be nice to have a fully encrypted /home
that gets mounted when i enter my user password at the
login screen, i don't mind leaving the system unencrypted...

any ideas how to achieve this?  some nice post auth
hooks?  in some ways it's bit like authpf...

-f
-- 



Re: would like: unix user and softraid crypto sharing same password

2018-03-04 Thread frantisek holop
Mihai Popescu, 05 Mar 2018 00:07:
> Did they remove the SHIFT key support on macOS?

AH< SO THATS"S THE SECRET< I JUST NEED TO USE THE SHIFT KEY>
THANKS COMRADE

-- 



crypto softraid usb stick and the docs

2013-07-13 Thread frantisek holop
hi there,

i have decided to create an encrypted usb stick that
would be the rsynced backup of my $HOME.

i started by reading softraid(4). and its only example
looks scary -- it destroys all data on sd0, my main
drive for years :]  i know, it is only an _example_
and should never be copied verbatim, but perhaps it
also doesnt have to be something so in-my-face
desctructive just becuse it is an example, especially
when i am trying to do something totally new and
potentionally very destructive...

it was not clear to me right from the beginning that
the raid volume to be created will be "just another"
sd* drive (some other systems have special devices),
explaining that was left enterily to the example,
and me having only sd* drives (hard drives, memory
cards, usb sticks) it is not a very useful one
for me...


i also had a look at the FAQ: 14.21.5 - Softraid Crypto
and there is this paragraph that does not seem to work:

"""
Once this is set up, you can then "unlock" the crypto volume when desired with:

# bioctl -c C -l /dev/sd1m
Passphrase: My Crypto Pass Phrase
softraid0: CRYPTO volume attached as sd1

You can then mount the encrypted volume's partitions using mount as usual.
"""

i am not sure what "unlock" means. but the command does
not work, bioctl(4) always takes a device parameter
according to the man page.


but so far so good. the stick appears to be under bioctl's care
and i could mount it.  i will still have to experiment with
hotplug and friends, and what exactly does
"softraid0: roaming device sd2a -> sd1a"
mean, as sd2 is the sd card reader showing up as a usb device...

-f

OpenBSD 5.4-beta (GENERIC.MP) #29: Wed Jul 10 11:25:52 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1061818368 (1012MB)
avail mem = 1032998912 (985MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/10, SMBIOS rev. 2.6 @ 0xeb0f0 (53 
entries)
bios0: vendor LENOVO version "50CN12WW" date 04/22/2011
bios0: LENOVO 20109
acpi0 at bios0: rev 3
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET
acpi0: wakeup devices P0P8(S4) PS2K(S3) PS2M(S3) EUSB(S3) P0PA(S4) P0PB(S4) 
P0PC(S4) P0P9(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) PWRB(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P8)
acpiprt2 at acpi0: bus 2 (P0PA)
acpiprt3 at acpi0: bus -1 (P0PB)
acpiprt4 at acpi0: bus -1 (P0PC)
acpiprt5 at acpi0: bus 1 (P0P9)
acpiec0 at acpi0
acpicpu0 at acpi0:, C3, C2, C1, PSS
acpicpu1 at acpi0:, C3, C2, C1, PSS
acpicpu2 at acpi0:, C3, C2, C1, PSS
acpicpu3 at acpi0:, C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "LNV-L10C6Y12" serial 004706 type LiIon   
oem "CPT-ES3"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1334, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
intel_overlay_map_regs partial stub
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0:

pms0: not in sync yet, discard input (state 3)

2013-09-14 Thread frantisek holop
hi there,

after upgrading to the september 10 snapshot,
i am not able to use the touchpad.

console is full of:
pms0: not in sync yet, discard input (state 1)
pms0: not in sync yet, discard input (state 2)
pms0: not in sync yet, discard input (state 3)

attaching an external usb mouse helps, although
sometimes, after trying to use pms again, button1
stops working...

help help help plz


OpenBSD 5.4-current (GENERIC.MP) #57: Tue Sep 10 17:42:20 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1061818368 (1012MB)
avail mem = 1032613888 (984MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/10, SMBIOS rev. 2.6 @ 0xeb0f0 (53 
entries)
bios0: vendor LENOVO version "50CN12WW" date 04/22/2011
bios0: LENOVO 20109
acpi0 at bios0: rev 3
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET
acpi0: wakeup devices P0P8(S4) PS2K(S3) PS2M(S3) EUSB(S3) P0PA(S4) P0PB(S4) 
P0PC(S4) P0P9(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) PWRB(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P8)
acpiprt2 at acpi0: bus 2 (P0PA)
acpiprt3 at acpi0: bus -1 (P0PB)
acpiprt4 at acpi0: bus -1 (P0PC)
acpiprt5 at acpi0: bus 1 (P0P9)
acpiec0 at acpi0
acpicpu0 at acpi0:, C3, C2, C1, PSS
acpicpu1 at acpi0:, C3, C2, C1, PSS
acpicpu2 at acpi0:, C3, C2, C1, PSS
acpicpu3 at acpi0:, C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "LNV-L10C6Y12" serial 004706 type LiIon   
oem "CPT-ES3"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1334, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
intel_overlay_map_regs partial stub
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x05: RTL8105E (0x4080), msi, 
address 00:19:d1:e4:7c:15
rlphy0 at re0 phy 7: RTL8201E 10/100 PHY, rev. 2
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17
pci2 at ppb1 bus 2
"Realtek 8188CE" rev 0x01 at pci2 dev 0 function 0 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
pcib0 at pci0 dev 31 function 0

Re: pms0: not in sync yet, discard input (state 3)

2013-09-14 Thread frantisek holop
hmm, on Sat, Sep 14, 2013 at 10:35:01PM +0200, Stefan Sperling said that
> On Sat, Sep 14, 2013 at 05:02:03PM +0200, frantisek holop wrote:
> > hi there,
> > 
> > after upgrading to the september 10 snapshot,
> > i am not able to use the touchpad.
> 
> What were you running before upgrading to that snapshot?

aug 18 snapshot

>  
> > console is full of:
> > pms0: not in sync yet, discard input (state 1)
> > pms0: not in sync yet, discard input (state 2)
> > pms0: not in sync yet, discard input (state 3)
> 
> > pms0 at pckbc0 (aux slot)
> > pckbc0: using irq 12 for aux slot
> > wsmouse0 at pms0 mux 0
> > pms0: Elantech Touchpad, version 2
> 
> Did you ever see the "Elantech Touchpad, version 2" message
> before, and did the mouse work with it?

$ grep Elantech dmesg*
dmesg.boot-2013-05-11:pms0: Elantech Touchpad, version 2
dmesg.boot-2013-06-21:pms0: Elantech Touchpad, version 2
dmesg.boot-2013-07-01:pms0: Elantech Touchpad, version 2
dmesg.boot-2013-08-21:pms0: Elantech Touchpad, version 2
dmesg.boot-2013-09-14:pms0: Elantech Touchpad, version 2

dmesg of previous snapshot:

OpenBSD 5.4-current (GENERIC.MP) #46: Sun Aug 18 13:40:34 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1061818368 (1012MB)
avail mem = 1032622080 (984MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/10, SMBIOS rev. 2.6 @ 0xeb0f0 (53 
entries)
bios0: vendor LENOVO version "50CN12WW" date 04/22/2011
bios0: LENOVO 20109
acpi0 at bios0: rev 3
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET
acpi0: wakeup devices P0P8(S4) PS2K(S3) PS2M(S3) EUSB(S3) P0PA(S4) P0PB(S4) 
P0PC(S4) P0P9(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) PWRB(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P8)
acpiprt2 at acpi0: bus 2 (P0PA)
acpiprt3 at acpi0: bus -1 (P0PB)
acpiprt4 at acpi0: bus -1 (P0PC)
acpiprt5 at acpi0: bus 1 (P0P9)
acpiec0 at acpi0
acpicpu0 at acpi0:, C3, C2, C1, PSS
acpicpu1 at acpi0:, C3, C2, C1, PSS
acpicpu2 at acpi0:, C3, C2, C1, PSS
acpicpu3 at acpi0:, C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "LNV-L10C6Y12" serial 004706 type LiIon   
oem "CPT-ES3"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1334, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
intel_overlay_map_regs partial stub
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 

Re: pms0: not in sync yet, discard input (state 3)

2013-09-17 Thread frantisek holop
as it seems like this is a legit regression,
could this backed out please?

-f
-- 
between two evils, always pick the one you never tried before.



Re: pms0: not in sync yet, discard input (state 3)

2013-09-17 Thread frantisek holop
hmm, on Tue, Sep 17, 2013 at 02:56:30PM +0200, Stefan Sperling said that
> On Tue, Sep 17, 2013 at 02:36:25PM +0200, frantisek holop wrote:
> > as it seems like this is a legit regression,
> > could this backed out please?
> 
> Which commit exactly needs to be backed out?

my guess would be the ones done after aug 19..
that one was working.

-f
-- 
anarchy is better than no government at all.



usb key performance decrease

2013-10-16 Thread frantisek holop
hi there,

i think the usb subsystem is in certain circumstances
starving the writes...

i have this great working sandisk "ultra backup" 32G
usb key, that was consistently achieving ~10MB/s
in writing big files (movies).  in windows, it can
pack even 15MB/s.

now i have this:

$ time dd if=1.mp4 of=/mnt/1.mp4 bs=1m
268+0 records in
267+0 records out
279969792 bytes transferred in 401.012 secs (698156 bytes/sec)
295+0 records in
294+0 records out
308281344 bytes transferred in 440.531 secs (699795 bytes/sec)
620+1 records in
620+1 records out
650617965 bytes transferred in 949.335 secs (685340 bytes/sec)
  950.23 real 0.01 user 5.59 sys

first i thought, this might be some file system issue
(fat32).  but i tried this is:

$ sudo dd if=/dev/zero of=/dev/rsd3a bs=1m count=300
300+0 records in
300+0 records out
314572800 bytes transferred in 42.414 secs (7416611 bytes/sec)

some might say ~7.5MB/s is not bad, but
please note: this is RAW, sequential write from
/dev/zero.  it should be higher.


creating the file system takes _very_ long time:

$ sudo fdisk -i /dev/rsd3c
Do you wish to write new MBR and partition table? [n] y
Writing MBR at offset 0.

$ sudo disklabel -E sd3
Label editor (enter '?' for help at any prompt)
> a
partition: [a] 
offset: [64] 
size: [62557046] 
FS type: [4.2BSD] 
Rounding size to bsize (32 sectors): 62557024
> w
> q
No label changes.

$ sudo time newfs /dev/rsd3a 
/dev/rsd3a: 30545.4MB in 62557024 sectors of 512 bytes
151 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
super-block backups (for fsck -b #) at:
 32, 414688, 829344, 1244000, 1658656, 2073312, 2487968, 2902624, 3317280, 
3731936, 4146592, 4561248,
 4975904, 5390560, 5805216, 6219872, 6634528, 7049184, 7463840, 7878496, 
8293152, 8707808, 9122464, 9537120,
 9951776, 10366432, 10781088, 11195744, 11610400, 12025056, 12439712, 12854368, 
13269024, 13683680, 14098336,
 14512992, 14927648, 15342304, 15756960, 16171616, 16586272, 17000928, 
17415584, 17830240, 18244896,
 18659552, 19074208, 19488864, 19903520, 20318176, 20732832, 21147488, 
21562144, 21976800, 22391456,
 22806112, 23220768, 23635424, 24050080, 24464736, 24879392, 25294048, 
25708704, 26123360, 26538016,
 26952672, 27367328, 27781984, 28196640, 28611296, 29025952, 29440608, 
29855264, 30269920, 30684576,
 31099232, 31513888, 31928544, 32343200, 32757856, 33172512, 33587168, 
34001824, 34416480, 34831136,
 35245792, 35660448, 36075104, 36489760, 36904416, 37319072, 37733728, 
38148384, 38563040, 38977696,
 39392352, 39807008, 40221664, 40636320, 41050976, 41465632, 41880288, 
42294944, 42709600, 43124256,
 43538912, 43953568, 44368224, 44782880, 45197536, 45612192, 46026848, 
46441504, 46856160, 47270816,
 47685472, 48100128, 48514784, 48929440, 49344096, 49758752, 50173408, 
50588064, 51002720, 51417376,
 51832032, 52246688, 52661344, 53076000, 53490656, 53905312, 54319968, 
54734624, 55149280, 55563936,
 55978592, 56393248, 56807904, 57222560, 57637216, 58051872, 58466528, 
58881184, 59295840, 59710496,
 60125152, 60539808, 60954464, 61369120, 61783776, 62198432,
  848.35 real 3.11 user 5.36 sys

that's 14 minutes for a 32G file system :-(

iostat sheds a bit of light, when i start copying
the same file on ffs (similar on fat32):

$ iostat -w1 sd3
  tty  sd3 cpu
 tin tout  KB/t  t/s  MB/s  us ni sy in id
   5  103 55.492  0.12   2  0  2  0 95
   1  509  0.000  0.00   1  0  0  0 99
   1  115  0.000  0.00   0  0  0  1 99
  14  114  0.000  0.00   1  0  0  0 99
   4  718  0.000  0.00   1  0  1  0 98
   4  232 11.003  0.03   1  0  0  0 99
   1   44 16.00   44  0.68   0  0  0  1 99
   6   44 16.00   43  0.67   0  0  0  0100
  13   43 16.00   42  0.66   0  0  0  2 98
   5 1309 16.00   43  0.67   1  0  1  0 98
   0  119 16.008  0.12   0  0  0  1 99
   0  120 16.00   44  0.69   0  0  0  1 99
   0  119 16.00   43  0.67   0  0  0  1 99
   0  118 16.00   43  0.67   0  0  1  0 99
   0  119 16.00   43  0.67   1  0  0  0 99
   0  119 16.00   44  0.68   0  0  0  0100
   0  119 16.00   46  0.71   0  0  0  0100
   0  119 16.00   21  0.32   0  0  0  0100
   0  119 32.502  0.06   0  0  0  0100
   0  121 64.001  0.06   0  0  1  0 99

it seems every write operation is capped at 700KB/s...
notice how it gets starved even on that.

to check that the usb port is not busted, i have tried other
usb keys (cheaper and slower) and paradoxically they worked
better, here is pushing the same file to softraid encrypted
sandisk "cruzer fit" 32G (sd3):

  tty  sd0   sd1   sd2   
sd3 cpu
 tin tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  
MB/s  us ni sy in id
   0  291 64.00   64  4.00   0.000  0.00  16.00  213  3.33  16.00  213  
3.33   0  0 17  9 74
   0  703 61.18   17  1.00   0.000  0.00  16.00  119  1.85  16.00  119  
1.85   1  0 14  4 81
   0  291 63.33   48  2.97   0.000  0.

crypto softraid DUID's

2013-10-16 Thread frantisek holop
hi there,

if i have a usb key, that is softraid encrypted,
it has 2 DUID's. the first one (before bioctl)
can be used to script bioctl when the key is inserted.
when the SR CRYPTO drive is attached, it has another
DUID.  this can be used for mounting/unmounting.

my question is, is that a security threat to have this
2nd DUID in /etc/fstab?  could it be used as "cleartext"
for brute forcing the SR CRYPTO drive?

i also noticed that bioctl -c C -l accepts DUID's,
but bioctl -d does not.  it this by design?

-f
-- 
i'm weird, but i'm saving up to be eccentric.



Re: urtwn(4) device timeouts with RTL8188CUS

2013-10-20 Thread frantisek holop
hmm, on Sat, Oct 19, 2013 at 03:13:35PM -0400, josh said that
> I have a USB 802.11n capable dongle that works fine in a netbook[3] but not 
> in a server[2], which is where it was intended.  The sypmtom is a cessation 
> of packet traffic followed by device timeout as described in urtwn(4).  
> A similar problem was mentioned last year[1] on misc@, though the specific 
> Realtek chipset involved was not posted.
> 
> [1] http://marc.info/?t=13466680111&r=1&w=2

this rang a bell :]
just for the record, the usb dongle mentioned kept
steadily deteriorating until it finally died any moment
i touched it (which happened a lot if the netbook was
in my lap) thus leaving my services..  i'd buy
a different one i guess.

-f
-- 
i'm feeling rather blonde today.



usbdevs disrupts softraid on usb

2013-11-04 Thread frantisek holop
hi there,

it seems that running usbdevs while there is any disk
operation on a softraid volume that is on a usb disk is
not a good idea.

inserting the usb key:

umass1 at uhub0 port 6 configuration 1 interface 0 "SanDisk Firebird USB Flash 
Drive" rev 2.00/1.26 addr 4
umass1: using SCSI over Bulk-Only
scsibus4 at umass1: 2 targets, initiator 0
sd2 at scsibus4 targ 1 lun 0:  SCSI3 0/direct 
removable serial.07815571000205101023
sd2: 30532MB, 512 bytes/sector, 62530624 sectors

$ sudo bioctl -c C -l 19004e3cb512e12d.a softraid0
softraid0: sd3 was not shutdown properly
Password:
softraid0: sd3 was not shutdown properly
softraid0: CRYPTO volume attached as sd3

sd3 at scsibus3 targ 1 lun 0:  SCSI2 0/direct fixed
sd3: 30529MB, 512 bytes/sector, 62524388 sectors

$ sudo fsck /dev/sd3a
while it is running, run
$ usbdevs

umass1: Invalid CSW: tag 2478 should be 2479
softraid0: i/o error on block 12859376 target 0 b_error 5

-f
-- 
don't /usr/bin/talk to strangers



scramble.io and firefox

2013-11-06 Thread frantisek holop
hi there,

i was trying to give scramble.io a try but firefox
seems to be stuck

31853 f 640  209M  208M onproc/3  thrslee   3:05 98.58% firefox

for ages.  this is a slow netbook so i am just asking
if someone with a proper quick machine could give this
a go and tell me if it works and i just need to be
more patient, or with openbsd's firefox it is not going
to work. thanks

-f
-- 
people have one thing in common, they're all different.



Re: mutt and ffs stat performance when starting mutt

2008-12-04 Thread frantisek holop
hmm, on Wed, Dec 03, 2008 at 03:38:07PM +0800, David Schulz said that
> If i now type `mutt` into my Terminal, mutt will take about 736 seconds 
> just to open up the Mailbox, displaying a "Reading 
> /home/ds/mail/INBOX...x/148800 (3%)".
> `top` shows the CPU (P4, 3GhZ) working away at 60% or so, but vmstat -c 
> 100 nor iostat -c 100 show much activity.

i am not sure how mutt operates but i can confirm very poor
performance if the mailbox is on flash devices even with mailboxes
20-30M big.  i tried to outsmart it putting the mbox on mfs but it's
no use, it is still tampering with the flash for reasons i cannot
explain.

mutt is slow.

-f
-- 
never enough.  it is never enough.



ahci questions

2008-12-05 Thread frantisek holop
hi there,

i was looking for some ahci info when i stumbled upon the intel site
http://www.intel.com/technology/serialata/ahci.htm

"Implementation of the Advanced Host Controller Interface
Specification requires a license from Intel."

does this mean based on their specs, or _any_ ahci implementation?
also the specs are free to download (unlike SD specs IIRC)..


ahci(4) says the driver emulates SCSI so i guess it is not based
on these specs.  but it doesn't mention if it supports the ahci
features that are supposed to be better than ide, e.g. hotswapping
and power management -- so i guess it doesn't...


my last question for people running ahci, is it better than
ide in any perceivable way?

thanks,
-f
-- 
oxymoron: mobil station.



Re: ahci questions

2008-12-05 Thread frantisek holop
hmm, on Fri, Dec 05, 2008 at 01:56:16PM -0200, Marcos Laufer - Ipv4networks.com 
said that
> it's 10 times faster than ide , go for it.
> also get the right hard drives, those must be sata2

so no real benefit for sata disks?
how can i say if a disk is sata or sata2?
sata is SATA 150 and sata2 is SATA 300?

-f
-- 
light doesn't emit energy; it emits little dark eaters



zombie shell processess at startup by hotplugd

2008-12-28 Thread frantisek holop
hi there,

i was wondering if some other people are seeing this as well.
on my eeepc i am booting openbsd from usb stick.  i am using
recent snapshots.  after startup when i login, very often i see
1..4 (sh) zombie processes with hotplugd's PID as PPID.
i am guessing these are /etc/hotplugd/attach scripts staying
for some reason.  my attach script is the one from the man
page with some extra logger(1) calls, i can post it if deemed
relevant.

anybody has an idea why?

-f
-- 
evil is a hill.  we stand on ours, speak about others.



man page style question

2009-01-19 Thread frantisek holop
hi there,

i was just reading ral(4) and rum(4) to look for
devices that support these.  i noticed that while
ral(4) lists all the devices in one paragraph,
rum(4) on the other hand lists them one at a line.

i think it might be nice to have them consistent.
(and just in case anyone asked, i find the one at
a line easier to read)

if people with commit decide what's to be, i can
send patches either way...

-f
-- 
god?  i'm no god.  god has mercy.



sandisk cruzer usb pen-drives with hotplugd

2009-01-20 Thread frantisek holop
hi there,

the sandisk cruzer line of pen-drives (i have a 4G)
are U3 smart pen-drives that have a hidden partition
or whatever it is: www.u3.com .

in openbsd it comes up as cd* besides the sd* part.
i had no luck mounting it or using it in any way.
IIRC in windows it comes up as a separate drive letter.

in some cases after inserting this pen-drive it
makes hotplugd run in circles and if left there
it brings down the whole machine.

has anybody experinced something similar?
i imagine it's quite a common pen-drive.

-f
-- 
dum spiro spero --  as long as i breathe i hope



Re: sandisk cruzer usb pen-drives with hotplugd

2009-01-20 Thread frantisek holop
here's the dmesg for this cruzer:

umass2 at uhub0 port 4 configuration 1 interface 0 "SanDisk Corporation U3 
Cruzer Micro" rev 2.00/0.10 addr 4
umass2: using SCSI over Bulk-Only
scsibus2 at umass2: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0:  SCSI2 0/direct 
removable
sd2: 3912MB, 512 bytes/sec, 8013453 sec total
cd0 at scsibus2 targ 1 lun 1:  SCSI2 5/cdrom 
removable


this of course is not only openbsd specific, it shows up as
two options also in the boot selector on both my notebooks
that can boot off of usb devices.  on my eeepc cd* is 2nd
after sd* in the boot menu, on my msi notebook the other
way around...

$ sudo fdisk cd0
Disk: cd0   geometry: 36/1/100 [3584 2048-byte Sectors]
Offset: 0   Signature: 0x0
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: 00  0   0   0 -  0   0   0 [   0:   0 ] unused

$ sudo disklabel cd0
# /dev/rcd0c:
type: SCSI
disk: U3 System
label:
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 36
total sectors: 3584
rpm: 300
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a: 35840 ISO9660
  c: 35840 ISO9660


looks like a definite abomination...
why does disklabel say 3 partitions?

-f
-- 
every silver lining has a cloud.



Re: sandisk cruzer usb pen-drives with hotplugd

2009-01-20 Thread frantisek holop
hmm, on Tue, Jan 20, 2009 at 03:20:53PM -0500, Brynet said that
> http://www.u3.com/uninstall/

thanks for the tip, the cd* device is gone :]
i wish i knew that before.  

anyone knows how this utility works?
i really thoght this was hw based!

and can anyone still with the U3 stuff reproduce
the machine crashes i have been seeing with hotplugd
but not able to reproduce every time?

-f
-- 
when in doubt stop thinking and all doubt will go away.



tale of two nic's and dhclient

2009-01-27 Thread frantisek holop
hi gang,

i am at a bit of loss here.  i have finally a notebook
where both the wireless (iwn0) and normal nic (lii0) get
recognized.  both are dhcp clients of my home router.

consider the following scenario:
1. boot up, lii0 gets a lease
2. i disconnect the wire
3. route -n flush; dhclient iwn0

in this case route -n show still shows that the default
route through the gateway has the Iface of the disconnected 
wired nic.  what is going on?

-f
-- 
there is never sunshine without shadow.



Re: (bit)torrent openbsd client

2009-01-28 Thread frantisek holop
transmission is ok and you could also try unworkable
that is developed on openbsd.

-f
-- 
why does the at&t logo look like the death star?



vnconfig and fsck

2009-01-30 Thread frantisek holop
hi gang,

i have an encrypted ffs diskimage.
it was created some time ago the usual way.

after my update to -current this is what happens:

$ sudo vnconfig -k svnd0 imagefile
Encryption key:
$ sudo mount /dev/svnd0a /mnt
mount_ffs: /dev/svnd0a on /mnt: filesystem must be mounted read-only; you may 
need to run fsck

when i mount the filesystem read-only, everything is ok.

but when i say:
$ sudo fsck /dev/svnd0a
fsck: /dev/svnd0a: unknown special file or file system.
$ sudo fsck /mnt
fsck: /mnt: unknown special file or file system.

should not this work?
there is a very similar example in the vnconfig manpage.


let's suppose this is because of the ffs changes in the recent past
(cause i can't think of anything else).  what can i do except backup
the files and create a new image with recent newfs?

-f
-- 
opinions are like assholes --- everybody has one.



Re: vnconfig and fsck

2009-01-31 Thread frantisek holop
hmm, on Sat, Jan 31, 2009 at 01:56:31PM +0100, Hannah Schroeter said that
> Try fsck /dev/rsvnd0a

yes, this works.  thanks.

so i guess the man page should be changed as well, no?

-f
-- 
synonym: a word you use when you can't spell the other.



Re: vnconfig and fsck

2009-01-31 Thread frantisek holop
hmm, on Sat, Jan 31, 2009 at 07:20:00PM +0100, Tobias Ulmer said that
> On Sat, Jan 31, 2009 at 06:46:15PM +0100, frantisek holop wrote:
> > hmm, on Sat, Jan 31, 2009 at 01:56:31PM +0100, Hannah Schroeter said that
> > > Try fsck /dev/rsvnd0a
> > 
> > yes, this works.  thanks.
> > 
> > so i guess the man page should be changed as well, no?
> 
> Which manpage? fsck (and a bunch of others, like fdisk, disklabel, ...)
> do only work on char devices (the ones with 'r' in front).
> The confusion comes from fsck "fixing" your command line arguments most
> of the time, but for some reason missing the svnd case.

sorry, should have been more specific with a patch.
but i dont have the sources anywhere near at the moment.
i meant mount_vnd(8):

   # Example for automatically configuring a vnd device on startup
   echo "configuring vnd devices:"
   mount /dev/svnd0c
-  fsck -p /dev/svnd0a
+  fsck -p /dev/rsvnd0a
   mount /mnt

-f
-- 
i left my body to science but i'm afraid they turned it down.



Re: vnconfig and fsck

2009-01-31 Thread frantisek holop
hmm, on Sat, Jan 31, 2009 at 07:20:00PM +0100, Tobias Ulmer said that
> On Sat, Jan 31, 2009 at 06:46:15PM +0100, frantisek holop wrote:
> > hmm, on Sat, Jan 31, 2009 at 01:56:31PM +0100, Hannah Schroeter said that
> > > Try fsck /dev/rsvnd0a
> > 
> > yes, this works.  thanks.
> > 
> > so i guess the man page should be changed as well, no?
> 
> Which manpage? fsck (and a bunch of others, like fdisk, disklabel, ...)
> do only work on char devices (the ones with 'r' in front).
  
btw, isn't that raw?
raw devices are still block based, no?

-f
-- 
man is the only animal that blushes.  or needs to.



Re: usb storage device detected as USB1.1

2009-02-08 Thread frantisek holop
hmm, on Thu, Feb 05, 2009 at 06:44:25PM +0100, Jesus Sanchez said that
> On windows, formated as FAT32, the copy of 1,2 GB took
> about 6 minutes, so it's about 3.41 MB/s, that's more than USB1.1 speed
> (I think) but in OpenBSD 4.4 I have 1.5 MB/s speed. I will attach dmesg
> as soon as possible.

for many devices 1.5 MB/s is already USB2.  e.g. my mp3 player.

i am not familiar with the windows caching mechanism but it
might be finishing up the copying after the progress bar has
already finished.  linux plays that ugly game.  everything
is copied lightningly fast only to discover that umount takes
minutes until the caches is written out in the real world.

have you clocked the openbsd transfer?  it is not in your email
6min windows vs ? min openbsd?

-f
-- 
golf is a good walk spoiled.



Re: upgrading packages and ports, ugh

2009-02-11 Thread frantisek holop
hmm, on Tue, Feb 10, 2009 at 03:02:28AM +0100, Ingo Schwarze said that
> > unace-1.2bp0
> > unarj-2.43
> > unrar-3.81
> 
> Due to nasty licences, you must build those from source.

or perhaps use p7zip which can deal with these, if i am not mistaken.

-f
-- 
i have nothing to say, but i can say it loudly.



ifconfig lladdr issues

2009-03-05 Thread frantisek holop
hi gang,

i have run into an interesting problem.
to connect through upc at a friend's place i need to change
my lladdr to his.  today i bought them a router so now we can
all share internet.  after i hooked it up i was about to change
my lladdr back to factory setting, and i had a look at the
ifconfig man page if there was a special parameter, to read
the mac address from the card again and set it back.  there is
no such thing.  so i said to myself, no sweat, how can i change
it back again?  well just take it from dmesg and set it with
ifconfig again.  so i went and tried that but i got this instead:

amaaq$ sudo ifconfig lii0 lladdr 71:ec:da:32:72:24
ifconfig: SIOCSIFLLADDR: Invalid argument

so i went to the ifconfig manpage again to see what this error
meant.  it is not there ;]

so this mail boils down to 2 issues:

1.  would it be a good idea to implement a (perhaps -lladdr)
parameter that would "reset" the mac address to factory default?

2. why am i not able to set back the original mac address
manually?

thank you for your attention.

-f

dmesg:

OpenBSD 4.5-beta (GENERIC) #1706: Wed Feb 18 20:43:37 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) M processor 900MHz ("GenuineIntel" 686-class) 631 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF
real mem  = 527527936 (503MB)
avail mem = 501796864 (478MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/04/08, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf06e0 (37 entries)
bios0: vendor American Megatrends Inc. version "1001" date 05/04/2008
bios0: ASUSTeK Computer INC. 701
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB MCFG
acpi0: wakeup devices P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) MC97(S4) 
USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 70MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P0P3)
acpiprt2 at acpi0: bus 3 (P0P5)
acpiprt3 at acpi0: bus 1 (P0P6)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 90 degC
acpibat0 at acpi0: BAT0 model "701" serial   type LION oem "ASUS"
acpiac0 at acpi0: AC unit online
acpiasus0 at acpi0
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xf800!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x04
vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 5)
drm0 at inteldrm0
"Intel 82915GM Video" rev 0x04 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801FB HD Audio" rev 0x04: apic 1 int 
16 (irq 5)
azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04: apic 1 int 16 
(irq 5)
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x04: apic 1 int 17 
(irq 11)
pci2 at ppb1 bus 3
lii0 at pci2 dev 0 function 0 "Attansic Technology L2" rev 0xa0: apic 1 int 17 
(irq 11), address 71:ec:da:32:72:24
ukphy0 at lii0 phy 1: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x001374, model 0x0002
ppb2 at pci0 dev 28 function 2 "Intel 82801FB PCIE" rev 0x04: apic 1 int 18 
(irq 10)
pci3 at ppb2 bus 1
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: apic 1 int 23 
(irq 3)
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x04: apic 1 int 19 
(irq 7)
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x04: apic 1 int 18 
(irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x04: apic 1 int 16 
(irq 5)
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: apic 1 int 23 
(irq 3)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4
pci4 at ppb3 bus 5
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x04: DMA, channel 
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 1 drive 0: 
wd0: 1-sector PIO, LBA, 3815MB, 7815024 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x04: apic 1 int 19 
(irq 0)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 a

Re: ifconfig lladdr issues

2009-03-05 Thread frantisek holop
hmm, on Thu, Mar 05, 2009 at 07:00:35PM -0500, Ted Unangst said that
> On Thu, Mar 5, 2009 at 6:46 PM, frantisek holop  wrote:
> > amaaq$ sudo ifconfig lii0 lladdr 71:ec:da:32:72:24
> > ifconfig: SIOCSIFLLADDR: Invalid argument
> >
> > 1.  would it be a good idea to implement a (perhaps -lladdr)
> > parameter that would "reset" the mac address to factory default?
> 
> this doesn't really have any meaning because the value is only read
> once, it doesn't get stored anywhere besides the place that's
> overwritten.

oops.

> > 2. why am i not able to set back the original mac address
> > manually?
> 
> seems we read the original wrong, that doesn't look like a correct address.

and it isn't indeed.  after a fresh reboot:

amaaq$ ifconfig lii0|grep lladdr
lladdr 00:fe:e1:ba:d0:ff

while dmesg still shows the wrong one.
looks like a bona fide bug in lii0 initialisation and/or acpi?
might even explain why i need to put the thing into promisc mode
to pass packets...

-f
-- 
golf is a good walk spoiled.



two nics and dhclient

2009-03-05 Thread frantisek holop
hi there,


i have reported this before, and i am fighting
again with this.  i think the current scenario
is becoming more and more common nowadays, and
i would like to understand it more:

frantisek holop wrote:
> i am at a bit of loss here.  i have finally a notebook
> where both the wireless (iwn0) and normal nic (lii0) get
> recognized.  both are dhcp clients of my home router.
> 
> consider the following scenario:
> 1. boot up, lii0 gets a lease
> 2. i disconnect the wire
> 3. route -n flush; dhclient iwn0
> 
> in this case route -n show still shows that the default
> route through the gateway has the Iface of the disconnected 
> wired nic.  what is going on?

If the two networks are on the same subnet, then the lii0 interface will 
not lose its fixed-entry in the routing table until you ifconfig delete 
it away, then route -n flush and dhclient the other interface.


the answer above was by Janne Johansson and nobody
else commented on it.  reading the route man page,
this is unexpected behaviour for me and i would like
to know the reasoning behind it.  route(8) says:

 flush   Remove all routes.

this is clearly(?) not the case.

what is going on in the background?

i will definitely try out trunk, but i am interested in this
case study anyway.  or having 2 nics in general.  now that
there are priorities, how are cases like having both wired
and wireless at bootup handled?  what if the wired and
wireless have different default routes, and so on.

i would appreciate reading up about this more.  any pointers?

-f
-- 
millisecond:  delay between a green light and honking horn.



Re: Can someone please suggest a replacement for xterm for me?

2009-03-06 Thread frantisek holop
hmm, on Fri, Mar 06, 2009 at 11:45:49AM +, Matthew Szudzik said that
> On Thu, Mar 05, 2009 at 11:43:58PM -0800, patrick keshishian wrote:
> > cut-and-paste no. copy-and-paste yes. is that not good enough?
> 
> Most modern applications (like firefox, openoffice, etc.) can use both
> the PRIMARY and CLIPBOARD.  The problem is that xterm can only use the
> PRIMARY.  So, if you've copied something to the CLIPBOARD in firefox,
> then you won't be able to paste it in xterm.

i disagree.

shift+insert

-f
-- 
dain bramaged.



Re: pkg_add -u updating same package

2009-03-10 Thread frantisek holop
hmm, on Fri, Mar 06, 2009 at 07:54:53PM +, Stefan Sperling said that
> On Fri, Mar 06, 2009 at 07:26:21PM +0100, Thomas Pfaff wrote:
> > $ sudo pkg_add -ui
> > ...
> > libglade2-2.6.2p2 (extracting): complete
> > libglade2-2.6.2p2 (deleting): complete
> > libglade2-2.6.2p2 (installing): complete
> > 
> > Maybe I'm just slow or haven't read the relevant FAQ,
> > but what does this mean? (4.5-current using snapshot
> > packages).
> 
> I think this means that some library in base or in ports that
> libglade depends on was updated. libglade itself was not updated,
   ^^^
> but recompiled against fresh dependencies.
 ^^

isn't that an update then?

-f
-- 
life is that brief interlude between nothingness and eternity.



Re: Can someone please suggest a replacement for xterm for me?

2009-03-10 Thread frantisek holop
hmm, on Fri, Mar 06, 2009 at 04:24:52PM +, Matthew Szudzik said that
> On Fri, Mar 06, 2009 at 02:16:05PM +0100, frantisek holop wrote:
> > hmm, on Fri, Mar 06, 2009 at 11:45:49AM +, Matthew Szudzik said that
> > > PRIMARY.  So, if you've copied something to the CLIPBOARD in firefox,
> > > then you won't be able to paste it in xterm.
> > 
> > i disagree.
> > 
> > shift+insert
> 
> No, Shift-Insert does not work.  Suppose you've copied "String1" to the
> CLIPBOARD in firefox.  That is, you've highlighted "String1" and pressed
> Ctrl-C.  Then suppose that you highlight some other string "String2".
> (For example, you may have gone to the firefox "Save Page As..." dialog
> box, which automatically highlights the title of the current page.) Now,
> if you go to xterm and press Shift-Insert, you do not get "String1"
> which is in the CLIPBOARD, but "String2" which is in the PRIMARY.
> That's the problem!

i dont know what you call primary, secondary, but
if i select a text in firefox, press ctrl+c, hover over
xterm and press shift+insert, the text shows up in xterm.
good enough for me.

-f
-- 
my muse turned out to be a dike



Re: How to break the httpd's 4G file size limit?

2009-03-16 Thread frantisek holop
hmm, on Wed, Mar 11, 2009 at 03:34:30AM +0800, John Wong said that
> I want to set up the web server to share file, but i know apache-1.3.x
> (which is openbsd default httpd) had the 4G file size limit, can i break
> this limit?

i dont remember such a limit, but i could be wrong.
but i definitely remember that thttpd had it, and lighttpd
did not.

-f
-- 
people have one thing in common, they're all different.



gkrellm memleak?

2009-03-17 Thread frantisek holop
hi there,

is it "normal" for gkrellm to use as much memory as 100 megs?

  PID USERNAME PRI NICE  SIZE   RES STATEWAIT  TIMECPU COMMAND
24630 f  20  120M  128M sleeppoll  0:14  0.00% gkrellm

could this be some kind of memory leak?
this is on a -current (feb 28) with the latest packages.

i'd like to ask some others to monitor their gkrellm memory
usage for a while to confirm this.  a silly cronjob with
some shell-fu would do nicely i think.

-f
-- 
all your base are belong to us.



the fdisk man page and the fdisk behaviour

2009-03-22 Thread frantisek holop
hi there,

this is for the dying breed of fdisk gurus...
prepare some snacks, it's long.

i am about to install openbsd -current (feb 28) on a notebook
with a 320G hard drive in IDE mode, although it is AHCI really.
bsd.rd dmesg at the end.

my goal is to have the 2 ntfs partitions followed by a 32G
openbsd one and then the last partition will be an ext2.

i spent some quality reading time in the man page, and first
of all let me confess, that i think that the i386 fdisk man
page section sporting the title "TYPICAL LAYOUT" is more like
a page out from the history books...  i claim to be no fdisk
jockey but i have seen a couple in my time, and i say, that
even if we ignore the now exotic geometry (as most drives now
identify always with an n/255/63 geometry), this particular MBR
violates the CAVEATS section of the man page on two counts:

1. the ending boundary of the 0th partition does not "end at
cylinder boundaries."
2. the openbsd partition does not "start on a cylinder boundary
(head 0, sector 1), except when starting on track 0,
(these should begin at head 1, sector 1)."

both these are cited as necessary for i386 machines...
as a quick refresher, here is the offending part:

  # fdisk wd0
  Disk: wd0   geometry: 5168/240/63 [78140160 Sectors]
  Offset: 0   Signature: 0xAA55
Starting  EndingLBA Info:
   #: idC   H  S -C   H  S [   start:  size   ]
  -
   0: 040   1  1 -  170   0 63 [  63: 2570462 ] DOS FAT-16
   1: 000   0  0 -0   0  0 [   0:   0 ] unused
   2: 000   0  0 -0   0  0 [   0:   0 ] unused
  *3: A6  170   1  1 - 5167 239 63 [ 2570525:75569697 ] OpenBSD

i am _not_ stating, that this example is a made up fantasy,
contrarywise, probably it has been copied from a live working
operating system.  i am merely pointing out, that it is far
from "typical" and more confusing than helping, and i make no
secret of that i'd like to see it being replaced with something
fresher and/or more relevant (or "typical")... (the faq has both
in section 4 and 14 newer layouts)


now on to my problems...
here is the fdisk session during the install with my comments.

Disk: wd0   geometry: 38913/255/63 [625142448 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 07  0   1   1 -   8354 254  63 [  63:   134223012 ] HPFS/QNX/AUX
 1: 07   8355   0   1 -  25063 254  63 [   134223075:   268430085 ] HPFS/QNX/AUX
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Enter 'help' for information
fdisk: 1> e 2
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) a6
Do you wish to edit in CHS mode? [n]
offset: [0]
size: [0]
fdisk:*1> p
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 07  0   1   1 -   8354 254  63 [  63:   134223012 ] HPFS/QNX/AUX
 1: 07   8355   0   1 -  25063 254  63 [   134223075:   268430085 ] HPFS/QNX/AUX
 2: 00  0   0   1 - 267349  89   4 [   0:   0 ] OpenBSD 
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
fdisk:*1>

let's go line by line.  i said i want to edit partition 2, and defined
its type as a6, openbsd.  then fdisk goes into lba editing mode and
offers me offset 0.  this is one of those moments where i dont know
if this is fdisk's expected behaviour, or a bug.  would it not make
sense if it offered me the first available lba sector with partition
type 0?  i mean even if it doesnt want to offer any "responsible"
value, 0 is wrong in any case on i386, as the first offset has to be
at least 63...

i got curious and wanted to see where this leads, so i hit enter.
fdisk then offered size 0, and again, i dont know if this is normal
fdisk behaviour, but it would maybe make sense if it offered the last
free lba sector (starting from offset) or up to the end of the disk,
if that being the case.  in any case, even if the offered size was
0, the result is obviously wrong, both the starting and ending C/H/S
values are bogus, although the lba size value is correct.

let's stop for a moment at the number in the prompt: 1.  the man page

Re: European orders

2009-03-24 Thread frantisek holop
hmm, on Tue, Mar 24, 2009 at 04:52:04PM -0600, Theo de Raadt said that
> >From a commit message an hour or so ago:
> 
> Disable future European orders since the distributor is way too far behind
> in reconciling payments to the project for past sales, and years of trying
> to resolve it have made very little progress.
> 
> Sorry guys.

i guess this also means that you dont know about
a replacement company that would take up the gauntlet..

how much is shipping from canada/us to europe?

i guess in big cities where there are many openbsd people,
one order is feasable with multiple cd's...

but it really seems like we europians just dont have luck
with openbsd..  first the fact that we payed way more for
a cd set than people paying in USD or CAD---and let me add
in the same sentence that i did not mind giving that money
to the project---only now it turns out that the money did
not get to the project...

and now this.

well, it's paypal and download from now on...

-f

ps.  and Wim seemed such a nice guy :]
-- 
small world, but i wouldn't want to paint it.



Re: correct HELO behaviour in SMTP connections

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 09:22:30AM -0500, L. V. Lammert said that
> On Wed, 25 Mar 2009, Jose Fragoso wrote:
> 
> > Hi,
> >
> > If a host is responsible for sending outgoing messages from multiple
> > domains, should it always use the same HELO command (ie. the same
> > hostname) or could it use a different HELO command when sending
> > mail from different domains?
> >
> > Thanks for your help.
> >
> > Regards,
> >
> > Jose.
> >
> The HELO command should match the hostname, and the hostname must match
> the reverse DNS for the email to be accepted by any RFC complaint mail
> server.

unfortunately this is very often not the case in the real world.
many mail admins dont even know about helo.

-f
-- 
is it over `cause you feel no pain throwing me around?



Re: European orders

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 03:41:04AM +0100, Floor Terra said that
> > Why doesn''t Wim explain the situation here. Less work isn't it. ;)
> 
> I don't know. And I don't want to get involved.
> I'm concerned about Theo, Wim, the project and anybody else who is
> involved and don't want to make this any worse by spreading unverified
> statements from anyone.
> 
> I hope you understand.

Theo has made some serious allegations and i hope he has evidence
to back it up.

-f
-- 
sylvester stallone answering machine:  yo!  you!  message!



Re: correct HELO behaviour in SMTP connections

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 03:40:09PM +0100, Gilles Chehade said that
> Are you sure ?

just because you demonstrated a smtp session with
a questionably set up mail server it doesn't mean
you are right.  sendmail by default does not check helo.

/etc/postfix/main.cf:

smtpd_helo_required = yes

smtpd_helo_restrictions =
reject_invalid_hostname
reject_unknown_hostname
reject_non_fqdn_hostname

these settings save any server a ton of work by not allowing
made up and incorrect helo's, one of the most reliable sign
of spam and clueless admins in general.


so let's play the rfc game then.

http://www.faqs.org/rfcs/rfc2821.html:

3.6 Domains

   Only resolvable, fully-qualified, domain names (FQDNs) are permitted
   when domain names are used in SMTP.  In other words, names that can
   be resolved to MX RRs or A RRs (as discussed in section 5) are
   permitted, as are CNAME RRs whose targets can be resolved, in turn,
   to MX or A RRs.  Local nicknames or unqualified names MUST NOT be
   used.  There are two exceptions to the rule requiring FQDNs:

   -  The domain name given in the EHLO command MUST BE either a primary
  host name (a domain name that resolves to an A RR) or, if the host
  has no name, an address literal as described in section 4.1.1.1.

   -  The reserved mailbox name "postmaster" may be used in a RCPT
  command without domain qualification (see section 4.1.1.3) and
  MUST be accepted if so used.


4.1.1.1  Extended HELLO (EHLO) or HELLO (HELO)

   These commands are used to identify the SMTP client to the SMTP
   server.  The argument field contains the fully-qualified domain name
   of the SMTP client if one is available.  In situations in which the
   SMTP client system does not have a meaningful domain name (e.g., when
   its address is dynamically allocated and no reverse mapping record is
   available), the client SHOULD send an address literal (see section
   4.1.3), optionally followed by information that will help to identify
   the client system.


> HELO meeh

that is not an address literal or an fqdn.
my servers will reject that mail.

> Sendmail seems to disagree with you and the RFC does not mention a  
> *requirement* to match the reverse DNS. In fact, if I recall

yes, the helo doesnt have to be the fqdn of the mail server
actually (it is in the role of an SMTP client in this case),
it can be any host.  but it must an fqdn with a reverse dns
unless it is an adress literal.

> correctly it did mention that the server shouldn't or mustn't refuse a
> session based on what the client sends with its HELO/EHLO command.

based on 3.6 of course you can and should.
you can and should refuse any mail if any of the smtp
dialog is fishy.

helo is great for first perimeter defense.  it throws away thousands
of dial up zombies without the need of spamassassin or greyfiltering.

legitimate users will see a legitimate error message they can
send to their admins.

-f
-- 
what part of no didn't you understand?



Re: correct HELO behaviour in SMTP connections

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 09:16:53AM -0300, Jose Fragoso said that
> If a host is responsible for sending outgoing messages from multiple
> domains, should it always use the same HELO command (ie. the same
> hostname) or could it use a different HELO command when sending
> mail from different domains?

but to answer the actual question, we run a couple of virtual
mail servers and the helo is always the same, the "non-virtual"
i.e. primary main server's name.  that is also another reason
why the helo does not have to be the same as the actual dns
record of the box.

-f
-- 
unicorns aren't myth, virgins are!



Re: correct HELO behaviour in SMTP connections

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 08:27:03AM -0700, Brian Keefer said that
> The amount of connections rejected by those settings will be pretty  
> small as a percentage, and it's not even close to "reliable sign of  

i forgot to add: YMMV.
those postfix settings have for the current week rejected 69084
connections and counting.  this particular box has a mere ~350 users.

> small as a percentage, and it's not even close to "reliable sign of  
> spam".  There are way more clueless admins than clued, but unfortunately 

it is for me as i watch my logs.  your logs are probably different.

yes, i ocasionally write letters to repeating cluless offenders
(a cronjob combs the logs) but it's too some degree self-regulating,
as users write to their own admins when they get an obscure error
in their email clients every single time.

of course its true downside (just like greyfiltering's) is that it
needs a considerable amount of babysitting.  but it's worth it for me.

-f
-- 
it's my idea 'cause i stole it first!



Re: European orders

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 10:40:13AM -0500, Marco Peereboom said that

> Don't you think theo has the best interest of the project as his first
> priority?

best interest: yes.
best attitude and people skills: i am not so sure...

all i am saying is that the other side still hasn't spoken up.

i am sure it's more than easy to go through the papers
and show where my money went and see who is right.

that is all i am asking.  more transparency in this open project.

-f
-- 
artificial intelligence: the other guy's opinion.



Re: correct HELO behaviour in SMTP connections

2009-03-25 Thread frantisek holop
hmm, on Wed, Mar 25, 2009 at 10:05:09AM -0700, Brian Keefer said that
> On Mar 25, 2009, at 9:41 AM, frantisek holop wrote:
>>
>> of course its true downside (just like greyfiltering's) is that it
>> needs a considerable amount of babysitting.  but it's worth it for me.
>
> So basically, it's not reliable and any "work saved" from the MTA is  
> doubled by humans.  You're failing to convince me this is a good idea.

if by not reliable you mean throwing away mails
from truly unreliable RFC-ignoring mail servers, then yes.

it is not a lot of work, most of it is automatized.
writing a friendly reminder mail to admins is also
good way of socializing and i am helping to make
the internet a better place in a small way :]

i am not convincing you, i am telling what i do.
you do whatever you want to do.

-f
-- 
oxymoron: mobil station.



Re: the fdisk man page and the fdisk behaviour

2009-03-31 Thread frantisek holop
first of all, thanks Nick for your time going through
all of that.  here is my answer.  it is all quite i386
specific though.

hmm, on Tue, Mar 24, 2009 at 11:34:38PM -0400, Nick Holland said that
> I really don't want to ignore what you call an "exotic geometry".
> A lot of people seem to think there is something "standard" about
> what you are calling "n/255/63 geometry", but life ain't so

well, the commercial sector making partitioning software seems
to disagree here.  the quite popular PartitionMagic comes to my
mind.  and openbsd itself had a commit in the past to show every
sd(4) disk using this very same geometry if i am not mistaken.

here is another mail i sent in a looong time ago, another saga
of mine, where because of openbsd's different geometry settings
overlapping partitions and other filesystem errors manifested
themselves, no doubt because of my inability to calulate all
the numbers using a different geometry.
http://marc.info/?l=openbsd-misc&m=116475065104125&w=2


> simple.  Not at all.  First of all, there are a lot of non-i386
> and non-amd64 systems that use fdisk, and a lot of very usable
> machines for OpenBSD are, as you put it, "from the history books".
> 
> Without looking very hard, I found these "exotics":

yes, but are they running -current?  and most importantly,
would you call them "typical", as in where typical means:

typ-i-cal, adj.
2. Of or relating to a representative specimen;
characteristic or distinctive.

all your examples are without a doubt valid, but are they
representative of the current hard drive situation?  that's
what typical means for me in this context.  if you have to
hunt for these disks on ebay, they are hardly typical or
representative for me...

numeruous people stated on this mailing list that geometries
had become abstract numbers in the world of modern hard drives
and are basically useless anyway.  if that is the case, i do
not see a good reason why not go with the other mainstream
operating systems and just do make with an n/255/63 geometry
everywhere (where possible).

i havent seen hard drive's described by their c/h/s in any bios
for years (yes, i know, you probably have that old machines
as well ;-)

> > violates the CAVEATS section of the man page on two counts:
> > 
> > 1. the ending boundary of the 0th partition does not "end at
> > cylinder boundaries."
> > 2. the openbsd partition does not "start on a cylinder boundary
> > (head 0, sector 1), except when starting on track 0,
> > (these should begin at head 1, sector 1)."
> > 
> > both these are cited as necessary for i386 machines...
> 
> no, key word is "SHOULD", it is very far from "necessary" on
> most modern OSs.

i think this is besides the point somewhat.  ok, it is not
a problem to have partitions end/begin anywhere on the disk
(except where the MBR is) but what is the point of it?  why
make your life harder?  if the powers that were decided that
disks will have c/h/s, and now that disks got insanely bigger
(>8G), only the n/254/63 (n/max/max) settings are making any
slight sense (otherwise the cylinder number wouldn't fit into
a long long) then why not round the numbers up?

it is like saying, ok, let's meet at 10:59:53 instead of 11:00.
all this just because "we can".  even if it is not a requirement
anymore, it is just good practice.


> I really, REALLY don't like people thinking that there's something
> magic about 255 tracks per cylinder...or 63 sectors per track.  Every
> time you see someone say "first partition should be offset 63 sectors"
> you should be thinking "WRONG!".

it is true on systems with the n/255/63 geometry...
but if i said that, i meant it should be offset by the first sector
(for the MBR).

> well, you DID take the default for that.  As mentioned in faq4.html,
> when working around existing partitions, CHS mode is probably easier
> than sector count mode.

i did.  to see what it does actually.

> > sense if it offered me the first available lba sector with partition
> > type 0?  i mean even if it doesnt want to offer any "responsible"
> > value, 0 is wrong in any case on i386, as the first offset has to be
> > at least 63...
> 
> "WRONG" :)

ok, the number should be S, as in sector.  so if not usable
value is offered, at least it shouldnt offer to overwrite the MBR.


> ok, now test your algorithm against this case:
> Four partitions on a disk, laid out front to back as you would probably
> assume:
> 0  10G
> 1  100G
> 2  20G
> 3  120G
> 
> Now, delete partitions 1 and 3.
> Add a partition.  What's its starting sector?  What if I want to
> add a 120G partition?  How do you override it?

this is a nice example.  first of all because i havent tested
yet if fdisk checks for overlaps, i need to look into that.

there is no need for a complicated algorithm.  all fdisk would
do, is simply offer the c/h/s from no. 1 as default (up to
the beginning of the next partition (no 2.) or the end of the
disk).  if the user wants a 120G partit

Re: OpenBSD mta with postfix

2009-03-31 Thread frantisek holop
hmm, on Fri, Mar 27, 2009 at 02:46:13PM -0500, John Brooks said that
> I've just received this response from a large corporate email 
> system regarding their claim that emails sent to them are not
> getting through even though our logs contain acknowledgements
> of accepting the mail sent. 
> 
> In our mail logs:
> ... status=sent (250 Message accepted for delivery) 

if you use postfix, you have actually left out the most
important part of the evidence:

(250 2.0.0 n25NkVbE028681 Message accepted for delivery)

the queue "number".  using this number it is very
easy to look for "lost" mail.

you must do what everyone does in cases like this:
escalate like hell.

-f
-- 
"fishing, stranger?"  "no, just drowning worms."



Re: European orders

2009-03-31 Thread frantisek holop
hmm, on Mon, Mar 30, 2009 at 07:48:54PM -0400, Ted Unangst said that
> On Mon, Mar 30, 2009 at 7:37 PM, Richard Ben Aleya
>  wrote:
> > We do not want to purchase CDs to pay the salary of an American guy who
> 
> Bitch, please.  Now I'm insulted.  You think Theo's an American?  Fuck you.

technically, yes he is.  north american :}



-f
-- 
drinking kills brain cells, but just the weak ones...



Re: OpenBSD mta with postfix

2009-03-31 Thread frantisek holop
hmm, on Tue, Mar 31, 2009 at 02:35:15PM -0500, John Brooks said that
> that was the entire point of my original post, they
> strip out their queue id from their acknowledgment
> for "security reasons", and then "accept all mail"
> including bogus recipients.
> 
> I was curious if this practice is very widespread
> or not.

i have seen the "accept all mail" thingy before,
some managers sleep better if they think the mail
server accepts anything sent to their domain...
i refused to implement though, it's a spam magnet.

-f
-- 
how much can i get away with and still go to heaven?



Re: interrupt count in the clouds on a new msi notebook

2009-03-31 Thread frantisek holop
hmm, on Tue, Mar 31, 2009 at 08:32:18PM +0200, frantisek holop said that
> i will reboot this machine asap with ahci setting in the bios...

that, unfortunately resulted in this:
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6118


lots of new hardware in this machine :]

-f
-- 
dick drank, dick drove, dick died. don't be a dick.



Re: the fdisk man page and the fdisk behaviour

2009-03-31 Thread frantisek holop
hi there,

i am just reading up on things, and here is a very
nice explanation how and why some of the bioses chose
their geometry.

http://www.pcguide.com/ref/hdd/bios/modesECHS-c.html

quite some russian rulette, innit :]

it also kind of explains why when a certain disk capacity
is surpassed, only the n/255/63 logical c/h/s geometry makes
sense---the numbers are just getting bigger and bigger...

i wonder what will happen when 65536/255/63 is reached,
what kind of frankenstein translation table will come into life
just to save c/h/s again.  maybe there will come an LBA only age,
i mean fdisk-wise, not disk-wise, those are already LBA only...

pc technology is the ugliest no matter where one looks
(640K, ATA disks, pciide, ACPI, the list goes on and on)
complete lack of visionary thinking.

and in the other side of the ring, complete overengineering
(ipv6, EFI, ASN.1, etc)

-f
-- 
self-reference (n.): see self-reference



Re: the fdisk man page and the fdisk behaviour

2009-03-31 Thread frantisek holop
hmm, on Wed, Apr 01, 2009 at 05:05:10AM +0200, frantisek holop said that
> i wonder what will happen when 65536/255/63 is reached,
> what kind of frankenstein translation table will come into life
> just to save c/h/s again.  maybe there will come an LBA only age,
> i mean fdisk-wise, not disk-wise, those are already LBA only...

openbsd could be the first one to nuke c/h/s from the MBR
entirely, replace it with 8 or 16 byte LBA values (4 bytes
currently) and lead the way for terribly huge disks :]

-f
-- 
number of vulcans to replace a bulb?  precisely 1.00.



Re: European orders

2009-04-01 Thread frantisek holop
hmm, on Wed, Apr 01, 2009 at 12:37:16PM +0200, Artur Grabowski said that
> It's his choice and none of your business.
> It's his reasons and none of your business.
> It's his choice and none of your business.
> It's his choice and none of your business.



how is it none of our business if the 2 sides are
bickering about money _we_ sent?  and it spilled
on a public mailing list?  did anyone really expect
that we will just watch our toes and keep quiet?
on m...@?  you know better than that art.


if wim says, yes, he sent the money i paid for the
cd's to theo, and theo says no he didnt get anything,
whom should i believe?  nobody was accountable to me
up to this point, but just like proving lost mail to
a big isp with mail queue id's, it should be relatively
easy to show paperwork where that money went.  you know,
i can't go on private chat with theo to confirm stuff,
you can.


it might seem absurd that people are willing to believe
wim's side of the story when theo is the father of all
this and has the greatest motivation to run a tight ship.
it is so maybe because wim offered to publish all accounting
info, while all theo seems to do is cry about how much money
could have been made by selling t-shirts...

btw. yes, i think that pulling the plug on wim exactly just
as pre-orders were sent was the worst time possible.  i even
remember thinking i am glad i did not pre-ordered, god knows
what will happen to those, because the commit did not
deign to comment about that...

if wim's flaws were kown for years than he should
have been locked out of business right after a release,
just when the biggest patches go in.


i expect we will never know the whole truth, because
it is "none of our business".  gentleman's agreements?
it's not worth even a comment.  the damage has been done.

it sure is true that openbsd code quality is high, i can't
imagine people hanging around for any other reason.  this was
the last place where i expected to find this kind of soap.

sigh.  as if openbsd's image wasn't tarnished enough.
just what we needed to make our advocacy job easier,
thanks everyone.


and tony's mail was excellent btw.  well done.

-f
-- 
this tagline is identical to the one you are reading.



Re: the fdisk man page and the fdisk behaviour

2009-04-01 Thread frantisek holop
hmm, on Wed, Apr 01, 2009 at 01:41:52PM +0200, Henning Brauer said that
> * Nick  [2009-04-01 03:52]:
> > I think most the developers wouldn't mind seeing a smoother fdisk
> > program...
> 
> what is fdisk?
> 
> oh I remember using it. fdisk -i sd1. why it can do anything else is
> almost beyond me :)

yes, sometimes life is that easy :]

but it is a bit like using pf only for pass any---not a challenge :p

-f
-- 
je blesse seulement l'une que j'aime



Re: the fdisk man page and the fdisk behaviour

2009-04-01 Thread frantisek holop
hmm, on Wed, Apr 01, 2009 at 06:54:44AM -0700, J.C. Roberts said that
> Though they could logically do it now, is there a *need* to do this,
> let alone available hardware?  -You're really talking about a personal
> hacking project with a *very* serious cash requirement to buy the
> necessary equipment.

wherever i look on the net, all people writing about mbr's and
other "beginning of disk" structures, sectors, all of them starts
with "bear in mind, there is no accepted standard for this".

it wouldn't be the pc industry if it didn't go on with such a basic
data structure going undocumented, without a standard since its conception.


> Can you imagine trying to access RAM with c/h/s or LBA ?

well LBA is just an index basically (on the surface).
looks like an adress in RAM to me...

-f
-- 
i know nothing, but i know it fluently.



love me love me, fool me fool me

2009-04-01 Thread frantisek holop
hey there,

so no 1st of april fools this year, hm?

how about we start a big flamewar about something?
oh wait...

happy fools' day fools! :]


-f
-- 
plus puto, minus scio -- the more i learn, the less i know



Re: [PATCH] Remove "Multibooting" in FAQ

2019-04-07 Thread frantisek holop
tfrohw...@fastmail.com - Sat, 06 April 2019 at 17:45:42
> I run a dual-boot with Windows 10 on the same partition and the

on the same partition?

-f
-- 



Re: [PATCH] Remove "Multibooting" in FAQ

2019-04-07 Thread frantisek holop
Thomas Frohwein - Sat, 06 April 2019 at 12:54:54
> I remember the following as the steps not mentioned in the FAQ that helped me
> get it to work. All with MBR and Windows 10.
>
> 1. Shrink the main partition in Windows disk manager and create a second
>partition.

the FAQ cannot deal with every possible setup...
having a partition on the disk where you want to put openbsd is kind of
a basic requirement (just like having a computer), and how you get there
is case by case specific.


but why would you want to go back to MBR?
new notebooks with windows 10 come with GPT.

the only real PITA at the moment is that openbsd fdisk cannot add new
GPT partitions only edit existing ones.  many OEM windows notebooks
already come with 4-5 GPT partitions:

1. the 300MB EUFI
2. the 128MB MSR
3. the primary OS partition (normally C:)
4. WinRE (recovery tools)
5. BIOS_RVY (recovery image)
(my notebook even had a data (D:) between 4 and 5...)

so you need to have the partition destined for openbsd present,
then it's possible to edit it in fdisk.

-f
-- 



wsmouse: disable touch-panel

2019-06-10 Thread frantisek holop
hello,

i have a faulty touch panel in this notebook and i need to disable it.
because of KARL and following -current in general i'd much prefer a non
config -e solution.  that leaves wscons and X.org.

if i read Xorg log file correctly, x.org picks up touch panel from
wsmouse.  after reading wsmouse(4), it is not clear to me how can i
disable mouse1, mouse2, and mouse3.

any ideas what i could put in /etc/wsconsctl.conf ?

-f
-- 
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=50
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=0
keyboard.encoding=us
keyboard1.type=usb
keyboard1.bell.pitch=400
keyboard1.bell.period=100
keyboard1.bell.volume=50
keyboard1.bell.pitch.default=400
keyboard1.bell.period.default=100
keyboard1.bell.volume.default=50
keyboard1.repeat.del1=400
keyboard1.repeat.deln=100
keyboard1.repeat.del1.default=400
keyboard1.repeat.deln.default=100
keyboard1.ledstate=0
keyboard1.encoding=us
keyboard2.type=usb
keyboard2.bell.pitch=400
keyboard2.bell.period=100
keyboard2.bell.volume=50
keyboard2.bell.pitch.default=400
keyboard2.bell.period.default=100
keyboard2.bell.volume.default=50
keyboard2.repeat.del1=400
keyboard2.repeat.deln=100
keyboard2.repeat.del1.default=400
keyboard2.repeat.deln.default=100
keyboard2.ledstate=0
keyboard2.encoding=us
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5398,1408,4728,0,42,70
mouse.tp.tapping=0
mouse.tp.scaling=0.179
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse.tp.edges=0.0,5.0,0.0,5.0
mouse1.type=touch-panel
mouse1.rawmode=1
mouse1.scale=0,9600,0,7200,0,0,0
mouse2.type=touch-panel
mouse2.rawmode=1
mouse2.scale=0,9600,0,7200,0,0,0
mouse3.type=touch-panel
mouse3.rawmode=1
mouse3.scale=0,9600,0,7200,0,0,0
display.type=inteldrm
display.width=1600
display.height=900
display.depth=32
display.fontwidth=12
display.fontheight=24
display.emulations=vt100
display.screentypes=std
display.focus=4
display.brightness=100.00%
display.screen_on=250
display.screen_off=0
display.vblank=off
display.kbdact=on
display.msact=on
display.outact=on
[  2029.961] (--) checkDevMem: using aperture driver /dev/xf86
[  2030.002] (--) Using wscons driver on /dev/ttyC4
[  2030.006] 
X.Org X Server 1.19.7
Release Date: 2019-03-02
[  2030.007] X Protocol Version 11, Revision 0
[  2030.008] Build Operating System: OpenBSD 6.5 amd64 
[  2030.009] Current Operating System: OpenBSD monster.obiit.org 6.5 
GENERIC.MP#11 amd64
[  2030.010] Build Date: 08 June 2019  12:59:22PM
[  2030.010]  
[  2030.011] Current version of pixman: 0.38.4
[  2030.012]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  2030.012] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2030.017] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 10 15:28:54 
2019
[  2030.018] (==) Using system config directory 
"/usr/X11R6/share/X11/xorg.conf.d"
[  2030.019] (==) No Layout section.  Using the first Screen section.
[  2030.019] (==) No screen section available. Using defaults.
[  2030.019] (**) |-->Screen "Default Screen Section" (0)
[  2030.020] (**) |   |-->Monitor ""
[  2030.021] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[  2030.021] (==) Automatically adding devices
[  2030.022] (==) Automatically enabling devices
[  2030.022] (==) Not automatically adding GPU devices
[  2030.023] (==) Max clients allowed: 256, resource mask: 0x1f
[  2030.023] (==) 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/
[  2030.024] (==) ModulePath set to "/usr/X11R6/lib/modules"
[  2030.024] (II) The server relies on wscons to provide the list of input 
devices.
If no devices become available, reconfigure wscons or disable 
AutoAddDevices.
[  2030.024] (II) Loader magic: 0x1c2c5fec000
[  2030.025] (II) Module ABI versions:
[  2030.025]X.Org ANSI C Emulation: 0.4
[  2030.026]X.Org Video Driver: 23.0
[  2030.026]X.Org XInput driver : 24.1
[  2030.026]X.Org Server Extension : 10.0
[  2030.027] (--) PCI:*(0:0:2:0) 8086:0126:1028:0571 rev 9, Mem @ 
0xf240/4194304, 0xe000/268435456, I/O @ 0x5000/64
[  2030.029] (--) PCI: (0:1:0:0) 10de:1246:1028:0571 rev 161, Mem @ 
0xf000/33554432, 0xc000/268435456, 0xd000/67108864, I/O @ 
0x4000/128
[  2030.031] (II) LoadModule: "glx"
[  2030.033] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[  2030.036] (II) Module glx: vendor="X.Org Found

Re: wsmouse: disable touch-panel

2019-06-10 Thread frantisek holop
Timothy Brown - Mon, 10 June 2019 at 08:43:47
> Not too sure about a a config change to disable it. However on my crappy
> work Dell laptop (XPS 9343), I can disable it in the BIOS. Have you looked
> to see if you can do that?

yes. it's not there.
the bios is a sad piece of software in this one...

-f
-- 



Re: making firefox less insecure

2014-11-21 Thread frantisek holop
Jorge Gabriel Lopez Paramount, 16 Nov 2014 15:55:
> >Seems heavy, and probably harder to set up and maintain than (e) and (f).
> 
> Sure it's harder to set up, but believe me, after setting up the maintenance
> is almost zero. I restart every week that server as read-write to patch it

as if the browsers weren't memory hungry enough, and slow:
so let's throw them inside a VM that is another pile of
huge unadited codebase (especially when the guest is
linux)?

the browsing experience of resource hungry sites on older
generation notebooks is abismal as it is, a VM is hardly
the solution for me.

it is true that noscript needs handholding, and not all
sites subscribe to the philosophy of graceful degradation
of user experience when javascript is disabled, but
together with urlfilter they pack a punch and serves my
needs well.

if your bank serves you exploits through javascript,
you have bigger things to worry about than your $HOME :)
and probably should change your bank asap.

regarding the ssh key stealing, they are password
protected anyway, right?

-f
-- 
atheism is a non-prophet organization.



ffs and utf8

2014-11-29 Thread frantisek holop
i have written for myself a small python3 script that
removes accented characters and all utf8 "symbols"
from filenames, a kind of "utf-8 to ascii sanitizer".

while working on it, i created some strange test cases
(e.g. »´ÁÉǑÄ«) for filenames and i was pleasently
surprised that the files were created/read/renamed/deleted
without problems.

is it true to say then, that ffs is entirely "utf8 safe",
and/or that ffs is actually "an utf-8 encoded filesystem"
as IIRC Mac OS is?  or is it some kind of happy accident
that it works? :)

-f
-- 
mips => meaningless index of processor speed



Re: ffs and utf8

2014-11-29 Thread frantisek holop
frantisek holop, 29 Nov 2014 13:02:
> while working on it, i created some strange test cases
> (e.g. »´ÁÉǑÄ«) for filenames and i was pleasently
> surprised that the files were created/read/renamed/deleted
> without problems.

i think i should clarify this a bit:
they show perfect in midnight commander, not in shell.

$ touch »´ÁÉǑÄ«
$ ls
??

-f
-- 
to every rule there's an exception & vice versa.



Re: ffs and utf8

2014-11-29 Thread frantisek holop
Ville Valkonen, 29 Nov 2014 14:08:
> Are you aware of 'detox' package?

$ touch »´ÁÉǑÄ«
$ detox *
$ ls
A_A_A_A_C_A_A_

$ touch »´ÁÉǑÄ«
$ my_silly_script
$ ls
aeoa

perhaps with some massaging detox can be made
to work like my script, i dont know.  but that is
actually besides the point.

i wrote my own 128 lines python script to have fun,
see how some stuff works, learn about utf-8, etc.

as an added bonus, it is also a mass renamer that
can remove and add strings from/to filenames.

and when it will grow up, it will also autotag music
files, create art thumbnail and feed it to cmus!  :)

"where is your detox now?" :)

-f
-- 
dinner: dead animals and some stuff out of the ground.



Re: ffs and utf8

2014-11-29 Thread frantisek holop
Paolo Aglialoro, 29 Nov 2014 13:56:
> Shouldn't in 2014 the aim having all working in utf-8?

sure.
but i like my filenames ascii and whitespaceless.
shows my age.

-f
-- 
what a nice night for an evening.  -- steven wright



Re: ffs and utf8

2014-12-01 Thread frantisek holop
Joel Rees, 01 Dec 2014 22:04:
> Hmm. What would you suggest doing with the following file name?
> 
> /etc
> 
> (You may need a Japanese font to display it.)
> 
> If you try to normalize it on a *nix box, it will hopefully conflict
> with your system file permissions. But, then what do you do with it?

this example has potential to confuse of course,
however NFD normalizing will not turn it into
'/etc', as they are not composite characters:

'/': unicode cat=Po
'e': unicode cat=Ll
't': unicode cat=Ll
'c': unicode cat=Ll

(Po=other punctuation, Ll=lowercase letter)


-f
-- 
i quit drinking/smoking/& sex once.  very boring 15 minutes.



Re: ffs and utf8

2014-12-01 Thread frantisek holop
Stefan Sperling, 29 Nov 2014 18:17:
> > Are you aware of 'detox' package?
> 
> There's also converters/convmv

$ touch »´ÁÉǑÄ«
$ convmv *
wrong/unknown "from" encoding!
$ convmv -f utf8 -t latin1 *
Starting a dry run without changes...
iso-8859-1 doesn't cover all needed characters for: "./»´ÁÉǑÄ«"
To prevent damage to your files, we won't continue.
First fix this or correct options!


convmv is a precision tool.  it needs to know the
source and target encoding, and is very careful.

in contrast my tool is much more blunt, because i dont care
about an exact 1:1 mapping as on my disks punctuation and
diacritics are not welcome.

-f
-- 
life is like... an analogy.



Re: hw.setperf affects only 1 (of several) cores?

2014-12-23 Thread frantisek holop
Marinos Yannikos, 23 Dec 2014 12:20:
> Practical implications: a Supermicro A1SAi based server sitting on my
> desk gets quite warm at 61°C when idle and supposedly clocked down to
> half the nominal CPU frequency at hw.setperf=0 (Linux: 43°C).

this is a difficult issue, because as far as i know,
there are no tools to query per cpu
setperf/temperature.


i was also thinking about sending an email, as i think
i see something vagualy similar on my thinkpad notebook,
but how to collect data?


in a 18C room (i like cold), i start up the notebook (not resume),
that was off all night, and it goes to 46C in a couple of minutes.
fair enough, the other notebooks in the room (3) have very
similar/same temperatures (windows and linux).

for the sake of this "scientific" experiment, i don't start
anything heavy (browser, etc), just a terminal.  every 6 minutes
or so, the temperature goes up 1C, and in 40 minutes, i am
at 53C and it will go up to 56C by the time i finish this email.

now, 50~58C are common temperatures for common usage on
a common notebook.  but this room is 18C, and the
notebook is basically idle. (i will also boot linux on
it later to compare)

it seems to me, that at 18C, an idle CPU at 1000MHz
should be around 45~48C.


resume is a whole other thing.  in a 18C room, after
a whole night of being off, temperature goes into the
high 60s and early 70C right away and it is clear
it should be at least 20 less.  but i was trying to
get more data on this for a bug report.

-f


$ sysctl hw
hw.machine=i386
hw.model=Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class)
hw.ncpu=2
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:2a6c0cb2b714a4f0,sd1:9b35dfa2af509654
hw.diskcount=2
hw.sensors.acpitz0.temp0=52.00 degC (zone temperature)
hw.sensors.acpitz1.temp0=53.00 degC (zone temperature)
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=16.65 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=23.71 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=1.19 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=23.71 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=28.80 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.temp0=52.00 degC
hw.sensors.acpithinkpad0.temp1=42.00 degC
hw.sensors.acpithinkpad0.temp3=49.00 degC
hw.sensors.acpithinkpad0.temp4=18.00 degC
hw.sensors.acpithinkpad0.temp6=18.00 degC
hw.sensors.acpithinkpad0.fan0=3011 RPM
hw.sensors.acpidock0.indicator0=Off (not docked), UNKNOWN
hw.sensors.cpu0.temp0=53.00 degC
hw.sensors.aps0.temp0=42.00 degC
hw.sensors.aps0.temp1=42.00 degC
hw.sensors.aps0.indicator0=On (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=466 (X_ACCEL)
hw.sensors.aps0.raw1=511 (Y_ACCEL)
hw.sensors.aps0.raw2=466 (X_VAR)
hw.sensors.aps0.raw3=511 (Y_VAR)
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=1000
hw.setperf=0
hw.vendor=LENOVO
hw.product=1705CTO
hw.version=ThinkPad X60s
hw.serialno=LVB7000
hw.uuid=b3bcd5e0-08e3-11dc-9e40-c19b215ac37f
hw.physmem=2137341952
hw.usermem=2111606784
hw.ncpufound=2
hw.allowpowerdown=1
hw.perfpolicy=auto


OpenBSD 5.6-current (GENERIC.MP) #630: Thu Dec 18 01:03:03 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 2137341952 (2038MB)
avail mem = 2090070016 (1993MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/11, BIOS32 rev. 0 @ 0xfd690, SMBIOS 
rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version "7BETD8WW (2.19 )" date 03/31/2011
bios0: LENOVO 1705CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 
GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
ioapic0 at mainbus0: apid 1 pa 0x

hotplugd attach into /etc/examples?

2014-12-24 Thread frantisek holop
now that there is a dedicated place for examples,
i think it would be easier to get started
with hotplugd/attach with a file instead of
copy pasting from the manual page...

the only difference from the man page example
is simple logging with logger(1) (to help add
new devices), and commenting out (but leaving
for reference) the sony camera example.


i think it would be useful to somehow
advertise these examples (perhaps a reference
in their respective man files) as they are
easy to overlook, especially for newcomers,
and could save some d'oh moments...

-f


Index: etc/examples/attach
===
RCS file: etc/examples/attach
diff -N etc/examples/attach
--- /dev/null   1 Jan 1970 00:00:00 -
+++ etc/examples/attach 24 Dec 2014 09:58:07 -
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+DEVCLASS=$1
+DEVNAME=$2
+
+logger -i -t attach "DEVCLASS=$DEVCLASS, DEVNAME=$DEVNAME"
+
+case $DEVCLASS in
+2)
+   # disk devices
+   disklabel=`/sbin/disklabel $DEVNAME 2>&1 | \
+   sed -n '/^label: /s/^label: //p'`
+   logger -i -t attach "disklabel='$disklabel'"
+#  case $disklabel in
+#  Sony*DSC*)
+#  mount -o nodev,nosuid /dev/"$DEVNAME"i /mnt/camera
+#  ;;
+#  esac
+   ;;
+3)
+   # network devices; requires hostname.$DEVNAME
+   sh /etc/netstart $DEVNAME
+   ;;
+esac
Index: usr.sbin/hotplugd/hotplugd.8
===
RCS file: /cvs/src/usr.sbin/hotplugd/hotplugd.8,v
retrieving revision 1.12
diff -u -p -r1.12 hotplugd.8
--- usr.sbin/hotplugd/hotplugd.821 Jan 2014 03:15:46 -  1.12
+++ usr.sbin/hotplugd/hotplugd.824 Dec 2014 09:58:10 -
@@ -85,34 +85,6 @@ Script to execute on device attachment.
 .It /etc/hotplug/detach
 Script to execute on device detachment.
 .El
-.Sh EXAMPLES
-Sample
-.Pa attach
-script:
-.Bd -literal -offset indent
-#!/bin/sh
-
-DEVCLASS=$1
-DEVNAME=$2
-
-case $DEVCLASS in
-2)
-   # disk devices
-   disklabel=`/sbin/disklabel $DEVNAME 2\*(Gt&1 | \e
-   sed -n '/^label: /s/^label: //p'`
-   case $disklabel in
-   Sony*DSC*)
-   # Sony DSC camera
-   mount -o nodev,nosuid /dev/"$DEVNAME"i /mnt/camera
-   ;;
-   esac
-   ;;
-3)
-   # network devices; requires hostname.$DEVNAME
-   sh /etc/netstart $DEVNAME
-   ;;
-esac
-.Ed
 .Sh SEE ALSO
 .Xr hotplug 4
 .Sh HISTORY



Re: hotplugd attach into /etc/examples?

2014-12-24 Thread frantisek holop
Ingo Schwarze, 24 Dec 2014 11:34:
> > now that there is a dedicated place for examples,
> 
> You misunderstand.  The point of creating /etc/examples was not
> to create a new place for documentation.  The point was to be
> able to delete lots of junk from /etc/ without being held back
> by the substantial work of properly integrating the information
> into manual pages.

i understand but disagree.

for me /etc/examples is the same concept as /usr/local/share/examples

the latter is a great way to not clutter up /etc/ at package
install time, but at the same time it does not throw out the
baby with the bathwater, and it gives me a file i can quickly
start working on (together with the man page) instead of
copy-pasting everything ab ovo from documentation, especially
when many config files need minimal changes for common operation.

example config files can be quite helpful and can save
a lot of headache, googling and questions to mailing
lists.

i think hotplugd is special case, because without at
least a skeleton attach script it is utterly useless,
and i think there should have been a commented out
script file from the beginning under /etc/hotplugd
(and not /etc/hotplug).

the patch i sent is just an idea, i was fairly sure
it would never get it in its current form, but i wanted
to start a discussion about it. copying the whole
/etc/ structure inside /etc/examples seemed excessive
for this, after all they are just examples.

last but not least, a whole shell script inside
a man page seems totally out of place for me,
excessive or not.

-f
-- 
2 wrongs don't make a right - but 3 lefts do!



suspend/resume regression

2015-01-13 Thread frantisek holop
is anybody else seeing regression in suspend/resume?
i am noticing that my 100% resume ratio is starting
to decline.  at resume time, the thinkpad half moon
icon starts blinking and nothing else happens.
not all resumes fail, but i cannot see a pattern.
i suspend every night and resume every morning.
any ideas what i could try?  this was not an issue
in the past (started in november/december IIRC).

-f


OpenBSD 5.7-beta (GENERIC.MP) #669: Sat Jan 10 23:12:49 MST 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 2137341952 (2038MB)
avail mem = 2090065920 (1993MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/11, BIOS32 rev. 0 @ 0xfd690, SMBIOS 
rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version "7BETD8WW (2.19 )" date 03/31/2011
bios0: LENOVO 1705CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 
GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4629" serial   327 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 0xd/0x1000 0xdc000/0x4000! 
0xe/0x1!
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices 
AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 20
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel 82573L" rev 0x00: msi, address 
00:16:d3:b6:19:57
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 21
pci2 at ppb1 bus 3
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 22
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 1 int 23
pci4 at ppb3 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 21
cbb0 at pci5 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xb4: apic 1 int 16
"Ricoh 5C552 Firewire" rev 0x09 at pci5 dev 0 function 1 not configured
sdhc0 at pci5 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x18: apic 1 int 18
sd

Re: What are the disadvantages of soft updates?

2015-01-21 Thread frantisek holop
Alexandre Ratchov, 20 Jan 2015 10:17:
> in *my* practice, yes. I lost no single file last 10 years despite
> the frequent system crashes during kernel development &
> experimenting.

very nice, i dont doubt that.

but in my experience it is not that hard to get a
corrupted filesystem with softupdates and i had to stop
using it.  but i seem to attract panics and
page faults.

in the recent past i had corrupted filesystems even
without softupdates, up to a point that nowadays i
mount -o sync,noatime.

i have a toshiba ssd, so it actually feels like having
softupdates on :)

when your hardware (and its drivers) are solid,
i am all for it though.  i just dont have that hw.

-f
-- 
day-by-day a day goes by.



Re: What are the disadvantages of soft updates?

2015-01-21 Thread frantisek holop
Mihai Popescu, 21 Jan 2015 14:34:
> > but in my experience it is not that hard to get a
> > corrupted filesystem with softupdates and i had to stop
> > using it.  but i seem to attract panics and
> > page faults.
> 
> > in the recent past i had corrupted filesystems even
> > without softupdates, up to a point that nowadays i
> > mount -o sync,noatime.
> 
> > i have a toshiba ssd, so it actually feels like having
> > softupdates on :)
> 
> > when your hardware (and its drivers) are solid,
> > i am all for it though.  i just dont have that hw.
> 
> I might be quick on judgement or even mess with thread's topic, but
> did you reported that problem anywere close to openbsd project lists?
> SSD is a very used hardware under OpenBSD, it is not so exotic. I
> think that are developers who can take a look at your problem if you
> report it.

i meant hardware in general, not the disk.
sometimes laptops (esp. the cheaper ones)
contain questionable devices...

i saw panics with ath mainly.

-f
-- 
words are not food, though sometimes we must eat them.



Re: PostgreSQL 9.4: initdb: invalid locale settings

2015-01-21 Thread frantisek holop
openda...@hushmail.com, 21 Jan 2015 19:29:
> Why won't `postgresql-server-9.4.0` accept my locale? Just upgraded to 5.7 
> from 5.5. Whatever `postgresql-server` version was in 5.5 didn't have this 
> problem.
> 
> % su _postgresql
> % initdb -D /var/postgresql/data/

LC_ALL is not supported yet, try LC_CTYPE.

$ sudo su - _postgresql
$ export LC_CTYPE=en_US.UTF-8
$ initdb -D /var/postgresql/data -U postgres -E UTF8 -A md5 -W
$ psql -U postgres -l
Password for user postgres:
List of databases
   Name|  Owner   | Encoding | Collate |Ctype|   Access privileges
---+--+--+-+-+---
 postgres  | postgres | UTF8 | C   | en_US.UTF-8 |
 template0 | postgres | UTF8 | C   | en_US.UTF-8 | =c/postgres  
+
   |  |  | | | postgres=CTc/postgres
 template1 | postgres | UTF8 | C   | en_US.UTF-8 | =c/postgres  
+
   |  |  | | | postgres=CTc/postgres
(3 rows)

-f
-- 
if practice makes perfect, and nobody's perfect, why practice?



Re: PostgreSQL 9.4: initdb: invalid locale settings

2015-01-21 Thread frantisek holop
openda...@hushmail.com, 21 Jan 2015 20:41:
> Hello,
> 
> On 21. januar 2015 at 8:26 PM, "frantisek holop"  wrote:
> >
> >LC_ALL is not supported yet, try LC_CTYPE.
> >
> >$ sudo su - _postgresql
> >$ export LC_CTYPE=en_US.UTF-8
> >$ initdb -D /var/postgresql/data -U postgres -E UTF8 -A md5 -W
> >$ psql -U postgres -l
> 
> I couldn't get it to work with `LC_CTYPE`. It did, however, work with `initdb 
> -D /var/postgresql/data/ --no-locale`.

you are not giving details, so i don't know.
but a non-utf8 database nowadays is very limiting.

-f
-- 
god?  i'm no god.  god has mercy.



ehci_idone: ex=0xd90fd934 is done!

2015-02-18 Thread frantisek holop
recently i have bought a cheapo usb hub,
nothing fancy, just to keep the mouse,
keyboard, wifi in one place.  i have it
plugged in at boot time.

in dmesg.boot things look good. then hotplugd
starts to run and receives all these devices.
by the time i login, all the devices work
but i have this in the logs:

/var/log/messages:
Feb 18 10:25:42 hatvan attach[5808]: DEVCLASS=0, DEVNAME=uhub5
Feb 18 10:25:42 hatvan attach[26613]: DEVCLASS=3, DEVNAME=run0
Feb 18 10:25:42 hatvan attach[6382]: DEVCLASS=0, DEVNAME=ums0
Feb 18 10:25:42 hatvan attach[19471]: DEVCLASS=0, DEVNAME=uhid1
Feb 18 10:25:42 hatvan attach[7128]: DEVCLASS=0, DEVNAME=uhid2
Feb 18 10:25:42 hatvan attach[21013]: DEVCLASS=0, DEVNAME=softraid0
Feb 18 10:25:42 hatvan attach[28869]: DEVCLASS=5, DEVNAME=wsmouse2
Feb 18 10:25:42 hatvan attach[31776]: DEVCLASS=5, DEVNAME=wsmouse1
Feb 18 10:25:42 hatvan attach[24252]: DEVCLASS=0, DEVNAME=ugen0
Feb 18 10:25:42 hatvan attach[22473]: DEVCLASS=0, DEVNAME=ukbd0
Feb 18 10:25:42 hatvan attach[12734]: DEVCLASS=0, DEVNAME=uhid3
Feb 18 10:25:42 hatvan attach[20698]: DEVCLASS=0, DEVNAME=uhid0
Feb 18 10:25:42 hatvan attach[14234]: DEVCLASS=0, DEVNAME=sensordev
Feb 18 10:25:42 hatvan attach[22971]: DEVCLASS=0, DEVNAME=uhidev3
Feb 18 10:25:42 hatvan attach[30500]: DEVCLASS=0, DEVNAME=scsibus2
Feb 18 10:25:42 hatvan attach[29655]: DEVCLASS=0, DEVNAME=uhidev1
Feb 18 10:25:42 hatvan attach[6644]: DEVCLASS=0, DEVNAME=uhidev2
Feb 18 10:25:42 hatvan attach[3098]: DEVCLASS=0, DEVNAME=ums1
Feb 18 10:25:42 hatvan attach[12115]: DEVCLASS=0, DEVNAME=scsibus3
Feb 18 10:25:42 hatvan attach[7499]: DEVCLASS=5, DEVNAME=wskbd1
Feb 18 10:25:42 hatvan attach[21089]: DEVCLASS=0, DEVNAME=vscsi0
Feb 18 10:25:42 hatvan attach[23823]: DEVCLASS=0, DEVNAME=uhidev0
Feb 18 10:25:43 hatvan /bsd: ehci_idone: ex=0xd90fd934 is done!
Feb 18 10:25:43 hatvan last message repeated 2 times
Feb 18 10:25:43 hatvan /bsd: ehci_idone: ex=0xd90fda84 is done!
Feb 18 10:25:46 hatvan dhclient[4435]: run0 down; exiting

/var/log/daemon:
Feb 18 10:25:42 hatvan hotplugd[20965]: started
Feb 18 10:25:42 hatvan hotplugd[20965]: uhub5 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: run0 attached, class 3
Feb 18 10:25:42 hatvan hotplugd[20965]: wsmouse1 attached, class 5
Feb 18 10:25:42 hatvan hotplugd[20965]: ums0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhid0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhid1 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhid2 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhidev0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: wskbd1 attached, class 5
Feb 18 10:25:42 hatvan hotplugd[20965]: ukbd0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhidev1 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: wsmouse2 attached, class 5
Feb 18 10:25:42 hatvan hotplugd[20965]: ums1 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhidev2 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhid3 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: uhidev3 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: ugen0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: scsibus2 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: vscsi0 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: sensordev attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: scsibus3 attached, class 0
Feb 18 10:25:42 hatvan hotplugd[20965]: softraid0 attached, class 0
Feb 18 10:25:46 hatvan dhclient[4435]: run0 down; exiting
Feb 18 10:25:51 hatvan dhclient[6032]: DHCPREQUEST on run0 to 255.255.255.255
Feb 18 10:25:52 hatvan dhclient[6032]: DHCPACK from 10.10.10.1 
(xx:xx:xx:xx:xx:xx)
Feb 18 10:25:52 hatvan dhclient[6032]: bound to 10.10.10.60 -- renewal in 
604780 seconds.


so i thought i'd mention it, because ehci_idone messages
are not good news :]

-f


OpenBSD 5.7-beta (GENERIC.MP) #742: Tue Feb 17 12:50:59 MST 2015
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 2137341952 (2038MB)
avail mem = 2090029056 (1993MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 03/31/11, BIOS32 rev. 0 @ 0xfd690, SMBIOS rev. 2.4 @ 
0xe0010 (67 entries)
bios0: vendor LENOVO version "7BETD8WW (2.19 )" date 03/31/2011
bios0: LENOVO 1705CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boo

Re: ehci_idone: ex=0xd90fd934 is done!

2015-03-02 Thread frantisek holop
i confirm that with the latest snapshot that
includes the latest ehci fix these messages
went away.  thank you.

-f
-- 
doubt is the beginning of wisdom



Re: uxterm is showing UTF-8 chars with errors?

2015-03-03 Thread frantisek holop
Thisis theone, 03 Mar 2015 16:55:
> $ touch "árvíztűrő tükörfúrógép"
> $ ls -lah
> -rw---   1 user  user 0B Feb  8 18:20 ??rv??zt??r?? t??k??rf??r??g??p
> $
> 
> I am using uxterm on OpenBSD 5.6. How can my uxterm show these accents in
> this way? Why doesn't it displays it as it is?

look in the archives, there was a discussion not that
long ago.

$ ls |cat
árvíztűrő tükörfúrógép

-f
-- 
the word of the day is legs.  now spread the word!



mac mini -> virtualbox -> openbsd amd64?

2015-03-24 Thread frantisek holop
has anybody tried running openbsd in virtualbox on a
mac mini?  is X11, etc feasable?

-f
-- 
if "r" is reverse, how come "d" is forward?



Re: urtwn0: timeout waiting for MAC auto ON

2012-12-02 Thread frantisek holop
hmm, on Sat, Dec 01, 2012 at 06:58:28PM +0100, Stefan Sperling said that
> On Sat, Dec 01, 2012 at 05:15:22PM +, Heptas Torres wrote:
> > Hi
> > I run OpenBSD in a VMware workstation and I would like to connect the
> > Edimax EW-7811Un nano USB wireless adapter:
> > http://www.edimax.com/en/produce_detail.php?pd_id=347&pl1_id=1&pl2_id=44.
> > I get the error:
> >urtwn0: timeout waiting for MAC auto ON
> 
> The driver believes that it is failing to power up the hardware.
> 
> If the dongle works with OpenBSD on real hardware there is probably
> some problem with the way VMware handles USB devices. Do other USB
> devices work?

i get this problem fairly often (and others) on real hardware
all the time.  i have a D-Link DWA-121 and
"urtwn0: could not send firmware command 5"
is the order of the day.  get it every couple of hours,
sometimes much worse.

this just happened 7 minutes ago:

urtwn0: could not send firmware command 5
urtwn0: could not send firmware command 5
urtwn0: could not send firmware command 5
ehci_idone: ex=0xd1f65100 is done!
urtwn0 detached
urtwn0 at uhub0 port 6 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 4
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address cc:b2:55:55:b1:55

and the dongle wasnt even removed when it said it detached,
the hw just went away.

i tried another firmware from the linux driver, and it seems
to be marginally better, now i dont get the command 5 every
20 minutes but maybe every 3 hours.  if anyone wants to try
here is the other file http://obiit.org/f/urtwn-rtl8192cfwU
copy it into /etc/firmware and rename the old one.

in the end, i cannot point fingers because the usb ports
seem to be totally shitty on this lenovo ideapad netbook.
or maybe the dongle is dodgy.  or maybe the driver is really
strict with its timeout :] sigh.

-f
-- 
you ate a lot of wall paint as a kid, huh?  you mean wall candy?



Re: NGINX wordpress error 5.2

2012-12-20 Thread frantisek holop
hmm, on Thu, Dec 20, 2012 at 03:58:53PM -0500, Bentley, Dain said that
> PHP_FPm is running as the www user, but the permissions on resolv.conf is 
> readable to everyone.
> Perhaps I missed installing  PHP extension required?

php_fpm when installed from the ports is also running chroot
by default IIRC.

-f
> 
> 
> 
> -Original Message-
> From: Aaron [mailto:def...@gmail.com] 
> Sent: Thursday, December 20, 2012 3:53 PM
> To: Bentley, Dain
> Cc: misc@openbsd.org
> Subject: Re: NGINX wordpress error 5.2
> 
> On Thu, Dec 20, 2012 at 1:49 PM, Bentley, Dain  wrote:
> > Hello Aaron,
> > I thought so too.  Here is the error's I'm getting:
> > WP HTTP Error: 0: php_network_getaddresses: getaddrinfo failed: 
> > temporary failure in name resolution
> 
> AFAIK, php-fpm will use your resolv.conf in /etc, as it isn't bound by the 
> chroot that nginx is.
> 
> Perhaps the issue is there?
> 
> >
> > It seems to be an issue with PHP unable to open a network connection?
> >
> > -Original Message-
> > From: Aaron [mailto:def...@gmail.com]
> > Sent: Thursday, December 20, 2012 3:48 PM
> > To: Bentley, Dain
> > Cc: misc@openbsd.org
> > Subject: Re: NGINX wordpress error 5.2
> >
> > On Thu, Dec 20, 2012 at 1:45 PM, Bentley, Dain  wrote:
> >> Hello all,
> >> I've configured a wordpress site on NGINX/OpenBSD 5.2/php_fpm.
> >> It works fine but I seem to have problems installing plugins and getting 
> >> information from RSS feeds because the wordpress API can't seem to resolve 
> >> hostnames.
> >>
> >> I suspect it has something to do with the fact NGINX is chrooted so I 
> >> tried to move the resolv.conf over but nothing.  Is there anything I need 
> >> to move over to the /var/www directory to get name resolution working 
> >> correctly with my web apps?
> >
> > Copying /etc/resolv.conf to /var/www/etc/resolv.conf should be all that is 
> > required.

-- 
how much can i get away with and still go to heaven?



snapshots total freeze

2012-12-25 Thread frantisek holop
hi there,

since a couple of snapshosts back i can quite reliably
freeze my openbsd notebook simply by leaving it on
overnight.  the desktop is there, all the open windows
are there, but it has become a painting...
nothing in the logs, no panic, nothing.
anybody else is seeing something similar?

-f

OpenBSD 5.2-current (GENERIC.MP) #6: Wed Dec 12 23:41:45 MST 2012
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1061818368 (1012MB)
avail mem = 1033469952 (985MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/10, SMBIOS rev. 2.6 @ 0xeb0f0 (53 
entries)
bios0: vendor LENOVO version "50CN12WW" date 04/22/2011
bios0: LENOVO 20109
acpi0 at bios0: rev 3
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET
acpi0: wakeup devices P0P8(S4) PS2K(S3) PS2M(S3) EUSB(S3) P0PA(S4) P0PB(S4) 
P0PC(S4) P0P9(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) PWRB(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P8)
acpiprt2 at acpi0: bus 2 (P0PA)
acpiprt3 at acpi0: bus -1 (P0PB)
acpiprt4 at acpi0: bus -1 (P0PC)
acpiprt5 at acpi0: bus 1 (P0P9)
acpiec0 at acpi0
acpicpu0 at acpi0:, C3, C2, C1, PSS
acpicpu1 at acpi0:, C3, C2, C1, PSS
acpicpu2 at acpi0:, C3, C2, C1, PSS
acpicpu3 at acpi0:, C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "LNV-L10C6Y12" serial 004706 type LiIon   
oem "CPT-ES3"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1334, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 4 int 16
drm0 at inteldrm0
"Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x05: RTL8105E (0x4080), apic 
4 int 16, address 50:af:73:14:da:b5
ukphy0 at re0 phy 7: Generic IEEE 802.3u media interface, rev. 2: OUI 0x000732, 
model 0x0008
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17
pci2 at ppb1 bus 2
"Realtek 8188CE" rev 0x01 at pci2 dev 0 function 0 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci3 at ppb2 bus 3
pcib0 at pci0 dev 31 function 0 "Intel NM10 LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801G

Re: snapshots total freeze

2012-12-25 Thread frantisek holop
hmm, on Tue, Dec 25, 2012 at 06:17:27PM +0100, Stefan Sperling said that
> On Tue, Dec 25, 2012 at 06:05:10PM +0100, frantisek holop wrote:
> > hi there,
> > 
> > since a couple of snapshosts back i can quite reliably
> > freeze my openbsd notebook simply by leaving it on
> > overnight.  the desktop is there, all the open windows
> > are there, but it has become a painting...
> > nothing in the logs, no panic, nothing.
> 
> Sounds like you're in X while the kernel panics. The system is probably
> in ddb but you cannot see the ddb prompt since you're in X.
> 
> Can you leave the screen switched to the console (Ctrl+Alt+F1)
> over night and check whether a ddb prompt shows up in the morning?

sure, i will try.

-f
-- 
if you can't see black, white has no meaning



Re: snapshots total freeze

2012-12-25 Thread frantisek holop
hmm, on Tue, Dec 25, 2012 at 03:49:00PM -0600, Chris Bennett said that
> On Tue, Dec 25, 2012 at 06:05:10PM +0100, frantisek holop wrote:
> > hi there,
> > 
> > since a couple of snapshosts back i can quite reliably
> > freeze my openbsd notebook simply by leaving it on
> > overnight.  the desktop is there, all the open windows
> > are there, but it has become a painting...
> > nothing in the logs, no panic, nothing.
> > anybody else is seeing something similar?
> > 
> > -f
> > 
> 
> My notebook would freeze up regularly, especially after I had
> opened "enough" applications.
> 
> This was somewhat annoying. :)
> 
> Turned out that my hard drive was at the edge of failure.
> I am guessing that needing to swap to the hard drive after free
> memory filled up caused the failures. I could be wrong.

a dying disk tends to make quite a lot of noise in the logs..
i see no signs of that so far.  and i have lots of
fsck's because of unclean shutdowns. basically
nowadays every clean shutdown is cause for celebration.
(difficult to believe no people see this, every notebook
i had since 2008 could not shutdown cleanly 50-70%
of the time)

as to the memory, i have a usb stick with linux that has
memtest86 as boot option. i can leave that overnight as well.

hardware is always suspect, but it's so difficult to test...

-f
-- 
sorry guys, this is not heavy metal.



Re: snapshots total freeze

2012-12-25 Thread frantisek holop
hmm, on Tue, Dec 25, 2012 at 01:23:41PM -0800, Philip Guenther said that
> On Tue, Dec 25, 2012 at 9:05 AM, frantisek holop  wrote:
> > since a couple of snapshosts back i can quite reliably
> > freeze my openbsd notebook simply by leaving it on
> > overnight.  the desktop is there, all the open windows
> > are there, but it has become a painting...
> > nothing in the logs, no panic, nothing.
> > anybody else is seeing something similar?
> 
> I'll second the "try doing ctrl-alt-F1 followed by 'boot crash'"
> recommendation.  (If you don't have swap and /var space for a crash
> dump, then at least try blind typing 'trace' and 'ps' and then 'boot
> reboot', as if that can actually reboot then you'll see the panic
> message, back trace, and ps info in the output of dmesg.

i always try these.  no results.
keyboard seems to be totally dead (i also have
machdep.kbdreset=1 and it has never worked in
case of a freeze).

> The other thought is that you describe this as a change from before;
> what was the last snapshot you installed that you can be sure *did
> not* exhibit this behavior?  e.g., did the machine last overnight when
> running 5.1?  5.2-release?  An October snapshot?

leaving my notebook on overnight did not result in hard freeze "before".
it is basically idling, not even connected to network.  couple
of programs left running as they were.  basically a poor man's
"hybernate" as this notebook cannot wake up after zzz..

to define that "before", i am sorry, i cannot.  i remember
in november a distinct freeze when i left to computer alone
only for a couple of hours.  coming back to it it was totally
unresponsive and i could only turn it off. this case i said
"overnight" but of course the freeze could have happened
anytime before i woke up.  i just wrote a heartbeat script
that spams syslog...

i have also stopped using systat enterily as it could
lock up all and every snapshot for the last year.
starting it specifically outside X in the console
would lock up the machine so bad only turning off helped.
no ddb, no ctrl-alt-del, just the blinking cursor behind
"systat".  so frustrating not to be able to trace down
any of this. apparently it is not happening to others either.
so yes, too bad.

-f
-- 
no sense being pessimistic.  it wouldn't work anyway.



Re: snapshots total freeze

2012-12-25 Thread frantisek holop
hmm, on Tue, Dec 25, 2012 at 11:31:43PM +0100, Marc Espie said that
> On Tue, Dec 25, 2012 at 11:23:06PM +0100, frantisek holop wrote:
> > (difficult to believe no people see this, every notebook
> > i had since 2008 could not shutdown cleanly 50-70%
> > of the time)
> 
> I don't know what you do with your machines, or what specific hw you
> have that causes this. My machines shutdown gracefully most of the time.

(the dmesgs of all my current and previous notebooks can be
found in the misc archive).  thinkpad, ideapad, eeepc,
all of them showed this behaviour.  i use these machines
for simple daily use.  browsing, some development work,
etc.  as every day as it gets for unix users.

there are normally 2 ways of unclean shutdown:
either "syncing now" and never "done", or
(on this ideapad) simply black screen, presumably
still part of X, and never going to the console.

i made this script to minimize damage:

$ cat bin/ha.sh
#!/bin/sh

sudo sync
sudo mount -u -r /data
sudo halt -p



-f
-- 
runtime error.  should i walk? (y/n)



Re: snapshots total freeze (linux emulation)

2012-12-28 Thread frantisek holop
hmm, on Tue, Dec 25, 2012 at 06:05:10PM +0100, frantisek holop said that
> since a couple of snapshosts back i can quite reliably
> freeze my openbsd notebook simply by leaving it on
> overnight.  the desktop is there, all the open windows
> are there, but it has become a painting...
> nothing in the logs, no panic, nothing.

so let me correct that: no visible panic..

i stayed up overnight as well for a change,
and it froze/panicked right in the front of my eyes.

i started a 'boot crash', but i am not sure
if it was finished correctly, it was sitting there
forever with the disk led on, so in the end
i just power cycled it.  savecore came on
and i have in the logs:

Dec 28 00:25:25 amaaq savecore: reboot after panic: kernel diagnostic assertion 
"wp->wp_new_futex == f" failed: file "../../../../compat/linux/linux_futex.c", 
line 568
Dec 28 00:25:25 amaaq savecore: /var/crash/bounds: No such file or directory
Dec 28 00:25:25 amaaq savecore: writing core to /var/crash/bsd.0.core
Dec 28 00:26:10 amaaq savecore: writing kernel to /var/crash/bsd.0

as the only program i run in linux emulation is opera...

thanks for all the tips how to catch this.

-f
-- 
i'm not nearly as think as you confused i am.



Re: Why does time/ident/daytime/comsat run after an OpenBSD 5.2 install?

2013-01-04 Thread frantisek holop
hi,

i seem to recall reading in some RFC or maybe in
one of the stevens books that these services are
required for a "server".  i look at it as being
a good internet neighbour, a bit like "can you tell
me the time please" when someone stops you on the street...

-f
-- 
and god said, "i'll buy a vowel."



Re: snapshots total freeze (linux emulation)

2013-01-17 Thread frantisek holop
hmm, on Tue, Jan 15, 2013 at 02:42:55PM -0800, Philip Guenther said that
> On Fri, Dec 28, 2012 at 1:07 PM, Philip Guenther  wrote:
> > On Fri, Dec 28, 2012 at 8:57 AM, frantisek holop  wrote:
> ...
> >> savecore came on and i have in the logs:
> >>
> >> Dec 28 00:25:25 amaaq savecore: reboot after panic: kernel diagnostic 
> >> assertion "wp->wp_new_futex == f" failed: file 
> >> "../../../../compat/linux/linux_futex.c", line 568
> >
> > Excellent.  The next question is whether that's the only bug that
> > you're hitting, or if there's something else going on that should also
> > be debugged.
> >
> > As for that particular failed assertion, it would be interesting to
> > know what the actual values of wp->wp_mew_futex was (if it was NULL,
> > then I have a guess as to the bug; if it wasn't NULL, then uh, good
> > luck!)
> 
> The fix for this has been committed, at least if it's the
> wp->wp_new_futex==NULL case.

installing snapshot...
thanks for looking into this

-f
-- 
drink till she's cute.  stop before you get married.



updates (sysmerge) and /var/www/htdocs

2013-02-02 Thread frantisek holop
hi there,

is there any strong logical reason why
/var/www/htdocs is restored to its default
state after updates?

if i have removed those files (as i guess most
people on production servers would), why is
it a good thing they always reappear every
6 months?

would it be possible to make sysmerge ignore them,
or ask if i wanted them back?

-f
-- 
some lose their tempers from seeing you keep yours.



Re: snapshots total freeze (linux emulation)

2013-02-02 Thread frantisek holop
hmm, on Fri, Jan 18, 2013 at 05:07:13AM +0100, frantisek holop said that
> hmm, on Tue, Jan 15, 2013 at 02:42:55PM -0800, Philip Guenther said that
> > On Fri, Dec 28, 2012 at 1:07 PM, Philip Guenther  wrote:
> > > On Fri, Dec 28, 2012 at 8:57 AM, frantisek holop  wrote:
> > ...
> > >> savecore came on and i have in the logs:
> > >>
> > >> Dec 28 00:25:25 amaaq savecore: reboot after panic: kernel diagnostic 
> > >> assertion "wp->wp_new_futex == f" failed: file 
> > >> "../../../../compat/linux/linux_futex.c", line 568
> > >
> > > Excellent.  The next question is whether that's the only bug that
> > > you're hitting, or if there's something else going on that should also
> > > be debugged.
> > >
> > > As for that particular failed assertion, it would be interesting to
> > > know what the actual values of wp->wp_mew_futex was (if it was NULL,
> > > then I have a guess as to the bug; if it wasn't NULL, then uh, good
> > > luck!)
> > 
> > The fix for this has been committed, at least if it's the
> > wp->wp_new_futex==NULL case.
> 
> installing snapshot...
> thanks for looking into this

sad to say, panic'd again, seems related.
as i am writing this in the ecuadorian jungle,
there is an actual bug on pics 3, 4 visible.

screenshots:
obiit.org/f/panic2_1.jpg
obiit.org/f/panic2_2.jpg
obiit.org/f/panic2_3.jpg
obiit.org/f/panic2_4.jpg




OpenBSD 5.2-current (GENERIC.MP) #20: Mon Jan 21 18:04:07 MST 2013
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1061818368 (1012MB)
avail mem = 1033461760 (985MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/31/10, SMBIOS rev. 2.6 @ 0xeb0f0 (53 
entries)
bios0: vendor LENOVO version "50CN12WW" date 04/22/2011
bios0: LENOVO 20109
acpi0 at bios0: rev 3
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET
acpi0: wakeup devices P0P8(S4) PS2K(S3) PS2M(S3) EUSB(S3) P0PA(S4) P0PB(S4) 
P0PC(S4) P0P9(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) PWRB(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 167MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.68 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.68 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz ("GenuineIntel" 686-class) 1.68 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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P8)
acpiprt2 at acpi0: bus 2 (P0PA)
acpiprt3 at acpi0: bus -1 (P0PB)
acpiprt4 at acpi0: bus -1 (P0PC)
acpiprt5 at acpi0: bus 1 (P0P9)
acpiec0 at acpi0
acpicpu0 at acpi0:, C3, C2, C1, PSS
acpicpu1 at acpi0:, C3, C2, C1, PSS
acpicpu2 at acpi0:, C3, C2, C1, PSS
acpicpu3 at acpi0:, C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "LNV-L10C6Y12" serial 004706 type LiIon   
oem "CPT-ES3"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
cpu0: Enhanced SpeedStep 1680 MHz: speeds: 1667, 1334, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0

Re: snapshots total freeze (linux emulation)

2013-02-02 Thread frantisek holop
hmm, on Sun, Feb 03, 2013 at 02:47:06AM +0100, frantisek holop said that
> sad to say, panic'd again, seems related.

forgot to add: nice panic, because this was at shutdown..

-f 
-- 
fact: fourteen out of every ten people like chocolate.



  1   2   3   4   5   6   7   >