On Wed, 2008-05-14 at 14:16 +0200, Ingo Steiner wrote:
> Since ivit has now become part of the kernel, it would be great if it
> also supports power saving by s2ram and s2disk.
> In general s2ram works fine here, PC wakes up and resumes with almost
> all devices like network, sound, .. but my PVR-150 with ivtv remains
> dead. Power consumtion is some 8 watts less than before.
> Unloading ivtv before suspend and reloading after resume does not help.

Hmmm. It works for my PVR-150MCE on Fedora 7.  Here are some notes I
made to myself about how to unload and reload ivtv for suspend resume on
my Fedora 7 system:


  // fix the pm-suspend config to unload and reload ivtv module
$ su - root
# cp /usr/lib/pm-utils/defaults /etc/pm/config.d/unload_module
# vim /etc/pm/config.d/unload_module
   // add ivtv to SUSPEND_MODULES
# chown root:root /etc/pm/config.d/unload_module
# chmod 755 /etc/pm/config.d/unload_module


  // fix udev rules so mythbackend (not running as root) can work 
  // after resume
$ su - root
# cd /etc/udev/rules.d
# vim 55-local.rules
# cat 55-local.rules
KERNEL=="video*",               GROUP="mythtv"
KERNEL=="radio*",               GROUP="mythtv"
KERNEL=="vbi*",                 GROUP="mythtv"
SUBSYSTEM=="dvb",               GROUP="mythtv"

# udevcontrol reload_rules
# exit


 // add /etc/security/console.perms.d/60-local.perms to give dvb & 
 // v4l access to mythtv group
    # permission definitions for mythbackend
    #<console>  0660 <sound>      0660 root.mythtv
    <console>  0660 <v4l>        0660 root.mythtv
    <console>  0660 <dvb>        0660 root.mythtv


  // fix the resume to give mythtv permissions to /dev/video again
  // this didn't matter/or didn't work, much like pam console stuff this only
  // probably gets checked on an event that doesn't happen on resume
  // (hal database updated with *new* ivtv device, pam console transfer/revert))
$ su - root
# vim 
/usr/share/hal/fdi/policy/20thirdparty/90-grant-v4l-devices-to-mythtv-group.fdi
# cat 
/usr/share/hal/fdi/policy/20thirdparty/90-grant-v4l-devices-to-mythtv-group.fdi
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <!-- grant access to v4l devices to mythtv group so mythbackend works -->
    <match key="info.capabilities" contains="access_control">
      <match key="info.capabilities" contains="video4linux">
        <append key="access_control.grant_group" type="strlist">mythtv</append>
      </match>
      <match key="info.capabilities" contains="dvb">
        <append key="access_control.grant_group" type="strlist">mythtv</append>
      </match>
    </match>
  </device>
</deviceinfo>
# /sbin/service haldaemon restart
# exit



Maybe you can make use of this.

-Andy


> Moreover executing s2ram a second time after that does no longer suspend
> the PC, just display and keyboard are switched off, so I have to use a
> hard reset (don't know whether this is also caused by the PVR-150).
> 
> System here:
> Ubuntu-Feisty amd64 with kernel 2.6.24, 'modinfo ivtv' claims to be
> version 1.1.0.
> 
> With best regards,
> Ingo
> ____________________________________________________________________
> In a world without walls and fences we don't need windows and gates.
> 
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users
> 


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to