On 21 November 2012 18:53, Martin Langhoff <martin.langh...@gmail.com>wrote:
> On Wed, Nov 21, 2012 at 2:40 AM, James Cameron <qu...@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.langh...@gmail.com > mar...@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 >
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel