=== seb128_ is now known as seb128 [10:37] I've been looking at joysticks in intrepid. While it's nice that they don't crash X anymore, it seems X still has an exclusive lock on them, so they don't work with any games. [10:37] In order to blacklist them, would it be better to blacklist from HAL, or from X? [10:39] I think X is hard because HAL seems to claim they are pointers, but seek confirmation before trying to change HAL. [10:43] locked by the evdev driver you mean? [10:44] tjaalton, I believe so. [10:44] At least not accessible to user programs attempting to access the deivce. [10:45] so -joystick would be better? [10:45] No, that only exposes joystick events within X. All the games are coded against /dev/input/js* [10:45] that should be easy to fix by adding the needed information to the joystick fdi file [10:45] That doesn't help at all, until all the games are ported. [10:45] or patch X and evdev to stop grabbing the device [10:46] ah.. [10:46] now I finally see the problem :) [10:46] persia: x-x-i-joystick grabs the devices as well? [10:46] I like the idea of X being able to use a joystick as a pointer device, but I don't think we can port all the games for intrepid (or probably, jaunty). [10:46] I'd like installing -joystick to be able to make X input with a joystick work, and uninstalling make the games work. [10:47] That seems the least painful compromise until the games can be ported (changing libSDL will probably get 50% of them). [10:47] jcristau, Yes, or at least limited testing with jstest and jsdemo indicates this. [10:48] The annoying thing is that from what I can tell from lshal output, hal claims they are pointing devices (which is true). [10:48] right [10:48] that's why evdev steals them [10:48] Right. [10:49] So where I'm not sure is whether HAL should just not show them, or whether HAL should send an additional property that evdev uses as a negative selector. [10:49] i guess it's a bit too late to stop the device grabbing for intrepid.. you'd have to deal with the duplicated events from xorg.conf devices [10:49] Ideally, I'd like to have the solution either be a hack that can be reverted easily, or a path that works going forward, and will be the standard. [10:50] jcristau, The problem is that I'm not getting duplicate events. I'm getting no events. [10:50] Duplicate events is probably acceptable. The only use case I know it breaks is playing FPS with a mouse and joystick. [10:50] i'm talking about what happens if evdev stops grabbing devices [10:51] and you have mouse/kbd sections in xorg.conf [10:52] RIght. evdev stopping grabbing devices unilaterally is probably more of a headache. Something that could detect that the item was a joystick would be better. [10:52] I know this information is available from the kernel, as lsinput can tell if something is a keyboard, a mouse, or a joystick. [10:53] info.capabilities in lshal contains joystick? [10:55] input.joystick even [10:56] No, it doesn't. I could probably make it do so. [10:56] (although someone else could probably do this faster) [10:59] pitti could know what needs to be done [11:04] So, if input.joystick was exported, could they be blacklisted within X unless xserver-xorg-input-joystick was installed? [11:04] not really. but they could be ignored by evdev. [11:04] (where presumably xserver-xorg-input-joystick would then be able to use that as a filter when accessing devices, making the related .fdi file easier to write) [11:04] Ignored by evdev is probably good enough at this stage for intrepid. [11:05] To whom could I ship joysticks to help create a better solution for jaunty? [11:10] if input.joystick was exported, the fdi file in -joystick would be a lot saner than now (whitelisting models, blech) [11:10] OK. I'll go hack that up then. [11:11] oh you wrote that already, I'm slow :) [11:11] tjaalton, Well, the difference between what I write and what you write is that the latter is more likely to be correct :) [11:12] ignored by evdev is probably the correct path anyway [11:12] Great. Now to figure out how inpututils does it. [11:13] persia: hmm, perhaps, although in this case they were essentially the same :) [11:14] persia: do ask pitti, he might know the answer already [11:15] tjaalton, I probably will, but I generally find it's a good idea to read a little code before talking to pitti, or I may not understand the response. [11:15] persia: heh, could be [11:20] persia: How does lsinput say that it knows it's a joystick? [11:21] wgrant, Well, I thought it did. Seems I may be mistaken [11:21] Last time I was seriously trying to make joysticks work was feisty : since then we've been pretty stable. [11:22] It would be nice if the kernel could tell us. [11:22] Hmm. [11:22] The kernel does know. [11:22] Indeed. [11:22] It gives me a /dev/input/js0 [11:23] apt-get source linux it is. [11:23] Or udev, hmmm. [11:23] No, Linux. [11:25] Yeah. It looks more and more like a kernel thing. udev seems to lump joysticks and mice, and find them both with the same match rule. [11:26] udev checks the name that the kernel gives it. [11:28] Hrm. Actually, there is a way to collect it from an API. input-kbd and jstest get different information on the lists of available buttons. [12:05] Morning guys. I did and update to intrepid this morning all went except that nvidia -177 set my hz to 60 rather than 75 which made the desktop blurry and the bottom bar disappear off the screen. === davmor2 is now known as davmor2_lunch === davmor2_lunch is now known as davmor2 [15:24] tjaalton: bugs.freedesktop.org is the right bts for the screensaver patch at http://paste.ubuntu.com/60050/ ? [15:24] mvo: yes [15:40] Hey. So I finally got my i386 machine installed, and can confirm that the same hardware that doesn't work on amd64 works fine on i386. [15:40] persia: the joysticks? [15:41] The HAL input looks similar, except for the lack of x11_driver on i386. Would this be something in evdev then? [15:41] Yep, the joysticks. [15:41] (and no, I don't think telling all amd64 users to generate .fdi files is a good solution) [15:42] hehe [15:43] what do you get in the log with x86? [15:43] when you plug in the joystick? [15:43] oh, and what do you mean by working fine? [15:43] evdev _doesn't_ grab the device? [15:44] since that's essentially what happens to me, it refuses to use them [15:44] he says there's no x11_driver [15:44] hrm, should read [15:44] which points to hal or kernel [15:44] afaict [15:44] yeah [15:45] jcristau, So HAL is giving different output for i386 and amd64? I thought input.x11_driver would be set by X. [15:46] persia: no, it's the hal fdi-files that do it [15:46] 10-x11-input.fdi [15:48] Now I'm extra confused, as lshal shows input.mouse in info.capabilities, which is what 10-x11-input.fdi is matching. [15:48] this is a fresh install? [15:49] so nothing in /etc/hal/fdi/policy [15:49] Yep. Within the hour. [15:49] There's a preferences.fdi file [15:50] that's normal [15:50] try restarting hal? [15:51] restarting with the joystick attached? [15:51] shouldn't matter [15:55] bryce: the patch for bug 261977.. I gave it some thought. The fallback should be used _only_ if the .ids-files are used, since if the user doesn't have an xorg.conf, the first driver will then be vesa :) [15:55] Error: Could not parse data returned by Launchpad: The read operation timed out (https://launchpad.net/bugs/261977/+text) [15:55] good ubottu [15:55] mvo: gotta run now, but I'll apply the patch later today [15:56] thanks tjaalton [15:56] mvo: and upstream tomorrow when I get my fd.o account ;) [15:56] tjaalton: ha! excellent [15:56] Nope. Restarted HAL. restarted X. On i386, the joystick persists in showing info.capabilities including input.mouse, the HAL fdi file matches on input.mouse, and it doesn't work to control my pointer. Same joystick on amd64 is grabbed by evdev. [15:56] tjaalton: you get commit access? congrats :-D [15:56] tjaalton: that is truely excellent news [15:56] mvo: well, ajax said I'd need one.. why not. bryce should too :) [15:57] persia: duh, can't think of what's wrong then :/ [15:58] anyway, got to go now for a while -> [15:58] tjaalton, OK. Is this maybe a bug on i386 that it works when it shouldn't? [15:58] persia: it's something bizarre that I haven't seen yet ;) [15:58] OK. Anyone else have any suggestions? [15:58] persia: if you have input.mouse but no x11_driver, that sounds like a hal bug, yes [15:59] jcristau, OK. I'll go bug pitti again. Sounds like it's a bug that I want replicated to amd64 as well :) [19:00] bryce: it looks like the gnome-control-center upload you did is not in bzr, did you forget to bzr push maybe? === seb128_ is now known as seb128