#v4l 2017-01-05,Thu

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
awallsyeah the gnuradio channel had the full one spamming for about a week
A carefully crafted ban seems to have kept it out.
[00:00]
pinchartlmost hosting companies don't seem to deal with abuse reports in any efficient way :-( [00:01]
......................................... (idle for 3h21mn)
***YuGiOhJCJ has quit IRC (Quit: YuGiOhJCJ) [03:22]
......................... (idle for 2h0mn)
koike_ is now known as koike
DaRock has quit IRC (Ping timeout: 245 seconds)
[05:22]
.................... (idle for 1h38mn)
Nikhil_D has quit IRC (Remote host closed the connection) [07:01]
.............. (idle for 1h5mn)
sailuspinchartl: Or at all... [08:06]
............ (idle for 56mn)
larscit's their job to do the best to ignore abuse reports [09:02]
.............. (idle for 1h8mn)
***prabhakarlad has quit IRC (Ping timeout: 256 seconds) [10:10]
...................... (idle for 1h45mn)
sic_ has quit IRC (*.net *.split)
luisbg has quit IRC (*.net *.split)
jj- has quit IRC (*.net *.split)
toso has quit IRC (*.net *.split)
Juan has quit IRC (*.net *.split)
binchen has quit IRC (Ping timeout: 245 seconds)
[11:55]
........... (idle for 53mn)
benjiGhverkuil: hello [12:50]
........ (idle for 37mn)
***awalls has quit IRC (Ping timeout: 245 seconds) [13:27]
...... (idle for 27mn)
faLUCEhello. A buggy program occasionally hangs on an usb v4l device If I kill the program, even with SIGKILL, its pid remains active, until I phisically disconnect the usb device. Is there a way to detach the usb link without unplugging the device ? I tried: http://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line but it's quite unportable, and invasive [13:54]
pinchartlwhat USB device ? [13:58]
larscfaLUCE: is it a uvc? [13:58]
faLUCElarsc: pinchartl Bus 002 Device 003: ID 046d:0825 Logitech, Inc. Webcam C270 [14:03]
pinchartlthat shouldn't happen :-/ [14:05]
larscpinchartl: blame the driver author ;) [14:05]
pinchartldo you know what ioctl the application is blocked on ? [14:05]
faLUCEpinchartl: no [14:06]
larscfaLUCE: you can simulate a unplug by going to /sys/bus/usb/drivers/uvcvideo and then do echo your_device > unbind
to simulate replug echo ... > bind
but that should only be a workaround
the real issue should be fixed
[14:06]
faLUCElarsc: yes, I know.... but it's the only solution, since I don't know if it's a program issue or a driver issue
in each case it's not my issue
[14:07]
pinchartlit can be a driver issue
can you attach gdb to the application after it hangs and get a backtrace ?
[14:07]
faLUCEok: larsc, what is the token for "your_device" ? the v4l id ?
or bus-dev ?
[14:08]
larscfaLUCE: do a ls in that folder it lists all the devices
if you only have one it is easy to figure out which one it is
[14:09]
faLUCElarsc: it's listed as 2-1 <---- what are 2 and 1 ? [14:11]
larscbus-device [14:11]
faLUCElarsc: then these id is different from what lsusb shows: lsusb shows bus-device 2-4 for the camera
and 2-1 is a root hub
more precisely: I have 2-1:1.0 2-1:1.1 in /sys/bus/usb/drivers/uvcvideo
[14:13]
larscfaLUCE: it's the full path
matches the output in lsusb -t
[14:15]
faLUCElarsc: I see. Is there a simple way to retrieve this id from
ls /dev/v4l/by-id/mydeviceid ?
[14:17]
larscmaybe
I don't know
[14:18]
faLUCElarsc: ok thanks [14:18]
pinchartlfaLUCE: can you attach gdb to the application after it hangs and get a backtrace ? [14:19]
faLUCEpinchartl: not easy, sorry
pinchartl: I could do that if it is a serious issue, but it could have been corrected meanwhile
it's hard to reproduce the bug
[14:19]
pinchartlI'd like to fix it if it hasn't been fixed already [14:21]
faLUCEin addition, the file /sys/bus/usb/drivers/uvcvideo/unbind is not readable even by root
pinchartl: I'll test it and I'll write to you a report when it will hang the next time
larsc: are you sure I can write to that file? it has very restrictive permissions
[14:23]
pinchartlfaLUCE: thank you. make sure you compile your application with debug symbols if you can to make the backtrace more useful [14:25]
faLUCEthe permissions are --w------- [14:26]
pinchartlfaLUCE: you can write as root, but you can't read [14:26]
faLUCEpinchartl: I don't want to mess stuff if I write bad things to this file [14:26]
larscall you can do is simulate a unplug
nothing else will happen
[14:26]
faLUCElarsc: pinchartl: echo "2-1:1.0" > /sys/bus/usb/drivers/uvcvideo/unbind <---- is it the right syntax ?
or do I need to add some path
?
[14:27]
***rshanmu has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) [14:29]
javier__faLUCE: yes, it is [14:29]
larscthat's correct [14:29]
javier__faLUCE: if you have strace in your target device, you can also attach to the process and see on which v4l2 ioctl it got hang [14:30]
***benjiG has left [14:31]
rshanmufaLUCE: (or) /proc/<pid>/stack or /proc/<pid>/task/<tid>/stack should give the backtrace. no? [14:32]
faLUCErshanmu: now the process is killed... when I have it again with the bug I'll do a backtrace [14:33]
........ (idle for 39mn)
the problem is that I can't execute sudo echo "2-1:1.0" > /sys/bus/usb/drivers/uvcvideo/unbind . I need to switch to root user.... why ? [15:12]
larsctry '| tee' instead of '>'
'| sudo tee'
or sudo sh -c '...'
if you do sudo foo > bar
foo runs with root rights
but the redirect is still done by the shell
which is running as your user
[15:15]
***mmattice has quit IRC (Remote host closed the connection) [15:17]
faLUCElarsc: sorry, I have to write unbind file inside a python script, which is run by sudo ....
inside the script, I write the to the file using file.write()
[15:17]
larscyeah, that should work [15:18]
faLUCElarsc: instead, with cli, which is the syntax for tee? sudo echo "2-1:1.0" | tee /sys/bus/usb/drivers/uvcvideo/bin ? [15:19]
larscsudo before tee instead of echo [15:21]
faLUCEsudo tee "2-1:1.0" | /sys/bus/usb/drivers/uvcvideo/unbind
bash: /sys/bus/usb/drivers/uvcvideo/unbind: Permission denied
[15:22]
pinchartlecho "2-1:1.0" | sudo tee /sys/bus/usb/drivers/uvcvideo/unbind [15:22]
javier__faLUCE: sudo sh -c "echo 2-1:1.0 > /sys/bus/usb/drivers/uvcvideo/unbind" works as well [15:22]
jmleopinchartl, hi there !
best wishes !!
I have a question regarding DRM and video modes. I have two touchscreen tablets with HDMI input (well, VGA input, but a HDMI->VGA converter between those and the device), and I want to specify the correct fb definition for the screen. I am right now using the video= parameter, but I need two resolutions (one is 800x600@60 and the other is 1280x800@60)
[15:27]
pinchartljmleo: onnellista uutta vuotta ! [15:29]
jmleopinchartl, the issue is the following: when I am not specifying this parameter, the device (an i.MX6 with etnaviv GPU) is sometimes crashing odly [15:33]
pinchartljmleo: debug & fix ? :-) [15:35]
jmleoI don't have time (the client won't pay for it) and so, this workaround is good enough... :/
but I am stuck with this two display devices thing...
[15:36]
***koike has quit IRC (Quit: ZNC - 1.6.0 - http://znc.in) [15:39]
pinchartljmleo: I don't know what to tell you, if you don't have time to fix the problem but still need it to be fixed... hope ? :-) [15:42]
jmleopinchartl, what would you activate to debug this part in the kernel ?
I will try to explain that the only way to correct the issue is to find the bug :p
[15:46]
pinchartlhow does it "crash oddly" ? [15:48]
jmleoI have a midori browser (don't ask me why... :/) and when I move around the window, resize it, move it, etc. the kernel will stuck with a freezed screen
I is based on X11+fluxbox
It*
[15:50]
pinchartldoes the whole system freeze, or just the display ? [15:50]
jmleowell, I can go to a text console, but then, nothing more is possible (even the magic sysrq)
but I need to verify the serial console
[15:50]
pinchartlplease do [15:52]
....... (idle for 32mn)
jmleopinchartl, can't reproduce it... this bug sucks, I knew it... [16:24]
...... (idle for 29mn)
faLUCEI searched.... but could not find an easy way to obtain the tuple bus-port-device for a given id of a v4l device.... do you know any way for obtaining that ?
the problem is that lsusb -t doesn't work with -d option
[16:53]
pinchartlfaLUCE: basename $(readlink /sys/class/video4linux/video0/device) [16:59]
faLUCEpinchartl: my ids are the ids listed in /dev/v4l/by-id or devicesId in lsusb
I could combine two commands
yes I can do that, thanks pinchartl
[17:02]
pinchartlbasename $(readlink /sys/class/video4linux/$(basename $(readlink /dev/v4l/by-id/usb-046d_080a-video-index0))/device) [17:04]
faLUCEyes [17:07]
***cybrNaut has quit IRC (Changing host) [17:09]
.... (idle for 18mn)
_abbenormal has quit IRC (Quit: Yup Im Leaving) [17:27]
........ (idle for 39mn)
awalls1 has left [18:06]
.............................. (idle for 2h27mn)
mchehab has quit IRC (Ping timeout: 260 seconds) [20:33]
........ (idle for 36mn)
kbingham has quit IRC (Quit: ZNC - http://znc.in) [21:09]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)