umodem: don't attach if it can't be used

2010-11-29 Thread Jacob Meuser
umodem(4) doesn't support devices that don't have a data interface. this patch moves a chunk of code from the driver's attach function that iterates over the usb descriptors to find the data endpoint and other capabilities to a separate function. this function is then used in the match function, a

allow bioctl to read passphrase from stdin

2010-11-29 Thread Chris Kuethe
Currently bioctl invokes readpassphrase(3) with RPP_REQUIRE_TTY, which means that there must be a controlling tty to read the password from. This diff adds an option (-s) to force bioctl to read the passphrase from stdin. Without this option existing behavior is maintained. Index: bioctl.8 ===

Re: ZTE MF112 HSUPA - report and patch for usbdevs, umsm.c

2010-11-29 Thread Jonathan Gray
On Mon, Nov 29, 2010 at 05:25:38PM +0100, MERIGHI Marcus wrote: > hello, > > disclaimer: David Coppa told me to post this to tech@ so this is not a > case of cross posting. > > bought a ZTE MF112 today for my girlfriends ms win notebook. Took the > chance to test it on OpenBSD. > Without the p

Re: update pms driver

2010-11-29 Thread Nicholas Marriott
On Tue, Nov 30, 2010 at 02:43:48AM +0500, Alexandr Shadchin wrote: > On Mon, Nov 29, 2010 at 08:58:31PM +, Nicholas Marriott wrote: > > Hi > > > > Sorry for the delay again :-/. > > > > On Tue, Nov 23, 2010 at 04:10:29PM +0500, Alexandr Shadchin wrote: > > > On Mon, Nov 22, 2010 at 09:44:14PM

Re: update pms driver

2010-11-29 Thread Alexandr Shadchin
On Mon, Nov 29, 2010 at 08:58:31PM +, Nicholas Marriott wrote: > Hi > > Sorry for the delay again :-/. > > On Tue, Nov 23, 2010 at 04:10:29PM +0500, Alexandr Shadchin wrote: > > On Mon, Nov 22, 2010 at 09:44:14PM +, Nicholas Marriott wrote: > > > Hi Alexandr > > > > > > This works fine f

Re: update pms driver

2010-11-29 Thread Nicholas Marriott
Hi Sorry for the delay again :-/. On Tue, Nov 23, 2010 at 04:10:29PM +0500, Alexandr Shadchin wrote: > On Mon, Nov 22, 2010 at 09:44:14PM +, Nicholas Marriott wrote: > > Hi Alexandr > > > > This works fine for me with both with X and wsmoused. > > > > A few things: > > > > - Did you delibe

Re: acpithinkpad(4) fan control

2010-11-29 Thread Kevin Chadwick
On Mon, 22 Nov 2010 16:01:18 -0600 joshua stein wrote: > it would be helpful to have some kind of > watchdog to reset the fan to auto/high if something goes wrong, but > i don't know whether that's even possible. while probably not a big > issue on a laptop, if the fan was on manual/low when the

Re: acpithinkpad(4) fan control

2010-11-29 Thread joshua stein
> When I have this working I want to implement a PID controler for it. > Since I'd like to see this get committed, where would be the preferred > place to put the PID-controller? Kernel or userland? kernel, definitely. it would be helpful to have some kind of watchdog to reset the fan to auto/hig

ZTE MF112 HSUPA - report and patch for usbdevs, umsm.c

2010-11-29 Thread MERIGHI Marcus
hello, disclaimer: David Coppa told me to post this to tech@ so this is not a case of cross posting. bought a ZTE MF112 today for my girlfriends ms win notebook. Took the chance to test it on OpenBSD. Without the patches below the thingy attaches as umsm for a second, detaches and re-attaches

Re: acpithinkpad(4) fan control

2010-11-29 Thread Marco Pfatschbacher
On Mon, Nov 29, 2010 at 03:23:58PM +0100, Christopher Zimmermann wrote: > Hi! > > I'd like to implement fan speed control for Thinkpads. It is documented > at http://www.thinkwiki.org/wiki/How_to_control_fan_speed#Hardware_specs > and linux also implements this (but with special case for TP 570, >

Re: acpithinkpad(4) fan control

2010-11-29 Thread Marco Peereboom
This needs to be all handled in the kernel. User space can only get status. We'd love to see this code. On Mon, Nov 29, 2010 at 03:23:58PM +0100, Christopher Zimmermann wrote: > Hi! > > I'd like to implement fan speed control for Thinkpads. It is documented > at http://www.thinkwiki.org/wiki/Ho

acpithinkpad(4) fan control

2010-11-29 Thread Christopher Zimmermann
Hi! I'd like to implement fan speed control for Thinkpads. It is documented at http://www.thinkwiki.org/wiki/How_to_control_fan_speed#Hardware_specs and linux also implements this (but with special case for TP 570, 600e/x, 770e, 770x - anyone here with access to one of these?) Implementing a drive

Re: CVS: cvs.openbsd.org: src

2010-11-29 Thread David Gwynne
seems to work fine on my big box. On 29/11/2010, at 5:43 PM, Philip Guenther wrote: > On Sun, 28 Nov 2010, Philip Guenther wrote: >> On Sun, 28 Nov 2010, Philip Guenther wrote: >>> On Sunday, November 28, 2010, David Gwynne wrote: >> ... Log message: bump the number of supported cpus f