=== superm1|away is now known as superm1 === superm1 is now known as superm1|away [08:55] tjaalton: Ok, I've read up on the subject of the kvm brokenness due to evdev, and it almost makes me cry. [08:56] soren: ok, so the guest is broken? [08:56] No. [08:56] It's... well.. [08:56] Let me explain the issue: [08:57] kvm does full virtualisation, so it emulates a keyboard of some flavour. [08:57] This means that it has a virtual keyboard that sends scan codes to the guest os like a regular keyboard would do. [08:58] This is key. [08:58] it doesn't send "f", if you press the f button. It sends keycode 41. [08:59] Let's rewind about a year.. [08:59] Back then, the way this was accomplished in kvm (and qemu), you had to pass "-k fi" to kvm if you had a Finnish keymapping. [09:00] That way, kvm could look at the keysym(!) look it up in the finnish keymap it had, figure out to which keycode that corresponded, and sent that to the guest. [09:00] This was annoying for many reasons. [09:01] First of all, it was a bit flaky from time to time. [09:02] E.g. azerty keyboards need you to hold down shift to type numbers, so kvm couldn't send the shift key to the guest until it knew what you had pressed. [09:02] Also, you set this in kvm, so when you're using vnc, you have to be using the same mapping as the one you told kvm you'd be using. [09:03] this sucks big time if you want to give different users access to kvm instances and they don't share a keymap. [09:03] ...or if you simply don't know ahead of time which keymap the client will be using (in hosted environments for instance). [09:03] Fast forward to... hmm.. February this year. [09:04] I got fed up with this and started looking for a way to properly fix this.. Anthony Liguori (vnc and kvm hacker (very, very convenient combination)) extended the VNC protocol to be able to send keycodes instead of keysyms. [09:05] Er... I should have said scancodes almost every time I said keycodes, I think. [09:05] Anyhow.. [09:06] It turned out that the key code X reported corresponded exactly to the scan code from the keyboard. Great success. So we took those, sent them untranslated over the wire to kvm, and kvm passed them directly, untranslated to the guest. [09:06] This was fantastic. [09:07] No more passing "-k " to kvm to make things work (somewhat). The world was a better place. [09:07] Fast forward a few months.. [09:07] Now, evdev comes along. [09:07] evdev is not doing anything wrong per se.. There's nothing in the X protocol that dictates that keycodes should correspond to the hardware scan codes from the keyboard. [09:08] and it just so happens, that with evdev, they don't. [09:08] Ok, I see your point [09:08] ...so we no longer have the raw scan codes. [09:08] There are a few different solutions.. [09:09] We could ditch evdev. [09:09] We could tell the evdev developers to "fix" it. (as I said, they're not doing anything wrong per se, but it's annoying to us) [09:09] that's possible [09:10] since fedora should be seeing the same bug by now [09:10] We could come up with a way of a) detecting the use of evdev, and b) if detected, translate evdev keycodes to scancodes again. [09:10] According to my sources, Fedora are not switching to evdev. [09:10] Because of this very bug. [09:10] s/bug/issue/ [09:10] anyway, maybe it would be best if you could mail xorg@lists.freedesktop.org about this problem [09:10] fedora rawhide is already using it [09:11] I think someone already did. I'll need to check up on it. [09:11] they didn't switch to it for F9 [09:11] Oh. [09:11] Er.. [09:11] but there were other bugs too [09:11] Right, that might be true. [09:11] What they're *not* doing is shipping the patch to kvm that enables the raw keycode thing to happen. [09:12] ah [09:12] so they like old bugs [09:12] We're the only ones who ship it, and it really makes a massive difference. [09:13] ok.. [09:16] in that case the third solution sounds cleaner [09:21] Detect evdev and try to do the mapping? [09:22] right.. [09:24] we can't avoid evdev forever, so better fix/work around any issues that come up :) [09:45] Do you know how to detect evdev? [09:49] how low level should it be? [09:49] the detection [09:49] setxkbmap -print is one way if it's just a script that configures kvm runtime [09:49] there should be better ways to get that [09:50] ah, yes. I could look at setxkbmap and see what it does. === superm1|away is now known as superm1 === superm1 is now known as superm1|away === superm1|away is now known as superm1 [20:43] bryce: since alpha4 is out did you want to do something with the -ati bugs? [20:45] yep [20:46] was tormod doing some of it manually though? [20:48] bdmurray: can you renew my membership in the Ubuntu Bug Control (ubuntu-bugcontrol) Launchpad team, please? [20:49] tseliot, can't you do that yourself? [20:50] superm1: if I could I would do it myself ;) [20:50] "To prevent this membership from expiring, you should get in touch with one of the team's administrators: etc." [20:50] oh [20:50] tseliot: what is your launchpad username? [20:50] bdmurray: albertomilone [20:51] tseliot: Oh sure, done! [20:51] bdmurray: thanks a lot :-) [20:53] no problem [20:57] bryce: btw, got input-device properties working with evdev today. peter said he'd apply the backported patches to xserver 1.5 etc [21:06] tjaalton: excellent [21:07] bdmurray: he might have, but it doesn't hurt to repeat. [21:07] heh [22:18] bryce: How does http://pastebin.osuosl.org/21740 look for a comment? [22:20] anybody here know how to set up a touchpad in Intrepid? [22:20] bdmurray: sounds good [22:20] there used to be a tab in the Mouse settings but I don't see it anymore [22:21] LaserJock: I've not tested any touchpads, but I saw three user contributed docs which I've linked to from https://wiki.ubuntu.com/X/Config [22:22] bryce: you don't have any laptops? :-) [22:23] er, /not tested any touchpads that required manual configuration/ [22:26] ah [22:26] well, mine works, just too well ;-) [22:26] I gotta turn of the tap-to-click or I start typing everywhere [22:26] *off [22:53] bryce: hmm, I just realized I should subscribe to all of these [23:01] anyone wanna take a look at https://bugs.launchpad.net/bugs/234466 ? [23:01] Launchpad bug 234466 in wacom-tools "[hardy] Pen crazy in tablet PC" [Undecided,Confirmed] [23:02] there's a debdiff [23:03] or not [23:03] * pwnguin reads harder [23:04] I can update wacom tomorrow [23:05] cool [23:05] i just got a new job yesterday [23:05] besides, I'll try to make it support input-properties.. [23:05] pwnguin: congrats! [23:05] its a nice, easy part time job [23:05] serving fast-food?- [23:05] :) [23:06] I'm not sure that qualifies as easy [23:06] hehe [23:06] lab assistant for a graphic design program [23:06] its all osx, which is good... and bad [23:10] (there's an old joke in finland; what an arts grad asked the tech student at McDonald's? "want fries with that?") [23:10] pwnguin: sounds good [23:36] well, there's actually a lot of help wanted posters [23:36] presumably because they're a community college rather than a university, and are cheaper [23:40] congrats pwnguin [23:40] pwnguin: make sure to pimp inkscape ;-) [23:40] heh [23:40] illustrator isn't very popular