You are not logged in.

#1 2016-12-21 19:53:09

meravega
Member
Registered: 2016-12-21
Posts: 34

no smart cam in lg x110

Hello, I have a lg x110. I try to configure the integrated smart cam, but ... firstly, i try to know what type of camera is. hwinfo, lsusb, etc, but no information about it. anyone know if this camera is supported? how i can get information on the console about it?

Offline

#2 2016-12-21 20:03:08

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,482

Re: no smart cam in lg x110

If your camera already has a driver available, you are going to find a device file /dev/video0 or /dev/videoN where N is any natural number. Do this:

 $ ls -lsh /dev/video0 
0 crw-rw----+ 1 root video 81, 0 Dec 19 13:45 /dev/video0

So on my laptop, only root and members of the video group have access to the camera. If you do not have access because you are not in one of the groups listed or if "others" have no access, add yourself to e.g. the video group if you're not already a member:

sudo usermod -aG video $USER

Then, log out and log in again. Now we can fully access the camera; this will enable other software to access the cam, too.

Next,

sudo apt-get install v4l-utils

Then, query all available device information like this:

v4l2-ctl --all

On my laptop, this yields the following output:

Driver Info (not using libv4l2):
	Driver name   : uvcvideo
	Card type     : Integrated Camera
	Bus info      : usb-0000:00:14.0-8
	Driver version: 4.8.13
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 640/480
	Pixel Format      : 'YUYV'
	Field             : None
	Bytes per Line    : 1280
	Size Image        : 614400
	Colorspace        : sRGB
	Transfer Function : Default
	YCbCr Encoding    : Default
	Quantization      : Default
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 640, Height 480
	Default     : Left 0, Top 0, Width 640, Height 480
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 640, Height 480
Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0
                     brightness (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast (int)    : min=0 max=255 step=1 default=32 value=32
                     saturation (int)    : min=0 max=100 step=1 default=64 value=64
                            hue (int)    : min=-180 max=180 step=1 default=0 value=0
 white_balance_temperature_auto (bool)   : default=1 value=1
                          gamma (int)    : min=90 max=150 step=1 default=120 value=120
           power_line_frequency (menu)   : min=0 max=2 default=1 value=1
      white_balance_temperature (int)    : min=2800 max=6500 step=1 default=4000 value=4000 flags=inactive
                      sharpness (int)    : min=0 max=7 step=1 default=2 value=2
         backlight_compensation (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute (int)    : min=4 max=1250 step=1 default=333 value=333 flags=inactive
         exposure_auto_priority (bool)   : default=0 value=0

This should tell you what's necessary.

PS. A good resource is https://wiki.archlinux.org/index.php/webcam_setup.


A silent kite against the blue, blue sky

Offline

#3 2016-12-22 12:50:43

meravega
Member
Registered: 2016-12-21
Posts: 34

Re: no smart cam in lg x110

yesterday --> ls -l /dev/video0 --> yes
today --> ls -l /dev/video0 --> no exists file or directory
all with root
i don't understand

Offline

#4 2016-12-22 15:09:56

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,482

Re: no smart cam in lg x110

sudo modprobe uvcvideo # substitute the driver name you saw yesterday if possible for uvcvideo

If it helps,

echo uvcvideo | sudo tee -a /etc/modules

A silent kite against the blue, blue sky

Offline

#5 2016-12-24 21:33:55

meravega
Member
Registered: 2016-12-21
Posts: 34

Re: no smart cam in lg x110

v4l2-ctl --all
Failed to open /dev/video0: No such file or directory

Offline

Board footer

Powered by FluxBB