Re: PC Keyboard Scancodes
In message [EMAIL PROTECTED] Mike Pritchard writes: : Here are the codes for the Compaq "Easy Access Internet Keyboard". : They also have a newer version with even more buttons, but I don't : have access to one, so I can't supply the codes for it. If someone : is going to do some work to get the Microsoft keyboard's extra keys : to work, it shouldn't be hard to integrate these keys at the same time. Thanks Mike. If I move forward on this, I'll include these too. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Setting device options
On Thu, 13 Apr 2000, Gary T. Corcoran wrote: So, I want to know how I can "automagically" set the device options, every time a user kldload's the device driver. To give you a little background, here's how it works on the other operating systems, and thus this is the type of thing I'm looking for in FreeBSD. I'm not sure this is the model you want. In general, kld's get loaded once and stay there, usually at boot time. I would find it easier (and orthogonal with existing practice) to have a xxcontrol program (like siocontrol friends) that parses a config file or command line options or what have you and passes them via an ioctl() to the driver. This reduces the startup complexity of your driver, and simple drivers are Good(tm). If you make your code available, there will be people who will want to statically compile the driver in, and you don't have a load event to pull arguments from in that instance. (I'm thinking of PicoBSD as an environment that doesn't bundle kernel modules.) Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: PC Keyboard Scancodes
You, Warner Losh, were spotted writing this on Sat, Apr 15, 2000 at 12:01:05AM -0600: In message [EMAIL PROTECTED] Mike Pritchard writes: : Here are the codes for the Compaq "Easy Access Internet Keyboard". : They also have a newer version with even more buttons, but I don't : have access to one, so I can't supply the codes for it. If someone : is going to do some work to get the Microsoft keyboard's extra keys : to work, it shouldn't be hard to integrate these keys at the same time. Thanks Mike. If I move forward on this, I'll include these too. To make FreeBSD grok them, go to sys/dev/kbd/atkbd.c (that's assuming the keyboard is AT-style rather than USB), and modify atkbd_read_char(): --- atkbd.c Sat Apr 15 11:58:13 2000 +++ atkbd.c.new Sat Apr 15 12:09:28 2000 @@ -681,6 +681,15 @@ case 0x5d: /* menu key */ keycode = 0x6b; break; +/* the following are super-duper extended MS keys */ +case 0x5f: /* Sleep key */ +keycode = 0x6d; +break; +case 0x65:/* Search key */ +keycode = 0x6e; +case 0x66:/* Favourites key */ +keycode = 0x70; + default:/* ignore everything else */ goto next_code; } And so on for all the keys, using your scancodes in case statements, and allocating new keycodes as you go along, starting from the first available one now which is 0x6d. Then you just add new lines to keymap files, starting from 109=0x6d, and it should work at once. We have 148 spare entries in keymap_t at the moment, they should suffice for some time ;) Of course, with all those new keys on all those keyboards, we should perhaps think about whether to add all of them as new keycodes, and if so, in which order, etc. I've no idea if FreeBSD's concept of 'keycode' (i.e. key number independent of keyboard model) is synchronized with other BSD's, or Linux, etc. Have no idea what to do about X though. -- Anatoly Vorobey, [EMAIL PROTECTED] http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
OPEN SSH PROBLEM
Hello i have installed open ssh on my freeBSD 3.3-stable machine. But i will not work, i cant login, below is an output whit ./sshd -d. playground# ./sshd -d debug: sshd version OpenSSH-1.2.3 debug: Bind to port 22 on 211.11.9.74. Server listening on 211.11.9.74 port 22. Generating 768 bit RSA key. RSA key generation complete. debug: Server will not fork when running in debugging mode. Connection from 212.242.97.165 port 2848 debug: Client protocol version 1.5; client software version 1.0 debug: Sent 768 bit public key and 1024 bit host key. debug: Encryption type: 3des debug: Received session key; encryption turned on. debug: Installing crc compensation attack detector. debug: Starting up PAM with username "abuse" debug: Attempting authentication for abuse. debug: PAM Password authentication for "abuse" failed: Permission denied Failed password for abuse from 212.242.97.165 port 2848 Unknown message during authentication: type 4 Failed bad-auth-msg-4 for abuse from 212.242.97.165 port 2848 Connection closed by 212.242.97.165 debug: Calling cleanup 0x804e254(0x0) Cannot close PAM session: Permission denied Cannot delete credentials: Permission denied debug: Calling cleanup 0x8056180(0x0) /John +--+ | The coolest site for free home pages, email, chat, e-cards, movie info.. | | http://www.goplay.com - it's time to Go Play! | +--+ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: OPEN SSH PROBLEM
On Sat, 15 Apr 2000, p_a_r wrote: Hello i have installed open ssh on my freeBSD 3.3-stable machine. But i will not work, i cant login, below is an output whit ./sshd -d. You aren't telling us anything about the client, which seems like it might be the one causing the problems from the error message. Either that or there could be PAM problems on the server end - how did you configure this? Kris In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
NFS attribute cache profiling sysctl variables
I have two unrelated questions I can not figure out myself: (1) Does FreeBSD NFS implementation support "noac" to disable attribute cache? I know this is not good for performance. (2) I am trying to display kernel profiling sysctl variables with sysctl -a or sysctl -A without success. They are defined in subr_prof.c. Why sysctl command can not display them? I can use kgmon. Any help is appreciated. -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
FREE Problem in BSD?
The following code is consistently throwing xxx in free(): warning: modified (page-) pointer. on the free(ENTRY.ptr) line. ENTRY is a datum, the trace printf's show that ENTRY.dptr has the same value immediately after the dbm_fetch as it has immediately before the free, but the message continues to be displayed... Anyone know what is going on here? ENTRY = dbm_fetch(db,URL); printf("%d\n",ENTRY.dptr); bzero(etemp,1000); if(ENTRY.dptr != NULL){ strncpy(etemp,ENTRY.dptr,ENTRY.dsize); // ENTRY.dptr[ENTRY.dsize]=0; sprintf(temp,"%s\xb3\xb3%s",URL.dptr,etemp); } else{ // printf("ERRER %d %s\n",dbm_error(db),array[y]); sprintf(temp,"%s\xb3\xb3%s",URL.dptr,"0"); } free(URL.dptr); if(ENTRY.dptr != NULL){ printf("%d\n",ENTRY.dptr); free(ENTRY.dptr); Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Misuse of options BRIDGE?
sysctl -w net.link.ether.bridge=1 is necessary to enable bridging, and you need to set the address only on one of the interfaces (if you want an IP for the bridge at all). cheers luigi I did have the sysctl set, but I don't remember if I had the IP set on only one device. I've always wondered about that - Kris Kirby, KE4AHR | TGIFreeBSD... 'Nuff said. [EMAIL PROTECTED]| --- "God gave them the ability to reproduce... ... Science gave us the hope they won't." -KBK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message