[Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

Jerry Vonau jerry at laptop.org.au
Wed Nov 21 04:00:03 EST 2012


On 21 November 2012 18:53, Martin Langhoff <martin.langhoff at gmail.com>wrote:

> On Wed, Nov 21, 2012 at 2:40 AM, James Cameron <quozl at laptop.org> wrote:
> >> I don't think having an end-user with no experience with USB IDs add
> >> an entry to the usb-inhibits file, or having to remember to turn off
> >> a major feature is the correct long term solution IMHO.
>
> You guys are driving OOB, so you short-term you can tweak usb-inhibits
> with the 3G modems you have. And you've hacked powerd and other bits
> of infra in the past, if there's a better way (ie: is there a way to
> block suspend when a class of USB device is plugged? or perhaps an NM
> hook could set the inhibit-suspend flag?) you are uniquely well
> positioned to know, try likely approaches, etc...
>

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.
I don't think dbus would react fast enough as modeswitching may need to be
done before dbus could see the interface.

Jerry

1.  http://lists.laptop.org/pipermail/devel/2012-May/035213.html




>
> cheers,
>
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- Software Architect - OLPC
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20121121/5430c39b/attachment.html>


More information about the Devel mailing list