Re: [Sugar-devel] Making Record support external cameras

2015-06-10 Thread Martin Abente
On Wed, Jun 10, 2015 at 10:51 AM, Gonzalo Odiard godi...@sugarlabs.org
wrote:

 Tch, do yoou have any usb camera to test this?


Not at the moment, but I borrow one on the weekend.



 Gonzalo

 On Wed, Jun 10, 2015 at 12:57 AM, James Cameron qu...@laptop.org wrote:

 On Wed, Jun 10, 2015 at 12:03:11AM -0300, Gonzalo Odiard wrote:
  There are more drivers for different cameras? Any way to know what
  are the camera drivers?
  (or the usb camera drivers)

 Yes, there are many more drivers disabled.

 At OLPC we chose to enable the drivers that are needed, and leave
 deployments to enable other drivers.  This was to shrink filesystem;
 very important on XO-1 and early XO-1.5, but not important now for
 XO-1.75 and XO-4.

 No, there's no way to find out what drivers are needed, except by
 audit or survey of all users.

 You might compare /boot/config* between Fedora and OLPC kernel, and
 add whatever Fedora has enabled.

 --
 James Cameron
 http://quozl.linux.org.au/




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Making Record support external cameras

2015-06-09 Thread James Cameron
On Tue, Jun 09, 2015 at 12:00:46PM -0300, Gonzalo Odiard wrote:
 In particular in the XO, with the camera I have for testing,
 no device is created, then I can't  test it. 
 
 When I connect the camera, in /var/log/message I see:
 
 kernel: usb 1-2: new full-speed USB device number 10 using xhci_hcd
 kernel: usb 1-2: New USB device found, idVendor=04fc, idProduct=0561
 kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 kernel: usb 1-2: Product: Generic Digital camera
 kernel: usb 1-2: Manufacturer: Sunplus Technology Co., Ltd.
 kernel: gspca_main: spca561-2.14.0 probing 04fc:0561

gspca_main kernel module is needed, and is in the kernel.

gspca_spca561 kernel module is needed, but is not in the kernel.

Edit defconfig, search for CONFIG_USB_GSPCA_SPCA561, set =m, and
rebuild kernel.

http://wiki.laptop.org/go/Kernel_Building#Building_a_kernel_RPM

 If we can solve the device creation, we can make Record smarter
 monitoring the directory /sys/class/video4linux and adding the
 switch camera button if a new camera appear.

Also, I think system D-Bus message can appear on insert event.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Making Record support external cameras

2015-06-09 Thread James Cameron
On Wed, Jun 10, 2015 at 12:03:11AM -0300, Gonzalo Odiard wrote:
 There are more drivers for different cameras? Any way to know what
 are the camera drivers? 
 (or the usb camera drivers)

Yes, there are many more drivers disabled.

At OLPC we chose to enable the drivers that are needed, and leave
deployments to enable other drivers.  This was to shrink filesystem;
very important on XO-1 and early XO-1.5, but not important now for
XO-1.75 and XO-4.

No, there's no way to find out what drivers are needed, except by
audit or survey of all users.

You might compare /boot/config* between Fedora and OLPC kernel, and
add whatever Fedora has enabled.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Making Record support external cameras

2015-06-09 Thread Gonzalo Odiard
There are more drivers for different cameras? Any way to know what are the
camera drivers?
(or the usb camera drivers)

Gonzalo

On Tue, Jun 9, 2015 at 8:55 PM, James Cameron qu...@laptop.org wrote:

 On Tue, Jun 09, 2015 at 12:00:46PM -0300, Gonzalo Odiard wrote:
  In particular in the XO, with the camera I have for testing,
  no device is created, then I can't  test it.
 
  When I connect the camera, in /var/log/message I see:
 
  kernel: usb 1-2: new full-speed USB device number 10 using xhci_hcd
  kernel: usb 1-2: New USB device found, idVendor=04fc, idProduct=0561
  kernel: usb 1-2: New USB device strings: Mfr=1, Product=2,
 SerialNumber=0
  kernel: usb 1-2: Product: Generic Digital camera
  kernel: usb 1-2: Manufacturer: Sunplus Technology Co., Ltd.
  kernel: gspca_main: spca561-2.14.0 probing 04fc:0561

 gspca_main kernel module is needed, and is in the kernel.

 gspca_spca561 kernel module is needed, but is not in the kernel.

 Edit defconfig, search for CONFIG_USB_GSPCA_SPCA561, set =m, and
 rebuild kernel.

 http://wiki.laptop.org/go/Kernel_Building#Building_a_kernel_RPM

  If we can solve the device creation, we can make Record smarter
  monitoring the directory /sys/class/video4linux and adding the
  switch camera button if a new camera appear.

 Also, I think system D-Bus message can appear on insert event.

 --
 James Cameron
 http://quozl.linux.org.au/




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel