From owner-freebsd-questions Wed Jan 17 9: 1:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id A603C37B402 for ; Wed, 17 Jan 2001 09:01:13 -0800 (PST) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.1/8.11.1) with ESMTP id f0HH16K07554; Wed, 17 Jan 2001 12:01:06 -0500 Message-ID: <3A65CFD2.7D62A1EE@magpage.com> Date: Wed, 17 Jan 2001 12:01:06 -0500 From: Daniel Frazier Organization: Magpage Internet Services X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: trini0 Cc: Stephen Fitzhugh , FreeBSD Questions Subject: Re: psmintr:out of sync References: <3A64C1E1.BC6F1C4C@connix.com> <3A65B22D.298CFA81@optonline.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message