<br><br><div class="gmail_quote">On 21 November 2012 18:53, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com" target="_blank">martin.langhoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Wed, Nov 21, 2012 at 2:40 AM, James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br>
>> I don't think having an end-user with no experience with USB IDs add<br>
>> an entry to the usb-inhibits file, or having to remember to turn off<br>
>> a major feature is the correct long term solution IMHO.<br>
<br>
</div>You guys are driving OOB, so you short-term you can tweak usb-inhibits<br>
with the 3G modems you have. And you've hacked powerd and other bits<br>
of infra in the past, if there's a better way (ie: is there a way to<br>
block suspend when a class of USB device is plugged? or perhaps an NM<br>
hook could set the inhibit-suspend flag?) you are uniquely well<br>
positioned to know, try likely approaches, etc...<br></blockquote><div><br>I used a big hammer, I disabled suspending when the usb_wwan kernel module got loaded, but the disabling stays in place as the module never gets auto unloaded. The next time I need to fork powerd think I'll lockout suspend for one minute when usb_wwan gets loaded then rely on this patch[1] to handle to handle the rest. <br>
I don't think dbus would react fast enough as modeswitching may need to be done before dbus could see the interface.<br><br>Jerry<br><br>1. <a href="http://lists.laptop.org/pipermail/devel/2012-May/035213.html">http://lists.laptop.org/pipermail/devel/2012-May/035213.html</a><br>
<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
cheers,<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
m<br>
--<br>
<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org">martin@laptop.org</a> -- Software Architect - OLPC<br>
- ask interesting questions<br>
- don't get distracted with shiny stuff - working code first<br>
- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
</div></div></blockquote></div><br>