[06:40] When my pc boots, my keyboard doesn't work, but if I unplug/replug it then it does work [06:40] It's a ps/2 keyboard, can I somehow unload and reload the i8042 module instead? [06:41] My problem is that there's no i8042 module anymore.... what replaced it? [06:41] [ 331.529953] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 [06:41] This is shown in dmesg when I unplug/replug the keyboard, which then works [06:42] Before that, there's a /sys/devices/platform/i8042/serio0 directory, but no /sys/devices/platform/i8042/serio0/input directory [06:42] Maybe I can `echo xx>yy` something there in order to force a rescan? [06:45] xinput doesn't list the keyboard before I unplug/replug it [07:42] alkisg, that is built in, so you cannot rmmod/modprobe it no [07:42] apw: any way to force a rescan? [07:42] there are some options to that module to tell it to reset in a different way, rescan i am not sure [07:42] Reset would be fine too [07:42] The client reports that all of his 9 PCs have that, and it happens mostly on the first boot of the day [07:43] In subsequent reboots it mostly loads, e.g. 90% of the times... [07:43] So I'm trying to find a way for him to avoid buying new USB keyboards... [07:43] I tried both 3.2 and 3.13 kernels, they did the same [07:44] do the keyboards work for bios on first boot? [07:44] * alkisg asks... [07:45] a wide range of kernel versions affected then [07:45] I once had an old IBM one which seemed to show the same symptoms and my feeling was that that just wanted too much power maybe too early. So it seemed not getting initialized correctly [07:45] He had told me that it didn't happen until a few months ago [07:46] He was on precise with the stock 3.2 kernel, doing regular upgrades [07:46] alkisg, well if we can find the kernel it changed in there is a chance of finding the issue [07:47] Not saying it cannot happen but getting a drastic change happening back in the 3.2 kernel seem rather slim [07:47] right its unlikley the module status has changed for sure [07:47] Ah, there's the stock kernel still available in the repositores (not in -updates), I can try with that one... [07:48] smb: I think the client has a boot menu that waits e.g. 10 seconds before selecting "boot from network" (the one it normally uses), so I don't think it would be power related, [07:48] but it could be related to timings inside the kernel [07:48] Yeah would be good to make sure its not spontaneous hw degradation or so [07:49] alkisg, The init I mean is not the one from the kernel but the bios [07:49] IOW in my case the keyboard was useless already on the boot menu [07:50] I just told him to try all of the clients in the boot menu [07:50] smb, though 9 machines all the same seems unlikely to be h/w [07:50] apw, there is that. yeah. not clear how that would happen [07:52] But as there is a boot menu its easy to test whether one can wiggle the selection there (even when then going into the default option) [07:52] at least that would prove the kernel itself to be doing things wrong [07:56] To test previous versions, do I only need a previous linux-image, or some other package too? E.g. something related to udev, xinput, ...? [07:58] alkisg, no only the related linux kernel packages... linux-headers (arch + all) + linux-image.... (now if I could remember whether we had linux-image-extra already back then) [07:58] I think not... [07:58] no -extra package installed [07:59] ok, not that then, but give me a sec to boot a vm to check for sure [08:01] He reported that he just had 2 cases where the keyboard was working in the boot menu, but not later on [08:02] alkisg, ok thanks. so really more kernel or timing in there [08:02] Is there a "waitfordevices=10secs" parameter or similar? [08:05] alkisg, not that I know but then keyboard is not really seen boot critical... or its not completely not there but just does not send events [08:06] alkisg, So its just the 3 packages needed linux-headers- linux-headers--generic and linux-image--generic (if you already got -generic) [08:07] otherwise replace generic by whatever is there. it would be good when you could open a lp bug report by ssh in and running "ubuntu-bug linux" when the keyboard is not working [08:08] (or the customer himself) [08:15] cking: would it be feasible to do a fwts-live image for ppc64el? [08:16] jk-, i'm not sure, I don't know how the fwts-live image is created, I'll have to check out with the HWE fwts folk [08:17] cking: ah! I can follow up - that'd be ivan and/or alex? [08:17] jk-, ivan and/or alex :-) [08:17] cking: super, thanks. [08:23] * alkisg installs 3.2.0-23, apt-get install --auto-remove --purge linux-image-generic-pae=3.2.0.23.25 linux-generic-pae=3.2.0.23.25 linux-headers-generic-pae=3.2.0.23.25 [08:32] [ 1.034415] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1 [08:32] [ 1.034475] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp [08:32] [ 1.034807] serio: i8042 KBD port at 0x60,0x64 irq 1 [08:32] [ 1.191588] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3 [08:32] The last line is missing whenever the problem occurs. [08:33] I tried i8042.kbdreset, it didn't do anything (still waiting for the kernel to install) [08:34] * alkisg also checks i8042.nopnp... [08:36] not sure that helps much. hm, so the controller is detected but somehow the probe for the device behind that controller fails [08:36] iirc aux was potentially mouse... [08:42] * apw idly wonders if this is one of those behind the mouse [08:43] Heh. The older kernel seems to work fine [08:43] alkisg, so one needs to work forward to find the first one which fails [08:43] alkisg, normally one does a "binary split search" for these, pick one in the middle try that stylee [08:47] kernel bisect, got it... [08:47] * alkisg tries to get some more info, due to the diffuculty of doing that remotely... [08:48] alkisg, just not bisect within a kernel but taking the packages from launchpad [08:48] In theory if you can get a better "when" this started you could narrow down which kernel to start with [08:49] Gotcha, thanks, give me some time to check with that client (teacher) and what he's willing to do... :-/ [08:53] alkisg, you may like to also try i8042.noloop [09:26] Thank you guys. The result it: (1) the older kernel did not fix it, the first test was just a random time that it worked. (2) i8042.nopnp fixed it. [09:26] So I'm guessing that it didn't work for him in the past as he reported, and I updated his kernel command line to always have i8042.nopnp, and ..."closed" the issue :) [09:30] apw: morning, got a minute to discuss the kdump-tools/initrd bug ? [09:32] alkisg, Thanks for the update. Weird, somehow I would have thought that nopnp only would affect mice but I certainly will not complain if this fixes the issue. :) [09:50] caribou, always [09:52] apw: what do you prefer ? mumble or here ? [09:52] mumble is fine [09:52] if mumble would start [09:53] just making tea so too noisy [09:54] apw: hold on, PTT doesn't work [10:07] apw: I forgot to ask : do you see a /boot/kdump directory being an issue ? [10:11] caribou, i don't think so, though i guess they don't actualy have to be in /boot at all do they [10:11] caribou, as they are not loaded by the bootloader, so they are not special files in the same way, they could [10:11] go in like /var/lib/kdump/kernel or something just as well [10:14] apw: kexec calls them so they need to be in the same FS as the original ones [10:15] caribou, i thought it loaded them after we have mounted everything, so why do we care where they come from ? [10:15] and i thought it literally just read the file and shoved it into kernel memory [10:16] caribou, oh you mean on reboot? so we have unmounted everything by then ? [10:16] we don't do that for kdupm though do we ? [10:16] apw: no they're used as parameter to the kexec call that boots the kernel [10:17] apw: sorry, I need to step out. I'll check a few thing upon my return to make sure I put them at the right place [10:30] caribou, np [14:15] hi, i have a library here(no sourcecode) for accessing a USB 2.0 camera which uses libusb-1.0, when using usbmon and wireshark i see URBs for Bulk Transfer which are always 61504 Bytes long, on windows the native driver for the camera seems to use URBs of length 307227 bytes, how can i make sure the URBs on Linux are the same Size as on Windows? [14:16] silidan, i'd expect the library caller to specify the buffer size [14:16] which is the bit you don't have source for [14:17] apw: i dont have the source for the library that calls libusb [14:17] i know [14:19] silidan, an strace might tell you if the buffer being offered by userspace is bigger than the URB or not [14:19] and tell you if the kernel or userspace is making the upper limit [14:19] apw: never used strace, can you point me to a tutorial so i can get up and running? [14:20] normally "strace -o " gives you everything that happens [14:20] apw: if the kernel makes the upper limit, are there any chances i can set the limit at runtime? [14:23] silidan, maybe indeed, though i have no idea off the top of my head [14:23] knowing which driver it is loading etc we migt be able to tell [14:23] but first determine the size of the buffer offered from userspae [14:26] apw: here is the output from a short test http://pastebin.com/hmhvzkad [14:30] apw: this output is new to me.... dont know how to read it [14:30] silidan, those are the raw systemcalls your app made [14:31] apw: ok so to understand it i have to know which sys calls to look for right? [14:34] ioctl(13, USBDEVFS_SUBMITURB, 0x705560) = 0 [14:34] silidan, so i think that is saying that URBs are coming from userspace in a raw sense, so size is likey coming from there [14:45] apw: and that tells me what? [14:46] it implies to me that the libbray and your app are deciding on the URB sizes [14:47] as it is just saying "SEND URB" not "write some data" [14:49] apw: ok so that size limit is either given by libusb or the lib that uses libusb? [14:50] i gues it may be returned from the kernel inthe preceeding lookup phase [14:50] now it is hard to tell [14:50] ioctl(13, SNDRV_CTL_IOCTL_TLV_READ or USBDEVFS_GET_CAPABILITIES, 0x705550) = 0 [14:50] it does do that shortly before, so it is possible that that containst upper limits [14:52] silidan, ok no that doesn't appear to say how big it can be [14:52] and then we set a configration on the device and claim it [14:52] and then start sending urbs, so i'd say [14:53] from the inforamtion we have here that its likley it is either your app or the libusb which determins max urb size [14:53] but this cna only be conjecture at the moment [14:53] so in other words we cant be sure what is limiting? [14:54] but whats there right now, i'd say the kernel isn't obviously telling you, and userspace is saying "send this" [14:55] so i'd say the urb is being sized and made in userspace [15:04] apw: ok, but now lets assume the kernel would be telling me, where would i look further? [15:05] silidan, well it is hard to say as i cannot see you doing anything which looks like asking [15:08] silidan, why do you care that it is making smaller urbs anyhow, they are still pretty large [15:11] apw: well the problem is this camera reaches 30 fps on windows, and only 10 on linux, and the image transfers start to stall when the camera is supposed to transfer more than 10 fps. [15:12] silidan, so what is hte closed source thing you are using to read from it, does anything open osurce work with it [15:12] if its just a normal camera could you use cheese or something to see if that can read at a beter speed [15:13] apw: the closed source thing is the SDK from the manufacturer, im not aware of any open source thing to talk directly to the camera without the closed source SDK [15:14] silidan, closed source things suck [15:14] apw: yep [15:15] apw: but at least this manufacturer made the effort of creating a linux sdk... better than nothing at all.. [15:15] apw: i can give you the download link for the sdk if you are interested... [15:15] i guess, just about [15:16] silidan, i don't really have the imte to investigate binaries [15:16] likely your next step is to ask them, if they make the sdk they may respond [15:18] apw: i already asked them, so far their response: "we have dig into the source code of libusb and found it did not split the transfer to small URBs" and "the short URB problem is related to Linux kernel our USB3.0 camera has a larger hardware buffer than our USB2.0 cameras so USB3.0 cameras runs well through small URBs" [15:20] apw: and also: "we did some test and track this problem in libusb but seems there is no such limitation in libusb we do think this is because of linux Kernel" [15:25] apw: if you want i can hint them to this channel so you can communicate with them directly.. [15:25] silidan, so they are claiming we are splitting hte urb they send into more than one? [15:30] silidan, what does the URB say that we send to the other end [15:31] silidan, you took traces me thinks [15:48] apw: ? [15:48] silidan, they claim to be submitting bigger urbs than we submit to the device right ? [15:49] silidan, so i am asking what the wireshark info for the URBs is, so i cna try and figure out what path they took to see if we do do that [15:49] silidan, as they are claiming (i belive) that they submit large urbs and we submit multiple smaller ones onto the wire [15:49] and we'd have to have code to do that, which i cannot easily find without knowing the route it takes [15:50] and for that i need to know what kind of urb it is [15:52] apw: i can send you the wireshark info, but only in about 1-2 h, im afk now [18:41] apw: ok im back, getting hold of the data now [18:59] apw: Here is the usbmon capture of wireshark on Ubuntu 64bit http://wikisend.com/download/915008/ASI_120MM_USBMON_Capture_Linux_x64.pcapng [19:00] apw: it includes the whole communication from start to shutdown of the capture application, it doesnt contain the enumeration process during plugging in, if you want that ill make a new capture, just let me know [21:20] im off now, ill be back tomorror