DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st September 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default OpenBSD and Webcam. Anyone?

Hi all,
I would like to use the Webcam of my Thinkpad x250 laptop.

Does anyone knows how to use a Webcam on OpenBSD?

thanks in advance,
joan
Reply With Quote
  #2   (View Single Post)  
Old 1st September 2018
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 177
Default

You will need to see if it is supported first, check your dmesg to see if there are any drivers loaded for it, if not it may not be supported.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 3rd September 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default

Hi,
yes, the camera is supported.
On my laptop Thinkpad x250 everything works fine, except Bluetooth.
Reply With Quote
  #4   (View Single Post)  
Old 3rd September 2018
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 334
Default

Yep, OpenBSD's BT support is quite inexistent.
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
  #5   (View Single Post)  
Old 4th September 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default

Ok,thank you.
No webcam recording, then.
Reply With Quote
  #6   (View Single Post)  
Old 4th September 2018
TronDD TronDD is offline
Package Pilot
 
Join Date: Sep 2014
Posts: 179
Default

Webcam and bluetooth are different things here.

My webcam is disabled on my x250 and other than testing if it worked, I've never used it for anything. And at the time "worked" meant that it turned on, but if I recall, the picture was messed up.
Reply With Quote
  #7   (View Single Post)  
Old 20th September 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default Nobody is using webcam, then

Ok, after many days of my post and after reading some comments, it's obvious no one is using the Webcam on OpenBSD.
Reply With Quote
  #8   (View Single Post)  
Old 20th September 2018
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 177
Default

The webcam is not something I use on any computer, & I have seldom used bluetooth - just recently with another computer to listen to music though some headphones.

My main usage is web browsing, forums, music, videos, & simple time waster games.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #9   (View Single Post)  
Old 20th September 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

Quote:
Originally Posted by joancatala View Post
...it's obvious no one is using the Webcam on OpenBSD...
Have you tried the misc@ mailing list? This forum's OpenBSD users are a very small subset of the OpenBSD community.
Reply With Quote
Old 1st October 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default

Hi,
I haven't but I will :-) good idea, thanks.
Reply With Quote
Old 1st October 2018
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,297
Default

Quote:
Originally Posted by joancatala View Post
I haven't but I will :-)
Information on subscribing can be found at the following:

http://www.openbsd.org/mail.html
Reply With Quote
Old 1st October 2018
gpatrick gpatrick is offline
Spam Deminer
 
Join Date: Nov 2009
Posts: 226
Default

Code:
# dmesg |grep -i cam                                               
uvideo0 at uhub4 port 6 configuration 1 interface 0 "Vimicro corp. Lenovo EasyCamera" rev 2.00/14.12 addr 3

# usbdevs -v
...
  port 6 addr 3: high speed, power 256 mA, config 1, Lenovo EasyCamera(0x0295), Vimicro corp.(0x5986), rev 14.12

# pkg_add fswebcam                                                      
quirks-2.414 signed on 2018-03-28T14:24:37Z
fswebcam-20140113:gd-2.2.5p0: ok
fswebcam-20140113: ok

# fswebcam --loop 1 --jpeg 95 --save cam.jpeg
>>> Next image due: 2018-10-01 18:14:42 (CDT)
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 320x240.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Setting output format to JPEG, quality 95
Writing JPEG image to 'cam.jpeg'.
>>> Next image due: 2018-10-01 18:14:44 (CDT)
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Setting output format to JPEG, quality 95
Writing JPEG image to 'cam.jpeg'.
>>> Next image due: 2018-10-01 18:14:46 (CDT)
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Setting output format to JPEG, quality 95
Writing JPEG image to 'cam.jpeg'.
>>> Next image due: 2018-10-01 18:14:48 (CDT)
Attached Images
File Type: jpeg cam.jpeg (29.3 KB, 35 views)

Last edited by gpatrick; 1st October 2018 at 11:29 PM.
Reply With Quote
Old 9th October 2018
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 11
Default

Did you try with the command
# video
?
I don't remember the path.
try as root, because the device files /dev/videoN have default permissions that require to be root.
If it works you can change permissions.
Reply With Quote
Old 9th October 2018
fvgit's Avatar
fvgit fvgit is offline
Tempvs fvgit
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 152
Default

For the archives:

I just repeated gpatrick's example above with fswebcam. And it even works on my crappy old macbook.

usbdevs -v
Code:
port 4 addr 2: high speed, power 100 mA, config 1, Built-in iSight(0x8501), Micron(0x05ac), rev 1.84
ls -la /dev/video*
Code:
lrwxr-xr-x  1 root  wheel         6 Apr  9  2018 /dev/video -> video0
crw-------  1 root  wheel   44,   0 Apr  9  2018 /dev/video0
crw-------  1 root  wheel   44,   1 Apr  9  2018 /dev/video1
doas fswebcam --loop 1 --jpeg 95 --save cam.jpeg
Code:
>>> Next image due: 2018-10-09 22:22:17 (CEST)
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Setting output format to JPEG, quality 95
Writing JPEG image to 'cam.jpeg'.
Reply With Quote
Old 17th October 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 10
Default

Thank you very much gpatrik and fvgit for your answers. I still can't do photos. I attach screencapture. Apparently it should work on my Thinkpad x250, the green light turns on on the top of the laptop and the fswebcam command starts... but at the end I don't have any photo.

Code:
bash-4.4# dmesg | grep -i cam
uvideo0 at uhub0 port 8 configuration 1 interface 0 "SunplusIT Inc Integrated Camera" rev 2.00/0.18 addr 5
Code:
bash-4.4# ls -la /dev/video*
lrwxr-xr-x  1 root  wheel         6 Aug  2 23:40 /dev/video -> video0
crw-rw-rw-  1 root  wheel   44,   0 Aug  2 23:40 /dev/video0
crw-------  1 root  wheel   44,   1 Aug  2 23:40 /dev/video1
Code:
bash-4.4# usbdevs -v | grep Camera
 port 8 addr 5: high speed, power 500 mA, config 1, Integrated Camera(0x0366), SunplusIT Inc(0x5986), rev 0.18
But when I try fswebcam --loop 1 --jpeg 95 --save cam.jpeg, I see the message that you can see on the image:

Error starting stream.
VIDIOC_STREAMON: Invalid argument
Unable to use mmap. Using read instead.
--- Capturing frame...
select: Interrupted system call
No frames captured.




Damn... :-(
Attached Images
File Type: png Screenshot from 2018-10-17 09-00-54.png (125.2 KB, 16 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webcam puffymon OpenBSD Packages and Ports 2 20th September 2017 08:07 AM
Trust Webcam Support mrhbit OpenBSD General 4 15th March 2013 02:23 PM
FreeBSD skype webcam!! Hurrah!!! :D xmorg FreeBSD General 6 20th April 2012 12:19 PM
Webcam giga FreeBSD General 0 23rd July 2008 11:03 AM


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick