/srv/irclogs.ubuntu.com/2016/05/24/#ubuntu-kernel.txt

=== 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
kdarknighthow can i report to system about a mouse event?12:08
kdarknightlike what function should i call to tell my system that mouse right button is clicked?12:08
kdarknightfrom a driver? i think i have to use input_report_key(); somehow but unable to made it work till now12:08
kdarknightinput_report_key(dev, BTN_RIGHT, 1);  this is what i am calling12:09
apwkdarknight, that sounds about right to me12:11
kdarknighthttp://pastebin.com/GLjBtTpZ this is what i have done so far12:11
kdarknightits a small mouse driver12:11
kdarknighti am trying to controll mouse events by writing to a dev file12:12
kdarknightbut looks like system doesn't detect those events12:12
kdarknightapw, there is no error, everything works except those events. Don't know what i am doing wrong here :/12:14
apwkdarknight, can you see your new channel on lsinputs and does input_events show them12:19
kdarknightapw, what should i look for in lsinput? I can see 0-7 event list12:23
kdarknight7th one is null 0x012:23
apwyou are attempting to register a new input stream, lsinput shows you all valid ones12:24
apwdoes your new one appear there when the driver is loaded12:24
kdarknightlet me rmmod and insmod again to compare results12:24
apwif so, input_events against the number for it, will show you what events if any you are generating12:24
kdarknightoh yeah, when i removed my mod and did lsinput, event 7 was removed12:25
kdarknightand it came back after insmod12:26
kdarknightbut all the values are null except bits ev12:26
kdarknightlet me pastebin the result of last event12:26
kdarknighthttp://pastebin.com/i4Mg4dfA apw12:27
apwkdarknight, that might be ok12:29
apwso what does input-events 7 show12:29
apwwhen you run your thing12:29
kdarknightit detects all the events there12:30
kdarknightlike ev key pressed, released and all12:31
apwso the issue is what?  that your cursor doesn't move ?12:32
kdarknightyes, nor does right click12:32
apwso the x-server choses which input streams to watch based on their capabiilties12:32
apwso ... you might wnat to compare those to a real mouse12:33
kdarknightis it possible that i am doing in virtualbox, that might be the problem?12:33
apwkdarknight, no idea, sorry12:33
kdarknightokay thanks anyway. Where can i go from here to make this work?12:35
apwkdarknight, have a look at the X log to see what it thought our your mouse appearing12:36
apwkdarknight, tail /var/log/Xorg.0.log as you insert the module12:37
apwand compare that to a real mouse, maybe you arn't enough like a mouse for the x-server to like you12:37
kdarknightawp here http://pastebin.com/AvH1ifJK12:39
kdarknighthow can i compare with real mouse? :/12:40
apwkdarknight, you'd need to plug one into something which has usb12:48
apwkdarknight, but it is clear that your device is making X unhappy12:48
apwkdarknight, as it tried to "query" it and failed12:49
apwyou'll prolly have to get the xorg source and find out what that means12:49
kdarknightplug one which has usb?12:49
kdarknighti can't understand12:50
apwkdarknight, i am saying you need to find any machine anywhere which has X on it, and take the mouse out and put it back12:51
kdarknighti have ubuntu installed in virtual box12:51
kdarknighti can take out usb and plug it in again12:51
kdarknightmouse12:51
kdarknightis that what you are saying?12:52
apwanyhow, you know its X rejecting the thing, becuse it says so, so it doesn't matter12:52
kdarknightoh12:52
apwthe next step is to find out what that X error means, what it tried to do to your input device12:52
apwso you can make your device do someting it likes12:52
kdarknightOkay! thanks for your help12:53
=== alvesadrian is now known as Guest56502
=== ayan is now known as penfold
manjortg, 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!