Alternate cpu policy on battery

2021-09-25 Thread Solene Rapenne
Last time I proposed a CPU frequency scheduling change to make it more performance oriented, however this would hurt badly the battery life for nomad users. As we don't like tweaks and complicated settings, I create a new CPU frequency policy that is oriented for nomad users, it reduces

Re: new gpiocharger driver

2021-09-25 Thread Mark Kettenis
> Date: Sat, 25 Sep 2021 15:45:15 + > From: Klemens Nanni > > On Sat, Sep 25, 2021 at 10:53:12AM +, Klemens Nanni wrote: > > On Fri, Sep 24, 2021 at 10:35:56PM +, Klemens Nanni wrote: > > > On Thu, Sep 16, 2021 at 11:07:20AM +0200, Mark Kettenis wrote: > > > > > Date: Thu, 16 Sep

Re: umb(4) supports for SIMCom SIM7600

2021-09-25 Thread Shawn Chiou
Hi, I tested it on my thinkpad X230 with OpenBSD -current amd64. I can get the following messages from console after AT commands issued. umb0 at uhub0 port 2 configuration 1 interface 5 "SIMCOM INCORPORATED > SimTech, Incorporated" rev 2.00/3.18 addr 2 > ugen2 at uhub0 port 2 configuration 1

Re: new gpiocharger driver

2021-09-25 Thread Klemens Nanni
On Sat, Sep 25, 2021 at 10:53:12AM +, Klemens Nanni wrote: > On Fri, Sep 24, 2021 at 10:35:56PM +, Klemens Nanni wrote: > > On Thu, Sep 16, 2021 at 11:07:20AM +0200, Mark Kettenis wrote: > > > > Date: Thu, 16 Sep 2021 06:14:39 + > > > > From: Klemens Nanni > > > > > > > > On 5

Re: preferred #include guard idiom?

2021-09-25 Thread craekz7
On Fri, Sep 24, 2021 at 08:16:22PM +0100, ropers wrote: > I'm looking at the #include guards in various .h files in /usr/include. > There seem to be different (comment) idioms present at the bottom of > those files/#include guards. > > > For example: > > ctype.h: > #endif /* !_CTYPE_H_ */ > >

[PATCH] add SO_PASSCRED to receive creds of Unix datagram sender

2021-09-25 Thread David MacKay
Good morning, The patch attached below adds a new socket option, SO_PASSCRED, for datagram sockets in the Unix domain. This socket option causes an ancillary message of type SCM_CREDS to be attached by the kernel to the datagram filled in with the credentials of the datagram sender. SCM_CREDS

Re: new gpiocharger driver

2021-09-25 Thread Klemens Nanni
On Fri, Sep 24, 2021 at 10:35:56PM +, Klemens Nanni wrote: > On Thu, Sep 16, 2021 at 11:07:20AM +0200, Mark Kettenis wrote: > > > Date: Thu, 16 Sep 2021 06:14:39 + > > > From: Klemens Nanni > > > > > > On 5 September 2021 01:22:53 GMT+05:00, Klemens Nanni > > > wrote: > > > >Read a