Re: USB mouse not working
Have you tried disabling USB3 in the BIOS? Forcing USB2.0 helped with similar problems on my Thinkpad. > On 18 Oct 2016, at 07:18, Daniel Cavanaghwrote: > > Hiya > > I'm having trouble getting my USB mouse to work in the latest snapshots. > Unless my memory is faulty, this mouse used to work only a few months ago > > I have noticed that the kernel disables the device at boot (see bold text > in dmesg below). I've tried disabling xhci, but that doesn't help. Other > than that, I'm not really sure what else to do. Does anyone know anything I > can try to fix or track down the root cause of this issue? > > I also have an 3.5mm audio in/out <-> USB converter that appears not to > work, again with the kernel disabling the device. I've not looked into this > one though. Perhaps it's the same issue > > Cheers :)
Displaylink and xorg.conf
Hi List, Anyone with displaylink/udl experience who could shed some light on the subject? How do you go about setting up displaylink adapters/displays? I'm trying to set up a Lenovo USB display ("udl0 at uhub1 port2 DisplayLink Lenovo LT1421") to work alongside my laptop, but can't get them to work together -- it's either one working or the other, but never both. If I add a following section to (otherwise non-existant) xorg.conf: Section Device Identifier "Card0" Driver "wsudl" Option "Device" "/dev/ttyD0" #<--- ttyD0 first created with MAKEDEV EndSection then I get properly configured USB display from X, but the builtin display is switched off (and never even mentioned in the logs, or RandR). If I add the builtin to the xorg.conf (as "Card0", and move USB to "Card1") then X ignores wsudl driver completely and never mentions it in the logs, and only activates the builtin display. There are no errors or warnings mentioned. I must be missing something simple -- I found a couple of emails from a while ago on this list with similar issues, but the solution that used to work in 5.2/5.3 (put both cards/screens in xorg.conf, like I tried) doesn't appear to work here. (Also, what would it take to make it hot-pluggable, so I don't have to fiddle with xorg.conf?) Thanks Bojan
Re: build an openbsd router/modem
> On 23 Dec 2015, at 11:33, Craig Skinnerwrote: > > On 2015-12-22 Tue 19:52 PM |, Tati Chevron wrote: >> >> The easiest way to do this, although not quite what you want, is to >> use a normal ADSL router in 'bridge' mode, so that it passes all data >> from the ADSL line directly to a single OpenBSD machine without doing >> any routing. That OpenBSD machine can then act as a firewall, router, >> packet-logger, or whatever you want. >> > > A British ISP recommends using the DLINK DSL-320B in bridge mode only: > "... bridge mode for use with a PPPoE Router. Supports 1508 byte "baby > jumbo" frames for full 1500 byte MTU PPPoE operation. ..." > http://aa.net.uk/broadband-accessories.html > > "DLINK 320B PPPoE Bridge Modem, ADSL > * Use with a your own PPPoE router/firewall > * Can do full 1500 byte MTU over PPPoE, which the ZyXEL can't in bridge > mode > * Don't use it for anything but a bridge! > * Native IPv6: n/a (as used as a bridge)" > http://support.aa.net.uk/Help_Choosing_A_Router > > How they deploy 2 (+ another spare) ADSL modems for failover. > You would be building the brick thing instead of what they supply: > http://www.aa.net.uk/broadband-office1.html > > Their MTU explaination page: > http://aa.net.uk/kb-broadband-mtu.html > > Their "How Broadband Works" page (British Telecom - usually PPPoA): > http://aa.net.uk/kb-broadband-how.html > Can confirm - that D-Link modem is the best way to go (at least in our neck of the woods). Very cheap and reliable. I have it running as a PPPoE bridge into an Alix router with OpenBSD. The whole rig has been up for more than a year, zero issues. Bojan
Re: EHCI/XHCI and USB sound on Thinkpads
On 31 May 2015 at 17:06, Martin Pieuchot m...@openbsd.org wrote: On 30/05/15(Sat) 21:49, Bojan Nastic wrote: Hi misc@ I'm seeing inconsistent USB behaviour between USB2 and USB3 on different Thinkpads running -current with Cambridge Audio DACMagic XS USB audio card (class 2 audio device). This card otherwise works perfectly fine over USB3 on a Mac laptop. uaudio(4) devices use isochronous transfers which our xhci(4) does not currently support since nobody wrote the code ;) Ah, that explains it, thanks! I remember there was a discussion recently on the isochronous transfer and usb audio (tech@ maybe?), I'll need to go back and re-read it.
EHCI/XHCI and USB sound on Thinkpads
Hi misc@ I'm seeing inconsistent USB behaviour between USB2 and USB3 on different Thinkpads running -current with Cambridge Audio DACMagic XS USB audio card (class 2 audio device). This card otherwise works perfectly fine over USB3 on a Mac laptop. - When plugged into a USB2 port on Thinkpad X220 the card is recognised properly: uaudio0 at uhub4 port 2 configuration 1 interface 0 CA CA DacMagicXS 1.0 rev 1.00/6.04 addr 3 uaudio: audio rev 1.00 1 mixer controls audio1 at uaudio0 - But when plugged into a USB3 port on X220 (via a usb3 express-card): uhub1: device problem, disabling port 4 - Same error as above on any of the USB3 port on Thinkpad X1 Carbon. There are no other errors that I can see. Any idea where to start debugging this? I'd really like to be able to use this on my X1 Carbon (assumming this is supported?) For reference, dmesg for both laptops: - USB on Thinkpad x220 (builtin usb2, expresscard usb3): ehci0 at pci0 dev 26 function 0 Intel 6 Series USB rev 0x04: apic 2 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ... [snip] ... xhci0 at pci3 dev 0 function 0 ASMedia ASM1042 xHCI rev 0.00: msi usb1 at xhci0: USB revision 3.0 uhub1 at usb1 ASMedia xHCI root hub rev 3.00/1.00 addr 1 - USB on Thinkpad X1 Carbon (Haswell): xhci0 at pci0 dev 20 function 0 Intel 8 Series xHCI rev 0x04: msi usb0 at xhci0: USB revision 3.0 uhub0 at usb0 Intel xHCI root hub rev 3.00/1.00 addr 1 Thanks Bojan
Re: Thinkpad X1 Carbon Suspend issue
OK, in case someone finds this useful - got the Lid working as well. Disabling everything suspicious and not needed in the BIOS seems to have done the job. (esp. disabling the Intel Rapid Start, as it seems to interfere with sleep states. But this could be just a coincidence). X1 Carbon 2nd Gen is now 99% operational (harmless Intel drm errors remaining). On 28 May 2015 at 21:36, Bojan Nastic bnas...@gmail.com wrote: As an update - fiddling with BIOS and holding power button for 2-3 seconds seems to wake up the machine now! (Again, this is an i7-4550u with HD5000 GPU) What works: - Waking up! What doesn't quite work: - Lid opening still doesn't wake - HD5000 driver is spewing errors on sleep/wake, so waking from within X will show console errors before rendering the screen properly. On 26 May 2015 at 20:58, Bojan Nastic bnas...@gmail.com wrote: On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net wrote: On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote: Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd gen (Haswell chip)? It works pretty well (including wireless), although on my machine the lack of a specific video driver means that things in X can be painfully slow (forget about watching a video!). Everything seems to be working fine, except for waking from suspend. Suspend works fine, either via 'zzz' or closing the lid, but waking it up doesn't work -- hardware seems unresponsive, the sleep light stays on regardless of what I do to it (pressing buttons, opening the lid...) When I do this, the OS is still working, but the screen doesn't wake back up (whether this is related to X running in the background or not, I don't know -- I never run without X). I can see this happening as follows. Log in as root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume by pressing the power button. [At this point the screen is blank.] Type reboot. Wait a little while and the machine will reboot. I appreciate that's not hugely useful, but it does mean that, if I want to test suspend/resume support ever so often, I don't have to fsck afterwards... Thanks for the tip, but unfortunatelly, it doesn't work in this case. The whole machine goes to sleep, so even the LED strip at the top, with F keys, is switched off, no way to switch to console. Apparently, this all works fine for people with Haswell and HD4000 GPU, but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video driver errors when switching from X to console). --Bojan
Re: Thinkpad X1 Carbon Suspend issue
As an update - fiddling with BIOS and holding power button for 2-3 seconds seems to wake up the machine now! (Again, this is an i7-4550u with HD5000 GPU) What works: - Waking up! What doesn't quite work: - Lid opening still doesn't wake - HD5000 driver is spewing errors on sleep/wake, so waking from within X will show console errors before rendering the screen properly. On 26 May 2015 at 20:58, Bojan Nastic bnas...@gmail.com wrote: On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net wrote: On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote: Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd gen (Haswell chip)? It works pretty well (including wireless), although on my machine the lack of a specific video driver means that things in X can be painfully slow (forget about watching a video!). Everything seems to be working fine, except for waking from suspend. Suspend works fine, either via 'zzz' or closing the lid, but waking it up doesn't work -- hardware seems unresponsive, the sleep light stays on regardless of what I do to it (pressing buttons, opening the lid...) When I do this, the OS is still working, but the screen doesn't wake back up (whether this is related to X running in the background or not, I don't know -- I never run without X). I can see this happening as follows. Log in as root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume by pressing the power button. [At this point the screen is blank.] Type reboot. Wait a little while and the machine will reboot. I appreciate that's not hugely useful, but it does mean that, if I want to test suspend/resume support ever so often, I don't have to fsck afterwards... Thanks for the tip, but unfortunatelly, it doesn't work in this case. The whole machine goes to sleep, so even the LED strip at the top, with F keys, is switched off, no way to switch to console. Apparently, this all works fine for people with Haswell and HD4000 GPU, but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video driver errors when switching from X to console). --Bojan
Re: WWAN Qualcomm Gobi 2000
I have it in my X220. Recognised properly according to dmesg, but never got around to look up the setup for my mobile provider, so take that with a grain of salt. On Tuesday, 26 May 2015, Alex Shupikov a.shupi...@gmail.com wrote: Hi all Somebody uses Qualcomm Gobi 2000 OpenBSD? It works? -- /ssh
Re: Thinkpad X1 Carbon Suspend issue
On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net wrote: On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote: Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd gen (Haswell chip)? It works pretty well (including wireless), although on my machine the lack of a specific video driver means that things in X can be painfully slow (forget about watching a video!). Everything seems to be working fine, except for waking from suspend. Suspend works fine, either via 'zzz' or closing the lid, but waking it up doesn't work -- hardware seems unresponsive, the sleep light stays on regardless of what I do to it (pressing buttons, opening the lid...) When I do this, the OS is still working, but the screen doesn't wake back up (whether this is related to X running in the background or not, I don't know -- I never run without X). I can see this happening as follows. Log in as root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume by pressing the power button. [At this point the screen is blank.] Type reboot. Wait a little while and the machine will reboot. I appreciate that's not hugely useful, but it does mean that, if I want to test suspend/resume support ever so often, I don't have to fsck afterwards... Thanks for the tip, but unfortunatelly, it doesn't work in this case. The whole machine goes to sleep, so even the LED strip at the top, with F keys, is switched off, no way to switch to console. Apparently, this all works fine for people with Haswell and HD4000 GPU, but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video driver errors when switching from X to console). --Bojan
Thinkpad X1 Carbon Suspend issue
Hello misc, Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd gen (Haswell chip)? Everything seems to be working fine, except for waking from suspend. Suspend works fine, either via 'zzz' or closing the lid, but waking it up doesn't work -- hardware seems unresponsive, the sleep light stays on regardless of what I do to it (pressing buttons, opening the lid...) Tried 5.7 release, then upgraded to -current (as of 23.05.), still the same problems. (Haven't cheked 5.6 for regressions, though). Dmesg given below. Thinkpad runs a full disk encryption on root, if that matters. There are some Intel HD errors reported, which I've neer seen before: error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before writing to 10 error: [drm:pid0:intel_dp_set_link_train] *ERROR* Timed out waiting for DP idle patterns error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before writing to 64040 Any ideas? How can I debug this further? Cheers, Bojan OpenBSD 5.7-current (GENERIC.MP) #1006: Sat May 23 10:30:01 MDT 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8233517056 (7852MB) avail mem = 7980146688 (7610MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbcd3d000 (61 entries) bios0: vendor LENOVO version GRET40WW (1.17 ) date 09/02/2014 bios0: LENOVO 20A7CTO1WW acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP ASF! DBGP ECDT HPET APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT TCPA UEFI MSDM BATB FPDT UEFI DMAR acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.31 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE, BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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.2.4, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.16 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE, BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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) i7-4550U CPU @ 1.50GHz, 798.16 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE, BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID 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) i7-4550U CPU @ 1.50GHz, 798.16 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE, BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG_) acpiprt2 at acpi0: bus 2 (EXP1) acpiprt3 at acpi0: bus 3 (EXP2) acpiprt4 at acpi0: bus -1 (EXP3) acpicpu0 at acpi0: C3, C1, PSS acpicpu1 at acpi0: C3, C1, PSS acpicpu2 at acpi0: C3, C1, PSS acpicpu3 at acpi0: C3, C1, PSS acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1 acpitz0 at acpi0: critical temperature is 200 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 45N1703 serial 558 type LiP oem SMP acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit offline acpithinkpad0 at acpi0 cpu0: Enhanced SpeedStep 798 MHz: speeds: 2101, 2100, 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 777 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel Core 4G Host rev 0x09 vga1 at pci0
Re: web development on OpenBSD
eBay used to use C++. There was a .pdf some time ago where they described some of their C++ stuff (and compiler errors like too many class methods, good ol' code generators...) They've since moved to Java, but I don't remember if it's a 100% Java shop now. As for Amazon, look at their Web Services for some ideas. Also, Steve Yegge's old blog (don't have the url at hand) has many pointers. So, yes, go for Python wherever you can. Ruby is in very bad shape internally (language can be as pretty as they want, but VM is what I care about the most). PHP, well... you should use it ONLY if you know *exactly* what you're doing, otherwise it's worse than C++ when it comes to shoot yourself in the foot. There are some very nice alternatives, like seaside/Smalltalk. On 29 Apr 2008, at 00:41, raven wrote: Bertrand Janin ha scritto: I Wonder what amazon.com and Ebay.com use? it would stand to reason that they would need speed any place they can get it. I wonder if they use C? I remember seeing Sun microbanners here and there on eBay, it might scream Java. But, sometimes, you see someting like this: http://cgi3.*ebay*.it/ws/ *eBay*ISAPI.*dll*?ViewUserPage So, as you can see, this horrorful extension seems to scream Micro $hit environments No?