View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#69
Thanks a lot for Your answers, Pali. I'll check if HD is properly enabled as high-speed, using sysfs entry You've mentioned.

As for bug with mce.ini edition, it's strange, as I can't reproduce it now. Before, every attempt resulted in mceledpattern commenting out pattern (with comment, before, containing date when it was commented out), and immediately adding new one.

I tried to reproduce it now, to help with debugging, and I'm able to insert my own pattern, without triggering buggy behavior, or modifying usbmode.sh. WTF?

Originally Posted by pali View Post
And for usb disks in host mode maybe it will be really good to call umount. But problem can be how to determinate disks names (in /dev) which some from usb device (which will report lsusb)...
IIRC, dmesg message says it - for example, if it says (most likely) that device is sda1, it will be /media/usb/sda1.

Look for something like:
Code:
sda: sda1
in dmesg.

Also, isn't there a way to track what ke-recv mounted at given event (immediately, after usbmode finish with establishing USB connection as hostmode), and then, just umount it?

It require some smart scripting, as user may have few different USB devices connected (via HUB). It would be bad to umount all, forcibly, when one of them disconnects.

ENORMOUS thanks for providing properly-integrated and automatic hostmode, after so many years! It's great, that such essential thing have active maintainer, now.

/Estel

// Edit

Just small idea for future - despite automatic mode working reliably, it would be great to add some "advanced" button (or so), that would allow for choosing speed and moment of enabling boost manually. It would really make H-E-N obsolete, in favor of USB Mode (would also eliminate small glitch with duplicated PatternVBoost - USB Mode PatternBoost would become only one needed).

Why it may be better? For example, with my USB keyboard, I've observed strange behavior. Sometimes - like 20% - despite enumerating well (and being actually detected by extkbd, it is "too slow" for USB Mode, and USB mode try another speed, unnecessary. So, I must wait for it to check that higher speed (full-speed), then until it go back again to low-speed, and hope, that this time keyboard will enumerate quickly enough.

It's not a big deal, as it happens no more than during 1 out of 5 connecting attempt, but possibility of doing things manually would help, without need for keeping H-E-N as emergency solution.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2012-07-31 at 22:00.