Bug 8803
Summary: | Sony Vaio Picturebook PCG-C1VE: Kernel panic - not syncinc: Fatal exception in interrupt | ||
---|---|---|---|
Product: | Drivers | Reporter: | Stefan Foerster (mls) |
Component: | Platform | Assignee: | Mattia Dongili (malattia) |
Status: | CLOSED CODE_FIX | ||
Severity: | blocking | CC: | acpi-bugzilla, akpm, al_h, kernel, malattia, mls, sdreyer |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.22.1 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
Fix event reading in sony-laptop
fix c1ve (and type1 vaios) initialization fix c1ve (and type1 vaios) initialization (try2) dmesg with the 3rd patch applied and debug=1 A screen shot of the MEye camera picture |
Description
Stefan Foerster
2007-07-24 13:02:35 UTC
Nasty-looking regression. Mattia, it looks like sony-laptop is the culprit? > CONFIG_SONY_LAPTOP=y
> CONFIG_SONYPI_COMPAT=y
So if you turn these off, the system otherwise works properly?
(modulo the features that this driver supports are then missing)
It would be great if you could try 2.6.23-rc1 or build a kernel with the attached patch (which I already tried to submit to the stable team). Created attachment 12133 [details]
Fix event reading in sony-laptop
Stefan, could you also send me your DSDT? it's missing in my collection of vaio DSDT's and it would be the first type1 DSTD I get :) many thanks (In reply to comment #2) > > CONFIG_SONY_LAPTOP=y > > CONFIG_SONYPI_COMPAT=y > > So if you turn these off, the system otherwise works properly? > (modulo the features that this driver supports are then missing) > Hi Mattia, I first tried CONFIG_SONY_LAPTOP=y # CONFIG_SONYPI_COMPAT is not set but got the same result. I then completely turned this off # CONFIG_SONY_LAPTOP is not set and it booted like a charme. Now it's clear that it's sony_laptop of kernel version 2.6.22. Here is the dmesg output: ---------------------- Linux version 2.6.22.1-20070715-crusoe (root@stefan4) (gcc version 4.1.3 20070718 (prerelease) (Ubuntu 4.1.2-14ubuntu1)) #5 Thu Jul 26 00:40:39 CEST 2007 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009b800 (usable) BIOS-e820: 000000000009b800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000aff0000 (usable) BIOS-e820: 000000000aff0000 - 000000000afff800 (ACPI data) BIOS-e820: 000000000afff800 - 000000000b000000 (ACPI NVS) BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved) 175MB LOWMEM available. Entering add_active_range(0, 0, 45040) 0 entries of 256 used Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 45040 early_node_map[1] active PFN ranges 0: 0 -> 45040 On node 0 totalpages: 45040 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4064 pages, LIFO batch:0 Normal zone: 319 pages used for memmap Normal zone: 40625 pages, LIFO batch:7 DMI 2.3 present. ACPI: RSDP 000F8090, 0014 (r0 SONY ) ACPI: RSDT 0AFFD128, 002C (r1 SONY P1 20010124 PTL 0) ACPI: FACP 0AFFF754, 0084 (r2 SONY P1 20010124 PTL F4240) ACPI: DSDT 0AFFD154, 2600 (r1 SONY P1 20010124 MSFT 100000B) ACPI: FACS 0AFFFFC0, 0040 ACPI: BOOT 0AFFF7D8, 0028 (r1 SONY P1 20010124 PTL 1) ACPI: PM-Timer IO Port: 0x8008 Allocating PCI resources starting at 10000000 (gap: 0b000000:f4f80000) Built 1 zonelists. Total pages: 44689 Kernel command line: root=UUID=c6612a85-6acd-4d10-b3eb-d6256c8f61b9 ro video=radeonfb:1024x480M-16@60 acpi_sleep=s3_bios No local APIC present or hardware disabled mapped APIC to ffffd000 (01161000) Initializing CPU#0 PID hash table entries: 1024 (order: 10, 4096 bytes) Detected 595.534 MHz processor. Console: colour VGA+ 80x25 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 171464k/180160k available (1932k kernel code, 8136k reserved, 668k data, 204k init, 0k highmem) virtual kernel memory layout: fixmap : 0xfffb7000 - 0xfffff000 ( 288 kB) vmalloc : 0xcb800000 - 0xfffb5000 ( 839 MB) lowmem : 0xc0000000 - 0xcaff0000 ( 175 MB) .init : 0xc038e000 - 0xc03c1000 ( 204 kB) .data : 0xc02e3145 - 0xc038a2e4 ( 668 kB) .text : 0xc0100000 - 0xc02e3145 (1932 kB) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 1209.55 BogoMIPS (lpj=604776) Mount-cache hash table entries: 512 CPU: After generic identify, caps: 0080803f 0081813f 00000000 00000000 00000000 00000000 00000000 CPU: After vendor identify, caps: 0080803f 0081813f 00000006 00000000 00000000 00000000 00000000 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (32 bytes/line) CPU: L2 Cache: 512K (128 bytes/line) CPU: Processor revision 1.3.1.3, 600 MHz CPU: Code Morphing Software revision 4.1.4-7-51 CPU: 20000805 23:30 official release 4.1.4#2 CPU: After all inits, caps: 0080813f 0081813f 00000006 00000100 00000000 00000000 00000000 Compat vDSO mapped to ffffe000. CPU: Transmeta(tm) Crusoe(tm) Processor TM5600 stepping 03 Checking 'hlt' instruction... OK. ACPI: Core revision 20070126 NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xfd98e, last bus=0 PCI: Using configuration type 1 Setting up standard PCI resources ACPI: Interpreter enabled ACPI: (supports S0 S3 S4 S5) ACPI: Using PIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) PCI quirk: region 8000-803f claimed by PIIX4 ACPI PCI quirk: region 1040-104f claimed by PIIX4 SMB ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs *9) ACPI: PCI Interrupt Link [LNKB] (IRQs 9) *0, disabled. ACPI: PCI Interrupt Link [LNKC] (IRQs 9) *0, disabled. ACPI: PCI Interrupt Link [LNKD] (IRQs *9) ACPI: Power Resource [LRP0] (off) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnp: PnP ACPI: found 10 devices ACPI: ACPI bus type pnp unregistered PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report Time: tsc clocksource has been installed. pnp: 00:01: ioport range 0x398-0x399 has been reserved pnp: 00:01: ioport range 0x4d0-0x4d1 has been reserved pnp: 00:01: ioport range 0x1040-0x104f has been reserved pnp: 00:01: ioport range 0x8000-0x804f could not be reserved pnp: 00:02: iomem range 0x100000-0xaffffff could not be reserved pnp: 00:02: iomem range 0x0-0x9ffff could not be reserved pnp: 00:02: iomem range 0xdc000-0xdffff has been reserved pnp: 00:02: iomem range 0xe0000-0xfffff could not be reserved PCI: Bus 1, cardbus bridge: 0000:00:0c.0 IO window: 00001800-000018ff IO window: 00001c00-00001cff PREFETCH window: 10000000-13ffffff MEM window: 14000000-17ffffff ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 9 PCI: setting IRQ 9 as level-triggered ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9 PCI: Setting latency timer of device 0000:00:0c.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered checking if image is initramfs...<6>Switched to high resolution mode on CPU 0 it is Freeing initrd memory: 3476k freed Simple Boot Flag at 0x35 set to 0x1 audit: initializing netlink socket (disabled) audit(1185404227.724:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) io scheduler noop registered io scheduler cfq registered (default) Boot video device is 0000:00:0d.0 ACPI: AC Adapter [ACAD] (on-line) ACPI: Battery Slot [BAT1] (battery present) input: Lid Switch as /class/input/input0 ACPI: Lid Switch [LID] input: Power Button (CM) as /class/input/input1 ACPI: Power Button (CM) [PWRB] ACPI: Transitioning device [LRA0] to D3 ACPI: Transitioning device [LRA0] to D3 ACPI: Fan [LRA0] (off) ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3]) ACPI: Thermal Zone [ATF0] (63 C) Real Time Clock Driver v1.12ac Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller at PCI slot 0000:00:07.1 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... Marking TSC unstable due to: possible TSC halt in C2. Time: acpi_pm clocksource has been installed. hda: FUJITSU MHK2120AT, ATA DISK drive Clocksource tsc unstable (delta = -438148412 ns) hda: selected mode 0x42 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... Probing IDE interface ide1... Yenta: CardBus bridge found at 0000:00:0c.0 [104d:80b1] Yenta: ISA IRQ mask 0x0cb8, PCI irq 9 Socket status: 30000a20 PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUE] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice i2c /dev entries driver piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device TCP cubic registered Initializing XFRM netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 15 Using IPI Shortcut mode Freeing unused kernel memory: 204k freed input: AT Translated Set 2 keyboard as /class/input/input2 pccard: CardBus card inserted into slot 0 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb USB Universal Host Controller Interface driver v3.0 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9 ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9 uhci_hcd 0000:00:07.2: UHCI Host Controller uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:07.2: irq 9, io base 0x00001020 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected hda: max request size: 128KiB hda: 23579136 sectors (12072 MB) w/512KiB Cache, CHS=23392/16/63, UDMA(33) hda: cache flushes not supported hda:PCI: Enabling device 0000:00:08.0 (0010 -> 0012) ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[9] MMIO=[fc104000-fc1047ff] Max Packet=[2048] IR/IT contexts=[4/8] usb 1-1: new low speed USB device using uhci_hcd and address 2 hda1 hda2 hda3 usb 1-1: configuration #1 chosen from 1 choice usb 1-2: new full speed USB device using uhci_hcd and address 3 usb 1-2: configuration #1 chosen from 1 choice ieee1394: Host added: ID:BUS[0-00:1023] GUID[0800460300b4e237] usbcore: registered new interface driver hiddev input: HID 1241:1177 as /class/input/input3 input: USB HID v1.10 Mouse [HID 1241:1177] on usb-0000:00:07.2-1 usbcore: registered new interface driver libusual SCSI subsystem initialized Initializing USB Mass Storage driver... scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 3 usb-storage: waiting for device to settle before scanning usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver Attempting manual resume ReiserFS: hda3: found reiserfs format "3.6" with standard journal ReiserFS: hda3: using ordered data mode ReiserFS: hda3: journal params: device hda3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hda3: checking transaction log (hda3) ReiserFS: hda3: Using r5 hash to sort names usb-storage: device scan complete scsi 0:0:0:0: Direct-Access Sony MSC-U01N 1.00 PQ: 0 ANSI: 0 CCS Linux agpgart interface v0.102 (c) Dave Jones IBM TrackPoint firmware: 0x0b, buttons: 3/3 input: TPPS/2 IBM TrackPoint as /class/input/input4 input: PC Speaker as /class/input/input5 sd 0:0:0:0: [sda] 15840 512-byte hardware sectors (8 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 06 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] 15840 512-byte hardware sectors (8 MB) PCI: Enabling device 0000:00:09.0 (0006 -> 0007) ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 9 ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKC] -> GSI 9 (level, low) -> IRQ 9 sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 06 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sd 0:0:0:0: [sda] Attached SCSI removable disk sd 0:0:0:0: Attached scsi generic sg0 type 0 lp: driver loaded but no devices found sonypi: Sony Programmable I/O Controller Driver v1.26. sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers sonypi: detected type1 model, verbose = 0, fnkeyinit = on, camera = on, compat = on, mask = 0xffffffff, useinput = on, acpi = on sonypi: enabled at irq=11, port1=0x10c0, port2=0x10c4 input: Sony Vaio Jogdial as /class/input/input6 input: Sony Vaio Keys as /class/input/input7 Linux video capture interface: v2.00 Adding 377516k swap on /dev/disk/by-uuid/85bfe04f-d3e3-4cbb-bd17-032188ee208e. Priority:-1 extents:1 across:377516k kjournald starting. Commit interval 5 seconds EXT3 FS on hda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. No dock devices found. NET: Registered protocol family 10 lo: Disabled Privacy Extensions apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) Installing knfsd (copyright (C) 1996 okir@monad.swb.de). NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory NFSD: starting 90-second grace period Bluetooth: Core ver 2.11 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP ver 2.8 Bluetooth: L2CAP socket layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM ver 1.8 -------------------------------- Stefan (In reply to comment #3) > It would be great if you could try 2.6.23-rc1 or build a kernel with the > attached patch (which I already tried to submit to the stable team). > I will try this Friday night. Good night, Stefan (In reply to comment #5) > Stefan, could you also send me your DSDT? it's missing in my collection of > vaio > DSDT's and it would be the first type1 DSTD I get :) > > many thanks > Done. Stefan (In reply to comment #6) > (In reply to comment #2) > > > CONFIG_SONY_LAPTOP=y > > > CONFIG_SONYPI_COMPAT=y > > > > So if you turn these off, the system otherwise works properly? > > (modulo the features that this driver supports are then missing) > > > > Hi Mattia, > > I first tried > > CONFIG_SONY_LAPTOP=y > # CONFIG_SONYPI_COMPAT is not set > > but got the same result. I then completely turned this off > > # CONFIG_SONY_LAPTOP is not set > > and it booted like a charme. Now it's clear that it's sony_laptop of kernel > version 2.6.22. argh, yes... sorry for not being more clear but I was already sure of that and the patch should (hopefully) address the issue you're seeing. mattia (In reply to comment #9) > (In reply to comment #6) > > (In reply to comment #2) > > > > CONFIG_SONY_LAPTOP=y > > > > CONFIG_SONYPI_COMPAT=y > > > > > > So if you turn these off, the system otherwise works properly? > > > (modulo the features that this driver supports are then missing) > > > > > > > Hi Mattia, > > > > I first tried > > > > CONFIG_SONY_LAPTOP=y > > # CONFIG_SONYPI_COMPAT is not set > > > > but got the same result. I then completely turned this off > > > > # CONFIG_SONY_LAPTOP is not set > > > > and it booted like a charme. Now it's clear that it's sony_laptop of kernel > > version 2.6.22. > > argh, yes... sorry for not being more clear but I was already sure of that > and > the patch should (hopefully) address the issue you're seeing. > > mattia > Good morning Matthia, the kernel panic is gone. But it doesn't seem to work. I get the following (error) messages, there is no longer /dev/sonypi and meye no longer works: sony-laptop: Sony Programmable IO Control Driver v0.5. sony-laptop: detected Type1 model sony-laptop: Error evaluating _SRS<3>sony-laptop: Couldn't enable device. sony-laptop: Sony Notebook Control Driver v0.5. meye: using 32 buffers with 600k (19200k total)for capture meye: unable to power on the camera meye: did you enable the camera in sonypi using the module options ? meye: probe of 0000:00:0b.0 failed with error -5 Stefan > the kernel panic is gone. But it doesn't seem to work. I get the following Cool, one step ahead :) > (error) messages, there is no longer /dev/sonypi and meye no longer works: > > sony-laptop: Sony Programmable IO Control Driver v0.5. > sony-laptop: detected Type1 model > sony-laptop: Error evaluating _SRS<3>sony-laptop: Couldn't enable device. > sony-laptop: Sony Notebook Control Driver v0.5. Could you try loading sony-laptop with the option "debug=1" and send the output? Also, do already have CONFIG_ACPI_DEBUG set and a possibly a very large kernel log buffer (CONFIG_LOG_BUF_SHIFT, I have it =20)? If so enabling full ACPI debug before loading sony-laptop may also help. (e.g.: echo 0xffffff > /proc/acpi/debug_level ; modprobe sony-laptop ; echo 0x0000007 > /proc/acpi/debug_level) > meye: using 32 buffers with 600k (19200k total)for capture > meye: unable to power on the camera > meye: did you enable the camera in sonypi using the module options ? > meye: probe of 0000:00:0b.0 failed with error -5 ok, that's expected. We need to make sony-laptop work first. And it is definitely a regression as well as meye can't fallback to sonypi. thanks Mattia (In reply to comment #11) > > the kernel panic is gone. But it doesn't seem to work. I get the following > > Cool, one step ahead :) > > > (error) messages, there is no longer /dev/sonypi and meye no longer works: > > > > sony-laptop: Sony Programmable IO Control Driver v0.5. > > sony-laptop: detected Type1 model > > sony-laptop: Error evaluating _SRS<3>sony-laptop: Couldn't enable device. > > sony-laptop: Sony Notebook Control Driver v0.5. Ok, I inspected your DSDT a bit and it looks like I need some more work to get the Type1 Vaios (as your C1VE) work. They are using a different resource template in the _SRS call, thus the call is failing (as you see from the logs). But I'll need some more of your time to test patches as I don't have such a vaio model. Stay tuned. Mattia (In reply to comment #12) > > Ok, I inspected your DSDT a bit and it looks like I need some more work to > get > the Type1 Vaios (as your C1VE) work. They are using a different resource > template in the _SRS call, thus the call is failing (as you see from the > logs). > > But I'll need some more of your time to test patches as I don't have such a > vaio model. > Stay tuned. > > Mattia > Hi Mattia, no problem, I'll do my best to test your patches. Due to my regular business trips my reaction time can be long sometimes, but I promise to help ! I am very impressed how reactive Andrew Morton and you are. It is the first time that I have found a bug in the kernel and I really like to help to improve it, especially for the tiny Sony Picturebooks. It's so cool to see Linux running on this machine. What is a SRS call ? Ciao, Stefan (In reply to comment #13) > (In reply to comment #12) > > > > Ok, I inspected your DSDT a bit and it looks like I need some more work to > get > > the Type1 Vaios (as your C1VE) work. They are using a different resource > > template in the _SRS call, thus the call is failing (as you see from the > logs). ... > no problem, I'll do my best to test your patches. Due to my regular business > trips my reaction time can be long sometimes, but I promise to help ! I am > very > impressed how reactive Andrew Morton and you are. It is the first time that I > have found a bug in the kernel and I really like to help to improve it, > especially for the tiny Sony Picturebooks. It's so cool to see Linux running > on > this machine. Hehehe, actually I'll probably be unable to cook a patch in the next few days but the good news is that the problem is clear and I should be able to fix it once my spare time allows it. > What is a SRS call ? "Set Resource Settings", we need to tell the bios which configuration we're using. It looks like very old Vaios did it with a different input structure than newer ones: C1VE (Type 1): Name (SSRC, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x01, ) IO (Decode16, 0x0000, 0x0000, 0x01, 0x01, ) IRQNoFlags () {} }) SZ72 (Type 3): Name (SSRC, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x20, ) IRQNoFlags () {} }) We just need to make a special case for Type 1 Vaios, should be easy enough. Mattia Created attachment 12201 [details]
fix c1ve (and type1 vaios) initialization
Hello,
this is my first attempt at fixing the c1ve problem.
My laptop still works so, even if the patch is quite invasive, it looks like I didn't break anything.
Please test. (If I may suggest, build sony-laptop as a module, it should be easier to have the laptop survive and report bugs/traces)
ciao
(In reply to comment #15) > Created an attachment (id=12201) [details] > fix c1ve (and type1 vaios) initialization > > Hello, > this is my first attempt at fixing the c1ve problem. > My laptop still works so, even if the patch is quite invasive, it looks like > I > didn't break anything. > Please test. (If I may suggest, build sony-laptop as a module, it should be > easier to have the laptop survive and report bugs/traces) > > ciao > Hi Mattia, I just tried to patch sony-laptop.c, but the patch failed with "Hunk #11 FAILED at 2065". I used the patch -p1 option. What command should I use exactly ? Or can you send me the patched file ? I don't patch files very often... Ciao, Stefan The second patch applies _ontop_ of the first one, both are needed. Did you revert the first one by chance? Thanks (In reply to comment #17) > The second patch applies _ontop_ of the first one, both are needed. > Did you revert the first one by chance? > > Thanks > Now patching worked, thanks. I changed the kernel config so that sony-laptop is built as a module and I also turned ACPI debug on. To my surprise, the sony-laptop module gets loaded at startup (probably due to the fact that I modprobe meye ?). Here are the relevant portions of dmesg: ---------------------- sony-laptop: Sony Programmable IO Control Driver v0.5. sony-laptop: detected Type1 model sony-laptop: device allocated minor is 63 sony-laptop: Sony Notebook Control Driver v0.5. meye: using 32 buffers with 600k (19200k total)for capture meye: unable to power on the camera meye: did you enable the camera in sonypi using the module options ? meye: probe of 0000:00:0b.0 failed with error -5 ----------------------- I manually removed meye and sony-laptop and tried to load the module again with full ACPI debug. I got a segfault ! Here is the transcript: ----------------------- root@stefan4:/home/stefan# modprobe -r meye root@stefan4:/home/stefan# modprobe -r sony-laptop root@stefan4:/home/stefan# echo 0xffffff >/proc/acpi/debug_level ; modprobe sony-laptop ; echo 0x000007 >/proc/acpi/debug_level Segmentation fault root@stefan4:/home/stefan# Message from syslogd@stefan4 at Thu Aug 2 23:10:32 2007 ... stefan4 kernel: Oops: 0000 [#1] Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: CPU: 0 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: EIP: 0060:[<cb9b80cf>] Not tainted VLI Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: EFLAGS: 00210246 (2.6.22.1-20070715-crusoe #7) Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: EIP is at sony_pic_add+0x29f/0x680 [sony_laptop] Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: eax: 00000000 ebx: c11a9c00 ecx: c67abe00 edx: 00000000 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: esi: c67ab960 edi: c11a9c8d ebp: 00000000 esp: c75f9e04 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: ds: 007b es: 007b fs: 0000 gs: 0033 ss: 0068 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: Process modprobe (pid: 5297, ti=c75f8000 task=c3d07900 task.ti=c75f8000) Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: Stack: cb9b998f 00000001 cb9b9930 c019fdaf 00000020 c11a9c00 cb9bd060 c11a9e0c Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: ffffffda c023137e 00000000 cb9bd138 c7d10b60 c11aa300 00000000 c11a9e0c Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: c11a9e74 c11a9eb0 c11a9e0c 00000000 cb9bd130 c11a9eb0 c02608fd cb9bd130 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [sysfs_make_dirent+47/80] sysfs_make_dirent+0x2f/0x50 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [acpi_device_probe+62/272] acpi_device_probe+0x3e/0x110 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [driver_probe_device+141/400] driver_probe_device+0x8d/0x190 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [__driver_attach+154/160] __driver_attach+0x9a/0xa0 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [bus_for_each_dev+58/96] bus_for_each_dev+0x3a/0x60 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [driver_attach+22/32] driver_attach+0x16/0x20 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [__driver_attach+0/160] __driver_attach+0x0/0xa0 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [bus_add_driver+138/432] bus_add_driver+0x8a/0x1b0 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [<cb872062>] sony_laptop_init+0x62/0x76 [sony_laptop] Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [sys_init_module+329/5840] sys_init_module+0x149/0x16d0 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: [syscall_call+7/11] syscall_call+0x7/0xb Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: ======================= Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: Code: b8 dc c1 38 c0 c7 04 24 8f 99 9b cb e8 cb 79 76 f4 85 c0 0f 85 15 01 00 00 a1 50 d8 9b cb 85 c0 0f 85 83 00 00 00 a1 f4 d1 9b cb <0f> b6 48 02 0f b7 50 03 b8 dc c1 38 c0 e8 8f 78 76 f4 8b 76 14 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: EIP: [<cb9b80cf>] sony_pic_add+0x29f/0x680 [sony_laptop] SS:ESP 0068:c75f9e04 Message from syslogd@stefan4 at Thu Aug 2 23:10:33 2007 ... stefan4 kernel: Call Trace: --------------------------- Any ideas ? Stefan No, not many ideas right now. Will look into it later. Anyway, what about simply: modprobe sony-laptop debug=1 camera=1 modprobe meye ? (In reply to comment #19) > No, not many ideas right now. Will look into it later. > Anyway, what about simply: > modprobe sony-laptop debug=1 camera=1 > modprobe meye > ? > The same result. sony-laptop and meye are loaded automagically. When I remove the modules manually and do a modprobe again, I get a segfault: ---------------- root@stefan4:~# modprobe sony-laptop debug=1 camera=1 Segmentation fault root@stefan4:~# Message from syslogd@stefan4 at Fri Aug 3 22:14:20 2007 ... stefan4 kernel: Oops: 0000 [#1] Message from syslogd@stefan4 at Fri Aug 3 22:14:20 2007 ... stefan4 kernel: CPU: 0 Message from syslogd@stefan4 at Fri Aug 3 22:14:20 2007 ... stefan4 kernel: EIP: 0060:[<cb97e0cf>] Tainted: P VLI Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: EFLAGS: 00210296 (2.6.22.1-20070715-crusoe #7) Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: EIP is at sony_pic_add+0x29f/0x680 [sony_laptop] Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: eax: 00000000 ebx: c11a7c00 ecx: ffffffff edx: 00003e7b Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: esi: c97120c0 edi: c11a7c8d ebp: 00000000 esp: c92f1e04 Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: ds: 007b es: 007b fs: 0000 gs: 0033 ss: 0068 Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: Process modprobe (pid: 8020, ti=c92f0000 task=c18ee000 task.ti=c92f0000) Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: Stack: cb97f624 000010c4 000010c4 00000001 00000020 c11a7c00 cb983060 c11a7e0c Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: ffffffda c023137e 00000000 cb983138 c82eccd0 c11a8300 00000000 c11a7e0c Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: c11a7e74 c11a7eb0 c11a7e0c 00000000 cb983130 c11a7eb0 c02608fd 00000000 Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: Call Trace: Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: [acpi_device_probe+62/272] acpi_device_probe+0x3e/0x110 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [__driver_attach+154/160] __driver_attach+0x9a/0xa0 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [bus_for_each_dev+58/96] bus_for_each_dev+0x3a/0x60 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [driver_attach+22/32] driver_attach+0x16/0x20 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [__driver_attach+0/160] __driver_attach+0x0/0xa0 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [bus_add_driver+138/432] bus_add_driver+0x8a/0x1b0 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [<cb872062>] sony_laptop_init+0x62/0x76 [sony_laptop] Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [sys_init_module+329/5840] sys_init_module+0x149/0x16d0 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: [syscall_call+7/11] syscall_call+0x7/0xb Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: ======================= Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: Code: b8 dc c1 38 c0 c7 04 24 8f f9 97 cb e8 cb 19 7a f4 85 c0 0f 85 15 01 00 00 a1 50 38 98 cb 85 c0 0f 85 83 00 00 00 a1 f4 31 98 cb <0f> b6 48 02 0f b7 50 03 b8 dc c1 38 c0 e8 8f 18 7a f4 8b 76 14 Message from syslogd@stefan4 at Fri Aug 3 22:14:22 2007 ... stefan4 kernel: EIP: [<cb97e0cf>] sony_pic_add+0x29f/0x680 [sony_laptop] SS:ESP 0068:c92f1e04 Message from syslogd@stefan4 at Fri Aug 3 22:14:21 2007 ... stefan4 kernel: [driver_probe_device+141/400] driver_probe_device+0x8d/0x190 ------------------- How can I make the kernel startthe module with the debug=1 and camera=1 options ? modutils ? Ciao, Stefan Comment on attachment 12201 [details]
fix c1ve (and type1 vaios) initialization
broken
Created attachment 12245 [details]
fix c1ve (and type1 vaios) initialization (try2)
the previous patch was broken (as you already discovered), this one should behave better.
Please revert it and try this one instead.
BTW: to have module options automatically applied do
if you have /etc/modprobe.conf:
echo 'options sony_laptop debug=1 camera=1' >> /etc/modprobe.conf
or if you have the /etc/modprobe.d directory:
echo 'options sony_laptop debug=1 camera=1' >> /etc/modprobe.d/sony_laptop
see man 5 modprobe.conf
Created attachment 12257 [details]
dmesg with the 3rd patch applied and debug=1
This is the dmesg with the latest patch applied and debug set to 1. It seems that it works. How can I test the modules ? I will try the camera of course, but what else can I do ?
Stefan
Created attachment 12258 [details]
A screen shot of the MEye camera picture
I just tried the camera. As before, xawtv shows no picture in its window (I still haven't succeeded to make that work...), but in fullscreen mode I get a picture. The picture of the camera is of really bad quality as you can see from the attached picture (and the other picture to compare with). My impression is that using the sonypi driver the picture is better than with sony-laptop, although not optimal, too.
Stefan
(In reply to comment #23) > Created an attachment (id=12257) [details] > dmesg with the 3rd patch applied and debug=1 > > This is the dmesg with the latest patch applied and debug set to 1. It seems > that it works. How can I test the modules ? I will try the camera of course, > but what else can I do ? don't know, verify that the Fn keys and other special keys work as expected, brightness control, jogdial if any. Also, can you remove and modprobe the driver without problems now? (In reply to comment #24) > Created an attachment (id=12258) [details] > A screen shot of the MEye camera picture > > I just tried the camera. As before, xawtv shows no picture in its window (I > still haven't succeeded to make that work...), but in fullscreen mode I get a > picture. The picture of the camera is of really bad quality as you can see > from > the attached picture (and the other picture to compare with). My impression > is > that using the sonypi driver the picture is better than with sony-laptop, > although not optimal, too. definitely bad quality. I'll have some more difficulties helping you with this but there are some tests we could do. Anyway this is a different bug (I guess), we already squeezed 2 bugs here with a single bugzilla entry, would you mind opening a new one for the meye picture quality (please cc me in the bug) while focusing on the basic functionality of sony-laptop here? many thanks Mattia Hi Mattia, (In reply to comment #25) > don't know, verify that the Fn keys and other special keys work as expected, > brightness control, jogdial if any. I'll try to. I haven't succeded in getting all the Fn keys (especially the brightness control) to work under sonypi, so testing this will be difficult for me. The jogdial does not work (scrolling in the Firefox window for instance). It has worked under sonypi. > Also, can you remove and modprobe the driver without problems now? YES ! > definitely bad quality. I'll have some more difficulties helping you with > this > but there are some tests we could do. > Anyway this is a different bug (I guess), we already squeezed 2 bugs here > with > a single bugzilla entry, would you mind opening a new one for the meye > picture > quality (please cc me in the bug) while focusing on the basic functionality > of > sony-laptop here? > > many thanks > Mattia > The bad quality may have several reasons, I'll try to single these out before I bug this. Cleaning the lens helped a bit ;-) It may be a hardware problem - I believe that the camera of my notebook is no longer working 100 %. I also have to find out the optimal xawtv settings first. Ciao, Stefan (In reply to comment #26) > > don't know, verify that the Fn keys and other special keys work as > expected, > > brightness control, jogdial if any. > > I'll try to. I haven't succeded in getting all the Fn keys (especially the > brightness control) to work under sonypi, so testing this will be difficult > for > me. > > The jogdial does not work (scrolling in the Firefox window for instance). It > has worked under sonypi. argh! do you get anything in the kernel log with the debug=1 switch and while scrolling with the jogdial? > > Also, can you remove and modprobe the driver without problems now? > > YES ! ok, we're making some progress. That patch is definitely worth including. > > definitely bad quality. I'll have some more difficulties helping you with > ... > The bad quality may have several reasons, I'll try to single these out before > I > bug this. Cleaning the lens helped a bit ;-) It may be a hardware problem - I > believe that the camera of my notebook is no longer working 100 %. I also > have > to find out the optimal xawtv settings first. ok, thanks for doing that. If you want I can send you a patch to make meye use sonypi instead so you can check with that too. cheers mattia Hi Mattia, > > The jogdial does not work (scrolling in the Firefox window for instance). > It > > has worked under sonypi. > > argh! do you get anything in the kernel log with the debug=1 switch and while > scrolling with the jogdial? I don't know why hit hasn't worked before, but it works now. I haven't changed anything. Sorry for the confusion... > If you want I can send you a patch to make meye use sonypi instead so you can > check with that too. That's not necessary. I have a 2.6.21 kernel with sonypi installed which I can use parallel to the 2.6.22 kernel. It seems that you can close this bug. > cheers > mattia > Ciao, Stefan (In reply to comment #28) > Hi Mattia, > > > > The jogdial does not work (scrolling in the Firefox window for instance). > It > > > has worked under sonypi. > > > > argh! do you get anything in the kernel log with the debug=1 switch and > while > > scrolling with the jogdial? > > I don't know why hit hasn't worked before, but it works now. I haven't > changed > anything. Sorry for the confusion... cool :) ... > It seems that you can close this bug. done, thanks a lot Mattia I had the same problem with my PCG-C1XN (266 MHz Celeron). Just tried it with vanilla 2.6.22.3 + the supplied patch. I can confirm that all VAIO-related stuff works: Fn keys, motion eye, backlight dimming. Thanks guys! Hi, thanks for reporting. BTW: do you see the same picture-degradation as Stefan while using the MEYE camera? I cannot confirm any picture quality degradation when using the built-in camera. Picture quality has always been bad, even in the first hours after buying the device (when windows was still running on it). (In reply to comment #31) > Hi, thanks for reporting. > BTW: do you see the same picture-degradation as Stefan while using the MEYE > camera? > I can report that the picture quality on jpg is good when there is enough light (day light, for example). Running 2.6.23.13 kernel from kernel.org with 2nd patch (try2) only. The 1st patch (dated 7/25/2007) is already in the kernel. motioneye is fully functional (capture/display/jpg/mjpeg) vlc shows a window of greenish dynamic image (with both v4l and v4l2). xawtv/streamer v3.95 does not show any thing (black window) in the window. Not sure if it is meye's problem or apps's problem (vlc/xawtv). root[tmp]# streamer -d -s 320x240 -o pic05.jpeg checking writer files [multiple image files] ... video name=ppm ext=ppm: ext mismatch [need jpeg] video name=pgm ext=pgm: ext mismatch [need jpeg] video name=jpeg ext=jpeg: OK files / video: JPEG (JFIF) / audio: none vid-open: trying: v4l2-old... vid-open: failed: v4l2-old vid-open: trying: v4l2... v4l2: open v4l2: device info: meye 0.1.13 / meye @ PCI:0000:00:0b.0 vid-open: ok: v4l2 movie_init_writer start setformat: JPEG (JFIF) (320x240): failed setformat: 12 bit YUV 4:2:0 (planar) (320x240): failed setformat: 16 bit YUV 4:2:2 (planar) (320x240): failed setformat: 24 bit TrueColor (BE: rgb) (320x240): failed setformat: 24 bit TrueColor (LE: bgr) (320x240): failed no way to get: 320x240 JPEG (JFIF) movie writer initialisation failed v4l2: close root[vlc]# vlc -vvv v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/null" :v4l-norm=3 :v4l-width=320 :v4l-height=240 :v4l-chroma="I422" VLC media player 0.8.5 Janus starting VLC root wrapper... using UID 0 (root) *************************************** * Running VLC as root is discouraged. * *************************************** It is potentially dangerous, and might not even work properly. [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc debug: checking builtin modules [00000001] main vlc debug: checking plugin modules [00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat [00000001] main vlc debug: recursively browsing `modules' [00000001] main vlc debug: recursively browsing `/opt/vlc/lib/vlc' [00000001] main vlc debug: recursively browsing `plugins' [00000001] main vlc debug: module bank initialized, found 203 modules [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc debug: CPU has capabilities 486 586 MMX FPU [00000001] main vlc debug: looking for memcpy module: 2 candidates [00000001] main vlc debug: using memcpy module "memcpymmx" [00000263] main playlist debug: waiting for thread completion [00000263] main playlist debug: thread 3079941008 (playlist) created at priority 0 (playlist/playlist.c:184) [00000264] main private debug: waiting for thread completion [00000264] main private debug: thread 3071552400 (preparser) created at priority 0 (playlist/playlist.c:210) [00000265] main interface debug: looking for interface module: 1 candidate [00000265] main interface debug: using interface module "hotkeys" [00000265] main interface debug: thread 3063163792 (interface) created at priority 0 (interface/interface.c:231) [00000267] main interface debug: looking for interface module: 1 candidate [00000267] main interface debug: using interface module "screensaver" [00000267] main interface debug: thread 3054775184 (interface) created at priority 0 (interface/interface.c:231) [00000263] main playlist debug: adding playlist item `v4l://' ( v4l:// ) [00000269] main interface debug: looking for interface module: 4 candidates [00000269] main interface debug: using interface module "wxwidgets" [00000269] main interface debug: thread 3028044688 (manager) created at priority 0 (interface/interface.c:216) [00000269] wxwidgets interface debug: Using last windows config '(-1,0,0,1024,768)(6,0,0,-1,150)' [00000269] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150) [00000263] main playlist debug: nothing requested, starting [00000263] main playlist debug: creating new input thread [00000272] main input debug: waiting for thread completion [00000272] main input debug: creating statistics handler [00000272] main input debug: thread 3011509136 (input) created at priority 0 (input/input.c:261) [00000272] main input debug: `v4l://' gives access `v4l' demux `' path `' [00000272] main input debug: creating demux: access='v4l' demux='' path='' [00000274] main demuxer debug: looking for access_demux module: 1 candidate [00000274] v4l demuxer debug: V4L device meye 1 channels 0 audios 320 < w < 640 240 < h < 480 [00000274] v4l demuxer debug: setting channel Camera(0) 0 tuners flags=0x0 type=0x2 norm=0x0 [00000274] v4l demuxer debug: v4l device uses brightness: 32768 [00000274] v4l demuxer debug: v4l device uses colour: 32768 [00000274] v4l demuxer debug: v4l device uses hue: 32768 [00000274] v4l demuxer debug: v4l device uses contrast: 32768 [00000274] v4l demuxer debug: v4l device uses frame size: 153600 [00000274] v4l demuxer debug: v4l device uses chroma: I422 [00000274] v4l demuxer error: cannot set audio format (16b little endian) (Inappropriate ioctl for device) [00000274] v4l demuxer debug: v4l grabbing started [00000274] v4l demuxer debug: added new video es I422 320x240 [00000272] main input debug: selecting program id=0 [00000274] main demuxer debug: using access_demux module "v4l" [00000276] main decoder debug: looking for decoder module: 21 candidates [00000276] main decoder debug: using decoder module "rawvideo" [00000276] main decoder debug: thread 2983459728 (decoder) created at priority 0 (input/decoder.c:159) [00000272] main input debug: `v4l://' successfully opened [00000276] main decoder debug: no usable vout present, spawning one [00000301] main video output debug: window size: 320x240 [00000301] main video output debug: looking for video output module: 5 candidates [00000302] main private debug: Registering subpicture channel, ID: 2 [00000302] main private debug: Registering subpicture channel, ID: 3 [00000302] main private debug: Registering subpicture channel, ID: 4 [00000302] main private debug: Registering subpicture channel, ID: 5 [00000301] xvideo video output warning: no free XVideo port found for format 0x32323449 (I422) [00000301] xvideo video output debug: adaptor 0, port 65, format 0x32595559 (YUY2) packed [00000301] xvideo video output debug: Window manager supports NetWM [00000301] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE [00000301] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW [00000301] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN [00000301] main video output debug: using video output module "xvideo" [00000301] main video output debug: got 8 direct buffer(s) [00000301] main video output debug: picture in 320x240 (0,0,320x240), chroma I422, ar 4:3, sar 1:1 [00000301] main video output debug: picture user 320x240 (0,0,320x240), chroma I422, ar 4:3, sar 1:1 [00000301] main video output debug: picture out 320x240 (0,0,320x240), chroma YUY2, ar 4:3, sar 1:1 [00000301] main video output debug: looking for chroma module: 9 candidates [00000301] main video output debug: using chroma module "i422_yuy2_mmx" [00000301] main video output debug: indirect render, mapping render pictures 0-7 to system pictures 8-15 [00000301] main video output debug: waiting for thread completion [00000301] main video output debug: thread 2971921296 (video output) created at priority 0 (video_output/video_output.c:421) [00000301] main video output warning: late picture skipped (545101) [00000301] main video output warning: late picture skipped (517468) ... signal 2 received, terminating vlc - do it again in case it gets stuck [00000301] main video output warning: late picture skipped (116744) [00000301] main video output warning: late picture skipped (85315) [00000301] main video output warning: late picture skipped (54369) [00000301] main video output warning: late picture skipped (22307) [00000001] main vlc debug: removing all interfaces [00000269] main interface debug: thread 3028044688 joined (interface/interface.c:258) [00000269] main interface debug: removing module "wxwidgets" [00000267] main interface debug: thread 3054775184 joined (interface/interface.c:258) [00000267] main interface debug: removing module "screensaver" [00000265] main interface debug: thread 3063163792 joined (interface/interface.c:258) [00000265] main interface debug: removing module "hotkeys" [00000001] main vlc debug: removing playlist handler [00000264] main private debug: thread 3071552400 joined (playlist/playlist.c:247) [00000272] main input debug: control type=0 [00000272] main input debug: control: stopping input [00000272] main input debug: closing input [00000274] main demuxer debug: removing module "v4l" [00000276] main decoder debug: removing module "rawvideo" [00000276] main decoder debug: thread 2983459728 joined (input/decoder.c:191) [00000276] main decoder debug: killing decoder fourcc `I422', 0 PES in FIFO [00000276] main decoder debug: cannot find playlist, destroying vout [00000301] main video output debug: removing module "i422_yuy2_mmx" [00000301] main video output debug: removing module "xvideo" [00000301] main video output debug: thread 2971921296 joined (video_output/video_output.c:461) [00000272] main input debug: thread 3011509136 joined (input/input.c:399) [00000263] main playlist debug: thread 3079941008 joined (playlist/playlist.c:248) [00000263] main playlist: stopping playback [00000263] main playlist debug: deleting playlist item `v4l://' [00000001] main vlc debug: removing all video outputs [00000001] main vlc debug: removing all audio outputs [00000001] main vlc debug: removing module "memcpymmx" [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat I have used your patch from: http://bugzilla.kernel.org/show_bug.cgi?id=8803 in comment #22 It has applied cleanly to Gentoo-sources-2.6.23-r3 and -r6. after patching the module is completely functional. I have used the motioneye app to take various pics. The jog dial scrolls in X without any special config other than using evdev in xorg.conf to id by Name as a third input device after kbd and the stick. clicking the jog dial locks up computer but I believe that is due to my lack of assigning an action to the event for acpid to use. I wanted to add this comment to show the success on another Picturebook model (PCG-C1VP) and in another Linux distro. The Gentoo devs may be including this in their 2.6.23 kernel patches soon. Do you know if this patch going to be included in the official 2.6.24 release here at kernel.org? Thanks again |