Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,666 Members 39,513 Now Online
XDA Developers Android and Mobile Development Forum

USB OTG without external power supply

Tip us?
 
lipalok
Old
(Last edited by lipalok; 8th April 2014 at 07:16 PM.)
#1  
lipalok's Avatar
Member - OP
Thanks Meter 12
Posts: 74
Join Date: Jul 2013
Location: Nitra
Plug USB OTG without external power supply

Hello! Most devices like Nexus 4 or our S4 Mini have problems with USB OTG functionality - they can't provide power to connected device. When I was browsing through some system folders, I've found a directory /d/regulator/8921_usb_otg/8921_usb_otg. In this directory, I can see voltage values, but I'm not able to edit them. Can someone help me how to edit max_uV and min_uV files? Folder called "enable" can be changed to 1, but other folders no.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-25-17-28-30.png
Views:	384
Size:	104.1 KB
ID:	2600158   Click image for larger version

Name:	Screenshot_2014-02-25-17-36-50.png
Views:	341
Size:	73.9 KB
ID:	2600159  
The Following User Says Thank You to lipalok For This Useful Post: [ Click to Expand ]
 
96DANGER96
Old
#2  
96DANGER96's Avatar
Senior Member
Thanks Meter 65
Posts: 250
Join Date: Jul 2011
Location: San Giorgio Monferrato
Quote:
Originally Posted by lipalok View Post
Hello! Most devices like Nexus 4 or our S4 Mini have problems with USB OTG functionality - they can't provide power to connected device. When I was browsing through some system folders, I found a directory /d/regulator/8921_usb_otg/8921_usb_otg. In this directory, I can see voltage values, but I'm not able to edit them. Can someone help me how to edit max_uV and min_uV files? Folder called "enable" can be changed to 1, but other folders no.
Use ES file explorer, tap the world icon on the top left, Tools, Root Explorer OFF To on, give root permissions, after tap on root explorer again (On the Word now, not on the "ON" button and tap Mount System R/W On the menu that will appear.

Sorry for my english
 
gladson1976
Old
(Last edited by gladson1976; 26th February 2014 at 09:52 AM.)
#3  
gladson1976's Avatar
Senior Member
Thanks Meter 94
Posts: 284
Join Date: Feb 2008
Location: Chennai
Quote:
Originally Posted by 96DANGER96 View Post
Use ES file explorer, tap the world icon on the top left, Tools, Root Explorer OFF To on, give root permissions, after tap on root explorer again (On the Word now, not on the "ON" button and tap Mount System R/W On the menu that will appear.

Sorry for my english
From the screenshots he has posted, the folder is already in R/W mode
@lipalok

All the files in that folder have readonly atttibutes set r--r--r--. Try copying the files to some folder in the sdcard, change them, then move them back to the folder and set the same permissions as before.
Galaxy S4 Mini Duos I9192 - CarbonRom KK 4.4.4 for I9192 / f4ktion 1.5.0 Kernel / Philz Touch Recovery
Xperia Mini Pro - Real Xperia Mix r1.7 / Kappa 1.7 Beta Carbon 4.4.2 KitKat / LX Kernel
Xperia X10 Mini Pro - MiniCM7-2.2.1 (GingerBread 2.3.7 / CM7.2) / nAa-14 Kernel
 
lipalok
Old
(Last edited by lipalok; 26th February 2014 at 10:26 AM.)
#4  
lipalok's Avatar
Member - OP
Thanks Meter 12
Posts: 74
Join Date: Jul 2013
Location: Nitra
Quote:
Originally Posted by gladson1976 View Post
From the screenshots he has posted, the folder is already in R/W mode
@lipalok

All the files in that folder have readonly atttibutes set r--r--r--. Try copying the files to some folder in the sdcard, change them, then move them back to the folder and set the same permissions as before.
It didn't work I'm not able to copy them. Try it on your phone, please.
 
96DANGER96
Old
#5  
96DANGER96's Avatar
Senior Member
Thanks Meter 65
Posts: 250
Join Date: Jul 2011
Location: San Giorgio Monferrato
Quote:
Originally Posted by lipalok View Post
It didn't work I'm not able to copy them. Try it on your phone, please.
I've attached 8921_usb_otg folder with all the files here, use es file manager with root permissions to replace them.
Attached Files
File Type: zip 8921_usb_otg[1].zip - [Click for QR Code] (2.2 KB, 45 views)
 
lipalok
Old
(Last edited by lipalok; 26th February 2014 at 04:20 PM.)
#6  
lipalok's Avatar
Member - OP
Thanks Meter 12
Posts: 74
Join Date: Jul 2013
Location: Nitra
Quote:
Originally Posted by 96DANGER96 View Post
I've attached 8921_usb_otg folder with all the files here, use es file manager with root permissions to replace them.
What values should I use?

UPDATE: After trying it, copy task failed
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-26-17-12-45.png
Views:	116
Size:	90.5 KB
ID:	2601875  
 
gladson1976
Old
#7  
gladson1976's Avatar
Senior Member
Thanks Meter 94
Posts: 284
Join Date: Feb 2008
Location: Chennai
Quote:
Originally Posted by lipalok View Post
It didn't work I'm not able to copy them. Try it on your phone, please.
Sorry about that. I don't have a S4 Mini (yet). Planning to get one next week.
Galaxy S4 Mini Duos I9192 - CarbonRom KK 4.4.4 for I9192 / f4ktion 1.5.0 Kernel / Philz Touch Recovery
Xperia Mini Pro - Real Xperia Mix r1.7 / Kappa 1.7 Beta Carbon 4.4.2 KitKat / LX Kernel
Xperia X10 Mini Pro - MiniCM7-2.2.1 (GingerBread 2.3.7 / CM7.2) / nAa-14 Kernel
 
marcin1147
Old
#8  
marcin1147's Avatar
Senior Member
Thanks Meter 2,116
Posts: 366
Join Date: Dec 2011

 
DONATE TO ME
Hi guys!
The "file" you are trying to edit is not a file, but sysfs node.

To set or read a value you do this:
adb shell
su
cd /d/regulator/8921_usb_otg
echo 1 > enable
etc...

try to set max_uV to USB voltage which is 5V, it's in uV so:
echo 5000000 > max_uV
 
nuhcan
Old
#9  
Member
Thanks Meter 3
Posts: 35
Join Date: Jan 2010
Location: istanbul
Quote:
Originally Posted by lipalok View Post
Hello! Most devices like Nexus 4 or our S4 Mini have problems with USB OTG functionality - they can't provide power to connected device. When I was browsing through some system folders, I found a directory /d/regulator/8921_usb_otg/8921_usb_otg. In this directory, I can see voltage values, but I'm not able to edit them. Can someone help me how to edit max_uV and min_uV files? Folder called "enable" can be changed to 1, but other folders no.
I'll check my GS2 that has these values and write here...
 
junkyde
Old
#10  
junkyde's Avatar
Senior Member
Thanks Meter 280
Posts: 428
Join Date: May 2011

 
DONATE TO ME
good news. would be interesting to find out if another phone is using the same port and has otg, so a dev could take a look into kernel source of that device.
Device: Samsung Galaxy S4 (GT-I9505)
Rom: PhoeniX ROM
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes