Re: webcam problem after suspend/hibernate

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Philippe Troin
Date: Thursday, April 1, 2010 - 10:05 am

Pavel Machek <pavel@ucw.cz> writes:


I have a similar problem with a Creative Optia webcam.

I have found that removing the ehci_hcd module and reinserting it
fixes the problem.

If your kernel ships with ehci_hcd built-in (F11 and later), the
script included also fixes the problem (it rebind the device).

Of course, I'd love to see this issue fixed.

Phil.

Script: /etc/pm/sleep.d/50kickuvc

#!/bin/sh

case "$1" in
  resume|thaw)
    cd /sys/bus/usb/drivers/uvcvideo || exit 1
    devices=''
    for i in [0-9]*-[0-9]*:*
    do
      [ -L "$i" ] || break
      saved_IFS="$IFS"
      IFS=:
      set -- $i
      IFS="$saved_IFS"
      found=no
      for j in $devices
      do
        if [ "$j" = "$1" ]
        then
          found=yes
        fi
      done
      if [ "$found" = no ]
      then
        devices="$devices $1"
      fi
    done
    if [ "$devices" != "" ]
    then
      cd /sys/bus/usb/drivers/usb || exit 1
      for i in $devices
      do
        echo $i > unbind
        sleep 1
        echo $i > bind
      done
    fi
    ;;
esac
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
webcam problem after suspend/hibernate, Mohamed Ikbel Boulabiar, (Tue Mar 30, 2:55 pm)
Re: webcam problem after suspend/hibernate, Laurent Pinchart, (Tue Mar 30, 4:25 pm)
Re: webcam problem after suspend/hibernate, Mohamed Ikbel Boulabiar, (Wed Mar 31, 12:51 pm)
Re: webcam problem after suspend/hibernate, Pavel Machek, (Thu Apr 1, 9:56 am)
Re: webcam problem after suspend/hibernate, Philippe Troin, (Thu Apr 1, 10:05 am)
Re: webcam problem after suspend/hibernate, Pavel Machek, (Sun Apr 4, 6:22 am)
Re: webcam problem after suspend/hibernate, Philippe Troin, (Sun Apr 4, 11:58 am)
Re: webcam problem after suspend/hibernate, Pavel Machek, (Sun Apr 4, 12:34 pm)
Re: webcam problem after suspend/hibernate, Mohamed Ikbel Boulabiar, (Tue Apr 6, 2:32 am)
Re: webcam problem after suspend/hibernate, Pavel Machek, (Tue Apr 6, 6:30 am)
Re: webcam problem after suspend/hibernate, Laurent Pinchart, (Sun Apr 11, 3:53 am)
Re: webcam problem after suspend/hibernate, Pavel Machek, (Sun Apr 11, 8:44 am)