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