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: 34
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: 344
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: 34
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: 408
Default

Yep, OpenBSD's BT support is quite inexistent.
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #5   (View Single Post)  
Old 4th September 2018
joancatala joancatala is offline
Port Guard
 
Join Date: Jun 2011
Posts: 34
Default

Ok,thank you.
No webcam recording, then.
Reply With Quote
  #6   (View Single Post)  
Old 4th September 2018
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
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: 34
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: 344
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: 7,977
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: 34
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,318
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: 245
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, 217 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: 43
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
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
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: 34
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, 120 views)
Reply With Quote
Old 12th February 2019
Vitaly Vitaly is offline
New User
 
Join Date: Feb 2019
Posts: 4
Default

Hi!

I have the same problem with a cammera on Thinkpad x240.

Did you find a solution ?
Reply With Quote
Old 12th February 2019
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

The same with my Logicam webcam (EasyCam), which doesn't require a driver and worked without problem on linux. I get:

Error setting pixel format.
VIDIOC_S_FMT: Invalid argument
Reply With Quote
Old 19th February 2019
Vitaly Vitaly is offline
New User
 
Join Date: Feb 2019
Posts: 4
Default

I have disabled USB3.0 in the BIOS.
Now my webcam works.

https://marc.info/?l=openbsd-misc&m=155050320512916&w=2
Reply With Quote
Old 19th February 2019
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 408
Default

Interesting.
Thanks for feedback.
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
Old 20th February 2019
Vitaly Vitaly is offline
New User
 
Join Date: Feb 2019
Posts: 4
Default

And the last unswer: https://marc.info/?l=openbsd-misc&m=155061301616591&w=2
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 11:59 AM.


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