| |
| |
| |
|
Comments:
<0> joss193: /dev/input/mice is the merged device. the mice can be found in /dev/input/mouseN <1> whot: yeah trying with that now <0> joss193: if you use ImPS/2 protocol, the scrollwheel is in an additional byte <1> whot: thats what i understood.. <1> somwone told , that i would have to send this data to that device <1> 0xf3, 200, 0xf3, 100, 0xf3, 80 <1> whot: it seems that it might be true
<0> joss193: could be. i can't find the page I used to use to decode the protocol ATM <0> joss193: by default, the mouse reports ps2. you have to tell it to report imps2. <1> whot: yeah that is certain.. <1> since it sends 3bytes without telling something somwhere;) <1> anywas, can you find those lines i pasted here? <0> joss193: http://www.computer-engineering.org/ps2mouse/ <0> joss193: that should have all you need <1> whot: yeah it has, but i need to get that mouse in imps2 mode.. <1> static unsigned char mousedev_imps_seq[] = { 0xf3, 200, 0xf3, 100, 0xf3, 80 }; this should do that..,but it does not work here.. <1> fwrite(mousedev_imps_seq,1,sizeof(mousedev_imps_seq), in); <0> joss193: scroll down to "intellimouse extensions" and then further to "Initialization". that has the exact list what to do. <1> whot: that is the same thing.. command that i try to send seems to be ok <0> joss193: did you do all the initialisation stuff? <1> no, sent only yhis line, samplerate init.. <1> perhaps this could be the problem...seeking again, perhaps theres something else to send <1> yeah this seems to be the only thing to send to /dev/input/mice <0> joss193: I know for a fact that if you follow the whole sequence (incl. inits) it works. did it a while ago myself. <1> yeah it should, this could be a mistake in my code:( <1> anyways i can not find the mistake, thats the problem <1> seems like sending unsigned char there should do the trick with this data,it is an array of unsigned chars <1> whot: should not this sample rate command be all there is this array? <0> joss193: just had a look at my code. yes. that should actually do it. i'm reading the response from the mouse after each byte and then send the next byte. <0> joss193: try that for a change <1> ill try to send it to mouse0 instead actually <1> forgat to do that
<1> -1210434048 yeah i only get those values.. <1> ok ill paste my code, perhaps you can help a bit <1> whot: http://pastebin.ca/331486 <1> start from the second while(1) <0> joss193: thats what I meant. read the ack from the mouse after every byte, then send the next one <1> whot: can you write your idea to pastebin, i can not understand onthefly here:( <1> trying to figure this out whole day allready <1> whot: uuh heres the code that compiles also http://pastebin.ca/331494 <0> joss193: http://pastebin.ca/331495 <1> hmm, restructuring <0> joss193: I ***ume you do have write permissions? <1> whot: ok than i could putc them as ints perhaps and read the answer <1> yeah i do as i am compiling this as root <1> and writing to it too and root is allowed <1> whot: what language this test code is written in? <0> joss193: ruby <1> yeah some troubles understanding it, but it think you are sending those values seperately and wait response correct? <1> can you form it in c? <0> joss193: not right now. too busy. send each byte, wait for the ack from the device, then send next byte. that's basically it <1> ok will try <1> can understand it basically, but it do not know, where this response could come from:( <1> whom: ok from that same file seems logical kind of, then i should try to putc those one by one and read this ack from there until that last finishes it will start tosend 4byte packets imps2 mode? <0> joss193: response comes from mouse device. <0> joss193: yes, after that it'll send imps2 <1> whom: ok this ruby are you p***ing those values as ints? <0> joss193: yes <0> joss193: sorry, they are ints internally but get written as single byte chars of course <1> yeah thats what i thought will try soon <2> hi all
Return to
#freedesktop or Go to some related
logs:
#linux Sucking cli #centos sscpurawsystem sarge mrtg ubuntu smp hyperthreading Xm/PrimitiveP.h: No such file or directory install header files + ubuntu vino xgl Ubuntu #perl #physics
|
|