Share your tmux tricks
This is my ~/bin/bootstrap-tmux script. Maybe it can inspire you to share some of your tmux config snippets or tricks? I'd also be interested if you have suggestions for improvements to my script. #!/bin/sh # # Bootstraps tmux to 80%; saves a bit of typing and thinking right after # reboots when I just want to get back to work. set -e # If I specify ~/work it messes up the tmux config, so cd to home first cd $HOME WORKDIR="projects/* business/. work wrk 3rdparty/*" # Build tmux sessions and windows based on the my project directories. These # almost always reflect what I am working on anyway. for wpath in $WORKDIR; do if [ -d $wpath ]; then session_name=$(dirname $wpath | sed 's/\./_/g') wname=$(basename $wpath) if $(tmux has-session -t $session_name); then tmux new-window -d -t $session_name -c $wpath -n $wname else tmux new-session -P -d -s $session_name -c $wpath -n $wname fi # Populate the session with windows, etc per project if [ -f $wpath/.tmux.conf.local ]; then tmux source-file $wpath/.tmux.conf.local fi fi done if [ -d ~/Business/Mail -o -d ~/Personal/Mail ]; then tmux new-session -P -d -s email -n neomutt neomutt fi WORKDIR="/usr/src /usr/ports /usr/ports/mystuff /usr/xenocara" for wpath in $WORKDIR; do # Are there signs of a usable OpenBSD src checkout? if [ -w $wpath/Makefile ]; then wname=$(basename $wpath) if $(tmux has-session -t openbsd); then tmux new-window -P -d -t openbsd -c $wpath -n $wname else tmux new-session -P -d -s openbsd -c $wpath -n $wname fi # Populate the session with windows, etc per project if [ -f $wpath/.tmux.conf.local ]; then tmux source-file $wpath/.tmux.conf.local fi fi done
pkg_add -u skipping mutt and python
I'd appreciate any input on how several of my systems could have ended up with this pkg_add behaviour of not properly updating packages: # uname -a OpenBSD lamb.my.domain 6.2 GENERIC#132 amd64 # cat /etc/installurl http://fastly.cdn.openbsd.org/pub/OpenBSD # pkg_info | wc -l 114 # time pkg_add -u quirks-2.367 signed on 2017-10-03T11:21:28Z 0m09.10s real 0m03.62s user 0m04.43s system (http really is much faster than https in this case.) So, no packages to update. However: $ mutt mutt:/usr/lib/libc.so.90.0: /usr/lib/libc.so.88.0 : WARNING: symbol(sys_errlist) size mismatch, relink your program # ldd $(which mutt) /usr/local/bin/mutt: StartEnd Type Open Ref GrpRef Name 125953f0 1259543e1000 exe 10 0 /usr/local/bin/mutt 125bb1d9a000 125bb214d000 rlib 01 0 /usr/local/lib/libslang.so.16.0 125c52cd7000 125c530ff000 rlib 01 0 /usr/lib/libm.so.9.0 125c3cafd000 125c3cf57000 rlib 01 0 /usr/lib/libssl.so.39.0 125bbda53000 125bbe022000 rlib 02 0 /usr/lib/libcrypto.so.38.0 125be39d9000 125be3bf1000 rlib 02 0 /usr/lib/libz.so.5.0 125b58e5b000 125b59078000 rlib 01 0 /usr/local/lib/libsasl2.so.3.0 125b6d2f4000 125b6d534000 rlib 01 0 /usr/local/lib/libqdbm.so.14.14 125bc1f1f000 125bc2154000 rlib 01 0 /usr/local/lib/libidn.so.17.2 125bd18ff000 125bd1b0a000 rlib 02 0 /usr/local/lib/libintl.so.6.0 125c41b1c000 125c41e19000 rlib 04 0 /usr/local/lib/libiconv.so.6.0 125c244dc000 125c24732000 rlib 01 0 /usr/lib/libtermlib.so.14.0 125b6d67f000 125b6db49000 rlib 01 0 /usr/lib/libc.so.88.0 125b981e4000 125b984c3000 rlib 01 0 /usr/lib/libc.so.90.0 125bc580 125bc580 rtld 01 0 /usr/libexec/ld.so mutt is linked against two libc. To make matters worse, I am running mutt 1.6.2 from 6.0, not 1.9.x from OpenBSD 6.2. # mutt -h | head -n1 mutt:/usr/lib/libc.so.90.0: /usr/lib/libc.so.88.0 : WARNING: symbol(sys_errlist) size mismatch, relink your program Mutt 1.6.2 (2016-07-01) # pkg_info -Q mutt mutt-1.9.1v3 mutt-1.9.1v3-gpgme mutt-1.9.1v3-gpgme-sasl mutt-1.9.1v3-sasl mutt-1.9.1v3-sasl-slang mutter-3.24.4p1 muttprint-0.73 neomutt-20170912 neomutt-20170912-gpgme neomutt-20170912-gpgme-sasl neomutt-20170912-sasl # pkg_info -v mutt | grep '@url' @url http://ftp.hostserver.de/pub/OpenBSD/6.0/packages/amd64/mutt-1.6.2v0-compressed-sasl-sidebar-slang.tgz # pkg_info -v python-3.4.5p2 | grep '@url' @url https://ftp.hostserver.de/pub/OpenBSD/6.1/packages/amd64/python-3.4.5p2.tgz sysclean -p pointed out outdated mutt and python. All other packages were updated correctly. # pkg_add -vu Update candidates: quirks-2.367 -> quirks-2.367 quirks-2.367 signed on 2017-10-03T11:21:28Z Update candidates: adwaita-icon-theme-3.24.0 -> adwaita-icon-theme-3.24.0 Update candidates: at-spi2-atk-2.24.1 -> at-spi2-atk-2.24.1 Update candidates: at-spi2-core-2.24.1 -> at-spi2-core-2.24.1 [..] Skipping mutt-1.9.1v3-gpgme-sasl (update candidate for mutt-1.6.2v0-compressed-sasl-sidebar-slang) mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: mail/mutt,sasl,sidebar,slang,compressed mail/mutt/,slang,compressed,sidebar,sasl mail/mutt/snapshot,sasl,sidebar,compressed,slang mail/mutt/stable,sasl,slang,compressed,sidebar mutt-1.9.1v3-gpgme-sasl pkgpaths: mail/mutt/stable,sasl,gpgme mail/mutt/snapshot,sasl,gpgme mail/mutt,sasl,gpgme mail/mutt/,sasl,gpgme Skipping mutt-1.9.1v3-sasl (update candidate for mutt-1.6.2v0-compressed-sasl-sidebar-slang) mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: mail/mutt,sasl,sidebar,slang,compressed mail/mutt/,slang,compressed,sidebar,sasl mail/mutt/snapshot,sasl,sidebar,compressed,slang mail/mutt/stable,sasl,slang,compressed,sidebar mutt-1.9.1v3-sasl pkgpaths: mail/mutt/,sasl mail/mutt,sasl mail/mutt/stable,sasl mail/mutt/snapshot,sasl Skipping mutt-1.9.1v3-gpgme (update candidate for mutt-1.6.2v0-compressed-sasl-sidebar-slang) mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: mail/mutt,sasl,sidebar,slang,compressed mail/mutt/,slang,compressed,sidebar,sasl mail/mutt/snapshot,sasl,sidebar,compressed,slang mail/mutt/stable,sasl,slang,compressed,sidebar mutt-1.9.1v3-gpgme pkgpaths: mail/mutt,gpgme mail/mutt/,gpgme mail/mutt/snapshot,gpgme mail/mutt/stable,gpgme Skipping
Unable to start some services (i386 snapshot)
Is this just my system or is there fallout from the recent changes around how rc.conf.local is invoked? $ head -n2 /var/run/dmesg.boot OpenBSD 5.6 (GENERIC.MP) #297: Thu Aug 7 11:29:08 MDT 2014 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP $ grep _flags /etc/rc.conf.local ntpd_flags=-s sshd_flags= hotplugd_flags= $ sudo /etc/rc.d/hotplugd start /etc/rc.d/hotplugd: need -f to force start since hotplugd_flags=NO $ sudo /etc/rc.d/ntpd start /etc/rc.d/ntpd: need -f to force start since ntpd_flags=NO (sshd starts just fine.)
text-mode console, wscons ignoring keyboard repeat
On the i386 snapshots dated Oct 9 and Oct 23, I am unable to make the text-mode console (no fancy inteldrm here) repeat keyboard input any faster than the default. $ wsconsctl keyboard keyboard.type=pc-xt keyboard.bell.pitch=400 keyboard.bell.period=100 keyboard.bell.volume=0 keyboard.bell.pitch.default=400 keyboard.bell.period.default=100 keyboard.bell.volume.default=50 wsconsctl: Use explicit arg to view keyboard.map. keyboard.repeat.del1=150 keyboard.repeat.deln=35 keyboard.repeat.del1.default=150 keyboard.repeat.deln.default=35 keyboard.ledstate=0 keyboard.encoding=dk $ wsconsctl keyboard.repeat.del1=1 keyboard.repeat.del1 - 1 $ wsconsctl keyboard.repeat.deln=1 keyboard.repeat.deln - 1 $ echo I can still type just fine. I can still type just fine. Changing the del1 and deln fields to 1 or 1000 makes no difference. I would expect typingto be impossible when set to 1ms. Any clues as to how I troubleshoot this one? One other i386 user on IRC reported that wscons keyboard repeat works fine with inteldrm both enabled or disabled. OpenBSD 5.4-current (GENERIC.MP) #87: Wed Oct 23 17:30:59 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz 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,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF real mem = 1063481344 (1014MB) avail mem = 1034313728 (986MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 03/18/09, BIOS32 rev. 0 @ 0xfdc70, SMBIOS rev. 2.5 @ 0x3f6bf000 (39 entries) bios0: vendor Phoenix Technologies LTD version NAPA0001.86C..D.0903181438 date 03/18/2009 bios0: CompuLab SBC-FITPC2 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP HPET MCFG TCPA TMOR APIC BOOT SSDT acpi0: wakeup devices PXS1(S3) PXS2(S3) USB1(S3) USB2(S3) USB3(S3) EHC1(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C3, C2, C1, PSS acpicpu1 at acpi0: C3, C3, C2, C1, PSS acpipwrres0 at acpi0: FN00 acpitz0 at acpi0acpitz0: TZ00: failed to read _TMP acpitz1 at acpi0acpitz1: TZ01: failed to read _TMP acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model CRB Battery 0 serial Battery 0 type Fake oem -Virtual Battery 0- acpibat1 at acpi0: BAT1 not present acpibat2 at acpi0: BAT2 not present acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpivideo0 at acpi0: GFX0 bios0: ROM list: 0xc/0xe600! 0xe/0x1800! cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1067, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel US15W Host rev 0x07 vga1 at pci0 dev 2 function 0 Intel US15W Video rev 0x07 intagp at vga1 not configured wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 28 function 0 Intel SCH PCIE rev 0x07: apic 2 int 17 pci1 at ppb0 bus 2 re0 at pci1 dev 0 function 0 Realtek 8168 rev 0x02: RTL8168C/8111C (0x3c00), apic 2 int 16, address 00:01:c0:05:9b:0f rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 uhci0 at pci0 dev 29 function 0 Intel SCH USB rev 0x07: apic 2 int 23 uhci1 at pci0 dev 29 function 1 Intel SCH USB rev 0x07: apic 2 int 19 uhci2 at pci0 dev 29 function 2 Intel SCH USB rev 0x07: apic 2 int 18 ehci0 at pci0 dev 29 function 7 Intel SCH USB rev 0x07: apic 2 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 sdhc0 at pci0 dev 30 function 0 Intel SCH SD/MMC rev 0x07: apic 2 int 22 sdmmc0 at sdhc0 sdhc1 at pci0 dev 30 function 1 Intel SCH SD/MMC rev 0x07: apic 2 int 20 sdmmc1 at sdhc1 pcib0 at pci0 dev 31 function 0 Intel SCH LPC rev 0x07 pciide0 at pci0 dev 31 function 1 Intel SCH IDE rev 0x07: DMA, channel 0 wired to compatibility wd0 at pciide0 channel 0 drive 0: Samsung SSD 840 Series wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 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 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0
Re: Interrupts cause uaudio stuttering with mpd
Quoting Alexandre Ratchov (a...@caoua.org): Is this the graphic-mode console or bare 80x25 text-mode console? This is bare 80x25 text-mode console. Yes, yes. I know. I'm a freak. aucat -i foo.wav has the same stuttering when the console is used and the same random stuttering when i/o occurs. Is there a particular thing I can try now? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Interrupts cause uaudio stuttering with mpd
Quoting Alexandre Ratchov (a...@caoua.org): do you know what causes these interrupts? is this the uaudio device? (ex try systat -s1 vmstat) It's never the uaudio device, in fact it's not even one of the devices listed in that view. I have uhci2 which hovers around 62. re0 hovers around 300 but briefly spikes during heavy network usage. ipi hovers around 4-600, then spikes to 15000. ipi seems to be an MP thing; it's not present in GENERIC. Is the stuttering likely related to my hardware, is it a known problem or is there something else I can try? - switch into using the GENERIC kernel and see if stuttering is affected - use trivial tools to play audio (eg. aucat -i foo.wav) during the tests. - does the -mplay option affect stuttering? if so the cause may be the uaudio driver. Adding -mplay to sndiod_flags and restarting sndiod didn't help. Then I rebooted into GENERIC and there seemed to be longer between stuttering (suggesting it didn't get triggered quite as easily). I wasn't kidding when I said this is my desktop system but I don't run X because this chipset is shit. I am in console most of the time. I discovered *any* output to console, even if I haven't switched to that tty could cause a small glitch in the audio. It's sporadic but more output is definately worse. Scrolling quickly through man pages is annoying and running 'make clean' made the audio unbearable. Logging out of the console and ssh'ing from another system has made the stuttering much more infrequent (once every 20-30mins instead of every 2 minutes) and it doesn't seem related to scrolling in man nor to what make is up to. Does that make any sense at all? I'll look into playing wav files with aucat and let you know. -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Interrupts cause uaudio stuttering with mpd
I'm looking for input on solving a long-standing issue with uaudio playback on my desktop system. (http://mongers.org/openbsd/dmesg.fit) When playing local FLAC files or streaming ogg/mp3 through mpd (or cvlc), I experience stuttering when system interrupts spike above 15% -- the most reliable way I can reproduce this is by forcing a bit of disk i/o. Back in April I tried Alexandre's patch related to audio/midi interrupts on mp kernels. I also tried sndiod -r44100 -z2940 but neither made any difference. Is the stuttering likely related to my hardware, is it a known problem or is there something else I can try? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
pkg_add specific packages in arbitrary versions?
I have dozens of packages I install on fresh systems, so I was looking for a way of easily installing an arbitrary version of a specific package, as in: I don't care which version gets installed, but I know the name of the application and which flavor I want. My network link is slow enough that waiting for and responding to -i questions isn't very amusing. Reading pkg_add(1) and blindly trying the following didn't help. sudo pkg_add vim*no_x11 Any suggestions on how I can do this? Is some fugly wrapper around pkg_add -Q my best bet? egrep'ing my way through index.txt? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
X in 4.4-beta is sluggish on X40
As of 4.4-beta (dmesg below), X has become sluggish on my Thinkpad X40. Switching between tabs in Firefox takes about 2 seconds now. Starting a new xterm takes about a second which before was instant. Switching between desktops in cwm results in a one second delay between drawing the outline of xterms and actually populating with text. Playing audio files with vlc while switching between firefox tabs causes no pauses in the audio stream. xorg.conf hasn't changed since april 13 and I've upgraded to various snapshots weekly times since then. Running top shows that Xorg uses about 10% cpu and firefox around 20%. I don't recall either going that high before. Running X and firefox for a few minutes causes the fan in my X40 to start spinning faster: There's more work being done somewhere. I can reproduce this scenario with no .xsession and with an .xsession that starts cwm. .xsession-errors only contains text related to ssh key agent. Any suggestions on how to troubleshoot this situation? (Short of going back in time and building incremental changes from CVS). OpenBSD 4.4-beta (GENERIC) #968: Thu Jul 3 19:29:46 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1200MHz (GenuineIntel 686-class) 1.20 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2 real mem = 1600548864 (1526MB) avail mem = 1538400256 (1467MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/21/06, BIOS32 rev. 0 @ 0xfd740, SMBIOS rev. 2.33 @ 0xe0010 (56 entries) bios0: vendor IBM version 1UETD3WW (2.08 ) date 12/21/2006 bios0: IBM 23728EG apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 100% apm0: AC on, battery charge high acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xfd6d0/0x930 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/256 (14 entries) pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc/0xc800! 0xcc800/0x1000 0xcd800/0x1000 0xdc000/0x4000! 0xe/0x1 cpu0 at mainbus0 cpu0: Enhanced SpeedStep 1200 MHz (1180 mV): speeds: 1200, 1100, 1000, 900, 800, 600 MHz pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82855GM Host rev 0x02 Intel 82855GM Memory rev 0x02 at pci0 dev 0 function 1 not configured Intel 82855GM Config rev 0x02 at pci0 dev 0 function 3 not configured vga1 at pci0 dev 2 function 0 Intel 82855GM Video rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp0 at vga1: aperture at 0xe000, size 0x800 Intel 82855GM Video rev 0x02 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11 uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11 uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11 ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81 pci1 at ppb0 bus 2 cbb0 at pci1 dev 0 function 0 Ricoh 5C476 CardBus rev 0x8d: irq 11 sdhc0 at pci1 dev 0 function 1 Ricoh 5C822 SD/MMC rev 0x13: irq 11 sdmmc0 at sdhc0 em0 at pci1 dev 1 function 0 Intel PRO/1000MT Mobile (82541GI) rev 0x00: irq 11, address 00:0a:e4:2f:1e:ea ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11 ath0: AR5213 5.9 phy 4.3 rf2112a 4.6, WOR0W, address 00:0e:9b:98:f6:55 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer at 3579545Hz pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: HITACHI_DK13FA-40B wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets, initiator 7 cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA755yDVD/CDRW, 1.70 ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11 iic0 at ichiic0 spdmem0 at iic0 addr 0x51: 1GB DDR SDRAM non-parity PC2700CL2.5 auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 AC97 ac97: codec id 0x41445374 (Analog Devices AD1981B) ac97: codec features headphone, 20 bit DAC, No 3D Stereo audio0 at auich0 Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured 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 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision
spamd: bogus size db entry - bad db file?
This started happening a few hours ago. I can't find any mention of this in the misc archives: miracle$ uname -a OpenBSD miracle.mongers.org 4.1 GENERIC#5 i386 miracle$ sudo spamdb [..] TRAPPED|41.250.33.4|1189090086 TRAPPED|200.86.23.234|1189090802 SPAMTRAP|[EMAIL PROTECTED] WHITE|194.150.112.222|||1178785311|1178788495|1192114906|4|22 spamdb: bogus size db entry - bad db file? The db file is available for anyone who needs it to find the cause. Currently the spamd-white pf table contains 1302 entries which my mrtg graphs shows to be the number of entries before the db killed itself. If I wipe the db will spamd purge the spamd-white table? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Ted Unangst ([EMAIL PROTECTED]): On 5/14/07, Alex Holst [EMAIL PROTECTED] wrote: Quoting Ted Unangst ([EMAIL PROTECTED]): On 5/13/07, Alex Holst [EMAIL PROTECTED] wrote: I set VertRefresh to 60-60, included a modeline generated by gtf and disabled DDC, resulting in X being a smartarse (Sure, I can do 60Hz): can you post the full log somewhere? if you can wait to tuesday, i'll also try to get it working myself. sorry man, it just works for me. i've got a t60 running current. Well, if it just works, clearly you must be doing something wrong :) You didn't need to use 915resolution? Could you post a full Xorg.log and maybe a generated xorg.conf somewhere? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Ted Unangst ([EMAIL PROTECTED]): On 5/13/07, Alex Holst [EMAIL PROTECTED] wrote: I set VertRefresh to 60-60, included a modeline generated by gtf and disabled DDC, resulting in X being a smartarse (Sure, I can do 60Hz): can you post the full log somewhere? if you can wait to tuesday, i'll also try to get it working myself. Sure, my current configs and logs are at the URLs below. If you need anything else to reproduce this problem, let me know. http://a.mongers.org/x/915resolution.txt http://a.mongers.org/x/Xorg.0.log http://a.mongers.org/x/xorg.conf -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Ted Unangst ([EMAIL PROTECTED]): from the end of your x log. seems the x40 simply can't handle a monitor that big. Indeed, the specs for the X40 seems to indicate it can't, but booting the other (disgusting) OS installed on the same harddrive outputs [EMAIL PROTECTED] perfectly. Also, see Xorg.log below: (II) I810(0): Monitor0: Using hsync range of 30.00-83.00 kHz (II) I810(0): Monitor0: Using vrefresh range of 56.00-75.00 Hz (II) I810(0): Estimated virtual size for aspect ratio 1.5667 is 1680x1050 (WW) I810(0): Shrinking virtual size estimate from 1680x1200 to 1600x1200 (1600x1200,Monitor0) mode clock 162MHz exceeds DDC maximum 150MHz (--) I810(0): Virtual size is 1600x1200 (pitch 1600) (**) I810(0): *Built-in mode 1280x1024 (**) I810(0): *Built-in mode 1024x768 Seems the xorg.conf I used to generate that log is wrong. This is the same part of my current Xorg.log: (II) I810(0): External Monitor: Using hsync range of 30.00-83.00 kHz (II) I810(0): External Monitor: Using vrefresh range of 56.00-75.00 Hz (II) I810(0): Not using built-in mode 1600x1200 (height too large for virtual size) (--) I810(0): Virtual size is 1680x1050 (pitch 1680) (**) I810(0): *Built-in mode 1680x1050 ^ Any idea what this * means? (**) I810(0): Built-in mode 1280x1024 (**) I810(0): Built-in mode 1024x768 (**) I810(0): Built-in mode 800x600 (**) I810(0): Built-in mode 640x480 (II) I810(0): Attempting to use 75.00Hz refresh for mode 1680x1050 (85c) [..] Any idea why the i810 driver attempts to use 75Hz? Maybe if I could get it to try 60Hz at that point would make it work.. I appreciate the suggestions. Any other hints? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Jimmy Mitchener ([EMAIL PROTECTED]): Have you tried starting X several times in a row? I have this issue when I connect my external display to my laptop. Sometimes X comes up at [EMAIL PROTECTED] and sometimes it is at 56Hz and looks awful. The only solution seems to be to restart X several times, and eventually it gets it right. Sometimes it's not required, other times I have to restart X nearly 20 times. It seems pretty hit and miss. Hopefully this will improve with the new 965GM drivers =) I have noticed the same randomized variation in output res and Hz when restarting X several times but I have never seen it correctly start at the resolution I want.. I haven't tried 20 times in a row, however. I'm more or less at the point where I've ruled out that I'm doing something obvious wrong.. sendbug is probably the only way to go from here. -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Ted Unangst ([EMAIL PROTECTED]): Any idea why the i810 driver attempts to use 75Hz? Maybe if I could get it to try 60Hz at that point would make it work.. I appreciate the suggestions. Any other hints? change the modeline to only support 60hz refresh. I set VertRefresh to 60-60, included a modeline generated by gtf and disabled DDC, resulting in X being a smartarse (Sure, I can do 60Hz): (II) I810(0): External Monitor: Using hsync range of 30.00-83.00 kHz (II) I810(0): External Monitor: Using vrefresh value of 60.00 Hz (--) I810(0): Virtual size is 1680x1050 (pitch 1680) (**) I810(0): *Built-in mode 1680x1050 (**) I810(0): Built-in mode 1680x1050 (**) I810(0): Built-in mode 1280x1024 (**) I810(0): Built-in mode 1024x768 (**) I810(0): Built-in mode 800x600 (**) I810(0): Built-in mode 640x480 (II) I810(0): Attempting to use 60.00Hz refresh for mode 1680x1050 (85a) (II) I810(0): Attempting to use 60.00Hz refresh for mode 1680x1050 (85c) (II) I810(0): Attempting to use 60.02Hz refresh for mode 1280x1024 (858) (II) I810(0): Attempting to use 60.00Hz refresh for mode 1024x768 (854) (II) I810(0): Attempting to use 60.32Hz refresh for mode 800x600 (852) (II) I810(0): Attempting to use 59.94Hz refresh for mode 640x480 (850) VGA output is [EMAIL PROTECTED], desktop geometry being 1680x1050. What do you reckon: Persistent user error or bug? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Tobias Weingartner [EMAIL PROTECTED]: xdpyinfo | grep dim tori$ xdpyinfo | grep dim dimensions:1680x1050 pixels (474x303 millimeters) And my current xorg.conf with what I believe are correct HorizSync and VertRefresh: http://a.mongers.org/x/xorg.conf This config outputs [EMAIL PROTECTED] -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Jimmy Mitchener ([EMAIL PROTECTED]): Also, you claim your rates are correct, yet you clearly have not checked the documentation, as many here have told you to do. Looking at your xorg.conf I see you have a Dell E228WFP display. It took me all of five seconds to find that you were using the wrong refresh rates. I really can't even believe I'm bothering to link this for you, as it took mere seconds to find on Google. Now please, read the damn specs. http://accessories.us.dell.com/sna/productdetail.aspx?c=usl=ens=dhscs=19sku=320-5205 The very first xorg.conf and Xorg.log I posted in this thread contained those HorizSync and VertRefresh settings. Running with them currently outputs [EMAIL PROTECTED] (that Hz count isn't a typo. It's now 55, where it before was 56). This is part of the reason I'm so baffled this doesn't Just Worktm: During my first attempts without a config file, DDC seems to detect all the right settings but for some reason decided to skip the 1680x1050 mode. The hints about using 915resolution to massage the i810 driver seemed to be the missing bit, but even with the following settings, the monitor won't go above 1280x1024, hence I'm still interested in any comments that might help resolve this: tori$ sudo 915resolution -l Intel 800/900 Series VBIOS Hack : version 0.5.2 Chipset: 855GM BIOS: TYPE 1 Mode Table Offset: $C + $29f Mode Table Entries: 39 Mode 30 : 640x480, 8 bits/pixel Mode 32 : 800x600, 8 bits/pixel Mode 34 : 1024x768, 8 bits/pixel Mode 38 : 1280x1024, 8 bits/pixel Mode 3a : 1600x1200, 8 bits/pixel Mode 3c : 1680x1050, 8 bits/pixel Mode 41 : 640x480, 16 bits/pixel Mode 43 : 800x600, 16 bits/pixel Mode 45 : 1024x768, 16 bits/pixel Mode 49 : 1280x1024, 16 bits/pixel Mode 4b : 1600x1200, 16 bits/pixel Mode 4d : 1680x1050, 16 bits/pixel Mode 50 : 640x480, 32 bits/pixel Mode 52 : 800x600, 32 bits/pixel Mode 54 : 1024x768, 32 bits/pixel Mode 58 : 1280x1024, 32 bits/pixel Mode 5a : 1600x1200, 32 bits/pixel Mode 5c : 1680x1050, 32 bits/pixel I've also tried variations on the above, including setting every single mode to 1680x1050. -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Jimmy Mitchener ([EMAIL PROTECTED]): Try `sudo 915resolution 4d 1680 1050 32` If 4d is the only one that has 1680x1050 available you only have 16bit color, and you're trying to use 24, so it's not changing anything. Thanks for commenting; this is the relevant output from 915resolution: tori$ sudo 915resolution -l | grep 1680 Mode 3a : 1680x1050, 8 bits/pixel Mode 3c : 1680x1050, 8 bits/pixel Mode 4b : 1680x1050, 16 bits/pixel Mode 4d : 1680x1050, 32 bits/pixel Mode 5a : 1680x1050, 24 bits/pixel Mode 5c : 1680x1050, 32 bits/pixel With those settings, I get [EMAIL PROTECTED] - but again xwininfo -root shows that my actual desktop size is 1680x1050. -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Failing to get [EMAIL PROTECTED] in X
I see from the archives that I'm not alone with this problem, but I have found no solution: Trying to get the VGA port on my X40 to deliver [EMAIL PROTECTED] to my Dell E228WFP and failing. Attempt 1 with no xorg.conf in place outputs [EMAIL PROTECTED], a virtual, scrollable desktop of 1680x1050 and this Xorg.log: http://a.mongers.org/x/1-Xorg.0.log Attempt 2 with X -configure outputs same resolution and scrollable desktop, plus this xorg.conf.new and Xorg.log: http://a.mongers.org/x/2-Xorg.0.log http://a.mongers.org/x/2-xorg.conf.new Attempt 3 with above xorg.conf.new edited to contain the modeline from 'gtf 1680 1050 60' outputs the same resolution and same scrollable desktop as before. Any clues as to what I'm doing wrong? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Nick Holland ([EMAIL PROTECTED]): [..] I tried tweaking xorg.conf like you suggested and some other things: http://a.mongers.org/x/xorg.conf http://a.mongers.org/x/Xorg.0.log Now X outputs [EMAIL PROTECTED] Uh. Xorg.log mentions CRT as an active display on pipe A with no active displays on pipe B. I have no idea what it means but wonder if that's related to my problem. The display on my laptop is blank. Any other hints? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Steven Harms ([EMAIL PROTECTED]): This works for me on a 2007WFP Dell at 1680x1050: Section Monitor Identifier DELL 2007WFP ModeLine 1680x1050 146.2 1680 1784 1968 2256 1050 1051 1054 1087 -hsync -vsync HorizSync 30.0 - 83.0 VertRefresh 56.0 - 75.0 Option dpms Thanks, I tried that but still no 1680x1050. Sheesh. How different can these displays be? For kicks, I just tried adding a few additional modes to my screen: Section Screen Identifier WFP Device Card0 Monitor External Monitor DefaultDepth24 SubSection Display Modes 1680x1050 1280x1024 800x600 ViewPort 0 0 Depth 24 EndSubSection EndSection Ctrl-Alt-Numlock+ toggles between 1280x1024 and 800x600, but never goes to 1680x1050. Are invalid modes ignored? Do I need to tweak up a black magic ModeLine for this to work? Any guesses as to why autoconfiguration doesn't figure out the highest common denominator between my video card and monitor? (The hardware is capable. Booting the laptop to a disgusting OS that happens to be installed as well outputs just the resolution I want). -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
Re: Failing to get [EMAIL PROTECTED] in X
Quoting Ted Unangst ([EMAIL PROTECTED]): On 5/10/07, Alex Holst [EMAIL PROTECTED] wrote: I see from the archives that I'm not alone with this problem, but I have found no solution: Trying to get the VGA port on my X40 to deliver [EMAIL PROTECTED] to my Dell E228WFP and failing. the i810 driver really doesn't like using resolutions that aren't in its BIOS. use 915resolution to add a 1680 1050 mode. I have actually tried that a few days ago, running 915resolution from rc.securelevel like pkg/DESCR says with no positive effect. I didn't know which mode to change, so I even booted my system at securelevel -1 and manually set every mode to 1680 1050 mode with absolutely no effect (other than changing those Mode outputs in Xorg.log). Just now I changed mode 4d to 1680x1050 and restarted X. My display is now running [EMAIL PROTECTED] .. showing a massive, unscrollable 1680x1050 desktop. This message is hence cramped and insanely hard to read while I type :) tori$ sudo 915resolution -l | grep 4d Mode 4d : 1680x1050, 16 bits/pixel tori$ xwininfo -root | grep geometry -geometry 1680x1050+0+0 Any more suggestions as to what I'm doing wrong? -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
siteXYtools 0.2 released; feedback wanted
Quoting Kenneth R Westerback ([EMAIL PROTECTED]): Modified files: distrib/miniroot: upgrade.sh install.sh Log message: Add a set siteXY-hostname.tgz and make it selected by default. This allows host specific files to be trivially installed and makes creating/maintaining large numbers of host specific configurations much simpler. siteXYtools make use of those changes to easily manage and build configuration files for an arbitrary number of hosts. It should scale from a user with a single laptop (and a website/cd writer/somewhere to store siteXY tarballs) to a network of thousands of openbsd machines. If you have some free time and a spare machine you can reinstall, please try out siteXYtools and provide feedback to me. http://mongers.org/openbsd/siteXYtools/ -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org
ieee80211: Extra spaces in nwid
When defining a nwid in hostname.ath0 that contains a space, an extra space is inserted in the nwid assigned to the nic. Toften 5 becomes Toften 5 .. which is not where I live. When setting the nwid manually with ifconfig, the nwid is set correctly. Can anyone confirm this behaviour? Full dmesg here: http://mongers.org/openbsd/dmesg.tori tori$ uname -a OpenBSD tori.inside.mongers.org 3.9 GENERIC#865 i386 tori$ cat /etc/hostname.ath0 nwid Toften 5 nwkey network key chan 3 up tori$ ifconfig ath0 ath0: flags=8963UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:0a:e4:2f:1e:ea trunk: trunkdev trunk0 media: IEEE802.11 autoselect (DS1) status: no network ieee80211: nwid Toften 5 chan 3 nwkey not displayed inet6 fe80::20e:9bff:fe98:f655%ath0 prefixlen 64 scopeid 0x2 tori$ sudo ifconfig ath0 nwid Toften 5 tori$ ifconfig ath0 ath0: flags=8963UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:0a:e4:2f:1e:ea trunk: trunkdev trunk0 media: IEEE802.11 autoselect (DS1) status: no network ieee80211: nwid Toften 5 chan 3 nwkey not displayed inet6 fe80::20e:9bff:fe98:f655%ath0 prefixlen 64 scopeid 0x2 tori$ -- I prefer the dark of the night, after midnight and before four-thirty, when it's more bare, more hollow.http://a.mongers.org