| === JanC is now known as Guest21659 | ||
| === JanC_ is now known as JanC | ||
| === yuning-afk is now known as yuning | ||
| === inaddy is now known as tinoco | ||
| === slangase` is now known as slangasek | ||
| === ogra_` is now known as ogra_ | ||
| === yuning is now known as yuning-afk | ||
| === dupondje_ is now known as dupondje | ||
| kdarknight | how can i report to system about a mouse event? | 12:08 |
|---|---|---|
| kdarknight | like what function should i call to tell my system that mouse right button is clicked? | 12:08 |
| kdarknight | from a driver? i think i have to use input_report_key(); somehow but unable to made it work till now | 12:08 |
| kdarknight | input_report_key(dev, BTN_RIGHT, 1); this is what i am calling | 12:09 |
| apw | kdarknight, that sounds about right to me | 12:11 |
| kdarknight | http://pastebin.com/GLjBtTpZ this is what i have done so far | 12:11 |
| kdarknight | its a small mouse driver | 12:11 |
| kdarknight | i am trying to controll mouse events by writing to a dev file | 12:12 |
| kdarknight | but looks like system doesn't detect those events | 12:12 |
| kdarknight | apw, there is no error, everything works except those events. Don't know what i am doing wrong here :/ | 12:14 |
| apw | kdarknight, can you see your new channel on lsinputs and does input_events show them | 12:19 |
| kdarknight | apw, what should i look for in lsinput? I can see 0-7 event list | 12:23 |
| kdarknight | 7th one is null 0x0 | 12:23 |
| apw | you are attempting to register a new input stream, lsinput shows you all valid ones | 12:24 |
| apw | does your new one appear there when the driver is loaded | 12:24 |
| kdarknight | let me rmmod and insmod again to compare results | 12:24 |
| apw | if so, input_events against the number for it, will show you what events if any you are generating | 12:24 |
| kdarknight | oh yeah, when i removed my mod and did lsinput, event 7 was removed | 12:25 |
| kdarknight | and it came back after insmod | 12:26 |
| kdarknight | but all the values are null except bits ev | 12:26 |
| kdarknight | let me pastebin the result of last event | 12:26 |
| kdarknight | http://pastebin.com/i4Mg4dfA apw | 12:27 |
| apw | kdarknight, that might be ok | 12:29 |
| apw | so what does input-events 7 show | 12:29 |
| apw | when you run your thing | 12:29 |
| kdarknight | it detects all the events there | 12:30 |
| kdarknight | like ev key pressed, released and all | 12:31 |
| apw | so the issue is what? that your cursor doesn't move ? | 12:32 |
| kdarknight | yes, nor does right click | 12:32 |
| apw | so the x-server choses which input streams to watch based on their capabiilties | 12:32 |
| apw | so ... you might wnat to compare those to a real mouse | 12:33 |
| kdarknight | is it possible that i am doing in virtualbox, that might be the problem? | 12:33 |
| apw | kdarknight, no idea, sorry | 12:33 |
| kdarknight | okay thanks anyway. Where can i go from here to make this work? | 12:35 |
| apw | kdarknight, have a look at the X log to see what it thought our your mouse appearing | 12:36 |
| apw | kdarknight, tail /var/log/Xorg.0.log as you insert the module | 12:37 |
| apw | and compare that to a real mouse, maybe you arn't enough like a mouse for the x-server to like you | 12:37 |
| kdarknight | awp here http://pastebin.com/AvH1ifJK | 12:39 |
| kdarknight | how can i compare with real mouse? :/ | 12:40 |
| apw | kdarknight, you'd need to plug one into something which has usb | 12:48 |
| apw | kdarknight, but it is clear that your device is making X unhappy | 12:48 |
| apw | kdarknight, as it tried to "query" it and failed | 12:49 |
| apw | you'll prolly have to get the xorg source and find out what that means | 12:49 |
| kdarknight | plug one which has usb? | 12:49 |
| kdarknight | i can't understand | 12:50 |
| apw | kdarknight, i am saying you need to find any machine anywhere which has X on it, and take the mouse out and put it back | 12:51 |
| kdarknight | i have ubuntu installed in virtual box | 12:51 |
| kdarknight | i can take out usb and plug it in again | 12:51 |
| kdarknight | mouse | 12:51 |
| kdarknight | is that what you are saying? | 12:52 |
| apw | anyhow, you know its X rejecting the thing, becuse it says so, so it doesn't matter | 12:52 |
| kdarknight | oh | 12:52 |
| apw | the next step is to find out what that X error means, what it tried to do to your input device | 12:52 |
| apw | so you can make your device do someting it likes | 12:52 |
| kdarknight | Okay! thanks for your help | 12:53 |
| === alvesadrian is now known as Guest56502 | ||
| === ayan is now known as penfold | ||
| manjo | rtg, can you install gdb on xenial-amd64 chroot in tangerine ? | 16:52 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!