Re: ping graphical display

2021-02-19 Thread Landry Breuil
On Fri, Feb 19, 2021 at 03:19:49PM +, Stuart Henderson wrote: > This diff adds something similar to cisco's ping display, giving a > visual display of good/dropped pings. Any interest in it? Example > output (with a couple of ^T during the run): fwiw, noping from net/liboping in ports has

Re: use /dev/dri/ in xenocara

2021-02-18 Thread Landry Breuil
On Thu, Feb 18, 2021 at 11:11:15PM +1100, Jonathan Gray wrote: > On Thu, Feb 18, 2021 at 11:34:19AM +, Stuart Henderson wrote: > > On 2021/02/18 22:24, Jonathan Gray wrote: > > > On Thu, Feb 18, 2021 at 12:01:28PM +0100, Mark Kettenis wrote: > > > > > Date: Thu, 18 Feb 2021 21:18:51 +1100 > >

Re: uhidpp(4): logitech hid++ device driver

2021-02-05 Thread Landry Breuil
On Fri, Jan 22, 2021 at 08:18:51AM +0100, Anton Lindqvist wrote: > Hi, > Here's a new driver for Logitech HID++ devices, currently limited to > exposing battery sensors. Here's an example using a Logitech M330 mouse: > > $ dmesg | grep uhidpp > uhidpp0 at uhidev1 device 1 mouse

Re: IPPROTO_SCTP

2021-01-18 Thread Landry Breuil
On Mon, Jan 18, 2021 at 12:13:32PM +, Stuart Henderson wrote: > can I add IPPROTO_SCTP to in.h? only one port wants it at the > moment, but I think I've seen others in the past. https://searchfox.org/mozilla-central/search?q=ipproto_sctp has some hits, especially in the chromium-bundled

Re: WANTLIB problems and possible solution: the libset design

2020-10-11 Thread Landry Breuil
On Sun, Oct 11, 2020 at 05:03:31PM +0200, Marc Espie wrote: > On Sun, Oct 11, 2020 at 04:53:18PM +0200, Christian Weisgerber wrote: > > Marc Espie: > > > > > The new design: > > > > > > The idea behind "libset" is to be able to specify a "set" of wantlib that > > > corresponds to our package,

uvideo_querycap(): set device_caps field to unbreak video device detection with firefox 78

2020-07-04 Thread Landry Breuil
Hi, since firefox 78, video(4) devices arent detected anymore. Upstream added code in https://bugzilla.mozilla.org/show_bug.cgi?id=1637319 to check for the V4L2_CAP_VIDEO_CAPTURE capacity, and the code added in https://hg.mozilla.org/integration/autoland/rev/33facf191f23 checks for that in the

Re: 11n Tx aggregation for iwm(4)

2020-06-27 Thread Landry Breuil
On Fri, Jun 26, 2020 at 06:14:48PM +0200, Landry Breuil wrote: > On Fri, Jun 26, 2020 at 02:45:53PM +0200, Stefan Sperling wrote: > > This patch adds support for 11n Tx aggregation to iwm(4). > > > > Please help with testing if you can by running the patch and using wifi

Re: 11n Tx aggregation for iwm(4)

2020-06-26 Thread Landry Breuil
On Fri, Jun 26, 2020 at 02:45:53PM +0200, Stefan Sperling wrote: > This patch adds support for 11n Tx aggregation to iwm(4). > > Please help with testing if you can by running the patch and using wifi > as usual. Nothing should change, except that Tx speed may potentially > improve. If you have

Re: libossaudio: start using sndio

2020-04-02 Thread Landry Breuil
On Wed, Apr 01, 2020 at 07:27:12PM +0200, Alexandre Ratchov wrote: > ping! > > FWIW, the diff below affects the following ports: > - emulators/gambatte > - gstreamer-0.10 mixer plugin > - sysutils/conky > - sysutils/gkrellm > - sysutil/tpb > -

Re: iked.conf.5: Provide GRE tunnel in transport mode example

2020-02-22 Thread Landry Breuil
On Sat, Feb 22, 2020 at 12:24:36PM +0100, Klemens Nanni wrote: > On Sat, Feb 22, 2020 at 10:19:27AM +0100, Tobias Heider wrote: > > This is not what dstid does. When setting 'dstid D.example.com' the policy > > still > > only applies if the peer sends 'D.example.com' as it's identity in the ID >

Re: Audio control API, part 2: add new sndioctl(1) utility

2020-02-09 Thread Landry Breuil
On Sun, Feb 09, 2020 at 01:14:47PM +0100, Alexandre Ratchov wrote: > Here's a new sndioctl utility similar to mixerctl(1) but using the new > sndio API. Example: > > $ sndioctl > output.level=127 > app/aucat0.level=127 > app/firefox0.level=127

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-09 Thread Landry Breuil
On Thu, Jan 09, 2020 at 09:18:25PM -0600, Tim Baumgard wrote: > This turns off HTML5 autocomplete for the query input field for > man.cgi(8). This essentially makes smartphones and tablets behave the > same as PCs since they otherwise would try to annoyingly capitalize the > first character and

Re: change to bsd.port.mk to help debug packages a bit

2019-12-02 Thread Landry Breuil
On Wed, Nov 27, 2019 at 05:55:47PM +0100, Marc Espie wrote: > This should get rid of the weird error (don't know how to make > .../all/debug-*.tgz) when switching from !DEBUG_PACKAGES to DEBUG_PACKAGES. > > Basically, this introduces a "build two targets at once" in bsd.port.mk. > > make has

Re: [patch] cwm: filter duplicate hostnames in ssh menu

2019-05-06 Thread Landry Breuil
On Mon, May 06, 2019 at 08:04:02AM +0200, Bruno Fl├╝ckiger wrote: > On 01.05., Marcus MERIGHI wrote: > > Hello, > > > > o...@demirmen.com (Okan Demirmen), 2019.04.29 (Mon) 16:19 (CEST): > > > On Fri 2019.04.26 at 07:15 +0200, Bruno Fl?ckiger wrote: > > > > Hi, > > > > > > > > The ssh menu of cwm(1)

Re: OpenBSD 6.5 released -- Apr 24 2019

2019-04-26 Thread Landry Breuil
On Fri, Apr 26, 2019 at 07:48:26PM +0100, Andrew Grillet wrote: > Install was very quick on my Sun V100. Congratulations to all involved. > > Any news on if/when there will be packages for Sparc64? When they're done, still at least 3 weeks.

Re: Neuter shm calls from X swrast_dri.so

2019-02-24 Thread Landry Breuil
On Sun, Feb 24, 2019 at 10:44:25AM -0500, Todd Mortimer wrote: > A few weeks ago I noticed that firefox tabs were getting killed for > running afoul of pledge(2). It seems that the problem was some calls to > shmget(2) from the X swrast_dri.so lib that seem to have come from the > new mesa code

NMEA: add more gps sensor values (altitude)(take 3)

2019-01-24 Thread Landry Breuil
Hi, simplified diff from my last mail, only adding speed & altitude, now with 100% less floating point in the kernel ! Use a #define KNOTTOMS (51444 / 100) instead of the wrong (1000 / 1.9438) formula to convert from thousands of knots (nmea_atoi() returns an integer which takes 3 extra digits

Re: video(1) pledge

2019-01-21 Thread Landry Breuil
On Mon, Jan 21, 2019 at 09:44:59PM +0100, Matthieu Herrb wrote: > On Mon, Jan 21, 2019 at 09:27:57PM +0100, Landry Breuil wrote: > > Hi, > > > > Hi, > > > now that the 'video' promise is in, looking for okays to pledge > > video(1). > > > > w

video(1) pledge

2019-01-21 Thread Landry Breuil
Hi, now that the 'video' promise is in, looking for okays to pledge video(1). with help & hints from semarie@. Index: video.c === RCS file: /cvs/xenocara/app/video/video.c,v retrieving revision 1.25 diff -u -r1.25 video.c ---

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sun, Dec 30, 2018 at 02:23:59PM -0700, Theo de Raadt wrote: > Landry Breuil wrote: > > > On Sun, Dec 30, 2018 at 01:37:26PM -0700, Theo de Raadt wrote: > > > That's a big step you are taking there > > > > > > "ldattach -t nmea"

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sun, Dec 30, 2018 at 01:37:26PM -0700, Theo de Raadt wrote: > That's a big step you are taking there > > "ldattach -t nmea" was written to extract time information for ntpd. > > It was not written to extract any other information. > > Until you came up with a diff which extracts other

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sun, Dec 30, 2018 at 05:17:54AM -0700, Theo de Raadt wrote: > I think you've gone overboard adding sensors. > > Some of them aren't informing a fact about the world, but about the GPS device > operation. > > Therefore I think nsat, quality, hdop, vdop, pdop are irrelevant. These > are

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sun, Dec 30, 2018 at 06:04:17AM -0700, Theo de Raadt wrote: > Anyways, I haven't seen a specific consumer ready to use this > information from sysctl. I'm sure such programs exist and will be > adapted to use sysctl (or a file, will we make it mode 600 by > default?) rather than some linux

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sun, Dec 30, 2018 at 05:17:54AM -0700, Theo de Raadt wrote: > I think you've gone overboard adding sensors. > > Some of them aren't informing a fact about the world, but about the GPS device > operation. > > Therefore I think nsat, quality, hdop, vdop, pdop are irrelevant. These > are

Re: NMEA: add more gps sensor values (2nd take)

2018-12-30 Thread Landry Breuil
On Sat, Dec 29, 2018 at 12:45:07AM +0200, Paul Irofti wrote: > > so now that the sensor types got adjusted, here's the tty_nmea.c diff > > again, adding 7 new sensors: > > - # satellites (raw) > > - GPS/DGPS fix (or not) (raw) > > - HDOP/VDOP/PDOP (raw) > > - Altitude (m) > > - Speed (m/s) > >

Re: video(1) pledge (& updated kernel diff)

2018-12-30 Thread Landry Breuil
On Sat, Dec 29, 2018 at 09:30:22AM +0100, Sebastien Marie wrote: > On Fri, Dec 28, 2018 at 09:41:06PM +0100, Landry Breuil wrote: > > Hi, > > > > so i've updated my 'video' class for pledge and also did an initial > > naive pledging of xenocara/app/video: >

NMEA: add more gps sensor values (2nd take)

2018-12-28 Thread Landry Breuil
Hi, so now that the sensor types got adjusted, here's the tty_nmea.c diff again, adding 7 new sensors: - # satellites (raw) - GPS/DGPS fix (or not) (raw) - HDOP/VDOP/PDOP (raw) - Altitude (m) - Speed (m/s) i'd welcome eyes on the logic, and especially on the nmea_atoi() implementation - it is

video(1) pledge (& updated kernel diff)

2018-12-28 Thread Landry Breuil
Hi, so i've updated my 'video' class for pledge and also did an initial naive pledging of xenocara/app/video: the kernel diff is the same subset as the diff from some months ago, except that it adds: - VIDIOC_QUERYCTRL/VIDIOC_G_CTRL/VIDIOC_S_CTRL: those 3 are used by video(1) to set

Re: undocumented nfs mount option "intr"

2018-12-20 Thread Landry Breuil
On Thu, Dec 20, 2018 at 09:26:33AM +0100, Solene Rapenne wrote: > Hi > > fstab(5) has an example for a nfs mountpoint using the "intr" option. > > That option isn't documented in mount(8) or mount_nfs(8) and in fact, I've not > been able to find it anywhere. What is it doing? I think it's the

add velocity sensor type, change distance unit

2018-12-08 Thread Landry Breuil
Hi, followup on a diff from last month, updated to -current: - adds SENSOR_VELOCITY, internal unit um/s, display unit m/s - changes SENSOR_DISTANCE to display as meters, with 3 decimals which gives: hw.sensors.nmea0.distance0=335.600 m (Altitude), OK hw.sensors.nmea0.velocity0=18.337 m/s

Re: pvclock(4)

2018-11-22 Thread Landry Breuil
On Thu, Nov 22, 2018 at 05:24:10PM +0100, Landry Breuil wrote: > On Thu, Nov 22, 2018 at 07:44:01AM -0800, Mike Larkin wrote: > > On Thu, Nov 22, 2018 at 04:37:49PM +0100, Reyk Floeter wrote: > > > On Mon, Nov 19, 2018 at 01:12:46PM +0100, Reyk Floeter wrote: > > > >

Re: pvclock(4)

2018-11-22 Thread Landry Breuil
On Thu, Nov 22, 2018 at 07:44:01AM -0800, Mike Larkin wrote: > On Thu, Nov 22, 2018 at 04:37:49PM +0100, Reyk Floeter wrote: > > On Mon, Nov 19, 2018 at 01:12:46PM +0100, Reyk Floeter wrote: > > > the attached diff is another attempt at implementing a pvclock(4) > > > guest driver. This improves

Re: pvclock(4)

2018-11-20 Thread Landry Breuil
On Mon, Nov 19, 2018 at 01:12:46PM +0100, Reyk Floeter wrote: > Hi, > > the attached diff is another attempt at implementing a pvclock(4) > guest driver. This improves the clock on KVM and replaces the need > for using the VM-expensive acpihpet(4). > > While pvclock(4) is available on KVM, Xen,

Re: NMEA: add more gps sensor values (altitude, precision...)

2018-11-04 Thread Landry Breuil
On Sat, Nov 03, 2018 at 06:21:38PM -0400, Ted Unangst wrote: > Mark Kettenis wrote: > > SENSOR_VELOCITY would make sense. It should be m/s with some > > appropriate scaling. We don't need to represent speeds higer than > > 299792458 m/s, so micrometers per second would be a good choice. > > is

Re: add altitude & speed sensor types

2018-11-03 Thread Landry Breuil
On Sat, Nov 03, 2018 at 08:40:33PM +0100, Mark Kettenis wrote: > > Date: Sat, 3 Nov 2018 20:09:32 +0100 > > From: Landry Breuil > > > > On Sat, Nov 03, 2018 at 05:27:03PM +0100, Landry Breuil wrote: > > > Hi, > > > > > > complement

Re: NMEA: add more gps sensor values (altitude, precision, speed, #satellites...)

2018-11-03 Thread Landry Breuil
On Sat, Nov 03, 2018 at 05:00:47PM +0100, Landry Breuil wrote: > Hi, New diff adding speed and # of satellites, uses SENSOR_VELOCITY as posted in the previous diff, and relies on SENSOR_DISTANCE being shown as meters. I redid the message type matching to account for constellation types wh

Re: add altitude & speed sensor types

2018-11-03 Thread Landry Breuil
On Sat, Nov 03, 2018 at 05:27:03PM +0100, Landry Breuil wrote: > Hi, > > complementary to the previous diff, adds altitude sensor type (in > meters) and speed (in m/s, as it seems that's the common denominator and > most accepted unit, even if it doesnt 'mean' anything to human

Re: NMEA: add more gps sensor values (altitude, precision...)

2018-11-03 Thread Landry Breuil
On Sat, Nov 03, 2018 at 05:42:26PM +0100, Mark Kettenis wrote: > > Date: Sat, 3 Nov 2018 17:00:47 +0100 > > From: Landry Breuil > > > > two problems with this display: > > - DOPs are usually decimal values, ie 1.3, 1.53.. but raw sensors only > > support inte

add altitude & speed sensor types

2018-11-03 Thread Landry Breuil
Hi, complementary to the previous diff, adds altitude sensor type (in meters) and speed (in m/s, as it seems that's the common denominator and most accepted unit, even if it doesnt 'mean' anything to humans...) i still have to ponder about the decimals & intervals.. builds, not used yet. Landry

NMEA: add more gps sensor values (altitude, precision...)

2018-11-03 Thread Landry Breuil
Hi, here's a diff to add 5 new sensor values to nmea: altitude, quality, hdop, vdop & pdop. altitude and quality are provided by GGA messages: http://aprs.gids.nl/nmea/#gga, quality is either 0 (no fix), 1 (gps fix) or 2 (dgps fix). The last 3 are 'Dilution of precision' values, respectively

Re: iostat: add "sp" column for CP_SPIN

2018-09-04 Thread Landry Breuil
On Tue, Sep 04, 2018 at 03:27:29PM +0200, Solene Rapenne wrote: > Stuart Henderson wrote: > > On 2018/09/04 14:22, Solene Rapenne wrote: > > > About munin I'm trying to get a diff accepted upstream to fix cpu plugin > > > and > > > talk about this with kirby@. The cpu plugin uses sysctl

Re: nmea(4): support GNRMC messages sent by gps devices supporting multiple networks

2018-08-29 Thread Landry Breuil
On Wed, Aug 29, 2018 at 02:13:01PM -0600, Theo de Raadt wrote: > Landry Breuil wrote: > > > Hi, > > > > was playing with an usb gps that works ootb with gpsd, but our nmea line > > discipline doesnt recognize it, and the 'indicator' sensor stays at its > >

nmea(4): support GNRMC messages sent by gps devices supporting multiple networks

2018-08-29 Thread Landry Breuil
Hi, was playing with an usb gps that works ootb with gpsd, but our nmea line discipline doesnt recognize it, and the 'indicator' sensor stays at its default 'unknown'. The gps is a navilock nl-8002u: umodem0 at uhub3 port 2 configuration 1 interface 0 "u-blox AG - www.u-blox.com u-blox GNSS

Re: Add 'video' pledge

2018-07-25 Thread Landry Breuil
On Wed, Jul 25, 2018 at 12:29:10PM -0600, Theo de Raadt wrote: > >I went over this for a while and i don't see how firefox could be adapted to > >avoid this new pledge class. The other option is to move lots of code around > >so > >that the video device is opened/configured inconditionally by the

Re: Add 'video' pledge

2018-07-25 Thread Landry Breuil
On Thu, May 24, 2018 at 07:15:05PM +0200, Landry Breuil wrote: > Hi, > > here's two simple diffs (one for the kernel, one for the pledge.2 > manpage) that allow me to use my webcam again within firefox when > pledged,, adding 'video' to the main process pledges. > &g

Re: uaudio: fix detection of a bunch of logitech webcams

2018-07-07 Thread Landry Breuil
On Fri, Jul 06, 2018 at 03:38:00PM +0200, Remco wrote: > > @@ -1814,6 +1827,10 @@ > > sc->sc_audio_rev = UGETW(acdp->bcdADC); > > DPRINTFN(2,("%s: found AC header, vers=%03x, len=%d\n", > > __func__, sc->sc_audio_rev, aclen)); > > + > > + /* Some webcams descriptors

Re: uaudio: fix detection of a bunch of logitech webcams

2018-07-06 Thread Landry Breuil
On Fri, Jul 06, 2018 at 01:52:57PM +0200, Landry Breuil wrote: > On Thu, Jul 05, 2018 at 11:13:42AM +0200, Landry Breuil wrote: > > On Thu, Jul 05, 2018 at 11:04:34AM +0200, Martin Pieuchot wrote: > > > On 05/07/18(Thu) 09:28, Landry Breuil wrote: > > > > On Fri, Ju

Re: uaudio: fix detection of a bunch of logitech webcams

2018-07-06 Thread Landry Breuil
On Thu, Jul 05, 2018 at 11:13:42AM +0200, Landry Breuil wrote: > On Thu, Jul 05, 2018 at 11:04:34AM +0200, Martin Pieuchot wrote: > > On 05/07/18(Thu) 09:28, Landry Breuil wrote: > > > On Fri, Jun 29, 2018 at 01:50:24PM +0200, Landry Breuil wrote: > > > > On Fri, Ju

add logitech c250

2018-07-06 Thread Landry Breuil
Hi, thx to Raf Czlonka who sent me the usb descriptor for this model, it's also affected by the 'wrong feature_unit bLength' issue so should be added to usbdevs too. okay ? I'll of course add it to the other uaudio diff.. Index: usbdevs

Re: uaudio: fix detection of a bunch of logitech webcams

2018-07-05 Thread Landry Breuil
On Thu, Jul 05, 2018 at 11:04:34AM +0200, Martin Pieuchot wrote: > On 05/07/18(Thu) 09:28, Landry Breuil wrote: > > On Fri, Jun 29, 2018 at 01:50:24PM +0200, Landry Breuil wrote: > > > On Fri, Jun 29, 2018 at 09:05:56AM +0200, Remco wrote: > > > > > > If you

uaudio: fix detection of a bunch of logitech webcams

2018-07-05 Thread Landry Breuil
On Fri, Jun 29, 2018 at 01:50:24PM +0200, Landry Breuil wrote: > On Fri, Jun 29, 2018 at 09:05:56AM +0200, Remco wrote: > > > > If you don't find any better solution, I'd suggest using a device ID > > > > check rather than adding a quirk. Because such quirk cannot be ge

Re: add a bunch of logitech webcam ids to usbdevs

2018-07-03 Thread Landry Breuil
On Mon, Jul 02, 2018 at 09:29:04PM +0200, Mark Kettenis wrote: > > Date: Mon, 2 Jul 2018 21:10:26 +0200 > > From: Landry Breuil > > > > ok ? > > Why? How do they show up right now? We typically only add USB IDs > for hardware that needs quirks or doesn'

Re: add a bunch of logitech webcam ids to usbdevs

2018-07-02 Thread Landry Breuil
On Mon, Jul 02, 2018 at 09:29:04PM +0200, Mark Kettenis wrote: > > Date: Mon, 2 Jul 2018 21:10:26 +0200 > > From: Landry Breuil > > > > ok ? > > Why? How do they show up right now? We typically only add USB IDs > for hardware that needs quirks or doesn'

add a bunch of logitech webcam ids to usbdevs

2018-07-02 Thread Landry Breuil
ok ? Index: usbdevs === RCS file: /cvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.686 diff -u -r1.686 usbdevs --- usbdevs 28 Jun 2018 15:02:06 - 1.686 +++ usbdevs 2 Jul 2018 19:08:08 - @@ -2575,8 +2575,12 @@

Looking for logitech webcams testers/device info

2018-06-30 Thread Landry Breuil
Hi, sending this to a wider audience on misc@, to fix the microphone (cf https://marc.info/?t=15298427072=1=2) on a variety of logitech webcams (mostly the Cxxx{,HD}?) i'd need the lsusb -v output for the corresponding devices. If you have a logitech webcam where the mic doesnt work (looking

Re: uaudio: fix logitech c310 integrated mic

2018-06-29 Thread Landry Breuil
On Fri, Jun 29, 2018 at 09:05:56AM +0200, Remco wrote: > > > If you don't find any better solution, I'd suggest using a device ID > > > check rather than adding a quirk. Because such quirk cannot be generic. > > > In that case you have an off-by-one, but another device might have a > > >

Re: uaudio: fix logitech c310 integrated mic

2018-06-28 Thread Landry Breuil
On Mon, Jun 25, 2018 at 11:59:46AM +0200, Martin Pieuchot wrote: > On 24/06/18(Sun) 14:15, Landry Breuil wrote: > > Hi, > > > > the logitech c310 is supported by uvideo, but its uaudio fails to > > attach properly and fallbacks to ugen. > > > > from that

Re: ldapd: fix regress

2018-06-25 Thread Landry Breuil
On Mon, Jun 25, 2018 at 11:08:45AM -0300, Gleydson Soares wrote: > On Mon, Jun 25, 2018 at 08:49:31AM +0200, Landry Breuil wrote: > > On Mon, Jun 25, 2018 at 02:25:40AM -0300, Gleydson Soares wrote: > > > unbreak ldapd regress, > > > everything seems to be worki

Re: ldapd: fix regress

2018-06-25 Thread Landry Breuil
On Mon, Jun 25, 2018 at 02:25:40AM -0300, Gleydson Soares wrote: > unbreak ldapd regress, > everything seems to be working fine. the point of the overly complicated grep line was to handle the case where you have a running production ldapd, and you spawn another one for regress.. that's also why

Re: sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
On Sun, Jun 24, 2018 at 06:26:02PM +0200, Alexandre Ratchov wrote: > On Sun, Jun 24, 2018 at 05:38:11PM +0200, Landry Breuil wrote: > > On Sun, Jun 24, 2018 at 05:23:46PM +0200, Landry Breuil wrote: > > > Hi, > > > > > > here's an attempt at document

Re: sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
On Sun, Jun 24, 2018 at 05:23:46PM +0200, Landry Breuil wrote: > Hi, > > here's an attempt at documenting the usecase i always forget when > playing with multiple devices/mics. Feedback/reworking/tweaks welcome. New version after super quick feedback from jmc@, unsure where to p

sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
Hi, here's an attempt at documenting the usecase i always forget when playing with multiple devices/mics. Feedback/reworking/tweaks welcome. Landry Index: sndiod.8 === RCS file: /cvs/src/usr.bin/sndiod/sndiod.8,v retrieving

uaudio: fix logitech c310 integrated mic

2018-06-24 Thread Landry Breuil
Hi, the logitech c310 is supported by uvideo, but its uaudio fails to attach properly and fallbacks to ugen. uaudio0 at uhub0 port 1 configuration 1 interface 2 "Logitech Webcam C310" rev 2.00/0.12 addr 2 uaudio_identify_ac: AC interface is 2 uaudio_identify_ac: found AC header, vers=100,

Add 'video' pledge

2018-05-24 Thread Landry Breuil
Hi, here's two simple diffs (one for the kernel, one for the pledge.2 manpage) that allow me to use my webcam again within firefox when pledged,, adding 'video' to the main process pledges. The kernel changes are similar to what was done for 'audio' pledge, and i took the ioctl list from the

Re: Faster msdosfs read

2018-04-30 Thread Landry Breuil
On Sat, Apr 28, 2018 at 04:55:29PM +0200, Martin Pieuchot wrote: > On 26/04/18(Thu) 23:06, Landry Breuil wrote: > > On Thu, Apr 26, 2018 at 10:01:25PM +0200, Martin Pieuchot wrote: > > > This is the 4th attempt to implement clustering for msdosfs. See [0] > >

Re: Faster msdosfs read

2018-04-26 Thread Landry Breuil
On Thu, Apr 26, 2018 at 10:01:25PM +0200, Martin Pieuchot wrote: > This is the 4th attempt to implement clustering for msdosfs. See [0] > for the previous story. > > This version implements the strict necessary to read a maximum of 64k > per read. Unlike the previous version we no longer mix

Re: net80211: stub SIOCS80211SCAN, make ifconfig scan instant

2018-04-26 Thread Landry Breuil
On Wed, Apr 25, 2018 at 09:14:42PM +0300, Paul Irofti wrote: > On Wed, Apr 25, 2018 at 08:55:26PM +0300, Paul Irofti wrote: > > Hi, > > > > The following diff removes the functionality of the SIOCS80211SCAN ioctl. > > After long discussions with stps@, mpi@, and deraadt@ we decided that > > this

query usb device info at device creation

2018-04-25 Thread Landry Breuil
Hi, prompted by mpi@ i tried simplifying the way we get the vendor/product/serial info from the device. Currently this is done lazily, and sometimes several times. Instead of this, let's query the device in usbd_new_device(), fallback to the global known lists then to the USB IDs, cache the info

Re: fill device description with product name in uvideo(4)

2018-04-24 Thread Landry Breuil
On Tue, Apr 24, 2018 at 04:04:34PM +0100, Stuart Henderson wrote: > On 2018/04/24 16:34, Landry Breuil wrote: > > Hi, > > > > here's a diff to reuse usbd_devinfo_vp() (exposed in usbdivar.h) in > > VIDIOC_QUERYCAP ioctl callback, this way we can fill v4l2_capabi

fill device description with product name in uvideo(4)

2018-04-24 Thread Landry Breuil
Hi, here's a diff to reuse usbd_devinfo_vp() (exposed in usbdivar.h) in VIDIOC_QUERYCAP ioctl callback, this way we can fill v4l2_capability card struct member with the actual usb product name instead of a dummy "Generic USB video class device". Firefox uses that ioctl to get the user-facing

Re: [patch] Remove redundant quotes in sys/sys/resource.h and sys/sys/sysctl.h

2018-04-20 Thread Landry Breuil
On Fri, Apr 20, 2018 at 06:53:44AM -0500, Jimmy Hess wrote: > On Fri, Apr 20, 2018 at 3:57 AM, Theo Buehler wrote: > > I don't think these are "redundant quotes" but rather ditto marks: > > The ditto mark and the quote character are not the same character, > and the comments

document netstart's -n flag

2018-03-02 Thread Landry Breuil
Hi, crude attempt at documenting -n in netstart, the wording can probably be improved. Landry Index: netstart.8 === RCS file: /cvs/src/share/man/man8/netstart.8,v retrieving revision 1.21 diff -u -r1.21 netstart.8 --- netstart.8 5

Re: Fixed sys_socket() plumbing

2018-02-12 Thread Landry Breuil
On Mon, Feb 12, 2018 at 09:22:54AM +0100, Martin Pieuchot wrote: > I found my mistake in the previous diff. `SS_NBIO' was never set on > non blocking sockets. Diff below fixes that by checking `nonblock' > like it is done in sys_socketpair(). > > Tests & oks welcome :) Running with it now on

Re: fixing kvm lapic hangs

2018-02-07 Thread Landry Breuil
On Thu, Feb 08, 2018 at 04:32:29PM +1300, Jonathan Matthew wrote: > This diff (most of which has been around for a while) changes delay_func > when running in KVM to use pvclock (effectively the TSC) to determine when to > stop spinning. Since this is done in a KVM-specific driver, it won't have

Re: syslog.conf(5): example about logging by sender

2018-02-01 Thread Landry Breuil
On Thu, Feb 01, 2018 at 02:26:16PM +0100, Alexander Bluhm wrote: > On Thu, Feb 01, 2018 at 09:08:04AM +0100, Landry Breuil wrote: > > > # Log everything coming from host bastion to a separate file > > > ++bastion

Re: syslog.conf(5): example about logging by sender

2018-02-01 Thread Landry Breuil
On Wed, Jan 31, 2018 at 03:06:13PM -0700, Todd C. Miller wrote: > On Wed, 31 Jan 2018 20:44:10 +0100, Landry Breuil wrote: > > > the default etc/syslog.conf has a commented out example for by-prog > > logging, but nothing for by-host logging. I fighted a bit with it; so >

syslog.conf(5): example about logging by sender

2018-01-31 Thread Landry Breuil
Hi, the default etc/syslog.conf has a commented out example for by-prog logging, but nothing for by-host logging. I fighted a bit with it; so why not providing an example in the EXAMPLES section of the manpage ? Landry Index: syslog.conf.5

Re: [patch] Remove superfluous seek_filesize() from less

2017-09-25 Thread Landry Breuil
On Mon, Sep 25, 2017 at 10:19:16AM +0200, Jesper Wallin wrote: > Shameless bump, now when we're out of beta. :-) being out of beta means we're in release mode..

Re: caesar(6) documents incorrect frequencies

2017-08-03 Thread Landry Breuil
On Thu, Aug 03, 2017 at 11:20:15AM +0200, Daniel Hartmeier wrote: > Maybe you mean Etaoin Shrdlu, it has a fascinating story > > https://archive.org/details/FarewellEtaoinShrdlu Wow, just wow. Thanks for this piece of history :)

Re: make pkg_info -Q work with other flags

2017-08-03 Thread Landry Breuil
On Wed, Aug 02, 2017 at 12:11:13PM -0600, Aaron Bieber wrote: > On Sat, Jul 29, 2017 at 10:40:37AM -0600, Aaron Bieber wrote: > > Hola, > > > > Currently "pkg_info -Q" doesn't respect other flags and the way > > pkg_info(1) reads, it implies that they will work with it. > > > > This diff makes

Re: introduction of an additional non-POSIX function in libpthread

2017-07-18 Thread Landry Breuil
On Tue, Jul 18, 2017 at 01:43:42PM +0100, David CARLIER wrote: > Ah I recognise you you re Mozilla contributor right ? You re probably right > but that was just an example eventhough I admit it s not extremely widely > used ... Note that you'll have to be careful in your arguments for this

Re: introduction of an additional non-POSIX function in libpthread

2017-07-18 Thread Landry Breuil
On Tue, Jul 18, 2017 at 01:24:21PM +0100, David CARLIER wrote: > Hi. > > I sent a diff originally to a smaller audience but finally decided to post > it in the mailing list. > So it is to introduce the pthread_set_name_np's counterpart so > pthread_get_name_np. > Some softwares use it (NSPR for

Re: cwm: remove ssh auto-completion

2017-07-10 Thread Landry Breuil
On Mon, Jul 10, 2017 at 04:04:47PM +0200, Ingo Schwarze wrote: > Hi, > > Bryan Steele wrote on Mon, Jul 10, 2017 at 09:38:32AM -0400: > > > This was a feature added last year by nicm@, not touching emacs.c > > at all.. > > edit.c is a helper file containing common utilities for emacs.c > and

Re: dhcpd: don't reject DHCPINFORM from behind relay

2017-07-07 Thread Landry Breuil
On Thu, Jul 06, 2017 at 11:28:11AM +0200, Landry Breuil wrote: > On Wed, Jul 05, 2017 at 04:37:39PM +0200, Reyk Floeter wrote: > > Hi, > > > > landry@ sees many log messages 'DHCPINFORM from xx but ciaddr yy is > > not consistent with actual address' in a se

Re: dhcpd: don't reject DHCPINFORM from behind relay

2017-07-06 Thread Landry Breuil
On Wed, Jul 05, 2017 at 04:37:39PM +0200, Reyk Floeter wrote: > Hi, > > landry@ sees many log messages 'DHCPINFORM from xx but ciaddr yy is > not consistent with actual address' in a setup where dhcpd runs behind > dhcrelay. > > The code in dhcpd's dhcpinform() seems wrong - it assumes that

Re: ports framework change: readme and rc generation

2017-06-26 Thread Landry Breuil
On Mon, Jun 26, 2017 at 12:36:16PM +0200, Marc Espie wrote: > I need to get this thru my next bulk. > This should work around several existing issues. > > First, PKGDIR must exist. Creating it during fake is no longer possible, > because this doesn't work with dpb in privsep mode. > > Having

Re: [PATCH] cp(1): add -v option for verbosity

2017-06-25 Thread Landry Breuil
On Sun, Jun 25, 2017 at 09:59:35PM +0200, Paul de Weerd wrote: > On Sun, Jun 25, 2017 at 06:22:05PM +0200, Job Snijders wrote: > | Dear Alexander, > | > | On Sun, Jun 25, 2017 at 06:13:40PM +0200, Alexander Hall wrote: > | > On June 25, 2017 2:06:20 PM GMT+02:00, Job Snijders

Re: [PATCH] mv(1): add -v option for verbosity

2017-06-25 Thread Landry Breuil
On Sun, Jun 25, 2017 at 02:41:28PM +0200, Mark Kettenis wrote: > > Date: Sun, 25 Jun 2017 14:06:11 +0200 > > From: Job Snijders > > > > Hi all, > > > > This patch adds a -v option to mv(1) for more verbose output. > > > > $ touch a > > $ mv -v a b > > 'a' -> 'b'

Re: start building clang alongside gcc on amd64

2017-04-17 Thread Landry Breuil
On Mon, Apr 17, 2017 at 09:20:21AM +0200, Mark Kettenis wrote: > After further discussion it Theo, here is a new version of the diff. > It explicitly lists the gcc4 architectures now, introduces BUILD_GCC3 > and BUILD_GCC4 variables and fixes installation of the c++ headers. > > Index:

Re: Xorg stipple

2017-02-26 Thread Landry Breuil
On Wed, Mar 09, 2016 at 05:09:13PM -0600, joshua stein wrote: > Is anyone seriously finding video/Xorg bugs through the default X > stipple pattern anymore? Xorg changed the default to draw a black > background a while ago (with stipple enabled using the -retro flag), > but we have this local

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-10 Thread Landry Breuil
On Fri, Feb 10, 2017 at 09:36:16AM +0100, Antoine Jacoutot wrote: > On Thu, Feb 09, 2017 at 06:19:54PM +0100, Landry Breuil wrote: > > On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > > > On 2017/02/05 09:53, Robert Peichaer wrote: > > > > On S

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-09 Thread Landry Breuil
On Thu, Feb 09, 2017 at 06:19:54PM +0100, Landry Breuil wrote: > On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > > On 2017/02/05 09:53, Robert Peichaer wrote: > > > On Sun, Feb 05, 2017 at 10:46:41AM +0100, Landry Breuil wrote: > > > > Hi, &g

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-09 Thread Landry Breuil
On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > On 2017/02/05 09:53, Robert Peichaer wrote: > > On Sun, Feb 05, 2017 at 10:46:41AM +0100, Landry Breuil wrote: > > > Hi, > > > > > > when installing 'throwaway' VMs (ma

add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-05 Thread Landry Breuil
Hi, when installing 'throwaway' VMs (manually, not always using autoinstall for $REASONS) i've often found myself having to do right after the install: install -d -m 700 /root/.ssh install -m 600 /dev/null /root/.ssh/authorized_keys (or touch /root/.ssh/authorized_keys && chmod 600

Re: Allow install from https server w/ self signed cert

2017-01-06 Thread Landry Breuil
On Fri, Jan 06, 2017 at 11:28:34AM +, Stuart Henderson wrote: > Related to this (and particularly thinking about autoinstalls), > would it make sense to allow explicit protocols in the hostname? > > some.host -> https with http fallback > http://some.host/ -> http only > https://some.host/ ->

Re: add commented out spamd config to default syslog.conf

2016-12-08 Thread Landry Breuil
On Thu, Dec 08, 2016 at 01:16:43PM +, Stuart Henderson wrote: > On 2016/12/08 09:42, Landry Breuil wrote: > > Hi, > > > > i know this is in the examples section of syslog.conf(5), but i got > > bitten by this again, so what do ppl thing about adding those

add commented out spamd config to default syslog.conf

2016-12-08 Thread Landry Breuil
Hi, i know this is in the examples section of syslog.conf(5), but i got bitten by this again, so what do ppl thing about adding those 3 lines to the default syslog.conf ? wont push for this, was just taunted by someone "i would OK a diff to add an example to the default syslog.conf" :) Landry

Re: reloading pf through ansible easy hook

2016-11-22 Thread Landry Breuil
On Tue, Nov 22, 2016 at 11:15:01AM +, BARDOU Pierre wrote: > Hello, > > - name: "Loading pf.conf" > template: src=pf.conf dest=/etc/ validate="pfctl -f %s" Fwiw, i find it nicer to validate with 'pfctl -nf' .. Landry

Re: Append system start up messages to new /var/log/dmesg in /etc/rc

2016-10-19 Thread Landry Breuil
On Wed, Oct 19, 2016 at 02:19:22PM +0100, Craig Skinner wrote: > Hi, > > With dmesg's new -s flag, append each boot's full log to a new > /var/log/dmesg semi-private log file. > > Inspired by Alexander Hall's recent post: > http://marc.info/?l=openbsd-misc=147674181621645 > > This works for me

Re: missing includes in games/

2016-09-11 Thread Landry Breuil
On Sun, Sep 11, 2016 at 11:17:25AM +0200, Theo Buehler wrote: > These all call time(3), so should include directly. > > ok? > > Index: bcd/bcd.c > === > RCS file: /var/cvs/src/games/bcd/bcd.c,v > retrieving revision 1.25 > diff -u

  1   2   >