Re: audioctl: display variables periodically

2022-12-10 Thread Edd Barrett
I agree with ratchov that in this instance, precise timing isn't important. 10 Dec 2022 05:53:48 Alexandre Ratchov : > On Fri, Dec 09, 2022 at 12:43:31PM -0600, Scott Cheloha wrote: >> On Fri, Dec 09, 2022 at 12:10:59PM +0100, Alexandre Ratchov wrote: >>> This diff adds an option to display varia

Re: audioctl: display variables periodically

2022-12-09 Thread Edd Barrett
vice started: Would it read better as: "Once per-second, display the number of bytes of silence inserted due to buffer underruns (since the device started playback):" And don't forget to update the usage message too :) -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-17 Thread Edd Barrett
On Fri, Jun 17, 2022 at 12:46:49PM -0700, Mike Larkin wrote: > Sorry, out of ideas. No worries. Thanks for all of the back and forth :) -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-17 Thread Edd Barrett
p -c` and then `disable xhci` means that the system can at least boot with no xhci, but sadly it still won't stay in the suspended state. That might rule out xhci as a source of the issue, maybe. -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-17 Thread Edd Barrett
see any [XEA]HCI options in the BIOS that I could tweak. Unless you have any other ideas, I'll try disabling random devices in the hope that I can narrow it down... I've already tried the network card, it aint that. Thanks. -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-17 Thread Edd Barrett
On Fri, Jun 17, 2022 at 09:14:45AM +0100, Edd Barrett wrote: > > 1. remove the code that truncates this list after 16, and note down all the > > wake devices. Here's the full list: acpi0: wakeup devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PEGP(S4) SIO1(S3) RP09(S4)

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-17 Thread Edd Barrett
tton or something. One additional piece of info, which may be worthless. I tried a Debian live USB stick, to see if Linux was able to sleep this box. It was able to. I don't know if that rules out the idea of a fixed-function button? -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: Lenovo ThinkCentre M910q fails to suspend

2022-06-16 Thread Edd Barrett
p-related power options, and any fancy power stuff I don't need or recognise, I've disabled. No joy. I've even updated the BIOS software to no avail. Hrm... -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Lenovo ThinkCentre M910q fails to suspend

2022-06-16 Thread Edd Barrett
PHY ] is disabled/in DSI mode with an ungated DDI clock, gate it drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] [ENCODER:109:DDI \M-j/PHY ] is disabled/in DSI mode with an ungated DDI clock, gate it inteldrm0: 1920x1080, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) ``` -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

Re: FAT32 short filename inconsistencies

2022-01-26 Thread Edd Barrett
ve you tried enforcing short (old scool) mode by using -s? WELL THAT WOULD WORK, BUT ALL OF MY FILENA~1 WOULD BE TRUNCA~1 ;) kn@, what do you think? Should `-l` *always* (really always) create long filenames? Cheers -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

FAT32 short filename inconsistencies

2022-01-25 Thread Edd Barrett
hack that I think would work for me, would be to rename all of my files lower-case before copying to the FAT filesystem. This would force OpenBSD to create long filenames, but that may not be suitable for every user's circumstance] Cheers -- Best Regards Edd Barrett https://www.theunixzoo.co.uk

human-readable audio device descriptions

2021-07-07 Thread Edd Barrett
cvs/src/share/man/man4/audio.4,v retrieving revision 1.86 diff -u -p -r1.86 audio.4 --- share/man/man4/audio.4 1 Nov 2020 21:32:03 - 1.86 +++ share/man/man4/audio.4 7 Jul 2021 13:41:38 - @@ -112,8 +112,7 @@ argument. .Bd -literal typedef struct audio_device { char name[MAX_AUDIO_DEV_LEN]; -char version[MAX_AUDIO_DEV_LEN]; -char config[MAX_AUDIO_DEV_LEN]; +char descr[MAX_AUDIO_DESCR_LEN]; } audio_device_t; .Ed .Pp -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

sndiod: allow mixing of duplex, record-only and play-only audio devices

2021-02-27 Thread Edd Barrett
MODE_PLAY | MODE_REC), &ctlhdl); - if (hdl == NULL) { - if (log_level >= 1) { - dev_log(d); - log_puts(": couldn't open an alternate device\n"); - } + if (!dev_sio_openlist(d, &hdl, &ctlhdl, &mode)) return 0; - } sio_initpar(&par); par.bits = d->par.bits; @@ -310,10 +322,10 @@ dev_sio_reopen(struct dev *d) par.sig = d->par.sig; par.le = d->par.le; par.msb = d->par.msb; - if (d->mode & SIO_PLAY) - par.pchan = d->pchan; - if (d->mode & SIO_REC) - par.rchan = d->rchan; + if (mode & SIO_PLAY) + par.pchan = d->reqpchan; + if (mode & SIO_REC) + par.rchan = d->reqrchan; par.appbufsz = d->bufsz; par.round = d->round; par.rate = d->rate; @@ -343,6 +355,7 @@ dev_sio_reopen(struct dev *d) } /* update parameters */ + d->mode = mode; d->par.bits = par.bits; d->par.bps = par.bps; d->par.sig = par.sig; -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: sndiod: Move controls out of the device structure, please test & review

2021-01-30 Thread Edd Barrett
On Fri, Jan 29, 2021 at 04:16:44PM +0100, Alexandre Ratchov wrote: > Thanks for the feedback, new diff below. It fixes a server crash when > a client issues an invalid request. I retested the crash scenario, and can confirm that it is fixed. No other problems to report! -- Best Regar

Re: search usbd_interfaces in case of non-compliant device

2021-01-28 Thread Edd Barrett
On Thu, Jan 28, 2021 at 09:56:14AM +, Edd Barrett wrote: > Here's a revised diff that always searches the array, instead of first trying the expected index. Everyone agreed that this makes for simpler code, and that since this function isn't called much, there's no real p

Re: search usbd_interfaces in case of non-compliant device

2021-01-28 Thread Edd Barrett
+) { + if (dev->ifaces[idx].idesc->bInterfaceNumber == ifaceno) { + *iface = &dev->ifaces[idx]; + return (USBD_NORMAL_COMPLETION); + } + } + return (USBD_INVAL); } /* use altno */ -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

search usbd_interfaces in case of non-compliant device

2021-01-26 Thread Edd Barrett
dx++) { + if (dev->ifaces[idx].idesc->bInterfaceNumber == ifaceno) { + *iface = &dev->ifaces[idx]; + return (USBD_NORMAL_COMPLETION); + } + } + return (USBD_INVAL); } /* use altno */ -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: RFC: kern.video.record

2020-09-26 Thread Edd Barrett
io I'd prefer fine-grained control. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: cpu utilisation bars for top(1)

2020-04-14 Thread Edd Barrett
show_args = true; break; @@ -632,7 +637,7 @@ rundisplay(void) char ch, *iptr; int change, i; struct pollfd pfd[1]; - static char command_chars[] = "\f qh?en#sdkriIuSopCHg+P109)("; + static char command_chars[] = "\f qh?en#sdkriIuSopCHg+P109)(B"; /* * assume valid command unless told @@ -995,6 +1000,9 @@ rundisplay(void) skip -= max_topn / 2; if (skip < 0) skip = 0; + break; + case CMD_bars: + cpu_bars = !cpu_bars; break; default: new_message(MT_standout, " BAD CASE IN SWITCH!"); -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: cpu utilisation bars for top(1)

2020-04-13 Thread Edd Barrett
default display. The bar graphs I'm proposing are only displayed when toggled on by pressing `B` (or by invoking top(1) with `-B`). Otherwise the display remains exactly as it was before. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: cpu utilisation bars for top(1)

2020-04-13 Thread Edd Barrett
On Mon, Apr 13, 2020 at 11:15:59AM -0600, Theo de Raadt wrote: > I think your bar-graph removes detailed information and replaces it > with a visual which wastes screen real-estate. I agree, that's why I made it a toggle. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: cpu utilisation bars for top(1)

2020-04-13 Thread Edd Barrett
t(1) uses both chevrons (first screen) and hashes (second screen) for CPU bar graphs. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: cpu utilisation bars for top(1)

2020-04-13 Thread Edd Barrett
| >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> >>>>>>> > Memory: Real: 3931M/12G act/tot Free: 11G Cache: 6507M Swap: 0K/1028M PID USERNAME PRI NICE SIZE RES STATE WAIT TIMECPU COMMAND ... ``` Something like that? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

cpu utilisation bars for top(1)

2020-04-13 Thread Edd Barrett
1000,9 @@ rundisplay(void) skip -= max_topn / 2; if (skip < 0) skip = 0; + break; + case CMD_bars: + cpu_bars = !cpu_bars; break; default: new_message(MT_standout, " BAD CASE IN SWITCH!"); -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Thinkpad X1 5th gen TPM chip

2019-03-11 Thread Edd Barrett
un Arch Linux on their X1 5gs and have no problem suspending. Cheers! Edd Barrett Mon Mar 11 23:47:54 GMT 2019 Mike Larkin : > On Mon, Mar 11, 2019 at 11:24:42AM +, Edd Barrett wrote: > > Hi, > > > > I was looking at the manual page for tpm(4) and noticed that

Thinkpad X1 5th gen TPM chip

2019-03-11 Thread Edd Barrett
"ICO0102", + "MSFT0101", NULL }; -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: acpithinkpad: fix brightness keys, keyboard backlight value

2019-03-11 Thread Edd Barrett
On Wed, Mar 06, 2019 at 09:37:52PM +0100, Juan Francisco Cantero Hurtado wrote: > The brightness keys on the X61s still work fine. I've just built today's kernel on my X1 5th gen, and the backlight keys now function. Many thanks jcs@! -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: dl_iterate_phdr(3) manual tweak

2018-08-24 Thread Edd Barrett
t, passing it infor program headers and the .Fa data argument. +Iteration continues until either there are no more objects to +iterate over, or +.Fa callback +returns a non-zero value. +.Pp The information about the program headers is passed in a structure that is defined as: .Bd -literal

dl_iterate_phdr(3) manual tweak

2018-08-24 Thread Edd Barrett
s passed in a structure that is defined as: .Bd -literal -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: RETGUARD

2017-08-21 Thread Edd Barrett
On Mon, Aug 21, 2017 at 12:13:05PM -, Christian Weisgerber wrote: > lang/pypy retguard I'm looking into PyPy. Can you provide the build output? Cheers -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Small change to 6.1 upgrade guide

2017-04-30 Thread Edd Barrett
n and follow the prompts. +Apply the configuration changes and remove the old files detailed below. Finish up by upgrading the packages: pkg_add -u. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: FAQ entry for vmm

2016-10-23 Thread Edd Barrett
red in the FAQ. Setting up a network bridge Equal-cost multipath routing Adding and replacing NICs +Networking vmm(4) guests Keyboard and Display Controls -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: vm.conf(5) manual tweak for switches

2016-10-19 Thread Edd Barrett
On Sun, Oct 16, 2016 at 07:15:41PM +0100, Edd Barrett wrote: > The following diff attempts to fix this, and tweaks the surrounding text > a bit too. Any love for this? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: FAQ entry for vmm

2016-10-19 Thread Edd Barrett
Hi, On Mon, Oct 17, 2016 at 05:28:38PM +0100, Edd Barrett wrote: > Thanks. The general consensus was to try to reduce this a lot before > commit though. I will probably only include the wireless setup in the > FAQ. Here is the reduced version. I also moved this into the networkin

Re: FAQ entry for vmm

2016-10-17 Thread Edd Barrett
ill looking for an OK on that. > One very minor nit: why re0? ;-) I think modern vmm-compatible > machines with VMX/VT-d/EPT will have em0 in most cases ... It's just what my test system had in it. We can easily switch to em. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

vm.conf(5) manual tweak for switches

2016-10-16 Thread Edd Barrett
ce automatically added into the corresponding +.Xr bridge 4 +or +.Xr switch 4 +interface underlying the virtual switch. .Pp +Virtual switches can be configured at any point in the configuration file. Each .Ic switch section starts with a declaration of the virtual switch: -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

FAQ entry for vmm

2016-10-15 Thread Edd Barrett
er and router addresses. + Index: faq/index.html === RCS file: /home/edd/cvsync/www/faq/index.html,v retrieving revision 1.495 diff -u -p -r1.495 index.html --- faq/index.html 2 Oct 2016 21:16:26 - 1.495 +++ faq/index.html 15 Oct 2016 16:08:48 - @@ -151,6 +151,7 @@ that are not covered in the FAQ. Using S/Key Directory services Keeping OpenBSD up to date +Virtual machines with vmm(4) The X Window System -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: vmm: experimentation with networking on wifi interfaces

2016-10-14 Thread Edd Barrett
the common vmm cases.) -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

vmm: experimentation with networking on wifi interfaces

2016-10-13 Thread Edd Barrett
orts. Insufficient info makes it difficult to find and fix bugs. --->8--- Oops. Well, please don't take that as a bug report, as the guest is running vanilla 6.0-release. If someone wants more info, I can mail it, but I should try to reproduce that on 6.0-stable or -current. Cheers -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: removing wsmouse_input [2]: zts, hilms, uts

2016-06-06 Thread Edd Barrett
On Mon, Jun 06, 2016 at 01:53:01PM +0200, Stefan Sperling wrote: > On Mon, Jun 06, 2016 at 12:40:24PM +0100, Edd Barrett wrote: > > I have a uts. > > > > I can test later. Am I expecting to see any functional change? > > No change is expected. It should just

Re: removing wsmouse_input [2]: zts, hilms, uts

2016-06-06 Thread Edd Barrett
I have a uts. I can test later. Am I expecting to see any functional change? On 5 June 2016 15:55:19 BST, Mark Kettenis wrote: >> From: Ulf Brosziewski >> Date: Sun, 5 Jun 2016 09:55:07 +0200 >> >> ok? > >Would have been nice if somebody with zts(4) or uts(4) would have >tested this, but we

schizo0: safari error

2016-05-29 Thread Edd Barrett
e keyboard, using wsdisplay0 vscsi0 at root scsibus4 at vscsi0: 256 targets softraid0 at root scsibus5 at softraid0: 256 targets bootpath: /pci@8,60/SUNW,qlc@4,0/fp@0,0/disk@2114c303de67,0 root on sd0a (8d7ec6f394d57510.a) swap on sd0b dump on sd0b creator0: firmware rev 1.3.11 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Allow top(1) to search arguments (again)

2016-05-28 Thread Edd Barrett
can do a KNF whack in a separate commit (later). -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Allow top(1) to search arguments (again)

2016-05-10 Thread Edd Barrett
On Thu, Apr 28, 2016 at 03:26:48PM +0100, Edd Barrett wrote: > Resubmitting this diff, as I've been unable to get an OK. Style tweaks fixed, as pointed out by Michal Mazurek. Thanks for this. OK? Index: machine.c ===

Allow top(1) to search arguments (again)

2016-04-28 Thread Edd Barrett
and name. If displaying of arguments is enabled, the +arguments are searched too. .It Fl H Show process threads in the display. Normally, only the main process is shown. @@ -305,7 +306,8 @@ command. .It g Ar string Display only processes that contain .Ar string -in their command name. +in thei

Re: Scheduler hack for multi-threaded processes

2016-03-27 Thread Edd Barrett
On Thu, Mar 24, 2016 at 12:09:39PM +, Edd Barrett wrote: > On Wed, Mar 23, 2016 at 09:35:50PM +0100, Mark Kettenis wrote: > > So here is a diff that keeps yield() the same and adds the code in the > > sched_yield(2) implementation instead. > > I'm going to now run

Re: Scheduler hack for multi-threaded processes

2016-03-24 Thread Edd Barrett
o work well in firefox. Thanks. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Scheduler hack for multi-threaded processes

2016-03-19 Thread Edd Barrett
efox too. Will run this diff for a few days and let you know if anything bad happens. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: New scheduler for OpenBSD

2016-03-19 Thread Edd Barrett
'll run with this for a while and let you know if anything comes up. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: New scheduler for OpenBSD

2016-03-19 Thread Edd Barrett
ofiling portion of [2]. [1] http://clang.llvm.org/docs/UsersManual.html#profile-guided-optimization [2] https://github.com/gperftools/gperftools -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Allow top(1) to search arguments

2016-03-09 Thread Edd Barrett
On Fri, Feb 12, 2016 at 06:59:02PM +, Edd Barrett wrote: > Updated diff: I've now tested the updated diff on sparc64 and amd64 with S malloc flags for a while. No issues. Would anyone go as far as "OK"? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

uplcom usb panic in amd64 snap

2016-02-23 Thread Edd Barrett
hidev3: 8 variable keys, 6 key codes wskbd2 at ukbd1 mux 1 wskbd2: connecting to wsdisplay0 uhidev4 at uhub3 port 5 configuration 1 interface 0 "Tablet ISD-V4" rev 1.10/6.11 addr 6 uhidev4: iclass 3/1, 2 report ids ums1 at uhidev4 reportid 1: 2 buttons wsmouse2 at ums1 mux 0 ums2 at uhidev4 reportid 2: 3 buttons, tip, barrel, eraser wsmouse3 at ums2 mux 0 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (a81068940d057f4c.a) swap on sd0b dump on sd0b --->8--- -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: diff(1) performance

2016-02-14 Thread Edd Barrett
. Cheers -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

diff(1) performance

2016-02-13 Thread Edd Barrett
State::packetPending: HandlerTask::fn: --->8--- Tarred up files: http://theunixzoo.co.uk/random/diff_files.tgz -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Revisiting the HDMI2 bug with i915 and docking stations.

2016-02-13 Thread Edd Barrett
rosystems product 0x2514" rev 2.00/0.00 addr 3 uhidev3 at uhub3 port 5 configuration 1 interface 0 "Tablet ISD-V4" rev 1.10/6.11 addr 4 uhidev3: iclass 3/1, 2 report ids ums1 at uhidev3 reportid 1: 2 buttons wsmouse2 at ums1 mux 0 ums2 at uhidev3 reportid 2: 3 buttons, tip, barrel, eraser wsmouse3 at ums2 mux 0 uhidev4 at uhub4 port 4 configuration 1 interface 0 "SEJIN SEJIN USB joint Keyboard" rev 1.10/1.30 addr 5 uhidev4: iclass 3/1 ukbd1 at uhidev4: 8 variable keys, 6 key codes wskbd2 at ukbd1 mux 1 wskbd2: connecting to wsdisplay0 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Allow top(1) to search arguments

2016-02-12 Thread Edd Barrett
process is shown. @@ -305,7 +306,8 @@ command. .It g Ar string Display only processes that contain .Ar string -in their command name. +in their command name. If displaying of arguments is enabled, the +arguments are searched too. .Sq g+ shows all processes. .It H -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Allow top(1) to search arguments

2016-02-10 Thread Edd Barrett
is enabled, the +arguments are searched too. .It Fl H Show process threads in the display. Normally, only the main process is shown. @@ -305,7 +306,8 @@ command. .It g Ar string Display only processes that contain .Ar string -in their command name. +in their command name. If displaying of argu

Re: Firefox, malloc(3) and threads

2016-01-25 Thread Edd Barrett
t; rev 2.00/0.00 addr 2 uhub4 at uhub3 port 3 "Standard Microsystems product 0x2514" rev 2.00/0.00 addr 3 uhidev3 at uhub3 port 5 configuration 1 interface 0 "Tablet ISD-V4" rev 1.10/6.11 addr 4 uhidev3: iclass 3/1, 2 report ids ums1 at uhidev3 reportid 1: 2 buttons wsmouse2 at ums1 mux 0 ums2 at uhidev3 reportid 2: 3 buttons, tip, barrel, eraser wsmouse3 at ums2 mux 0 uhidev4 at uhub4 port 4 configuration 1 interface 0 "SEJIN SEJIN USB joint Keyboard" rev 1.10/1.30 addr 5 uhidev4: iclass 3/1 ukbd1 at uhidev4: 8 variable keys, 6 key codes wskbd2 at ukbd1 mux 1 wskbd2: connecting to wsdisplay0 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Thinkpad dock only provides HDMI2 after first suspend.

2015-06-22 Thread Edd Barrett
ddr 5 video0 at uvideo0 uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 uhub4 at uhub3 port 3 "Standard Microsystems product 0x2514" rev 2.00/0.00 addr 3 uhidev3 at uhub3 port 5 configuration 1 interface 0 "Tablet ISD-V4" rev 1.10/6.11 addr 4

Re: USB panic

2015-02-08 Thread Edd Barrett
ote: > On 08/02/15(Sun) 21:57, Edd Barrett wrote: > > Hey, > > > > I have been having issues with a userland program hard resetting my > machine. > > > > I *think* but cannot be sure it is the USB compact flash reader causing > the > > issue: > >

USB panic

2015-02-08 Thread Edd Barrett
oftraid0: 256 targets root on sd0a (a81068940d057f4c.a) swap on sd0b dump on sd0b WARNING: / was not properly unmounted umass0 at uhub3 port 2 configuration 1 interface 0 "SCM Microsystems Inc. eUSB Multi-Slot Reader" rev 1.10/5.15 addr 4 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator 0 sd1 at scsibus4 targ 1 lun 0: SCSI2 0/direct removable sd1: 3847MB, 512 bytes/sector, 7880544 sectors sd2 at scsibus4 targ 1 lun 1: SCSI2 0/direct removable -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Non-functional USB ports on thinkpad x230t/OpenBSD

2014-06-01 Thread Edd Barrett
ux 0 wsmouse3 detached ums2 detached uhidev1 detached umass0 at uhub2 port 2 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/1.00 addr 5 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator 0 sd1 at scsibus4 targ 1 lun 0: SCSI2 0/direct removable serial.09511665BDB1595433FB sd1: 29984MB, 512 bytes/sector, 61408128 sectors sd1 detached scsibus4 detached umass0 detached -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Stairstep mouse motion

2013-10-30 Thread Edd Barrett
idier too. If the others are happy with the kernel portion of your diff, then I reckon this is good to go in. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Stairstep mouse motion

2013-10-25 Thread Edd Barrett
d yes, this is a very very unlikely case. You could argue it wouldn't matter even if it did happen. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Stairstep mouse motion

2013-10-24 Thread Edd Barrett
On Wed, Oct 16, 2013 at 11:45:34PM +0100, Edd Barrett wrote: > Tested on my x230t and will continue to test. No regrssions noticed on > relative pointing devices. > > OK? Anyone? I appreciate that I am probably the only one using OpenBSD on a tablet, but a "looks OK" a

Re: Stairstep mouse motion

2013-10-16 Thread Edd Barrett
On Thu, Jul 18, 2013 at 09:23:00PM +0100, Edd Barrett wrote: > After applying your diff: > Touchpad: smooth lines. > Nipple: smooth lines. > Pen: jagged lines. > > I wonder if it is because the pen is an absolute pointing device. You > probably ne

Re: memset.S for amd64

2013-09-19 Thread Edd Barrett
clears bits 8 through 63 with an andq. It looks like this is not strictly necessary as the lower byte of rax (aka, AL) is then copied across the other bytes of rax anyway. This allows them to copy the bytes 8 at a time by movq. Can someone check this? Is the andq unnecessary in this case? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

memset.S for amd64

2013-09-18 Thread Edd Barrett
/* set by words */ + rep + stosq + + movq%r8,%rcx/* set remainder by bytes */ + andq$7,%rcx +L1:rep + stosb + movq%r11,%rax + + ret -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: memset.S for amd64

2013-09-18 Thread Edd Barrett
On Wed, Sep 18, 2013 at 07:08:31PM +0100, Edd Barrett wrote: > In short, each experiment warms up by setting and checking a load of buffers > before setting as many buffers as possible given a one minute timeframe. The > experiments were run with varying buffer sizes under both mem

Re: Merge uhts(4) into ums(4).

2013-08-14 Thread Edd Barrett
On Sat, Aug 10, 2013 at 12:33:12PM +0100, Edd Barrett wrote: > On Fri, Aug 09, 2013 at 08:35:49AM +0200, Matthieu Herrb wrote: > > And you can also do the next step and tedu uhts > > The following diff "tedus" uhts(4). This is the first driver I have > "t

Re: Merge uhts(4) into ums(4).

2013-08-10 Thread Edd Barrett
: sys/dev/usb/ums.c === RCS file: /cvs/src/sys/dev/usb/ums.c,v retrieving revision 1.36 diff -u -p -r1.36 ums.c --- sys/dev/usb/ums.c 9 Aug 2013 22:10:17 - 1.36 +++ sys/dev/usb/ums.c 10 Aug 2013 11:26:39 - @@ -105,19 +105,13 @@ ums_match(struct device *parent, void *m HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) return (UMATCH_IFACECLASS); - /* -* For now return a value higher than UMATCH_IFACECLASS to make sure -* touchscreens and digitizers no longer attach to uhts(4). -*/ if (hid_is_collection(desc, size, uha->reportid, HID_USAGE2(HUP_DIGITIZERS, HUD_TOUCHSCREEN))) - return (UMATCH_IFACECLASS_IFACESUBCLASS); /* XXX */ - /* return (UMATCH_IFACECLASS); */ + return (UMATCH_IFACECLASS); if (hid_is_collection(desc, size, uha->reportid, HID_USAGE2(HUP_DIGITIZERS, HUD_PEN))) - return (UMATCH_IFACECLASS_IFACESUBCLASS); /* XXX */ - /* return (UMATCH_IFACECLASS); */ + return (UMATCH_IFACECLASS); return (UMATCH_NONE); } -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Merge uhts(4) into ums(4).

2013-08-07 Thread Edd Barrett
On Fri, Jul 19, 2013 at 04:06:49PM +0100, Edd Barrett wrote: > Cheers. Revised diff: Right, now the tree is open again. Matthieu, did you test this diff on your various devices for regressions? Can this go in? -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Merge uhts(4) into ums(4).

2013-07-19 Thread Edd Barrett
4,3 +61,15 @@ The driver first appeared in .Ox 2.8 . +.Sh AUTHORS +.An -nosplit +HID touchscreen and digitiser support was written by +.An Robert Nagy +and +.An Matthieu Herrb +then later merged into the generic +.Xr ums 4 +driver by +.An Edd Barrett . +.Sh CAVEATS +Touchscreen and digitiser

Re: Stairstep mouse motion

2013-07-18 Thread Edd Barrett
ter applying your diff: Touchpad: smooth lines. Nipple: smooth lines. Pen: jagged lines. I wonder if it is because the pen is an absolute pointing device. You probably need extra magic in the WSCONS_EVENT_MOUSE_ABSOLUTE_* cases. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Merge uhts(4) into ums(4).

2013-07-18 Thread Edd Barrett
4 @@ -54,3 +61,16 @@ The driver first appeared in .Ox 2.8 . +.Sh AUTHORS +.An -nosplit +HID touchscreen and digitiser support was written by +.An Robert Nagy +and +.An Matthieu Herrb +then later merged into the generic +.Xr ums 4 +driver by +.An Edd Barrett. +.Sh CAVEATS +Touchscreen and d

Re: Wake from zzz causes panic on thinkpad x60

2013-03-01 Thread Edd Barrett
On Thu, Feb 28, 2013 at 04:59:12PM +, Edd Barrett wrote: > Come to think of it those snaps are probably too old for TESTS. So when > newer snaps hit the mirror I will re-run this test. I can confirm that this is still a problem with Feb 28th amd64 snaps. -- Best Regards Edd Barrett

Wake from zzz causes panic on thinkpad x60

2013-02-28 Thread Edd Barrett
code 32 wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub4 port 2 configuration 1 interface 0 "Logitech Optical USB Mouse" rev 2.00/3.40 addr 3 uhidev1: iclass 3/1 ums0 at uhidev1: 3 buttons, Z dir wsmouse1 at ums0 mux 0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on sd0a (c135b3cdcf62ee05.a) swap on sd0b dump on sd0b -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: iwn0 firmware errors

2012-02-12 Thread Edd Barrett
somewhere else. Hmm. I am seeing the error connecting to a soekris I set up myself. I am the only client on this. It has a ral card in hostap mode. It may be related to power saving? Pure speculation ofcourse -- I know nothing about how these devices work internally. -- Best Regards Edd

urtwn0 does not recover from suspend

2012-02-12 Thread Edd Barrett
are command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: device timeout urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 urtwn0: could not send firmware command 5 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

iwn0 firmware errors

2012-02-11 Thread Edd Barrett
4: qid=4 cur=45 queued=0 tx ring 5: qid=5 cur=0 queued=0 tx ring 6: qid=6 cur=0 queued=0 tx ring 7: qid=7 cur=0 queued=0 tx ring 8: qid=8 cur=0 queued=0 tx ring 9: qid=9 cur=0 queued=0 tx ring 10: qid=10 cur=0 queued=0 tx ring 11: qid=11 cur=0 queued=0 tx ring 12: qid=12 cur=0 queued=0 tx ring 13: qid=13 cur=0 queued=0 tx ring 14: qid=14 cur=0 queued=0 tx ring 15: qid=15 cur=0 queued=0 rx ring: cur=11 802.11 state 4 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: xf86-video-intel driver broken after 2011/11/29

2012-02-11 Thread Edd Barrett
e to > try and fix it. I have the same issue. I mailed it to x11@ a few days ago: http://marc.info/?l=openbsd-x11&m=132865830223969&w=2 And yep, I use startx. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: small change to the scandir(3) manual page

2012-01-20 Thread Edd Barrett
On Fri, Jan 20, 2012 at 02:34:51PM +0100, Tobias Ulmer wrote: > - "builds an array of pointers to variable-size directory entries using > malloc(3)" ^ Something like this could work. Perhaps also a note that we do this because POSIX says so. -- Best Regards E

Re: fix ral (and maybe other cards) hostap mode

2012-01-20 Thread Edd Barrett
I will be willing to test any diffs relating to this. I have some soekris with Ral cards which i intended to use in hostap mode. Cheers On Jan 16, 2012 12:13 PM, "Steven Chamberlain" wrote: > On 16/01/12 09:47, Sebastian Reitenbach wrote: > > this is a followup on the misc@ "problem with ral in

Re: small change to the scandir(3) manual page

2012-01-19 Thread Edd Barrett
I see. There are clues in dir(5) actually, so perhaps a note in scandir(3) is vacuous. On Jan 19, 2012 6:59 PM, "Joerg Sonnenberger" wrote: > On Thu, Jan 19, 2012 at 06:32:45PM +, Edd Barrett wrote: > > On Thu, Jan 19, 2012 at 10:17:02AM -0800, Philip Guenther wrote: &

Re: small change to the scandir(3) manual page

2012-01-19 Thread Edd Barrett
On Thu, Jan 19, 2012 at 10:17:02AM -0800, Philip Guenther wrote: > On Thu, Jan 19, 2012 at 4:18 AM, Edd Barrett wrote: > > I recently got caught out by scandir's quirky memory allocation. Should > > we add a note so that others don't have to go through this pain too? &g

small change to the scandir(3) manual page

2012-01-19 Thread Edd Barrett
boundary. See +.Xr dir 5 +for the exact layout of +.Fa struct dirent . .Pp The .Fa select -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: [panc...@nopcode.org: License]

2011-10-14 Thread Edd Barrett
; > > > Discuss. > > What COPYRIGHT file? There's no such file in my src/usr.bin/file. And > the *.c files are all 2 clause, not 3. Yah, I am not sure what he is on about either now. I don't see a COPYRIGHT file. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

[panc...@nopcode.org: License]

2011-10-14 Thread Edd Barrett
: pancake To: Edd Barrett Subject: License X-Mailer: iPhone Mail (8C148) Debian packager has reported a bug in magic license. COPYRIGHT file contains the 4th clause bsd which is gpl incompatible. The thing is that *.c files include the 3clause bsd license which is ok. Can i remove the 4th

Re: fix a seg and minor improvements to config(8)

2011-10-02 Thread Edd Barrett
=== RCS file: /cvs/src/usr.sbin/config/util.c,v retrieving revision 1.12 diff -u -r1.12 util.c --- util.c 28 Jun 2003 04:55:07 - 1.12 +++ util.c 2 Oct 2011 14:32:29 - @@ -42,11 +42,13 @@ */ #include + #include +#include #include #include #include -#include + #include "config.h" static void nomem(void); -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: fix a seg and minor improvements to config(8)

2011-10-02 Thread Edd Barrett
WARNING this kernel doesn't support modification of NKMEMPAGES. zsh: segmentation fault config -e ~/a Cheers -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

fix a seg and minor improvements to config(8)

2011-09-27 Thread Edd Barrett
t_cfdata(0)) == NULL) /* get first item */ + errx(1, "failed to get first cfdata"); + while (cd->cf_attach != 0) { maxdev = i; totdev = i; -- Best Regards Edd Barrett

file(1): prevent printing unknown magic filename

2011-09-22 Thread Edd Barrett
ion == FILE_COMPILE) { rv = apprentice_load(ms, &magic, &nmagic, fn, action); if (rv != 0) -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

watchdog timeouts on alc0

2011-08-02 Thread Edd Barrett
ff:ff:ff:ff:ff uvideo0 at uhub0 port 4 configuration 1 interface 0 "Y2B2D0JXB WebCam" rev 2.00/0.04 addr 3 video0 at uvideo0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on sd0a (2d8f502a56cb1ab6.a) swap on sd0b dump on sd0b alc0: watchdog timeout (missed link) alc0: watchdog timeout alc0: could not disable RxQ/TxQ (0x0008)! alc0: could not disable Rx/Tx MAC(0x0008)! -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: alc(4) support for Atheros AR815x

2011-05-05 Thread Edd Barrett
web.freebsd.org/base?view=revision&revision=221407 -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Network Interface Daemon and ifconfig header file

2011-05-04 Thread Edd Barrett
Perhaps the functions belong in a shared object? On May 4, 2011 10:46 AM, "Rafael Sadowski" wrote: > Hello @tech and all honorable OpenBSD Developer, > > first of all, I happy about any help or helpful advice! > > Based on Edd Barrett (edd@) idea[1] to develop a Netwo

Re: alc(4) support for Atheros AR815x

2011-05-02 Thread Edd Barrett
On Mon, May 02, 2011 at 11:02:41AM +0100, Stuart Henderson wrote: > On 2011/05/02 01:16, Edd Barrett wrote: > > On Sun, May 01, 2011 at 08:10:56PM +0100, Stuart Henderson wrote: > > > On 2011/05/01 18:35, Edd Barrett wrote: > > > > I have acquired a netboot (packard b

Re: alc(4) support for Atheros AR815x

2011-05-01 Thread Edd Barrett
On Mon, May 02, 2011 at 01:16:55AM +0100, Edd Barrett wrote: > On Sun, May 01, 2011 at 08:10:56PM +0100, Stuart Henderson wrote: > > On 2011/05/01 18:35, Edd Barrett wrote: > > > I have acquired a netboot (packard bell dot s), which I think uses this > > > NIC. Is

Re: alc(4) support for Atheros AR815x

2011-05-01 Thread Edd Barrett
On Sun, May 01, 2011 at 08:10:56PM +0100, Stuart Henderson wrote: > On 2011/05/01 18:35, Edd Barrett wrote: > > I have acquired a netboot (packard bell dot s), which I think uses this > > NIC. Is > > there an updated diff? > > Yes I just took the 2 minutes it took to a

Re: alc(4) support for Atheros AR815x

2011-05-01 Thread Edd Barrett
XE boot MAC address 1c:75:08:d5:53:c4, interface unknown root on rd0a swap on rd0b dump on rd0b umass0 at uhub1 port 2 configuration 1 interface 0 "vendor 0x0204 product 0x6025" rev 1.10/1.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: SCSI2 0/direct removable sd1: 486MB, 512 bytes/sec, 996415 sec total -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

Re: Thank you for making p2k9 possible!

2009-10-12 Thread Edd Barrett
ng team for having me here at p2k9 and to Naddy for creating my account. Thankyou all. But if I hear any more 'g|nther and the sunshine girls', I may never make it home. It melts the brain... -- Best Regards Edd Barrett http://students.dec.bmth.ac.uk/ebarrett

  1   2   >