From owner-freebsd-chat@FreeBSD.ORG Sun Oct 8 22:54:37 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 743B916A403; Sun, 8 Oct 2006 22:54:37 +0000 (UTC) (envelope-from lboehne@damogran.de) Received: from cthulhu.zoidberg.org (zoidberg.org [213.133.99.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B922343D45; Sun, 8 Oct 2006 22:54:36 +0000 (GMT) (envelope-from lboehne@damogran.de) Received: from [192.168.2.100] (dslb-084-063-010-182.pools.arcor-ip.net [::ffff:84.63.10.182]) (AUTH: PLAIN kasperle, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by cthulhu.zoidberg.org with esmtp; Mon, 09 Oct 2006 00:54:34 +0200 id 02033785.452981AA.00003A7F Message-ID: <45298188.1080201@damogran.de> Date: Mon, 09 Oct 2006 00:54:00 +0200 From: Lutz Boehne User-Agent: Thunderbird 1.5.0.5 (X11/20060827) MIME-Version: 1.0 To: Jonathan Buzzard References: <4528EF25.1000103@buzzard.me.uk> In-Reply-To: <4528EF25.1000103@buzzard.me.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-chat@freebsd.org, freebsd-audit@freebsd.org Subject: Re: GPL License violation X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2006 22:54:37 -0000 Dear Jonathan, -hackers and -chat first of all, the freebsd-audit mailinglist has been dead for a few months now (I wonder why I'm even still subscribed, I think it has been officially retired some time ago) and your e-mail is not related to "FreeBSD Security Auditing" either. I'm not quite sure where your message would fit best, so for now I'm CCing freebsd-hackers and freebsd-chat. Regarding your issue: I tried several greps on a fresh copy of the FreeBSD RELENG_6 source tree and couldn't find the code you're referring to. For instance, egrepping recursively for "movl.*20.*eax.*edi" (which finds the line "movl 20(%%eax),%%edi\n\t" in Linuxes i8k.c just fine) will turn up any results. Also, grepping recursively for just the "lahf" instruction wouldn't find it in any context similar to the one you attached. Grepping for Dell or Toshiba didn't turn up anything useful either. There are at least three possibilities now: - my grep skills are lacking, or - the code is gone from the FreeBSD source (or it is not in RELENG_6, but -CURRENT), or - the person who sent you that e-mail is mistaken. In any case, I suggest you get back to that person and ask for more information. Regards, Lutz Jonathan Buzzard wrote: > I received an email yesterday asking about the license of some code > found in FreeBSD to turn the fan on a Dell laptop on/off, the code in > question is shown below. I do not know exactly where in FreeBSD this > code lies, as I do not use FreeBSD. Neither do I want or should have to > go looking for it. > > This code has been lifted verbatim out of drivers/char/i8k.c in Linux, > which in itself was a minor modification of code in > drivers/char/toshiba.c mdae by myself. This code dates back to January > 1998, and was first included in Linux around 2.2.20. I am the original > author of this code, and it is clearly and only ever licensed under the > GPL. I must insist that it be removed forwith from FreeBSD. > > JAB. > > > (cut along the line) > -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<------- > > asm("pushl %%eax\n\t" \ > "movl 0(%%eax),%%edx\n\t" \ > "push %%edx\n\t" \ > "movl 4(%%eax),%%ebx\n\t" \ > "movl 8(%%eax),%%ecx\n\t" \ > "movl 12(%%eax),%%edx\n\t" \ > "movl 16(%%eax),%%esi\n\t" \ > "movl 20(%%eax),%%edi\n\t" \ > "popl %%eax\n\t" \ > "out %%al,$0xb2\n\t" \ > "out %%al,$0x84\n\t" \ > "xchgl %%eax,(%%esp)\n\t" > "movl %%ebx,4(%%eax)\n\t" \ > "movl %%ecx,8(%%eax)\n\t" \ > "movl %%edx,12(%%eax)\n\t" \ > "movl %%esi,16(%%eax)\n\t" \ > "movl %%edi,20(%%eax)\n\t" \ > "popl %%edx\n\t" \ > "movl %%edx,0(%%eax)\n\t" \ > "lahf\n\t" \ > "shrl $8,%%eax\n\t" \ > "andl $1,%%eax\n" \ > : "=a" (rc) > : "a" (regs) > : "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory"); > > > if ((rc != 0) || ((regs->eax & 0xffff) == 0xffff) || (regs->eax == > eax)) > { > return -1; > } > > -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<------- > > > -- Lutz Boehne - http://www.damogran.de From owner-freebsd-chat@FreeBSD.ORG Sun Oct 8 23:03:34 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FFAF16A40F; Sun, 8 Oct 2006 23:03:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77CD343D69; Sun, 8 Oct 2006 23:03:33 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k98N2Ik6090554; Sun, 8 Oct 2006 17:02:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 08 Oct 2006 17:01:30 -0600 (MDT) Message-Id: <20061008.170130.-2009526630.imp@bsdimp.com> To: lboehne@damogran.de From: "M. Warner Losh" In-Reply-To: <45298188.1080201@damogran.de> References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 08 Oct 2006 17:02:18 -0600 (MDT) Cc: freebsd-hackers@freebsd.org, freebsd-audit@freebsd.org, jonathan@buzzard.me.uk, freebsd-chat@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2006 23:03:34 -0000 In message: <45298188.1080201@damogran.de> Lutz Boehne writes: : In any case, I suggest you get back to that person and ask for more : information. That was my suggestion as well. I grepped the entire tree, both ports and src, and couldn't find any code that came close to resembling this code. Googling shows two packages that contain this code, but those aren't part of FreeBSD and they are distributed under the LGPL and the GPL. Finally, there was no need to forward this to hackers@ or chat@. Not only did I see it in audit, several people forwarded this to core@ for investigation. Warner From owner-freebsd-chat@FreeBSD.ORG Mon Oct 9 09:04:05 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 842E116A40F; Mon, 9 Oct 2006 09:04:05 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 141DD43D5F; Mon, 9 Oct 2006 09:03:59 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1GWr32-0008DK-00; Mon, 09 Oct 2006 11:03:44 +0200 Date: Mon, 9 Oct 2006 11:03:44 +0200 To: jonathan@buzzard.me.uk Message-ID: <20061009090344.GN4945@poupinou.org> References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> <20061008.170130.-2009526630.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061008.170130.-2009526630.imp@bsdimp.com> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-hackers@freebsd.org, lboehne@damogran.de, freebsd-chat@freebsd.org, "M. Warner Losh" , freebsd-audit@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 09:04:05 -0000 On Sun, Oct 08, 2006 at 05:01:30PM -0600, M. Warner Losh wrote: > In message: <45298188.1080201@damogran.de> > Lutz Boehne writes: > : In any case, I suggest you get back to that person and ask for more > : information. > > That was my suggestion as well. I grepped the entire tree, both ports > and src, and couldn't find any code that came close to resembling this > code. > > Googling shows two packages that contain this code, but those aren't > part of FreeBSD and they are distributed under the LGPL and the GPL. > > Finally, there was no need to forward this to hackers@ or chat@. Not > only did I see it in audit, several people forwarded this to core@ for > investigation. > I'm working on Dell's laptop support, even though I'm not the one who code a tool for a fan control (and I don't know if such tool under FreeBSD exist). Some preminaly code can be found here: http://people.FreeBSD.org/~bruno/i8kutils_bsd.tar.bz [1] http://people.FreeBSD.org/~bruno/acpi_dell.tar.gz [2] http://people.FreeBSD.org/~bruno/dellctl.tar.gz [3] For now, the 3 tar ball above have not been publically send to any public list I'm aware of, because those are only priminally work. For [1], people can check I haven't removed any copyright, nor I even bothered adding my name. In any case, I don't plan to add that one to the base system. In fact, I think to remove it from http://people.FreeBSD.org/~bruno/ in the near future. For [2], people can check it's a really preliminary work, and is based on some calls to ACPI methods under the DSDT. Since it's a really different approach taken from the driver found under Linux, it's free from any GPL'ed code. Finally [3] is only a userspace tool to control [2]. Since [2] and [3] are free from any GPL'ed codes, I consider commiting them if one day they work. Actually I even considered to port [2] under Linux, because this is the right way to go when ACPI mode is enabled for obvious reason. The io ports related to the SMM handler are shared, and ACPI take care to handle an ACPI mutex before entering SMM, that at least might eliminate strange cases when sometimes i8k doesn't work. Cheers, -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-chat@FreeBSD.ORG Mon Oct 9 17:49:51 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5BFB16A416; Mon, 9 Oct 2006 17:49:51 +0000 (UTC) (envelope-from brett@lariat.net) Received: from lariat.net (lariat.net [65.122.236.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4267E43D6E; Mon, 9 Oct 2006 17:49:49 +0000 (GMT) (envelope-from brett@lariat.net) Received: from Anne (IDENT:ppp1000.lariat.net@lariat.net [65.122.236.2]) by lariat.net (8.9.3/8.9.3) with ESMTP id LAA24306; Mon, 9 Oct 2006 11:49:19 -0600 (MDT) X-message-flag: Warning! Use of Microsoft Outlook renders your system susceptible to Internet worms. Message-Id: <7.0.1.0.2.20061009114712.06d278c0@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 09 Oct 2006 11:49:10 -0600 To: Lutz Boehne , Jonathan Buzzard From: Brett Glass In-Reply-To: <45298188.1080201@damogran.de> References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-hackers@freebsd.org, freebsd-chat@freebsd.org, freebsd-audit@freebsd.org Subject: Re: GPL License violation X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 17:49:52 -0000 Isn't it funny how quick the proponents of what the FSF calls "Free" software (note the capital "F", which by itself is a sure sign of propaganda or dogma) are to try to restrict its use? --Brett Glass From owner-freebsd-chat@FreeBSD.ORG Mon Oct 9 19:54:10 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A9516A403; Mon, 9 Oct 2006 19:54:10 +0000 (UTC) (envelope-from jonathan@buzzard.me.uk) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C06F43D49; Mon, 9 Oct 2006 19:54:09 +0000 (GMT) (envelope-from jonathan@buzzard.me.uk) Received: from [81.174.149.38] (helo=small.buzzard.me.uk) by ptb-relay02.plus.net with esmtp (Exim) id 1GX1Bv-0000Ny-Tc; Mon, 09 Oct 2006 20:53:37 +0100 Received: from grumpy.buzzard.me.uk ([192.168.42.3]) by small.buzzard.me.uk with esmtp (Exim 4.50) id 1GX1Br-0003Gv-RF; Mon, 09 Oct 2006 20:53:31 +0100 Message-ID: <452AA8BA.4050808@buzzard.me.uk> Date: Mon, 09 Oct 2006 20:53:30 +0100 From: Jonathan Buzzard User-Agent: Debian Thunderbird 1.0.2 (X11/20060830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruno Ducrot References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> <20061008.170130.-2009526630.imp@bsdimp.com> <20061009090344.GN4945@poupinou.org> In-Reply-To: <20061009090344.GN4945@poupinou.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, lboehne@damogran.de, freebsd-chat@freebsd.org, "M. Warner Losh" , freebsd-audit@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 19:54:10 -0000 Bruno Ducrot wrote: [SNIP] > > I'm working on Dell's laptop support, even though I'm not > the one who code a tool for a fan control (and I don't > know if such tool under FreeBSD exist). > > Some preminaly code can be found here: > > http://people.FreeBSD.org/~bruno/i8kutils_bsd.tar.bz [1] > http://people.FreeBSD.org/~bruno/acpi_dell.tar.gz [2] > http://people.FreeBSD.org/~bruno/dellctl.tar.gz [3] > > For now, the 3 tar ball above have not been publically send to any > public list I'm aware of, because those are only priminally work. > > For [1], people can check I haven't removed any copyright, nor I even > bothered adding my name. In any case, I don't plan to add that one to > the base system. > In fact, I think to remove it from http://people.FreeBSD.org/~bruno/ > in the near future. > > For [2], people can check it's a really preliminary work, and is based > on some calls to ACPI methods under the DSDT. Since it's a really > different approach taken from the driver found under Linux, it's free > from any GPL'ed code. > > Finally [3] is only a userspace tool to control [2]. > > Since [2] and [3] are free from any GPL'ed codes, I consider commiting > them if one day they work. > > Actually I even considered to port [2] under Linux, because this is > the right way to go when ACPI mode is enabled for obvious reason. > The io ports related to the SMM handler are shared, and ACPI take > care to handle an ACPI mutex before entering SMM, that at least might > eliminate strange cases when sometimes i8k doesn't work. There is already a Toshiba ACPI module that does that I believe. Or at least it exposes a /dev/toshiba that enables you to but the laptop into SMM in the same was as the Toshiba/Dell drivers do. I still use a 2.4 kernel and hence APM as I have never gotten around to upgrading to 2.6, as this is complicated by running an entirely LVM system. You are however correct that ACPI is the correct way to go. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Northumberland, United Kingdom. Tel: +44 1661-832195 From owner-freebsd-chat@FreeBSD.ORG Tue Oct 10 06:45:45 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EDBF16A415; Tue, 10 Oct 2006 06:45:45 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEF3443D53; Tue, 10 Oct 2006 06:45:42 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=[192.168.0.18]) by publicd.ub.mng.net with esmtpa (Exim 4.61 (FreeBSD)) (envelope-from ) id 1GXBMg-0002lX-2D; Tue, 10 Oct 2006 14:45:22 +0800 Message-ID: <452B4181.7060800@micom.mng.net> Date: Tue, 10 Oct 2006 14:45:21 +0800 From: Ganbold User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: Bruno Ducrot References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> <20061008.170130.-2009526630.imp@bsdimp.com> <20061009090344.GN4945@poupinou.org> In-Reply-To: <20061009090344.GN4945@poupinou.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-audit@freebsd.org, lboehne@damogran.de, jonathan@buzzard.me.uk, freebsd-chat@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 06:45:45 -0000 Bruno Ducrot wrote: > I'm working on Dell's laptop support, even though I'm not > the one who code a tool for a fan control (and I don't > know if such tool under FreeBSD exist). > > Some preminaly code can be found here: > > http://people.FreeBSD.org/~bruno/i8kutils_bsd.tar.bz [1] > http://people.FreeBSD.org/~bruno/acpi_dell.tar.gz [2] > http://people.FreeBSD.org/~bruno/dellctl.tar.gz [3] > > Bruno, Did you make suspend/resume work? Did you make your volume up/down key work? I have Latitude D620 and can't make above work. thanks, Ganbold > For now, the 3 tar ball above have not been publically send to any > public list I'm aware of, because those are only priminally work. > > For [1], people can check I haven't removed any copyright, nor I even > bothered adding my name. In any case, I don't plan to add that one to > the base system. > In fact, I think to remove it from http://people.FreeBSD.org/~bruno/ > in the near future. > > For [2], people can check it's a really preliminary work, and is based > on some calls to ACPI methods under the DSDT. Since it's a really > different approach taken from the driver found under Linux, it's free > from any GPL'ed code. > > Finally [3] is only a userspace tool to control [2]. > > Since [2] and [3] are free from any GPL'ed codes, I consider commiting > them if one day they work. > > Actually I even considered to port [2] under Linux, because this is > the right way to go when ACPI mode is enabled for obvious reason. > The io ports related to the SMM handler are shared, and ACPI take > care to handle an ACPI mutex before entering SMM, that at least might > eliminate strange cases when sometimes i8k doesn't work. > > Cheers, > From owner-freebsd-chat@FreeBSD.ORG Tue Oct 10 08:18:35 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77B5D16A407; Tue, 10 Oct 2006 08:18:35 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FB3343D7F; Tue, 10 Oct 2006 08:18:30 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1GXCob-0005Wk-00; Tue, 10 Oct 2006 10:18:17 +0200 Date: Tue, 10 Oct 2006 10:18:17 +0200 To: Jonathan Buzzard Message-ID: <20061010081816.GO4945@poupinou.org> References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> <20061008.170130.-2009526630.imp@bsdimp.com> <20061009090344.GN4945@poupinou.org> <452AA8BA.4050808@buzzard.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <452AA8BA.4050808@buzzard.me.uk> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-hackers@freebsd.org, lboehne@damogran.de, freebsd-chat@freebsd.org, "M. Warner Losh" , freebsd-audit@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 08:18:35 -0000 On Mon, Oct 09, 2006 at 08:53:30PM +0100, Jonathan Buzzard wrote: > Bruno Ducrot wrote: > > [SNIP] > > > > I'm working on Dell's laptop support, even though I'm not > > the one who code a tool for a fan control (and I don't > > know if such tool under FreeBSD exist). > > > > Some preminaly code can be found here: > > > > http://people.FreeBSD.org/~bruno/i8kutils_bsd.tar.bz [1] > > http://people.FreeBSD.org/~bruno/acpi_dell.tar.gz [2] > > http://people.FreeBSD.org/~bruno/dellctl.tar.gz [3] > > > > For now, the 3 tar ball above have not been publically send to any > > public list I'm aware of, because those are only priminally work. > > > > For [1], people can check I haven't removed any copyright, nor I even > > bothered adding my name. In any case, I don't plan to add that one to > > the base system. > > In fact, I think to remove it from http://people.FreeBSD.org/~bruno/ > > in the near future. > > > > For [2], people can check it's a really preliminary work, and is based > > on some calls to ACPI methods under the DSDT. Since it's a really > > different approach taken from the driver found under Linux, it's free > > from any GPL'ed code. > > > > Finally [3] is only a userspace tool to control [2]. > > > > Since [2] and [3] are free from any GPL'ed codes, I consider commiting > > them if one day they work. > > > > Actually I even considered to port [2] under Linux, because this is > > the right way to go when ACPI mode is enabled for obvious reason. > > The io ports related to the SMM handler are shared, and ACPI take > > care to handle an ACPI mutex before entering SMM, that at least might > > eliminate strange cases when sometimes i8k doesn't work. > > There is already a Toshiba ACPI module that does that I believe. Or at > least it exposes a /dev/toshiba that enables you to but the laptop into > SMM in the same was as the Toshiba/Dell drivers do. Not exactly. The ACPI method for the Toshiba is not the same as for the Dell. Toshiba use \_SB_.VALD.GHCI() method in order to access the HCI whereas Dell use \SMI() (and other methods). They are different and don't share any API I'm aware of, but I may be wrong of course. > I still use a 2.4 kernel and hence APM as I have never gotten around to > upgrading to 2.6, as this is complicated by running an entirely LVM system. > > You are however correct that ACPI is the correct way to go. Depend. If APM work better for you there is no reason to enable ACPI after all. Cheers, -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-chat@FreeBSD.ORG Tue Oct 10 08:56:43 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A33816A403; Tue, 10 Oct 2006 08:56:43 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E90043D5E; Tue, 10 Oct 2006 08:56:43 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1GXDOd-0005ZH-00; Tue, 10 Oct 2006 10:55:31 +0200 Date: Tue, 10 Oct 2006 10:55:31 +0200 To: Ganbold Message-ID: <20061010085531.GP4945@poupinou.org> References: <4528EF25.1000103@buzzard.me.uk> <45298188.1080201@damogran.de> <20061008.170130.-2009526630.imp@bsdimp.com> <20061009090344.GN4945@poupinou.org> <452B4181.7060800@micom.mng.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <452B4181.7060800@micom.mng.net> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-hackers@freebsd.org, freebsd-audit@freebsd.org, lboehne@damogran.de, jonathan@buzzard.me.uk, freebsd-chat@freebsd.org Subject: Re: NOT A [GPL License violation] X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 08:56:43 -0000 On Tue, Oct 10, 2006 at 02:45:21PM +0800, Ganbold wrote: > Bruno, > > Did you make suspend/resume work? Unrelated. acpi_dell isn't for suspend/resume. But I'm aware of the problem and I'm working on that. > Did you make your volume up/down key work? That one of the goal. But there is a need to work more and I'm waiting some input from someone in touch with Dell BIOS engineers. That why I said this doesn't work, and why I haven't yet made them public. But I don't know if Jonathan Buzzard was aware of that work and if his complain was related to this work. > I have Latitude D620 and can't make above work. I might get one D620 soon hopefully. I will then be able to work more on this support. -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care.