openbsd host halted with unknown acpi event

2012-10-31 Thread Sergey Bronnikov
Yesterday I have found an unpleasent bug in OpenBSD.

I started two virtual machines in qemu with netbsd and building
source inside each virtual machine.
After about 10 min laptop become overheated just below the keyboard,
Xorg was shutdowned and host halted with following messages on console:

/bsd: acpithinkpad0: unknown event 0x6022
/bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down

Is described above load critical for openbsd?
What is an event 0x6022? I didn't find such event in dumped acpi tables.


OpenBSD 5.2-current (GENERIC.MP) #33: Mon Oct  1 11:17:00 MDT 2012
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4184567808 (3990MB)
avail mem = 4050698240 (3863MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version 7VET80WW (3.10 ) date 10/02/2009
bios0: LENOVO 406257G
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) 
EHC1(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)
cpu0: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.54 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,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.01 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,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF
cpu1: 6MB 64b/line 16-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, 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 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4620 serial   929 type LION oem Panasonic
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2801, 2800, 2133, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
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
drm0 at inteldrm0
Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M rev 0x03: msi, address 
00:22:68:18:b1:0f
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: msi
azalia0: codecs: Conexant CX20561, 0x/0x, using Conexant CX20561
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 Intel WiFi Link 5100 rev 0x00: msi, MIMO 1T2R, 
MoW, address 00:26:c6:41:b8:2e
ppb2 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 4
Intel Turbo Memory rev 0x11 at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: msi
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 1 int 16
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 1 int 17
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 

Re: ttyC5, keyboard doesn't work

2012-10-31 Thread Wesley

Le 2012-10-30 12:24, MERIGHI Marcus a écrit :

$ grep ttyC1 /etc/ttys
ttyC1   /usr/local/sbin/autologin.getty vt220 on  secure

$ cat /usr/local/sbin/autologin.getty
#!/bin/sh -e
TERM=vt220 /usr/local/sbin/autologin  /dev/$1  /dev/$1

$ cat /usr/local/sbin/autologin
#!/bin/sh -e
echo running autologin...
exec su -l autologin

$ cat /home/autologin/.profile
/usr/X11R6/bin/startx



Hi,
Thank you very much, now keyboard works, therefore, in each xterm i 
have the following errors :



xauth:  file /home/stac/.serverauth.457 does not exist
xauth: (stdin):1:  bad display name accueil:0 in add command

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.

XIO:  fatal IO error 35 (Resource temporarily unavailable) on X server 
:0

  after 7 requests (7 known processed) with 0 events remaining

When start fwvm, it is possible to disable xterm at startup ?

Again, thank you very much for your precious help!

Cheers,

Wesley



Re: suggestion for default smtpd.conf file

2012-10-31 Thread Gilles Chehade
On Tue, Oct 30, 2012 at 01:19:53PM -0400, bofh wrote:
 Hi!  Just upgraded my 4.4 box to 5.2!  Wheee! :)
 
 Found a small issue.  The current lines in smtpd.conf are:
 
 accept for local alias aliases deliver to mbox
 accept from all for all deliver to mbox
 
 I just found out that the second line doesn't deliver for aliases if
 the email comes from external sources.  Suggest either changing the
 default smtp.conf to allow aliases or mention it in the man page/faq.


Hi,

That's probably a change YOU did to smtpd.conf, the default doesn't
allow email from external sources:

  accept for local alias aliases deliver to mbox
  accept for all relay

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Re: ttyC5, keyboard doesn't work

2012-10-31 Thread MERIGHI Marcus
Hello Wesley, 

note: ``autologin'' is a regular user in my case. I never saw the
X.org errors you mention. To make sure I keep pasting my configs of the
next steps:


$ cat .xinitrc 
/usr/X11R6/bin/xset m 4/1 4 
/usr/X11R6/bin/xset -dpms 
/usr/X11R6/bin/xset s off 
/usr/X11R6/bin/xsetroot -solid black
/usr/X11R6/bin/fvwm || /usr/X11R6/bin/xterm

$ cat .fvwmrc
AddToFunc InitFunction
+ I Module FvwmButtons AutologinButtons
+ I AutologinRunRdp
AddToFunc RestartFunction
+ I Module FvwmButtons AutologinButtons
+ I AutologinRunRdp
#
DeskTopSize 1x2
EdgeResistance 500 20
EdgeScroll 100 100
EdgeThickness 1
ClickTime 750
SnapAttraction 5 All
SnapGrid 5 5
ColormapFocus FollowsFocus
GlobalOpts SmartPlacementIsReallySmart, ClickToFocusDoesntPassClick, 
ClickToFocusRaises, MouseFocusClickRaises, CaptureHo norsStartsOnPage, 
RecaptureIgnoresStartsOnPage, ActivePlacementHonorsStartsOnPage
#
Style   * BorderWidth 0
Style   * HandleWidth 0
#
Style AutologinButtonsIcon toolbox.xpm, ClickToFocus, NoTitle, Sticky, 
WindowListSkip
*AutologinButtonsColumns 1
*AutologinButtonsRows *
*AutologinButtonsBack rgb:20/20/20
*AutologinButtonsFore white
*AutologinButtonsBoxSize smart
*AutologinButtonsFrame 1
*AutologinButtonsPadding 1 2
*AutologinButtonsFont   -*-*-*-*-*-*-20-*-*-*-*-*-*-*
#
Key a A SCM AutologinRunRdp
*AutologinButtons(Title Verbindung herstellen (strg+alt+shift+a), Size 
500 50, Action AutologinRunRdp)
#
Key s A SCM AutologinRunKillRdp
*AutologinButtons(Title Alle Verbindungen Trennen (strg+alt+shift+s), Size 
500 50, Action AutologinRunKillRdp)
#
Key q A SCM AutologinRunShutdown
*AutologinButtons(Title Herunterfahren(strg+alt+shift+q), Size 
500 50, Action AutologinRunShutdown)
#
Key w A SCM AutologinRunReboot
*AutologinButtons(Title Neustart  (strg+alt+shift+w), Size 
500 50, Action AutologinRunReboot)
#
Key t A SCM AutologinRunTerm
*AutologinButtons(Title Terminal  (strg+alt+shift+t), Size 
500 50, Action AutologinRunTerm)

AddToFunc AutologinRunRdp
+ I Exec exec /usr/local/bin/rdesktop -g workarea -D -K -u  -k de rdp
#+ I Exec exec /usr/local/bin/rdesktop -g workarea -D -K -u  -k de -z -x m 
rdp
AddToFunc AutologinRunKillRdp
+ I Exec exec /usr/bin/pkill rdesktop
AddToFunc AutologinRunShutdown
+ I Exec exec sudo /sbin/shutdown -hp now
AddToFunc AutologinRunReboot
+ I Exec exec sudo /sbin/reboot
AddToFunc AutologinRunTerm
+ I Exec exec xterm


Bye, Marcus

open...@e-solutions.re (Wesley), 2012.10.31 (Wed) 08:56 (CET):
 Le 2012-10-30 12:24, MERIGHI Marcus a écrit :
 $ grep ttyC1 /etc/ttys
 ttyC1   /usr/local/sbin/autologin.getty vt220 on  secure
 
 $ cat /usr/local/sbin/autologin.getty
 #!/bin/sh -e
 TERM=vt220 /usr/local/sbin/autologin  /dev/$1  /dev/$1
 
 $ cat /usr/local/sbin/autologin
 #!/bin/sh -e
 echo running autologin...
 exec su -l autologin
 
 $ cat /home/autologin/.profile
 /usr/X11R6/bin/startx
 
 
 Hi,
 Thank you very much, now keyboard works, therefore, in each xterm i
 have the following errors :
 
 
 xauth:  file /home/stac/.serverauth.457 does not exist
 xauth: (stdin):1:  bad display name accueil:0 in add command
 
 Fatal server error:
 Server is already active for display 0
 If this server is no longer running, remove /tmp/.X0-lock
 and start again.
 
 Please consult the The X.Org Foundation support
  at http://wiki.x.org
  for help.
 
 XIO:  fatal IO error 35 (Resource temporarily unavailable) on X
 server :0
   after 7 requests (7 known processed) with 0 events remaining
 
 When start fwvm, it is possible to disable xterm at startup ?
 
 Again, thank you very much for your precious help!
 
 Cheers,
 
 Wesley
 
 !DSPAM:5090d9d1142819426116008!



Re: suggestion for default smtpd.conf file

2012-10-31 Thread bofh
On Wed, Oct 31, 2012 at 5:12 AM, Gilles Chehade gil...@poolp.org wrote:
 On Tue, Oct 30, 2012 at 01:19:53PM -0400, bofh wrote:
 Hi!  Just upgraded my 4.4 box to 5.2!  Wheee! :)

 Found a small issue.  The current lines in smtpd.conf are:

 accept for local alias aliases deliver to mbox
 accept from all for all deliver to mbox

 I just found out that the second line doesn't deliver for aliases if
 the email comes from external sources.  Suggest either changing the
 default smtp.conf to allow aliases or mention it in the man page/faq.

 That's probably a change YOU did to smtpd.conf, the default doesn't
 allow email from external sources:

   accept for local alias aliases deliver to mbox
   accept for all relay

You're right!  How embarrassing.  It was from my last attempt to
upgrade to 5.1.  Didn't read the manpages properly.


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4



Re: Upgrade to 5.2?

2012-10-31 Thread Nick Holland
On 10/31/12 00:13, Daniel Melameth wrote:
 On Tue, Oct 30, 2012 at 8:55 PM, Matt M. cmorrow...@gmail.com wrote:
 Yesterday I upgraded from 5.1-release to -current. Is there any need to
 upgrade to 5.2-release? Could this cause issues since -current is really
 newer than what's on the 5.2 media?
 
 You are now running bleeding edge software/what will evolve and become
 5.3.  Upgrading this machine to 5.2 will actually be a downgrade and
 this is unsupported.
 

exactly.
Please read the start of http://www.openbsd.org/faq/faq5.html

Nick.



Re: Upgrade to 5.2?

2012-10-31 Thread Jamie Paul Griffin
/ Nick Holland wrote on Wed 31.Oct'12 at  7:03:48 -0400 /

 On 10/31/12 00:13, Daniel Melameth wrote:
  On Tue, Oct 30, 2012 at 8:55 PM, Matt M. cmorrow...@gmail.com wrote:
  Yesterday I upgraded from 5.1-release to -current. Is there any need to
  upgrade to 5.2-release? Could this cause issues since -current is really
  newer than what's on the 5.2 media?
  
  You are now running bleeding edge software/what will evolve and become
  5.3.  Upgrading this machine to 5.2 will actually be a downgrade and
  this is unsupported.
  
 
 exactly.
 Please read the start of http://www.openbsd.org/faq/faq5.html
 
 Nick.

Will the 5.2 downloads be available tomorrow? I read 1 Nov is the release date 
for 5.2. I will be doing my first OpenBSD upgrade as i've only been using the 
OS for a few weeks now. Is it best to remove all packages prior to upgrade and 
then reinstall them or should we simply upgrade the packges using pkg_add -i 
once the upgrade has been completed? (Ihave read the documentation on the 
website, but just for clarity I thought i'd ask on list.)

Jamie.



Re: openbsd host halted with unknown acpi event

2012-10-31 Thread Alexander Polakov
* Sergey Bronnikov este...@gmail.com [121031 16:18]:
 Yesterday I have found an unpleasent bug in OpenBSD.
 
 I started two virtual machines in qemu with netbsd and building
 source inside each virtual machine.
 After about 10 min laptop become overheated just below the keyboard,
 Xorg was shutdowned and host halted with following messages on console:
 
 /bsd: acpithinkpad0: unknown event 0x6022
 /bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down
 
 Is described above load critical for openbsd?
 What is an event 0x6022? I didn't find such event in dumped acpi tables.

0x6022 ALARM: a sensor is extremely hot

http://www.mjmwired.net/kernel/Documentation/laptops/thinkpad-acpi.txt

-- 
Alexander Polakov | plhk.ru



Re: openbsd host halted with unknown acpi event

2012-10-31 Thread Rares Aioanei
On Wed, Oct 31, 2012 at 10:28:35AM +0400, Sergey Bronnikov wrote:
 Yesterday I have found an unpleasent bug in OpenBSD.
 
 I started two virtual machines in qemu with netbsd and building
 source inside each virtual machine.
 After about 10 min laptop become overheated just below the keyboard,
 Xorg was shutdowned and host halted with following messages on console:
 
 /bsd: acpithinkpad0: unknown event 0x6022
 /bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down
 
 Is described above load critical for openbsd?
 What is an event 0x6022? I didn't find such event in dumped acpi tables.

That is not a bug, but a feature to defend your hardware from being damaged by 
heat. Try opening your Thinkpad and cleaning it, and your problems will likely 
go away.  
-- 
Rares Aioanei



Re: ttyC5, keyboard doesn't work

2012-10-31 Thread Wesley

Hi,

I'm sorry, but i did all you write.
Now when i turn on my OpenBSD Box, i have a pretty GUI, but when i run 
'Terminal', i get these errors :


++
xauth:  file /home/stac/.serverauth.22692 does not exist
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
XIO:  fatal IO error 35 (Resource temporarily unavailable) on X server 
:0

  after 7 requests (7 known processed) with 0 events remaining.
++

I have a user : stac, member of wheel group

my 'ttyC1' from the file /etc/ttys :
ttyC1   /usr/local/sbin/autologin.getty   vt220   on  secure

$ userinfo stac
login   stac
passwd  *
uid 1001
groups  users wheel
change  NEVER
class
gecos
dir /home/stac
shell   /bin/ksh
expire  NEVER

$ cat /usr/local/sbin/autologin
#!/bin/sh -e
echo running autologin...
exec su -l stac

$ cat /usr/local/sbin/autologin.getty
#!/bin/sh -e
TERM=vt220 /usr/local/sbin/autologin  /dev/$1  /dev/$1

$ cat /etc/rc.conf.local
ntpd_flags= # enabled during install
#xdm_flags=

$ ls -la
total 12384
drwxr-xr-x  4 stac  users  512 Oct 31 17:01 .
drwxr-xr-x  3 root  wheel  512 Oct 11 16:55 ..
-rw---  1 stac  users  163 Oct 31 16:56 .Xauthority
-rw-r--r--  1 stac  users   62 Oct 12 11:56 .Xdefaults
-rw---  1 stac  users   16 Oct 31 11:58 .aucat_cookie
-rw-r--r--  1 stac  users  773 Feb 12  2012 .cshrc
-rw-r--r--  1 stac  users 2146 Oct 31 16:50 .fvwmrc
-rw-r--r--  1 stac  users  398 Feb 12  2012 .login
-rw-r--r--  1 stac  users  113 Feb 12  2012 .mailrc
drwx--  4 stac  users  512 Oct 12 09:56 .mozilla
-rw-r--r--  1 stac  users  240 Oct 31 12:28 .profile
-rw---  1 stac  users   52 Oct 31 16:56 .serverauth.12948
drwx--  2 stac  users  512 Oct 12 12:00 .ssh
-rw-r--r--  1 stac  users  167 Oct 31 16:48 .xinitrc
-rw---  1 stac  users0 Oct 31 11:06 .xsession-errors
-rw---  1 stac  users  6290352 Oct 15 08:55 firefox.core

$ cat .Xdefaults
XTerm*loginShell:true
XTerm*faceName: Mono
Xterm*faceSize: 14

Any idea ?
Therefore, i like a lot what you did with fvwm! It is pretty cool ! ;-)

Cheers,

Wesley

Le 2012-10-31 13:22, MERIGHI Marcus a écrit :

Hello Wesley,

note: ``autologin'' is a regular user in my case. I never saw the
X.org errors you mention.




Re: openbsd host halted with unknown acpi event

2012-10-31 Thread Peter Hessler
On 2012 Oct 31 (Wed) at 18:05:09 +0200 (+0200), Rares Aioanei wrote:
:On Wed, Oct 31, 2012 at 10:28:35AM +0400, Sergey Bronnikov wrote:
: Yesterday I have found an unpleasent bug in OpenBSD.
: 
: I started two virtual machines in qemu with netbsd and building
: source inside each virtual machine.
: After about 10 min laptop become overheated just below the keyboard,
: Xorg was shutdowned and host halted with following messages on console:
: 
: /bsd: acpithinkpad0: unknown event 0x6022
: /bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down
: 
: Is described above load critical for openbsd?
: What is an event 0x6022? I didn't find such event in dumped acpi tables.
:
:That is not a bug, but a feature to defend your hardware from being damaged by 
heat. Try opening your Thinkpad and cleaning it, and your problems will likely 
go away.  


3732K is not the same as 100C.  3732 Kelvin is 3458.85 C, which is hot
enough to melt most things in his laptop.  It *is* a bug.


-- 
Reality is for people who lack imagination.



Re: ttyC5, keyboard doesn't work

2012-10-31 Thread MERIGHI Marcus
Hello Wesley, 

see below...

open...@e-solutions.re (Wesley), 2012.10.31 (Wed) 14:06 (CET):
 I'm sorry, but i did all you write.
 Now when i turn on my OpenBSD Box, i have a pretty GUI, but when i
 run 'Terminal', i get these errors :

 ++
 xauth:  file /home/stac/.serverauth.22692 does not exist
 Fatal server error:
 Server is already active for display 0
 If this server is no longer running, remove /tmp/.X0-lock
 and start again.
 Please consult the The X.Org Foundation support
  at http://wiki.x.org
  for help.
 XIO:  fatal IO error 35 (Resource temporarily unavailable) on X
 server :0
   after 7 requests (7 known processed) with 0 events remaining.
 ++
 
 I have a user : stac, member of wheel group
 
 my 'ttyC1' from the file /etc/ttys :
 ttyC1   /usr/local/sbin/autologin.getty   vt220   on  secure
 
 $ userinfo stac
 login   stac
 passwd  *
 uid 1001
 groups  users wheel
 change  NEVER
 class
 gecos
 dir /home/stac
 shell   /bin/ksh
 expire  NEVER
 
 $ cat /usr/local/sbin/autologin
 #!/bin/sh -e
 echo running autologin...
 exec su -l stac
 
 $ cat /usr/local/sbin/autologin.getty
 #!/bin/sh -e
 TERM=vt220 /usr/local/sbin/autologin  /dev/$1  /dev/$1
 
 $ cat /etc/rc.conf.local
 ntpd_flags= # enabled during install
 #xdm_flags=
 
 $ ls -la
 total 12384
 drwxr-xr-x  4 stac  users  512 Oct 31 17:01 .
 drwxr-xr-x  3 root  wheel  512 Oct 11 16:55 ..
 -rw---  1 stac  users  163 Oct 31 16:56 .Xauthority
 -rw-r--r--  1 stac  users   62 Oct 12 11:56 .Xdefaults
 -rw---  1 stac  users   16 Oct 31 11:58 .aucat_cookie
 -rw-r--r--  1 stac  users  773 Feb 12  2012 .cshrc
 -rw-r--r--  1 stac  users 2146 Oct 31 16:50 .fvwmrc
 -rw-r--r--  1 stac  users  398 Feb 12  2012 .login
 -rw-r--r--  1 stac  users  113 Feb 12  2012 .mailrc
 drwx--  4 stac  users  512 Oct 12 09:56 .mozilla
 -rw-r--r--  1 stac  users  240 Oct 31 12:28 .profile
 -rw---  1 stac  users   52 Oct 31 16:56 .serverauth.12948
 drwx--  2 stac  users  512 Oct 12 12:00 .ssh
 -rw-r--r--  1 stac  users  167 Oct 31 16:48 .xinitrc
 -rw---  1 stac  users0 Oct 31 11:06 .xsession-errors
 -rw---  1 stac  users  6290352 Oct 15 08:55 firefox.core
 
 $ cat .Xdefaults
 XTerm*loginShell:true

I suppose xterm is parsing the .profile and thus starting another
instance of X.org server and giving you these fine errors. 

I would try in .Xdefaults

XTerm*loginShell:false

OR

you could do the following in .profile:
pgrep -f -x /usr/X11R6/bin/X .* || /usr/X11R6/bin/xinit

Bye, Marcus

 Any idea ?
 Therefore, i like a lot what you did with fvwm! It is pretty cool ! ;-)
 
 Cheers,
 
 Wesley
 
 Le 2012-10-31 13:22, MERIGHI Marcus a écrit :
 Hello Wesley,
 
 note: ``autologin'' is a regular user in my case. I never saw the
 X.org errors you mention.
 
 
 !DSPAM:5091228654151846291855!



Re: Upgrade to 5.2?

2012-10-31 Thread Nick Holland

On 10/31/2012 07:17 AM, Jamie Paul Griffin wrote:

/ Nick Holland wrote on Wed 31.Oct'12 at  7:03:48 -0400 /


On 10/31/12 00:13, Daniel Melameth wrote:

On Tue, Oct 30, 2012 at 8:55 PM, Matt M. cmorrow...@gmail.com
wrote:

Yesterday I upgraded from 5.1-release to -current. Is there any
need to upgrade to 5.2-release? Could this cause issues since
-current is really newer than what's on the 5.2 media?


You are now running bleeding edge software/what will evolve and
become 5.3.  Upgrading this machine to 5.2 will actually be a
downgrade and this is unsupported.



exactly. Please read the start of
http://www.openbsd.org/faq/faq5.html

Nick.


Will the 5.2 downloads be available tomorrow? I read 1 Nov is the
release date for 5.2.


and that would be tomorrow, yes.


I will be doing my first OpenBSD upgrade as
i've only been using the OS for a few weeks now. Is it best to remove
all packages prior to upgrade and then reinstall them or should we
simply upgrade the packges using pkg_add -i once the upgrade has been
completed? (Ihave read the documentation on the website, but just for
clarity I thought i'd ask on list.)

Jamie.



http://www.openbsd.org/faq/upgrade51.html
(and tomorrow   http://www.openbsd.org/faq/upgrade52.html )

I believe nowhere suggests unloading all packages before upgrading.  If 
you have found something official and current that suggests this, please 
let me know.


The only reason to totally unbuild your machine and rebuild it would 
be if your prior configuration was non-optimal (which is, admittedly, 
often the case).  In that case, though, you are usually better off 
totally reloading the machine from scratch.


Nick.



Re: openbsd host halted with unknown acpi event

2012-10-31 Thread Matt M.

On 10/31/2012 11:05 AM, Rares Aioanei wrote:

On Wed, Oct 31, 2012 at 10:28:35AM +0400, Sergey Bronnikov wrote:

Yesterday I have found an unpleasent bug in OpenBSD.

I started two virtual machines in qemu with netbsd and building
source inside each virtual machine.
After about 10 min laptop become overheated just below the keyboard,
Xorg was shutdowned and host halted with following messages on console:

/bsd: acpithinkpad0: unknown event 0x6022
/bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down

Is described above load critical for openbsd?
What is an event 0x6022? I didn't find such event in dumped acpi tables.


You said that you felt heat just below the keyboard. As a tech, I know 
that overheating can cause all sorts of random errors and will power off 
your machine. Typically if it is strictly heat related, your pc will not 
come back on for at least a couple of minutes, after it has had time to 
cool off, or will power back on immediately and then power right back off.


Open your laptop if you can, clean dust off the fans and vents, and it 
should help. I would also advise to get a laptop cooler - they are only 
a few dollars and help a lot.




Re: openbsd host halted with unknown acpi event

2012-10-31 Thread Jan Stary
On Oct 31 14:27:41, phess...@theapt.org wrote:
 On 2012 Oct 31 (Wed) at 18:05:09 +0200 (+0200), Rares Aioanei wrote:
 :On Wed, Oct 31, 2012 at 10:28:35AM +0400, Sergey Bronnikov wrote:
 : Yesterday I have found an unpleasent bug in OpenBSD.
 : 
 : I started two virtual machines in qemu with netbsd and building
 : source inside each virtual machine.
 : After about 10 min laptop become overheated just below the keyboard,
 : Xorg was shutdowned and host halted with following messages on console:
 : 
 : /bsd: acpithinkpad0: unknown event 0x6022
 : /bsd: acpitz1: critical temperature exceeded 100C (3732K), shutting down
 : 
 : Is described above load critical for openbsd?
 : What is an event 0x6022? I didn't find such event in dumped acpi tables.
 :
 :That is not a bug, but a feature to defend your hardware from being damaged 
 by heat. Try opening your Thinkpad and cleaning it, and your problems will 
 likely go away.  
 
 
 3732K is not the same as 100C.  3732 Kelvin is 3458.85 C, which is hot

I believe I was at least once confused about the same thing,
and was told on this list that the number really means
(in your case) 373.2K - which is about 100C.



Re: Upgrade to 5.2?

2012-10-31 Thread Stuart Henderson
On 2012-10-31, Jamie Paul Griffin ja...@kode5.net wrote:
  Is it best to
 remove all packages prior to upgrade and then reinstall them or
 should we simply upgrade the packges using pkg_add -i once the
 upgrade has been completed?

pkg_add -u - package upgrades have been pretty reliable for years now.



Re: Carp doubt

2012-10-31 Thread R0me0 ***
I tried this: ifconfig -g carp carpdemote 50 , and all carps are moved to
another node
:) that is

sorry


2012/10/31 R0me0 *** knight@gmail.com

 Hello misc,
 I' ve a simple setup to test carp

 my setup is follow:

 - Frw A

 # cat /etc/hostname.carp0
 inet 192.168.28.128 255.255.255.0 192.168.28.255 vhid 1 carpdev vic0 pass
 secret

 # cat /etc/hostname.vic0
 up

 # cat /etc/hostname.carp1
 inet 192.168.12.130 255.255.255.0 192.168.12.255 vhid 2 carpdev vic1 pass
 othersecret

 # cat /etc/hostname.vic1
 up

 # cat /etc/hostname.pfsync0


 up syncdev vlan13

 # cat /etc/hostname.vlan13


 inet 10.20.30.1 255.255.255.252 10.20.30.255 vlan 13 vlandev vic1

 - Frw B

 # cat /etc/hostname.carp0


 inet 192.168.28.128 255.255.255.0 192.168.28.255 vhid 1 carpdev vic0 pass
 secret advskew 100

 # cat /etc/hostname.vic0
 up

 # cat /etc/hostname.carp1
 inet 192.168.12.130 255.255.255.0 192.168.12.255 vhid 2 carpdev vic1 pass
 othersecret advskew 100

 # cat /etc/hostname.vic1
 up

 # cat /etc/hostname.pfsync0


 up syncdev vlan13

 # cat /etc/hostname.vlan13


 inet 10.20.30.2 255.255.255.252 10.20.30.255 vlan 13 vlandev vic1

 net.inet.carp.preempt=1 on both nodes


 pf.conf ( equal on both frw's )

 # cat /etc/pf.conf


 ext_if = vic0


 int_if = vic1


 pfsync_if = vlan13





 set skip on lo





 match out on $ext_if from 192.168.12.0/24 nat-to (carp0)





 # Carp and Pfsync


 pass log quick  on $pfsync_if proto pfsync keep state (no-sync)


 pass in log quick on {vic0 vic1} proto carp keep state (no-sync)





 block log all

 pass in log (to pflog1) quick on { vic0 vic1 } inet proto tcp to port 22
 keep state (no-sync)
 pass in quick on $int_if from 192.168.12.0/24
 pass out


 Tests:

 ifconfig carp0 down or ifconfig advskew100
 on MASTER node

 Only carp0 is transfered to another node

 But if executed ifconfig vic0 down

 All carp nodes ( carp0 and carp1 ) are transferred to another node as
 expected

 I tried this setup on real machines and the results are the same.

 My doubt,
 To do maintenance on master node, i will need execute : ifconfig advskew
 128  on both carp interfaces ?
 Which the better pratice to move all carp groups to another node ?

 I will appreciate the sugestions of misc

 Regards,



Re: Carp doubt

2012-10-31 Thread R0me0 ***
My doubt persists,
from FAQ

To failover a particular CARP group, shut down the carp(4) interface on
the master node ..

I think that if execute ifconfig carp0 down, all carps would be moved ,
because default carp group is carp



2012/10/31 R0me0 *** knight@gmail.com

 I tried this: ifconfig -g carp carpdemote 50 , and all carps are moved to
 another node
 :) that is

 sorry


 2012/10/31 R0me0 *** knight@gmail.com

 Hello misc,
 I' ve a simple setup to test carp

 my setup is follow:

 - Frw A

 # cat /etc/hostname.carp0
 inet 192.168.28.128 255.255.255.0 192.168.28.255 vhid 1 carpdev vic0 pass
 secret

 # cat /etc/hostname.vic0
 up

 # cat /etc/hostname.carp1
 inet 192.168.12.130 255.255.255.0 192.168.12.255 vhid 2 carpdev vic1 pass
 othersecret

 # cat /etc/hostname.vic1
 up

 # cat /etc/hostname.pfsync0


 up syncdev vlan13

 # cat /etc/hostname.vlan13


 inet 10.20.30.1 255.255.255.252 10.20.30.255 vlan 13 vlandev vic1

 - Frw B

 # cat /etc/hostname.carp0


 inet 192.168.28.128 255.255.255.0 192.168.28.255 vhid 1 carpdev vic0 pass
 secret advskew 100

 # cat /etc/hostname.vic0
 up

 # cat /etc/hostname.carp1
 inet 192.168.12.130 255.255.255.0 192.168.12.255 vhid 2 carpdev vic1 pass
 othersecret advskew 100

 # cat /etc/hostname.vic1
 up

 # cat /etc/hostname.pfsync0


 up syncdev vlan13

 # cat /etc/hostname.vlan13


 inet 10.20.30.2 255.255.255.252 10.20.30.255 vlan 13 vlandev vic1

 net.inet.carp.preempt=1 on both nodes


 pf.conf ( equal on both frw's )

 # cat /etc/pf.conf


 ext_if = vic0


 int_if = vic1


 pfsync_if = vlan13





 set skip on lo





 match out on $ext_if from 192.168.12.0/24 nat-to (carp0)





 # Carp and Pfsync


 pass log quick  on $pfsync_if proto pfsync keep state (no-sync)


 pass in log quick on {vic0 vic1} proto carp keep state (no-sync)





 block log all

 pass in log (to pflog1) quick on { vic0 vic1 } inet proto tcp to port 22
 keep state (no-sync)
 pass in quick on $int_if from 192.168.12.0/24
 pass out


 Tests:

 ifconfig carp0 down or ifconfig advskew100
 on MASTER node

 Only carp0 is transfered to another node

 But if executed ifconfig vic0 down

 All carp nodes ( carp0 and carp1 ) are transferred to another node as
 expected

 I tried this setup on real machines and the results are the same.

 My doubt,
 To do maintenance on master node, i will need execute : ifconfig advskew
 128  on both carp interfaces ?
 Which the better pratice to move all carp groups to another node ?

 I will appreciate the sugestions of misc

 Regards,



Re: Upgrade to 5.2?

2012-10-31 Thread Jamie Paul Griffin
/ Stuart Henderson wrote on Wed 31.Oct'12 at 15:56:31 + /

 On 2012-10-31, Jamie Paul Griffin ja...@kode5.net wrote:
   Is it best to
  remove all packages prior to upgrade and then reinstall them or
  should we simply upgrade the packges using pkg_add -i once the
  upgrade has been completed?
 
 pkg_add -u - package upgrades have been pretty reliable for years now.

yeah i meant the -u switch, that was a typo (sorry). I've just read the upgrade 
document and as I don't have that many packages installed I think i'll just 
back-up some config files and install from scratch. Probably the easiest and 
quickest method in my case. cheers, Jamie



pppoe(4) slow for Annex M DSL connection

2012-10-31 Thread Kaya Saman

Hi,

I've just got my dsl line reprovisioned for Annex M compatibility and 
the line speed showing currently on the modem is 20Mbps downstream with 
2Mbps upstream.


Upon the reprovisioning I got ask to do a speed test by my ISP and only 
~5Mbps was shown for downstream while upstream was shown as ~700kbps.



The system in place is VDSL2+/ADSL2+(Annex M) router running in RFC2684 
ATM to Ethernet bridge mode, linked to a Sun Microsystems Netra T105 - 
440MHz, 360MB RAM box. With the Netra I have tested various routing 
capacities including inter-vlan and dynamic running OSPF and it managed 
between 80-90Mbps transfer rates for large files.


I'm using pppoe(4) with config pretty much taken from the man page:

inet 0.0.0.0 255.255.255.255 NONE mtu 1492 \
pppoedev hme0 authproto chap \
authname authuser authkey authkey \
up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

running over the hme0 interface:

up mtu 1500


Everything is working fine and I have internet connectivity.

Packet Filter is of course taking care of the NAT/PAT side of things and 
the firewalling.


Doing a bit of research on the net I came across a few postings:

http://forums.whirlpool.net.au/archive/481579

http://forums.whirlpool.net.au/forum-replies.cfm?t=116165

http://comments.gmane.org/gmane.os.openbsd.misc/196051


which suggested to edit the /etc/sysctl.conf file with some values that 
aren't available in OBSD5.1 as they are now allocated dynamically.


This is what I've got towards the bottom of my sysctl.conf file:

net.inet.tcp.mssdflt=1452
#net.inet.tcp.recvspace=131072
#net.inet.tcp.sendspace=131072
net.inet.udp.recvspace=139264
net.inet.udp.sendspace=139264
net.inet.ip.mforwarding=1
ddb.panic=0
kern.bufcachepercent=60
net.inet.ip.ifq.maxlen=512
net.inet.tcp.rfc3390=1

I have also made the necessary adjustments to the pf.conf file:

match on $ext_if scrub (max-mss 1440)

however, my speeds are still really low :-(


The router/modem I'm using is a Cisco 887VA which should be pretty 
high-performance but I don't trust Cisco's with NAT as they keep running 
out of memory on me when the number of connections starts going up; then 
they crash!



Is there anything else I can do to get better performance or this simply 
it for the Netra?


I've tried checking with all kinds of tools like nload and darkstat for 
bandwidth which confirms what the speed-test site claimed.


Running netstat -m I get:

# netstat -m
111 mbufs in use:
20 mbufs allocated to data
62 mbufs allocated to packet headers
29 mbufs allocated to socket names and addresses
19/88/4096 mbuf 2048 byte clusters in use (current/peak/max)
0/8/4096 mbuf 4096 byte clusters in use (current/peak/max)
0/8/4096 mbuf 8192 byte clusters in use (current/peak/max)
0/14/4102 mbuf 9216 byte clusters in use (current/peak/max)
0/8/4096 mbuf 12288 byte clusters in use (current/peak/max)
0/8/4096 mbuf 16384 byte clusters in use (current/peak/max)
0/8/4096 mbuf 65536 byte clusters in use (current/peak/max)
536 Kbytes allocated to network (12% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


vmstat -i shows:

# vmstat -i
interrupt   total rate
com0 49881
hme082113   19
siop090262
hme186683   21
clock  412347   99
Total  595157  144


Netstat -i doesn't come up with any errors on any interfaces 
either... and finally top doesn't show much cpu usage at all either.



Surely the Netra must be able to do more then 4.5Mbps down with 0.7Mbps 
up??? What about my LAN routing test which got 80-90Mbps?



Can anyone suggest anything?


Thanks.



pf and torrenting

2012-10-31 Thread Matt M.
I am trying to get torrenting to work but I can't seem to get any 
packets to go through. Tcpdump shows attempted activity and nothing 
blocked,but the torrent client itself doesn't seem to be receiving 
anything from any torrent I have tried.

The torrent client is using port 58846

From the pf.conf:
---

ext_if=rl0




pass in on $ext_if proto tcp from any to any port 58846 rdr-to 
192.168.1.101 port 58846




termios/VTIME issue with FTDI converter?

2012-10-31 Thread Colin Bourassa
Is there a known problem with the termios VTIME parameter? I'm using an 
FTDI serial converter through its /dev/cuaU0 device, and I can open it 
and configure it with termios just fine, with the following parameters:


c_cflag = (CREAD | CS8 | CLOCAL)
c_lflag = 0
c_cc[VTIME] = 5
 c_cc[VMIN] = 0
   c_ispeed = 7812
   c_ospeed = 7812

If the remote serial device is turned on, communication is fine and 
read() works as expected. However, if the remote device is turned off, 
the call to read() never times out as it should. It blocks indefinitely.


This is apparently an OpenBSD-specific problem. Running on FreeBSD, the 
same code works correctly (with the proper VTIME timeout behavior.)

Any ideas about what could be wrong?

--Colin



Seu cadastro foi suspenso.

2012-10-31 Thread Bianca M. Pago
[IMAGE]

misc@openbsd.org ,

Notificamos que voce possui uma divida de R$14.45 no MercadoLivre,
referente a tarifas nao pagas, por isso seu cadastro esta sendo
congelado.

Acesse nosso formulario de contato para evitar possiveis sancoes em
decorrencia do atraso.

Contatar Comunicação com Usuarios

  *  Voce deve acessar nosso formulario de contato, evite o bloqueio do
seu Mercado Pago

Contacto Garantido S.A.

[IMAGE]

Se voce possui duvidas, responda este e-mail. Contato.

31/10/2012 21:40:06 -0200

25519

25519



misc@openbsd.org , Sua Oportunidade

2012-10-31 Thread comercial
Prezado(a) misc@openbsd.org , voce foi convidado , para participar da
Promocao So a Cielo te leva para A copa.

[IMAGE]

Vanusa - (Campanha Publicitaria)

1313913139

[IMAGE]

Caso nao esteja vendo as imagens desse e-mail, clique aqui



Re: Upgrade to 5.2?

2012-10-31 Thread Tyler Morgan

On 10/31/2012 9:48 AM, Jamie Paul Griffin wrote:

/ Stuart Henderson wrote on Wed 31.Oct'12 at 15:56:31 + /


On 2012-10-31, Jamie Paul Griffin ja...@kode5.net wrote:

  Is it best to
remove all packages prior to upgrade and then reinstall them or
should we simply upgrade the packges using pkg_add -i once the
upgrade has been completed?

pkg_add -u - package upgrades have been pretty reliable for years now.

yeah i meant the -u switch, that was a typo (sorry). I've just read the upgrade 
document and as I don't have that many packages installed I think i'll just 
back-up some config files and install from scratch. Probably the easiest and 
quickest method in my case. cheers, Jamie



Don't do it! Seriously, the upgrade process is easy, and is worth 
becoming familiar with. At least give it a shot since you're planning on 
reinstalling anyway. I think you'll be pleasantly surprised!


For a long time I did fresh installs too since my average OpenBSD box is 
a router with ~15 files changed from default and little to no packages 
so it was trivial to recreate, and even then I should have been 
upgrading in hindsight.




Grandes Oportunidades en CompraNet 5.0, Sea un Experto 655165

2012-10-31 Thread Ing. Sofia Arango
655165

[IMAGE]
Taller de Subastas Electrónicas y Manejo de Plataforma CompraNet 5.0
29 de Noviembre, Cd. de México.
Un taller totalmente práctico y especializado guiado por un experto,
desde los procedimientos más básicos de CompraNet 5.0 hasta los más
avanzados

Usted Aprenderá:
- Alta y registro en CompraNet 5.0.
- La Seguridad de las Propuestas electrónicas.
- Qué es la FIEL, requisito indispensable y cómo obtenerla.
- Cómo filtrar licitaciones y contratos usando diferentes parámetros
Optimice sus procesos y ahorre dinero con esta práctica herramienta!

$3,160 + I.V.A. precio preferencial.
¡Reciba la información completa, Inscríbase y Capacítese!
Por favor responda este e-mail con los datos siguientes.
Empresa, Nombre, Teléfono, Email, Número de Interesados
Si lo prefiere comuníquese a los teléfonos donde con gusto uno de
nuestros ejecutivos le atenderá.

Teléfonos: (0133) 8851-2365, (0133) 8851-2741 con más de 10 líneas.
Pms Capacitación Efectiva de México es una empresa Registrada ante la
STPS
Trabajamos con expertos en la materia para poder brindar herramientas
tácticas, vanguardistas y de fácil aplicación.
Síguenos en Twitter@pmscapacitacion o bien en Facebook PMS de México

Tip del día! Planea: Evita los problemas de “vivir al momento” y crear
estrategias de último momento. Planea tus objetivos, elige un rumbo y
mantente. Anticipa posibles causales de emergencia y diseña planes de
contingencia previos que permitan conocer rutas a seguir. Esto ayudará a
crear metas en su compañía, compartirlas con su equipo y anticipar
obstáculos.

Copyright (C) 2011, PMS Capacitación Efectiva de México S.C. Derechos
Reservados.
E-Mail MARKETING SERVICE POWERED BY MEDIAMKTOOLS.

Este Mensaje ha sido enviado a misc@openbsd.org como usuario de Pms de
México o bien un usuario le refirió para recibir este boletín.
Como usuario de Pms de México, en este acto autoriza de manera expresa
que Pms de México le puede contactar vía correo electrónico u otros
medios.
ALTO, si en esta ocasión la información recibida no fue de su interés
pero desea recibir información personalizada en relación a otros temas
favor de indicarlo.
Si usted ha recibido este mensaje por error, haga caso omiso de el y de
antemano una sincera disculpa por la molestia, reporte su cuenta
respondiendo este correo con el subject BAJACOMPRANET
Unsubscribe to this mailing list, reply a blank message with the subject
UNSUBSCRIBE BAJACOMPRANET
Tenga en cuenta que la gestión de nuestras bases de datos es de suma
importancia para nosotros y no es intención de la empresa la
inconformidad del receptor, nuestra intención es promover herramientas de
utilidad para el

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