[Gta04-owner] itg3200 sleep mode

Belisko Marek marek.belisko at gmail.com
Wed Sep 10 08:15:36 CEST 2014


Hi,

On Wed, Sep 10, 2014 at 8:08 AM, Dr. H. Nikolaus Schaller
<hns at goldelico.com> wrote:
> Hi,
> yes, that seems to be a good improvement.
>
> I have looked into the 3.17 driver - but the patch won't apply. They have reworked (and simplified) the driver:
>
> http://git.goldelico.com/?p=gta04-kernel.git;a=blobdiff;f=drivers/iio/gyro/itg3200_core.c;h=6a8020d4814038b67cbad3b3c51d20d1987bbd77;hp=8295e318399f9874ccde4f4429a001141a4004be;hb=refs/heads/3.17-rc4;hpb=5e2aa2ed08e2e280121dc7cf5609c87d464f12ef
I'm aware this solution won't be accepted by upstream. If you want to
add handling
save some power you must implement suspend/resume callbacks in driver
and put handling
to them. If it's not about pushing this change mainstream then it's
good improvement but we need to integrate
/sys handling.
>
> But it should also be possible to follow the principle.
>
> Therefore I have created an Issue in our kernel project:
>
>         http://projects.goldelico.com/p/gta04-kernel/issues/660/
>
> Someone who wants to work on this and submit a 3.17 patch?
>
> BR,
> Nikolaus
>
> Am 09.09.2014 um 19:34 schrieb Rico Rommel:
>
>> Hi list,
>>
>> to save a little more Power i tried to put itg3200 into sleep mode.
>>
>> The attached patch applies to kernel 3.12.
>>
>> Sleep mode can be activated by
>> echo 0 > /sys/bus/iio/devices/iio:device1/sampling_frequency
>>
>> Writing a sampling frequency > 0 wakes up the device.
>>
>> Rico<0001-itg3200-enable-sleep-mode-by-setting-sample_frequenc.patch>_______________________________________________
>> Gta04-owner mailing list
>> Gta04-owner at goldelico.com
>> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
>
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


More information about the Gta04-owner mailing list