Active Topics

 


Reply
Thread Tools
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#901
@blue_led, joerg_rw and other h-e-n developers -

could you please take a look at usbhostmode.diff and confirm (or not) that
Code:
+                if (machine_is_nokia_rx51()) {
+                        musb_platform_resume(musb);
+                        musb_set_vbus(musb, 0);
+ 
+                        devctl &= ~MUSB_DEVCTL_SESSION;
+                        musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
+ 
+                        musb_writeb(musb->mregs, MUSB_TESTMODE, 0);
+                }
is missing a call to musb_platform_suspend(musb); at the end of the block
 

The Following 2 Users Say Thank You to freemangordon For This Useful Post:
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#902
Originally Posted by joerg_rw View Post
http://talk.maemo.org/showthread.php...203#post921203
btw I hope I've not missed to link to it in post #9 :-)

ultra-terse howto: get charge.sh from ShadowJK, install so you can execute it.
do:
start H_E_N, select speed
only *now* apply external VBUS
*now* immediately click vboost in H_E_N
enum, mount, etc
now do boostoff; charge.sh

to end: kill charge.sh, then close H_E_N



cheers
/j
Thanks, I'll read it and try it in stride.

I'm just using an external power supply and the battery continues to fall alarmingly.

Thank you again.
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#903
Originally Posted by blue_led View Post
work in progress: hostmode script "click and use" with :
-no gui
-automatic speed
-status area icon
-automatic mount for removable media( hdd, sticks, cdrom )
-a lot of transition notifications

to do
automatic host-charging mode

bug
when active flashlight don't work

stay tuned !
Great! I am waiting.
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#904
Originally Posted by joerg_rw View Post
http://talk.maemo.org/showthread.php...203#post921203
btw I hope I've not missed to link to it in post #9 :-)

ultra-terse howto: get charge.sh from ShadowJK, install so you can execute it.
do:
start H_E_N, select speed
only *now* apply external VBUS
*now* immediately click vboost in H_E_N
enum, mount, etc
now do boostoff; charge.sh

to end: kill charge.sh, then close H_E_N



cheers
/j
it does not work for me the link to download charger.sh

Last edited by WhiteWolf; 2011-11-24 at 13:34. Reason: typo
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#905
Originally Posted by freemangordon View Post
@blue_led, joerg_rw and other h-e-n developers -

could you please take a look at usbhostmode.diff and confirm (or not) that
Code:
+                if (machine_is_nokia_rx51()) {
+                        musb_platform_resume(musb);
+                        musb_set_vbus(musb, 0);
+ 
+                        devctl &= ~MUSB_DEVCTL_SESSION;
+                        musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
+ 
+                        musb_writeb(musb->mregs, MUSB_TESTMODE, 0);
+                }
is missing a call to musb_platform_suspend(musb); at the end of the block
why do you think so? aah wait, seems this is a code snippet called when disabling hostmode? then probably yes, should (maybe) fix the annoying increased-power-consumption problem after ending hostmode.

I still grin about musb_set_vbus(musb, 0); as it's a completely empty function - alas
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-11-24 at 03:42.
 

The Following 3 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#906
Originally Posted by joerg_rw View Post
why do you think so? aah wait, seems this is a code snippet called when disabling hostmode? then probably yes, should (maybe) fix the annoying increased-power-consumption problem after ending hostmode.
And should fix annoying KP bug when device reboots instead of shutdown when a charger is connected. And annoying bug when you cannot power-up the device with charger connected. etc.

I've already sent a patch to Pali for inclusion in next KP as it seems like correct fix for the above bugs. But don't expect me to be able to grok in a day or two a patch that was produced in 6 months as a result of combined work of 6-7 developers. That is why I need someone who is familiar with code to confirm.

I still grin about musb_set_vbus(musb, 0); as it's a completely empty function - alas
And what that should mean (I know what empty function is)
 

The Following 6 Users Say Thank You to freemangordon For This Useful Post:
Posts: 440 | Thanked: 203 times | Joined on May 2010
#907
Originally Posted by blue_led View Post
work in progress: hostmode script "click and use" with :
-no gui
-automatic speed
-status area icon
-automatic mount for removable media( hdd, sticks, cdrom )
-a lot of transition notifications

to do
automatic host-charging mode

bug
when active flashlight don't work

stay tuned !
simply awesome!!!
 
Posts: 102 | Thanked: 140 times | Joined on Sep 2010 @ Israel
#908
Originally Posted by blue_led View Post
bug
when active flashlight don't work
Shouldn't mind it too much since using both USB host mode and flashlight together is probably the best way to drain your battery within minutes. :P
 

The Following User Says Thank You to NiQ For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#909
Now I started writing kernel driver for battery charging (kernel module for chip bq2415x).
 

The Following 18 Users Say Thank You to pali For This Useful Post:
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#910
Originally Posted by freemangordon View Post
And should fix annoying KP bug when device reboots instead of shutdown when a charger is connected.
Do you mean this or the other way round? My experience is that the reboot command causes poweroff (only); also (as you say), the device doesn't power up when charging.
- when using Kernel-Power.
 

The Following User Says Thank You to demolition For This Useful Post:
Reply

Tags
bada rox, detection, h-e-n, hostmode, speed, usb host


 
Forum Jump


All times are GMT. The time now is 17:29.