From owner-freebsd-questions Wed Jan 17 10:23:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.srv.hcvlny.cv.net (mx2.srv.hcvlny.cv.net [167.206.112.45]) by hub.freebsd.org (Postfix) with ESMTP id 0AD2A37B6B0 for ; Wed, 17 Jan 2001 10:22:48 -0800 (PST) Received: from s1.optonline.net (s1.optonline.net [167.206.112.6]) by mx2.srv.hcvlny.cv.net (8.10.2/8.10.2) with ESMTP id f0HIMln04786; Wed, 17 Jan 2001 13:22:47 -0500 (EST) Received: from optonline.net (ool-18be012f.dyn.optonline.net [24.190.1.47]) by s1.optonline.net (8.10.2/8.10.2) with ESMTP id f0HIMku27828; Wed, 17 Jan 2001 13:22:46 -0500 (EST) Message-ID: <3A65E2F6.60611BD0@optonline.net> Date: Wed, 17 Jan 2001 13:22:46 -0500 From: trini0 X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Frazier Cc: fitzhugh@connix.com, FreeBSD Questions Subject: Re: psmintr:out of sync References: <3A64C1E1.BC6F1C4C@connix.com> <3A65B22D.298CFA81@optonline.net> <3A65CFD2.7D62A1EE@magpage.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey, that was the guy who originally told me about setting the flags. Stephen L. Fitzhugh fitzhugh@connix.com, put up a nice example to follow. Ill have to study this, and see. If I remember correctly, to add what you did to the kernel, put in ==> device psm0 at atkbdc? irq 12 flags 0x100 and recompile it. Ill try it out later today, and post my findings. Thanks Daniel Frazier wrote: > trini0 wrote: > > > > This error happens alot with people with kvms, including myself. There has > > been whispers that the psm flags could be adjusted which may make it work, > > but I guess that is for the high priest voodoo magician eyes only. Read up > > on the man page for psm, there are flag options which may be able to deal > > with this. For the life of me, I can't seem to get these numbers to the > > 0x????? format. Someone on here tried to explain it to me, but I guess my > > memories of math in school are finally eluding me..... > > Has anyone come across this error, recompiled their kernel with new psm > > flags, and have it work then on out. The truth...... > > How do you turn "bit 15" into 0x???? > > > > I'm shamelessly stealing someone elses (actually "David Schultz" > ) answer. I had saved this email for future reference. > > > > > Hey, all. Im trying to see if I could get my mouse working with my > > "new" kvm. I read up on the psm man page about the optional flags. How > > do I convert the bits into a flag number? Thanks for your help. > > The value of the nth bit should be 2^n if the bit is set, and 0 otherwise. > Simply add all of the bits. For example, if you wanted to set HOOKRESUME > (bit 13) and INITAFTERSUSPEND (bit 14), you'd have 2^13 + 2^14 = 0x6000. You > could then make an entry in your kernel configuration file similar to this: > device psm0 at atkbdc? irq 12 flags 0x6000 > > > > -- > ---------------------------------------------------------------------- > Daniel Frazier Tel: 302-239-5900 Ext. 231 > Systems Administrator Fax: 302-239-3909 > MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ > > "They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety." > - Benjamin Franklin, Historical Review of Pennsylvania, 1759. -- _____________________________ | trini0 | | | / ) | Systems Administrator | / / | Network Engineer | ( ( | email ==> | (((\ \> |/ ) trini0@optonline.net | (\\\\ \_/ /_________________________| \ / \ _/ / / / / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message