Re: acpithinkpad: a fix for the x260

2019-03-07 Thread James Turner
c_devnode, "PBLS", 1, , NULL); > + > + if (ret) > + return ret; > > thinkpad_get_brightness(sc); > + > + return 0; > } > > int > @@ -765,7 +775,8 @@ thinkpad_set_param(struct wsdisplay_para > dp->curval = maxval; > sc->sc_brightness &= ~0xff; > sc->sc_brightness |= dp->curval; > - acpi_addtask(sc->sc_acpi, thinkpad_set_brightness, sc, 0); > + acpi_addtask(sc->sc_acpi, (void *)thinkpad_set_brightness, sc, > + 0); > acpi_wakeup(sc->sc_acpi); > return 0; > default: > -- James Turner

Re: acpithinkpad: fix brightness keys, keyboard backlight value

2019-03-05 Thread James Turner
> int > -thinkpad_set_backlight(struct wskbd_backlight *kbl) > +thinkpad_set_kbd_backlight(struct wskbd_backlight *kbl) > { > struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; > int maxval; > @@ -664,6 +706,8 @@ thinkpad_get_brightness(struct acpithink > { > aml_evalinteger(sc->sc_acpi, sc->sc_devnode, > "PBLG", 0, NULL, >sc_brightness); > + > + DPRINTF(("%s: %s: 0x%llx\n", DEVNAME(sc), __func__, sc->sc_brightness)); > } > > void > @@ -672,11 +716,15 @@ thinkpad_set_brightness(void *arg0, int > struct acpithinkpad_softc *sc = arg0; > struct aml_value arg; > > + DPRINTF(("%s: %s: 0x%llx\n", DEVNAME(sc), __func__, sc->sc_brightness)); > + > memset(, 0, sizeof(arg)); > arg.type = AML_OBJTYPE_INTEGER; > arg.v_integer = sc->sc_brightness & 0xff; > aml_evalname(sc->sc_acpi, sc->sc_devnode, > "PBLS", 1, , NULL); > + > + thinkpad_get_brightness(sc); > } > > int > -- James Turner

Re: libxshmfence.so.0.0 issues with latest snapshot?

2018-06-26 Thread James Turner
I ran into the same issue. You can either wait for a new snapshot, or build X yourself following step 5 in release(8). -- James Turner

Re: ihidev(4) polling

2017-11-16 Thread James Turner
not, thanks for all your hard work on adding touchpad support to these new devices. -- James Turner

Re: sqlite3 update

2016-06-23 Thread James Turner
to lib/libsqlite3/ > but is otherwise unchanged from the in-tree version. > > The only change to the Makefile from my previous diff is adding > pthread_stub.c to SRCS. > Like I've stated before, I think this is the best way to move forward for the time being, so you have my ok. -- James Turner

Re: sqlite3 update

2016-06-08 Thread James Turner
On Wed, Jun 08, 2016 at 11:33:42PM +0100, Stuart Henderson wrote: > On 2016/06/03 20:17, James Turner wrote: > > On Fri, Jun 03, 2016 at 11:24:15PM +0100, Stuart Henderson wrote: > > > On 2016/06/01 11:22, Stuart Henderson wrote: > > > > On 2016/06/01 09:09, Landry Br

Re: sqlite3 update

2016-06-03 Thread James Turner
ts and update ports to use this instead. I personally think this is the way to go. Sadly I don't have the time to do this right now (We just welcomed our second child recently). -- James Turner

Re: sqlite3 update

2016-05-31 Thread James Turner
sions of sqlite in their Stuart, This looks good. I've tested with mandoc and fossil in ports. ok jturner. -- James Turner

Re: SQLite 3.9.2 update

2015-12-21 Thread James Turner
On Sat, Dec 19, 2015 at 08:43:38AM +0100, Landry Breuil wrote: > On Mon, Dec 14, 2015 at 08:51:47PM +0100, Landry Breuil wrote: > > On Mon, Dec 14, 2015 at 01:09:38PM -0500, James Turner wrote: > > > SQLite 3.9.2 updated. Tested on amd64. I've included the json extension > &g

[no subject]

2015-09-09 Thread James Turner
as it would make each update more manageable but I'm not sure what espie@ original goals where with following upstream. -- James Turner

Re: your mail

2015-09-09 Thread James Turner
On Wed, Sep 09, 2015 at 06:13:11PM +0200, Gilles Chehade wrote: > unrelated to this topic, I suspect your smtpd is fairly old right ? > Running a snapshot from 9/2. > On Wed, Sep 09, 2015 at 11:33:57AM -0400, James Turner wrote: > > espie@openbsd, dera...@cvs.openbsd.org > &

Re: your mail

2015-09-09 Thread James Turner
On Wed, Sep 09, 2015 at 06:13:11PM +0200, Gilles Chehade wrote: > unrelated to this topic, I suspect your smtpd is fairly old right ? > If this is about my fucked up response I think that was all on me and a failed Mutt reply. > On Wed, Sep 09, 2015 at 11:33:57AM -0400, James Tur

opensmtpd + acceptable mail

2015-05-06 Thread James Turner
So I'm not quite sure how to explain this but I'm getting similiar emails to the one below and it seems like opensmtpd should be rejecting them as they don't seem like they are a valid format. Have others seen emails like these? Should opensmtpd be rejecting them? -- James Turner From

Re: Macbook Air azalia(4) quirk

2015-04-24 Thread James Turner
On Fri, Apr 24, 2015 at 08:23:01PM -0400, James Turner wrote: The attached diff allows sound to work on my late 2013 Macbook Air (6,1). oks? Ok that diff had lots of typos, please ignore until I can send a new one. Sorry for the noise. -- James Turner

Macbook Air azalia(4) quirk

2015-04-24 Thread James Turner
The attached diff allows sound to work on my late 2013 Macbook Air (6,1). oks? -- James Turner Index: azalia_codec.c === RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v retrieving revision 1.165 diff -u -p -u -p -r1.165

Re: Macbook Air azalia(4) quirk

2015-04-24 Thread James Turner
On Fri, Apr 24, 2015 at 08:53:44PM -0400, James Turner wrote: On Fri, Apr 24, 2015 at 08:23:01PM -0400, James Turner wrote: The attached diff allows sound to work on my late 2013 Macbook Air (6,1). oks? Ok that diff had lots of typos, please ignore until I can send a new one. Sorry

Re: apmd -C tweak

2014-07-15 Thread James Turner
On Sun, Jul 13, 2014 at 10:06:44AM -0400, Ted Unangst wrote: for reference, i use this. faster query interval and when not idle, slam high immediately. I've been very happy with this change as well. -- James Turner

Re: acpiec(4) clear events on attach and resume

2014-03-28 Thread James Turner
On Fri, Mar 28, 2014 at 11:59:57AM +0200, Paul Irofti wrote: On Thu, Mar 27, 2014 at 08:33:51PM -0400, James Turner wrote: I'm running the most recent amd64 snap (3/27) and it sounds like this diff might be in it? Also not sure if this diff would affect the reporting of acpi battery

Re: acpiec(4) clear events on attach and resume

2014-03-28 Thread James Turner
On Sat, Mar 29, 2014 at 03:51:10AM +0200, Paul Irofti wrote: On Fri, Mar 28, 2014 at 07:14:53PM -0400, James Turner wrote: On Fri, Mar 28, 2014 at 11:59:57AM +0200, Paul Irofti wrote: On Thu, Mar 27, 2014 at 08:33:51PM -0400, James Turner wrote: I'm running the most recent amd64 snap (3

Re: acpiec(4) clear events on attach and resume

2014-03-27 Thread James Turner
1 lun 0: OPENBSD, SR CRYPTO, 005 SCSI2 0/direct fixed sd1: 122103MB, 512 bytes/sector, 250067198 sectors root on sd1a (91aab9c13da59ddb.a) swap on sd1b dump on sd1b -- James Turner

Re: Use SCRIPT_FILENAME in slowcgi

2014-03-16 Thread James Turner
On Sun, Mar 16, 2014 at 04:01:04PM +, Florian Obser wrote: On Fri, Mar 07, 2014 at 10:35:37PM -0500, James Turner wrote: On Fri, Mar 07, 2014 at 11:20:53PM +, Stuart Henderson wrote: I've been umming and ahhing about this diff, the thing I don't like is that SCRIPT_FILENAME

Re: Use SCRIPT_FILENAME in slowcgi

2014-03-07 Thread James Turner
If we want to keep it simple we can just go this route. On Sat, Mar 01, 2014 at 04:39:49PM -0500, James Turner wrote: The attached diff uses SCRIPT_FILENAME instead of SCRIPT_NAME to determine the path of CGI scripts in slowcgi. It also updates the example in nginx.conf. According to CGI

Re: Use SCRIPT_FILENAME in slowcgi

2014-03-07 Thread James Turner
if the SCRIPT_FILENAME variable isn't present, so that standard fastcgi servers can use it to some extent too. Maybe something like this? Using SCRIPT_FILENAME if present but falling back on SCRIPT_NAME. -- James Turner Index: slowcgi.c

Re: missing ports.tar.gz in snapshot

2014-03-06 Thread James Turner
. I use snapshots when I have time to test, so whatever direction you want to give as far as testing goes, just let us know. devin No, not all ports can be distributed as packages due to license restrictions. -- James Turner

Simple static testcgi.c

2014-03-01 Thread James Turner
. -- James Turner diff -u -p -N Makefile Makefile --- MakefileWed Dec 31 19:00:00 1969 +++ MakefileSat Mar 1 14:06:39 2014 @@ -0,0 +1,7 @@ +PROG= testcgi +SRCS= testcgi.c +LDSTATIC= -static +NOMAN= 1 +BINDIR=/var/www/cgi-bin + +.include bsd.prog.mk

Re: Simple static testcgi.c

2014-03-01 Thread James Turner
Simplified. On Sat, Mar 01, 2014 at 02:27:44PM -0500, James Turner wrote: So I wanted to test out nginx and slowcgi. I started everything up and hit up localhost/cgi-bin/test-cgi. Whoops forgot to move /bin/sh into the chroot. Try again, shit forgot to chmod 555 test-cgi. I was complaining

Use SCRIPT_FILENAME in slowcgi

2014-03-01 Thread James Turner
outside of cgi-bin I believe this is the correct way to go. -- James Turner Index: usr.sbin/slowcgi/slowcgi.c === RCS file: /cvs/src/usr.sbin/slowcgi/slowcgi.c,v retrieving revision 1.27 diff -u -p -u -p -r1.27 slowcgi.c --- usr.sbin

Re: upd(4) proposal

2014-02-17 Thread James Turner
On Mon, Feb 17, 2014 at 02:19:42PM +0100, Andre de Oliveira wrote: On Sun, Feb 16, 2014 at 10:28:48PM -0500, James Turner wrote: Forgot to include tech@... Hi Andre, I tested upd(4) with my APC Back-UPS ES 550. It looks like it may only have partial support but figured the report

Re: upd(4) proposal

2014-02-16 Thread James Turner
load) And for comparison here are the numbers from NUT: battery.voltage: 13.5 battery.voltage.nominal: 12.0 battery.charge: 100 ups.status: OL ups.load: 5 -- James Turner

Re: pop3 daemon with ssl/tls and STARTTLS, V2

2013-11-26 Thread James Turner
) Comments? Hi Sunil, I've been following your development on bitbucket and want to see if you ever got any feedback from the smtpd guys? Also, I threw together the attached rc.d script for pop3d. -- James Turner #!/bin/sh daemon=/usr/sbin/pop3d . /etc/rc.d/rc.subr pexp=pop3d: \[priv

Re: SQLite 3.8.0.2 diff

2013-09-21 Thread James Turner
On Wed, Sep 18, 2013 at 05:56:10PM +0200, Marc Espie wrote: On Thu, Sep 12, 2013 at 02:35:02PM -0400, James Turner wrote: Attached is a diff to update our in tree version of SQLite to the recently released 3.8.0.2. SQLite 3.8.0 is needed for a fossil update I'm working on. I've tested

Re: SQLite 3.8.0.2 diff

2013-09-16 Thread James Turner
On Sun, Sep 15, 2013 at 11:12:44AM +0200, Landry Breuil wrote: On Thu, Sep 12, 2013 at 02:35:02PM -0400, James Turner wrote: Attached is a diff to update our in tree version of SQLite to the recently released 3.8.0.2. SQLite 3.8.0 is needed for a fossil update I'm working on. I've

Re: acpi global lock diff that needs testing

2013-07-30 Thread James Turner
(acpi_softc-sc_facs-global_lock); + st = acpi_release_glk(acpi_softc-sc_facs-global_lock); if (!st) return; -- James Turner

Re: pop3 daemon with ssl/tls and STARTTLS, V2

2013-07-10 Thread James Turner
) Comments? Source: https://poolp.org/~sunil/pop3d.tar.gz uuencoded gzipped tar file... The new STARTTLS support works like a charm. I would love to see this replace popa3d in base. -- James Turner

Re: pop3 daemon with ssl

2013-06-27 Thread James Turner
On Thu, Jun 27, 2013 at 11:50:48AM +0530, su...@sunilnimmagadda.com wrote: On Wed, Jun 26, 2013 at 09:08:20PM -0400, James Turner wrote: On Wed, Jun 26, 2013 at 08:36:48PM -0400, James Turner wrote: On Thu, Jun 27, 2013 at 12:07:14AM +0530, su...@sunilnimmagadda.com wrote: Hello

Re: pop3 daemon with ssl

2013-06-27 Thread James Turner
On Thu, Jun 27, 2013 at 02:14:50PM -0400, James Turner wrote: On Thu, Jun 27, 2013 at 11:50:48AM +0530, su...@sunilnimmagadda.com wrote: On Wed, Jun 26, 2013 at 09:08:20PM -0400, James Turner wrote: On Wed, Jun 26, 2013 at 08:36:48PM -0400, James Turner wrote: On Thu, Jun 27, 2013 at 12

Re: Somewhat important ACPI diff

2013-05-20 Thread James Turner
) to a somewhat strange reading (27.80 degC) after suspend/resume. A reboot is needed to get the normal temperature reading back. hw.sensors.cpu{0-3}.temp0 continue to output correct readings post suspend/resume. -- James Turner

Re: Stolen memory

2013-04-04 Thread James Turner
. -- James Turner

sys/socket.h __BSD_VISIBLE

2013-04-01 Thread James Turner
/types.h. If we change these to __uint8_t and __uint64_t they work with either types.h or _types.h. Does this make sense? Will there be any side effects? -- James Turner Index: sys/sys/socket.h === RCS file: /cvs/src/sys/sys/socket.h

Re: rthread suspension

2013-03-22 Thread James Turner
machine in my cluster that doesn't behave which is one of the reasons I haven't moved this forward yet. It is on my todo list which I'm chipping away at little by little. -Kurt boehm-gc built and packaged fine on mips64el but all tests failed miserably. -- James Turner

Re: rthread suspension

2013-03-22 Thread James Turner
On Fri, Mar 22, 2013 at 11:19:43PM -0400, James Turner wrote: On Fri, Mar 22, 2013 at 10:05:49PM -0500, Kurt Miller wrote: On Friday 22 March 2013 4:08:47 pm James Turner wrote: On Thu, Mar 21, 2013 at 10:01:42PM -0500, Kurt Miller wrote: [snip] I stalled on submitting them

Re: add intel 6235 support to iwn(4)

2013-01-09 Thread James Turner
On Wed, Jan 09, 2013 at 04:12:23PM +, Richard N wrote: Mark Kettenis mark.kettenis at xs4all.nl writes: Date: Tue, 13 Nov 2012 21:02:24 -0500 From: James Turner james at calminferno.net I was actually able to add support myself with the following diff. Great

www/events.html future events year fix

2013-01-05 Thread James Turner
Future events year should be 2013. -- James Turner | 0x560B0C49 --- events.html.origSat Jan 5 14:53:23 2013 +++ events.html Sat Jan 5 14:52:15 2013 @@ -38,7 +38,7 @@ like-minded people. h2Future events:/h2 -h32012/h3 +h32013/h3 ul listronga name=bsddayeu2013/a

Problems compiling libsqlite3

2012-12-02 Thread James Turner
me? Thanks. -- James Turner ja...@calminferno.net

Re: Problems compiling libsqlite3

2012-12-02 Thread James Turner
to make sure the build isn't broken. As long as developers aren't seeing a problem, thats good enough for me. -- James Turner ja...@calminferno.net

Re: Problems compiling libsqlite3

2012-12-02 Thread James Turner
a step by just trying to compile libsqlite3. I'll just wait for a new snapshot. Thanks for confirming that the build is clearly not broken. -- James Turner ja...@calminferno.net

Re: add intel 6235 support to iwn(4)

2012-11-13 Thread James Turner
I was actually able to add support myself with the following diff. -- James Turner ja...@calminferno.net Index: if_iwn.c === RCS file: /cvs/src/sys/dev/pci/if_iwn.c,v retrieving revision 1.115 diff -u -p if_iwn.c --- if_iwn.c11

mg(1) allow no-tab-mode to compile

2012-05-16 Thread James Turner
Attached is a diff to allow no-tab-mode to compile. It's basically the same as a diff sent to this list around 2 years ago minus enabling this mode by default. -- James Turner ja...@calminferno.net Index: cmode.c === RCS file: /cvs

spamd.8 patch

2011-03-18 Thread James Turner
I was just setting up spamd in blacklist mode on the latest snap and discovered the man page is missing the in between pass on. Diff attached. Index: spamd.8 === RCS file: /cvs/src/libexec/spamd/spamd.8,v retrieving revision 1.117