Welcome Guest [Log In] [Register]
Welcome to Pwnie Express. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Please note you need to use a valid email address to register for member access.

Get your questions answered by other members, share your ideas and feedback, get your problems solved, and give back by helping others! It only takes a minute to get started. Registration is simple, fast, and completely free!

Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
USB power to devices stops
Topic Started: Jun 6 2014, 04:20 PM (545 Views)
Ryan5489

I am having a difficulty that I cannot seem to rectify or find an answer to, I am hoping someone has the answer for me. When I put the display of the Nexus 7 to sleep, it halts communication to the Wi-Fi antenna hooked up via USB stops, which in turn locks up EvilAP. I've seen a few things about usb-host charging, but not sure if this has anything to do with it.

I also am not able to login to the web UI when I put the display to sleep as well. When I try to load the UI page when the display black, the page just tries and tries, then when I actually wake up up the display, the page loads without issues.
Offline Profile Quote Post Goto Top
 
Ryan5489

UPDATE: Okay, so after literally staying up all night working on this... I have concluded it has to do with the "WakeLock" settings within the Kernel. I have found a few different apps that will issue the wakelock and keep the device CPU running in different states, but still having some difficulties with it. I can now keep the fake AP running with the device screen off and have the USB WiFi stay live, but data transfer seems to still be an issue. When connecting to the fake AP via a device, it does not push the data through to the internet when the screen is off.

Can anyone shed any light on this? I basically need a way to manually manage the wakelock options in the kernel to keep things running when I dim the screen, but not sure how.
Offline Profile Quote Post Goto Top
 
defcon

Ryan5489
Jun 7 2014, 01:22 PM
UPDATE: Okay, so after literally staying up all night working on this... I have concluded it has to do with the "WakeLock" settings within the Kernel. I have found a few different apps that will issue the wakelock and keep the device CPU running in different states, but still having some difficulties with it. I can now keep the fake AP running with the device screen off and have the USB WiFi stay live, but data transfer seems to still be an issue. When connecting to the fake AP via a device, it does not push the data through to the internet when the screen is off.

Can anyone shed any light on this? I basically need a way to manually manage the wakelock options in the kernel to keep things running when I dim the screen, but not sure how.
I have the same issue, sometimes WiFi dongle won't work because msm_otg is in a low power mode, but when I use a power pack or powered USB hub I have no problems, maybe there is a kernel parameter that turns this off
Offline Profile Quote Post Goto Top
 
defcon

defcon
Jun 8 2014, 01:23 PM
Ryan5489
Jun 7 2014, 01:22 PM
UPDATE: Okay, so after literally staying up all night working on this... I have concluded it has to do with the "WakeLock" settings within the Kernel. I have found a few different apps that will issue the wakelock and keep the device CPU running in different states, but still having some difficulties with it. I can now keep the fake AP running with the device screen off and have the USB WiFi stay live, but data transfer seems to still be an issue. When connecting to the fake AP via a device, it does not push the data through to the internet when the screen is off.

Can anyone shed any light on this? I basically need a way to manually manage the wakelock options in the kernel to keep things running when I dim the screen, but not sure how.
I have the same issue, sometimes WiFi dongle won't work because msm_otg is in a low power mode, but when I use a power pack or powered USB hub I have no problems, maybe there is a kernel parameter that turns this off
Here is a dmesg http://pastebin.com/EXKLMfi1
Edited by defcon, Jun 8 2014, 01:27 PM.
Offline Profile Quote Post Goto Top
 
Ryan5489

Have you tried to mod the mtm_otg and see if you can assign it a wake lock? i found an app that will "kinda" do it, but still not working right with EvilAP. I want to be able to modify it in the kernel, not rely on an app. I just decompiled the app and looking at it now to figure it out.
Offline Profile Quote Post Goto Top
 
Ryan5489

Alright, so here is the down and dirty... Wakelocks, long subject, but there is a "catch-all" kernel wakelock (KWL) that is basically a placeholder for any partial wakelocks (PWL). This catch-all KWL is called "PowerManagerService" and in a nutshell keeps the CPU and services running in the background. That's all fine and dandy, I got into some of the scripts and can kinda see where they are using the wakelock receive and broadcast params. What needs to happen is I need someway manage the usb_otg and tell it to keep power running to the usb device when the screen goes to sleep, but I can't find the correct msm to manage it.. None of them are in the "normal" place because this is already a custom kernel. Any ideas? I have found some stuff in /sys/bus/platform/drivers/msm_otg/msm_otg/power, but decided to call it a night before I could get anywhere.


Now, if your not into scripting, don't know how, or simply want the easy way out, there is another way. There are several apps on the app store that will issue a wakelock. BE CAREFUL, it will apply a wakelock for ALL running scripts, apps, and the CPU when you use it, aka will drain battery life depending on what your using. The app that I used, and decompiled to figure all of this out, is simply called "Wake Lock - PowerManager". Very straight-forward UI.
Edited by Ryan5489, Jun 9 2014, 12:21 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Pwn Pad Community Edition Support Forum · Next Topic »
Add Reply