A favour if possible... - Hero, G2 Touch General

Since the loss of my Hero I've had to resort to buying something cheap and cheerful, and when a colleague offered me and brand spanking LG Optimus One for 50 quid that's what I got. This is all well and good after slapping a CM7 beta on it apart from one small issue. Massive battery drain with wifi on, if seems to be related to the tx-power value being set to 32dbm which is a tad high in my book. And as I didn't see this much drain from wifi in the Hero I was wondering if one of you guys could do a "iwconfig wlan0" in a terminal or shell and get back to me on the tx-power value. That way I've got something to compare to. It would be very much appreciated.
Sent from my LG-P500 using Tapatalk

"iwconfig: not found"

what rom are you using?

Cronos Ginger 1.8
I guess it's possible that Feeyo stripped iwconfig out for whatever reason.

adb shell
adb server is out of date. killing...
* daemon started successfully *
# iwconfig wlan0
iwconfig wlan0
iwconfig: not found
#
official rooted 2.1

treesurf said:
"iwconfig: not found"
Click to expand...
Click to collapse
i got the same result, also with su.
im using fallah 1.4, a legend port.

Iwconfig isn't in any hero ROMs AFAIK

I'm sure I had it on cm6/7. Anyway, thanks guys.
<edit>It's part of android_external_wireless-tools in CyanogenMod so if anyone runs CM and can find I'd still appreciate the help</edit>
Sent from my LG-P500 using Tapatalk

I have CM7 on hero (from here http://mirror.teamdouche.net/?device=hero ), if you tell me how to install those tools will try it again. Now it says this
Code:
$ export PATH=/data/local/bin:$PATH
$ iwconfig wlan0
iwconfig: permission denied
$ su
# iwconfig wlan0
iwconfig: not found
#

nothing on elelinux cm7 too

If it's like the port I'm I'm using they should be installed in /system/xbin/
Anyway if you can't find it don't worry about it I'll figure something out. Might be able to dig one up at work and check.
Sent from my LG-P500 using Tapatalk

i think i found something that may be usefull to you.
search dbm in this file with notepad++ or something, because in notepad it will be a mess.

That's perfect, Pretty much the file I was sure existed at some point in my Hero but could remember what it was called or where it was... Cheers for this, been a huge help...

no problem, i just searched the zipped rom on my computer for the word:dbm.

Related

[Q] Anyway to get new Kernel with different MAC Address?

Can anyone help compile a new kernal to read the MAC address from the startup.txt or have a different value then 00:11:22:33:44:55? Or am I oversimplifying the issue... I have 3 HD2 for each of my family member and loaded Android onto them. However only 1 device can access the wifi at a time due to having the same MAC address. I have been trying for the past few days to learn git to download the source and compile the kernel but I was using windows and MAKE doesn't like windows too much. Any help would be appreciative, thank you.
This sounds like a great question. Does it occur on diff builds?
Sent from my HTC Desire using XDA App
Yes, this occur on different builds. One is FroyoStone and the others are on darkstone v2.1.
i have it on mattc sense and i cant use wifi at school
There must be members who can point out the right direction to solve this very legitimate question. I'd like to know.
edit
Adding
Code:
set cmdline "WiFi.mac=XX:XX:XX:XX:XX:XX"
to startup.txt (where XX:XX:XX:XX:XX:XX is your own MAC found in WM) didn't make any impact, but I guest the OP already found that out.
/edit
it can be done, really easy actually..
in the script that turns on the wifi. all you have to do is before the wifi is turned on set the mac by ifconfig..
checking out the init.rc file i saw this
# wireless properties
setprop wifi.interface eth0
you might try to add under this
ifconfig eth0 down hw ether 00:00:00:00:00:01
then reboot..
i would do it but i dont have time for testing right now.. it might crash your phone
Edit, these files are located in the roofs.img
you have to mount it with linux to edit it.
Holy Thread Revival Batman!
Did you guys have any luck on working out how to change the MAC address? It would be fantastic to get it my real MAC back.

MTU value for stable wifi hotspot over RMNET with NAND builds.

Hello,
While RMNET connection of NAND roms are quite stable and seem as fast as SD build PPP connections, I seem to be having problems with wifi hotspot getting slower overtime. (as if it is getting bottlenecked) Wifi hotspot works quite fast initially. For example: You can feel the difference if you do a remote desktop session.
I opened up a terminal emulator and entered this command:
ip -s l l dev rmnet0
(l is lowercase L, not a pipe symbol, and make sure the spaces are correct)
and saw that MTU was set to 1500. (as it was ethernet default) But 3G data connection is not ethernet of course and AFAIK its default should be 1492.
so I entered this command to set the mtu to 1492
ifconfig rmnet0 mtu 1492
then connecting internet from my laptop through android wifi hotspot became much more stable over time. It seems it is not slowing overtime as bad anymore. Maybe since PCs have more processing power and makes a lot more connections than directly browsing through your phone, and incorrect mtu might be causing fragmentation and gets bottlenecked over time.
CAN YOU GUYS TEST THIS THEORY TO SEE IF 1492 MTU MAKES YOUR 3G DATA CONNECTION BETTER AND GIVE FEEDBACK? If it turns out good, future nand builds may incorporate 1492 MTU by default. Disable and enable your data connection as a precaution to make sure changes are applied.
Note: You can of course try lower than 1492 mtu if you want, which might make the connection slightly slower but better. Also you may try 1400. The change is not persistant with this command. (Returns to 1500 default after reboot) If this doesn't make any difference we may forget this thread ever existed. I don't see dropped packets even with MTU:1500 BTW. I am using Desire sense built by DFT.
wat build are u use of nand i try this in terminal emulator but no such thing exist on mine
gottley said:
wat build are u use of nand i try this in terminal emulator but no such thing exist on mine
Click to expand...
Click to collapse
It is written in the first post. Desire nand rom by DFT.
Sent from my HTC HD2 using XDA App
thx a lot! it works fine for me
nice
bookmarked !
Changes are not persistent. (MTU is returned to 1500 after reboot)
I'll post a way to make it persistent.
Maybe edit build prop:
ro.ril.set.mtu1492 = 1
the buildprop line isn't working...
either i'm pretty sure the correct value should be 1472 ....
you can enter this command:
Code:
ifconfig rmnet0 mtu 1472;
in the init.d/99complete file on the end... then it should get set every boot...
Hello. Which file am I supposed to edit to insert the ifconfig command?
Running MDJ CM7 2.1 NAND CWM rom.
Forget it. Didn't know init.d was a folder in /system/ xD
I'm getting this error when trying to change the mtu..any ideas?
error: SIOCSIFMTU (Operation not permitted)
Thanks
Sent from my HTC HD2 using XDA App
aarick said:
I'm getting this error when trying to change the mtu..any ideas?
error: SIOCSIFMTU (Operation not permitted)
Thanks
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
did u try to change in terminal or the 99complete method
noellenchris said:
did u try to change in terminal or the 99complete method
Click to expand...
Click to collapse
Yes..this error was from terminal emulator..not sure how to do it using the 99 complete method as I can't find that file inside init.d..
Sent from my HTC HD2 using XDA App
aarick said:
Yes..this error was from terminal emulator..not sure how to do it using the 99 complete method as I can't find that file inside init.d..
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
the 99complete is just a txt type file containing some additional commands, you could create a blank file and type it in there to make it stick on reboot I believe.
did you type "su" first also. maybe you need superuser access to change the mtu in terminal.
Chris
Yup..I tried with Su but got permission denied..I can't seem to even check my current mtu number..
Sent from my HTC HD2 using XDA App
This is quite interesting but I didn't manage to get the 99complete method working.
Did anyone get the change to persist after reboots?

CM6.1 wifi problem

I know this question is answered somewhere I just can't find it. I watched the you tube video on how to fix the wifi problem in the cm6.1 build but when I put the info into terminal emulator and reboot, it's not fixed. I enter the info just as it is in the info with the video, anyone else having problems?
Sent from my HTC HD2 using XDA App
I also had the same issue but I found the reason why. I actually used slightly modified versions of the commands via adb. The youtube video I referenced was:
http://www.youtube.com/watch?v=cvS4EvS0PAw
The commands I run were:
Code:
# rm -f /system/lib/modules/*
# cp -f /sdcard/hotfix/* /system/lib/modules
# chmod 755 /system/lib/modules/
I noticed that in order for this to work I had to do two things:
1.Make sure the Wifi is turned off before you run the commands.
2. Delete/Forget the Wifi Network that you attempted to connect to. Trying to reconnect with the same remembered network did not work. You have to delete it again.
Hope this helps.
slimatic said:
I also had the same issue but I found the reason why. I actually used slightly modified versions of the commands via adb. The youtube video I referenced was:
http://www.youtube.com/watch?v=cvS4EvS0PAw
The commands I run were:
# rm -f /system/lib/modules/*
# cp -f /sdcard/hotfix/* /system/lib/modules
# chmod 755 /system/lib/modules/
I noticed that in order for this to work I had to do two things:
1.Make sure the Wifi is turned off before you run the commands.
2. Delete/Forget the Wifi Network that you attempted to connect to. Trying to reconnect with the same remembered network did not work. You have to delete it again.
Hope this helps.
Click to expand...
Click to collapse
ive also done this and it took several attempts and several reboots. Was ready to throw my HD2 at my pc monitor in a huff.
Ricey
ricey1986 said:
ive also done this and it took several attempts and several reboots. Was ready to throw my HD2 at my pc monitor in a huff.
Ricey
Click to expand...
Click to collapse
you mean it worked this time around right?
Are you guys talking about your wifi timing out? Or just not being recognized at all?
slimatic said:
you mean it worked this time around right?
Click to expand...
Click to collapse
Yeah it worked
Sent from my HTC HD2 using XDA App
Tried the one on youtube no joy
Tried the and it worked first time
# rm%-f%/system/lib/modules/*
# cp%-f%/sdcard/hotfix/*%/system/lib/modules
# chmod%755%/system/lib/modules/
the % symbol represents spaces
hope this helps
I will try it with the percent symbols to see if it works for me.
Not talking about wifi timing out, phone says error when you try to connect to wifi. Will not connect at all.
Sent from my HTC HD2 using XDA App
I did a hard reset a few days ago and those files disappeared from system/lib. Now I can't get the files to copy from sd card to root. Any way to fix that?
Sent from my HTC HD2 using XDA App

[DEV] USB 3g for a500 wifi only

3g kernel module found here http://forum.xda-developers.com/showthread.php?t=1058713
ok i got 3g to work but small problem... internet works in console and in browser... any other app doesnt see the internet... I'm a linux kind of guy so maybe I'm missing something on the android part...
How to:
Code:
disable ZERO_CD on the 3g modem
put the modules from my other post in the root of /sdcard
put chat,ppp-start.sh,ppp-stop.sh in /system/xbin and give them execution permissions
go into /etc/ppp and make a directory "peers"
put 3g in the peers dir you just created
in console type:
su <enter>
ppp-start.sh <enter>
and done you should see the ppp0 interface
[B]PS: ttyUSB2 may need to be modified in 3g file depending on your modem...[/B]
added the archive i forgot to add sorry
Nice work
Glad to have a skilled developer here
Sent from my A500 using Tapatalk
Hi all, sorry for the noob question but how can I find out what 'ttyUSB2' should be changed to for my USB modem? I've got a Sierra Wireless USB 308 3G modem.
Cheers,
Julian
some usefull values working for me in an other linux
SFR with HUAWEI E160E HSPDA Usb Stick
voyage:~# cat /etc/ppp/peers/sfr
# This optionfile was generated by pppconfig 2.3.2.
#
#
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/sfr.chatscript"
debug
#nodetach
/dev/ttyUSB0
#9600
#mtu 1452
defaultroute
noipdefault
# ipcp-accept-local
# ipcp-accept-remote
#user any
#password any
# remotename orange
# ipparam orange
usepeerdns
# novj
# xonxoff
# noccp
# asyncmap 0
# proxyarp
voyage:~# cat /etc/chatscripts/sfr.chatscript
# This chatfile was generated by pppconfig 2.3.2.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIALTONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
OK-AT-OK 'AT+CGDCONT=1,"IP","websfr"'
#OK-AT-OK 'AT+CGEQREQ=3,3,64,384,0,0,2,0,"0E0","0E0",3,0,0'
#OK-AT-OK 'AT+CGATT?'
OK-AT-OK 'ATD*99***1#'
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
chrisvane said:
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
Click to expand...
Click to collapse
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
thor2002ro said:
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
Click to expand...
Click to collapse
Cheers,
That's what I thought it was but for some reason i was getting an error. I must've mistyped as it worked first time today doh!!
Brilliant fix incidentally my Iconia is now 3G when needed!
found some a nice ril script in /system/etc/init.goldfish.sh but little scared without recovery don't wanna mess it up...
Does this require Root?
This seems like a function that could require root, also does this work with any carriers or just certain carriers.
Amazing idea and cannot wait to see how it plays out. It would be really cool if eventually an app was made for this, unlocking this feature. Good job.
hhairplane said:
This seems like a function that could require root, also does this work with any carriers or just certain carriers.
Amazing idea and cannot wait to see how it plays out. It would be really cool if eventually an app was made for this, unlocking this feature. Good job.
Click to expand...
Click to collapse
its limited to what the option driver can use(https://github.com/Tiamat-AOSP/Xoom....36-honeycomb-mr1/drivers/usb/serial/option.c) check first couple of lines you will find there devices with device id that works with this driver and also limited to modems with usb-serial interface, carriers dont play any role in this... only modems...
If I'm reading this, the USB 3G dongles will work in the Acer Iconia? Not being extremely tech savvy, I'm not sure if once you're rooted you can install these drivers and use it, or if it's still in development by the XDA Gods.
Could you clarify if this is working?
Thanks
S
only half working if you read the first post you can see only browser and console has internet access...
thor2002ro said:
its limited to what the option driver can use(https://github.com/Tiamat-AOSP/Xoom....36-honeycomb-mr1/drivers/usb/serial/option.c) check first couple of lines you will find there devices with device id that works with this driver and also limited to modems with usb-serial interface, carriers dont play any role in this... only modems...
Click to expand...
Click to collapse
thanks for the link! seems like Sierra modems are supported unfortunately
huawei e153 not supported yet... sob... thx for the great work anyway we'll check back often!
jedi5diah said:
huawei e153 not supported yet... sob... thx for the great work anyway we'll check back often!
Click to expand...
Click to collapse
im pretty sure it's this one
#define HUAWEI_PRODUCT_E14AC 0x14AC
from what i found on the net e153 has Vendor= 0x12d1 Product=0x14ac
you just have do disable the zerocd if it has one...
thor2002ro said:
im pretty sure it's this one
#define HUAWEI_PRODUCT_E14AC 0x14AC
from what i found on the net e153 has Vendor= 0x12d1 Product=0x14ac
you just have do disable the zerocd if it has one...
Click to expand...
Click to collapse
OMG really...kindly advise how to...
Followed the procedure but with no luck.
Just for many information about Huawei E261.
Tried to disbale zerocd but seems that this model is not supported.
If this can be used in A500, i will give up brlnging my laptop to daily business trip....
Kindly advise what can i do....
cant really help you guys with the Huawei stuff I dont own one and I cant find anything related on the net...
Huawei E173u-1 can support Linux and Android tablet try this one

[SCRIPT] Change Hostname v6 08/07/2012

This will also be the last update to this script for the foreseeable future. Someone else is more than welcome to take what is here and run with it though.
08-07-2012 fixed a few typos and problems with quotes.
01-29-2012 added some variables to check for the existence of things and get correct paths.
01-06-2012 fixed hostname path.
01-02-2012 Updated to truly work on all devices.
Check it out and let me know what you think.
Big thanks to cdesai for pointing out a nice little enhancement.
This is version 5 of this script.
This script is designed to change the hostname of your device so that you can access it through your network by name instead of android_0123456789ABCEDF.
Your device will also be able to be seen at your router by the new name as well.
Code:
#!/system/bin/sh
#change devName to whatever you want.
devName="changeMe"
#random variables
devHostPath=$(which hostname)
devGetPath=$(which getprop)
devSetPath=$(which setprop)
if [ "$($devGetPath net.hostname)" = "$devName" ]
then
echo "Device hostname does not need to be changed."
else
echo "Device hostname is being changed to $devName."
$devHostPath $devName
$devSetPath net.hostname $devName
if [ "$($devGetPath net.hostname)" != "$devName" ]
then
echo "Device hostname has not been changed."
else
echo "Device hostname has been successfully changed."
fi
fi
Download Hostname.sh
Download Hostname.sh to your device.
Use a text editor to change the "changeMe" in the script to whatever you want. [Keep the quotes]
Use Script Manager to run the script.
The script output will tell you if the command has completed successfully.
Once it has been run your device will be named whatever you change the "changeMe" to.
*Additionally, this script should be able to be run on any device without issues but I have only tested this on Galaxy Nexus AOKP and Droid Bionic Eclipse v3.0.
**Standard disclaimer, I am in no way responsible for ANYTHING that happens to your phone that you have done.
***This code is provided free of charge and is released with no warranty explicit or implied.
If you find this post useful or it helped in any way please hit the thanks button.
Can anyone confirm this worked for them? Doesn't seem to be working for me.
What's the output when you run it?
And when you run it a second time?
You can check at your router as well by logging into it and checking the DHCP leases.
Oh, I figured this was assumed, but you have to have root and run it as root.
Terror_1 said:
What's the output when you run it?
And when you run it a second time?
You can check at your router as well by logging into it and checking the DHCP leases.
Oh, I figured this was assumed, but you have to have root and run it as root.
Click to expand...
Click to collapse
It didn't work for me either, but your effort is much appreciated!
Not all roms will have bash, and even those which have it is mostly in /system/bin
Using /system/bin/sh would be the best way!
From my fingers to your eyez
Thanks,works perfect for me on the HTC EVO.
cdesai said:
Not all roms will have bash, and even those which have it is mostly in /system/bin
Using /system/bin/sh would be the best way!
From my fingers to your eyez
Click to expand...
Click to collapse
Good call.
I will get it fixed when I find a couple moments.
OP has been updated with the change, works fine on my bionic though untested on anything else.
Terror_1 said:
Good call.
I will get it fixed when I find a couple moments.
OP has been updated with the change, works fine on my bionic though untested on anything else.
Click to expand...
Click to collapse
Yet another idea, you can specify the host name while executing the script as an argument (quick changes )
You can use read devname and if it's empty you can get model no. From build.prop
From my fingers to your eyez
cdesai said:
Yet another idea, you can specify the host name while executing the script as an argument (quick changes )
You can use read devname and if it's empty you can get model no. From build.prop
From my fingers to your eyez
Click to expand...
Click to collapse
I left it static so that it can be run at boot and will always have the same name. The model could work but it is more for changing the name to something you want rather than being dictated what it will be.
Oh and depending on your model you could have a space or other special in it.
Hi everybody !
in the old version I have to follow the instructions, but when starting the Script Manager notice shall not be allowed and notice was not found, I'm using xperia arc s, please tell me why? sr my english is not good
Are you running this as root using the skull and crossbones icon?
Terror_1 said:
Are you running this as root using the skull and crossbones icon?
Click to expand...
Click to collapse
I just running as root, pls check pic
le_manhpro said:
I just running as root, pls check pic
Click to expand...
Click to collapse
Let me work on this a little and get back to you. It looks like you don't have busybox installed, which you "shouldn't" need.
What is your device?
[EDIT] Give the new version a shot and let me know how you make out.
Terror_1 said:
Let me work on this a little and get back to you. It looks like you don't have busybox installed, which you "shouldn't" need.
What is your device?
[EDIT] Give the new version a shot and let me know how you make out.
Click to expand...
Click to collapse
I just installed the update of your version but still does not work, do not know which step I did wrong, please guide the steps to install it?
I'm using the xperia arc S
I have attached pictures of my sr english is not good
le_manhpro said:
I just installed the update of your version but still does not work, do not know which step I did wrong, please guide the steps to install it?
I'm using the xperia arc S
I have attached pictures of my sr english is not good
Click to expand...
Click to collapse
I have many swear words for this.
There is nothing that you have done. Can you provide me with a link to the ROM you are using and I will take a closer look. Even if it's the last thing I do I will get this working.
Challenge accepted.
Terror_1 said:
I have many swear words for this.
There is nothing that you have done. Can you provide me with a link to the ROM you are using and I will take a closer look. Even if it's the last thing I do I will get this working.
Challenge accepted.
Click to expand...
Click to collapse
I'm using the original rom android 2.3.4, you can check here, hope you find ways to overcome sorry my english is not good
http://forum.xda-developers.com/forumdisplay.php?f=965
LG Revolution
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
The script can be modified to determine the location of hostname command , rather than hardcoding the path.
gumnaam.sur said:
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
The script can be modified to determine the location of hostname command , rather than hardcoding the path.
Click to expand...
Click to collapse
I am working on a V5 of this which should be released within the next 2 weeks that should address almost all issues. It works as is on some devices but not all.
I have also found from my testing that setting the hostname is inconsequential and will only appear when you run the hostname command.
gumnaam.sur said:
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
Click to expand...
Click to collapse
Thanks! This is the path on the Galaxy Nexus (ICS 4.02) and i was able to get it to update successfully.
However, if this does not update the host name that is sent to my wireless router, the point of the exercise is moot to me. But at least I learned a little bit more about my phone!
This has been posted elsewhere, but to set the name set for the Wifi DHCP request:
Code:
echo yourphonehostname > /proc/sys/kernel/hostname
Obviously, this needs root. You can stick that in a new or existing script in /etc/init.d.
No need to reboot the phone for this to take effect. Stop and start wifi to get the phone to request a new DHCP lease. Note that if your phone was already connected to a router, then the new name might not show up immediately. You'll need drop the previous name from the router dhcp client table by either waiting for the lease to expire, rebooting the router or expiring the lease manually (e.g., in Tomato Admin GUI, click on the remaining lease time under lease column in the Status -> Device List page.)

Categories

Resources