Changing the Prime's default Host Device name on LAN - Asus Eee Pad Transformer Prime

The Transformer Prime, like all the other android devices has a default network device name which is sometimes very difficult to remember, ie. android-xxxxxxxx. To change this to something like "My-awesome-Prime", one can go through the following steps.
You will need the device to be rooted, and terminal emulator installed.
1)Open terminal emulator, enter
$ su
# getprop net.hostname
Click to expand...
Click to collapse
This will give you the default name of the Prime, ie. android-xxxxxxxx
To change it to "My-awesome-Prime", type:
# setprop net.hostname My-awesome-Prime
Click to expand...
Click to collapse
And that's it.
Not all that groundbreaking, but I thought some might find it useful to remember the device name, while working on the router rather than changing it on the router settings.

Will this stay after reboot?
Sent from my Transformer Prime TF201 using Tapatalk

huytrang90 said:
Will this stay after reboot?
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
Unfortunately, no- It only stays as long as the Prime is not rebooted. It might stay with a startup script (init.d) on reboot, which is not supported on the stock kernel.

avinash60 said:
Unfortunately, no- It only stays as long as the Prime is not rebooted. It might stay with a startup script (init.d) on reboot, which is not supported on the stock kernel.
Click to expand...
Click to collapse
Use script manager to run on boot
Sent from my GT-I9100 using XDA App

Related

Gtabcomb wifi sleep

Anyone know how to stop wifi from going to sleep? I have it set to never turn off yet it always does.... Thanks
Sent from my VM670 using Tapatalk
Sent from my VM670 using Tapatalk
Try REGPON wifi Keepalive from the market.
nixie2121 said:
Anyone know how to stop wifi from going to sleep? I have it set to never turn off yet it always does.... Thanks
Sent from my VM670 using Tapatalk
Sent from my VM670 using Tapatalk
Click to expand...
Click to collapse
Have you checked the Gtabcomb Q&A thread for an answer? If it's not there, ask there and somebody that's usign Gtabcomb might answer you.
TJEvans said:
Have you checked the Gtabcomb Q&A thread for an answer? If it's not there, ask there and somebody that's usign Gtabcomb might answer you.
Click to expand...
Click to collapse
For some reason i cant post there. I get some kind of permission!?
Sent from my GtabComb using Tapatalk
darren1 said:
Try REGPON wifi Keepalive from the market.
Click to expand...
Click to collapse
So far seems to be working... Thanks
Sent from my GtabComb using Tapatalk
Nothing seems to work.... Help Please
nixie2121 said:
Nothing seems to work.... Help Please
Click to expand...
Click to collapse
When does the WiFi turn off? Immediately after the screen does, or 15 minutes after that, or after a few hours?
There is a trade-off between keeping devices like WiFi on and extending battery life. Android prefers the latter and tries to go into suspend mode if it can. If you want to keep WiFi on all the time, you'll have to keep a wakelock active using some of the apps from Market which are designed to do this.
To see what I mean, try this:
Start the default Android music player and set it to play something in a loop. The default music player will set a wakelock and prevent the system from going into suspend mode. This should keep your WiFi active as long as the music plays.
Thanks.. Any suggestions on a app?
Sent from my VM670 using Tapatalk
nixie2121 said:
Thanks.. Any suggestions on a app?
Click to expand...
Click to collapse
I never use such apps, so I can't recommend any. You can, of course, also set a wake lock from the command line. Install the Superuser app from Market, if not already installed, and then inside a Terminal Emulator window, type:
To set a wake lock:
Code:
$ [B]su[/B]
# [B]echo user_lock > /sys/power/wake_lock[/B]
To remove the (same) wake lock:
Code:
$ [B]su[/B]
# [B]echo user_lock > /sys/power/wake_unlock[/B]
The "user_lock", above, can be any word you want, but, you have to use the same word for both setting and then unsetting the lock. Ie., don't use "user_lock" when setting and "xyzzy" when unsetting. Also, only type the stuff in bold.

cm7 Alpha 4 being worked on alpha 3 released

https://code.google.com/p/cmtouchpad/issues/list
go take a look, maybe a thanksgiving present?
EDIT: released
http://rootzwiki.com/topic/10121-releasealpha3cyanogenmod-touchpad/
curtis8523 said:
https://code.google.com/p/cmtouchpad/issues/list
go take a look, maybe a thanksgiving present?
EDIT: released
http://rootzwiki.com/topic/10121-releasealpha3cyanogenmod-touchpad/
Click to expand...
Click to collapse
Thanks!
Flashing A3 in about 30 mins.
Alpha 3 hasn't fixed my charging issues
Sent from my Incredible 2 HD using XDA App
hi why i install the alpha 3. i finished. but when i turn off the screen and turn on. it dont have the lock screen. it go direct to desktop. some way to fix that. thanks lot
philong641576 said:
hi why i install the alpha 3. i finished. but when i turn off the screen and turn on. it dont have the lock screen. it go direct to desktop. some way to fix that. thanks lot
Click to expand...
Click to collapse
It's disabled by default.
To enable it go to settings->Cyanogenmod Settings->Tablet Tweaks
then under interface uncheck "Disable lockscreen"
Still no wifi for me. This is getting frustrating.
Sent from my SPH-D700 using xda premium
sonjohn1 said:
Still no wifi for me. This is getting frustrating.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
i have a same issue. no wifi. darnnnnnnnnnnnnnnnnnn
try changimg ur wifi channel to 1 or 6
The link is currently down but i will flash and see how it works out.
mputtr said:
try changimg ur wifi channel to 1 or 6
Click to expand...
Click to collapse
It's been on channel six from the beginning. I'm wondering if it has something to do with U Verse. My WebOS wifi works great.
Sent from my SPH-D700 using xda premium
No wifi fix? That's like the only thing I was looking forward too.
Sent from my SPH-D710 using xda premium
Wow...deal breaker for me if no wifi. I will wait for a decent beta....if it ever appears.
Wifi fix
http://www.rom-ulan.com/2011/11/32gig-hp-touchpad-running-cyanogenmod-7.html?m=1
Sent from my Touchpad using Tapatalk
Krunk_Kracker said:
Wifi fix
http://www.rom-ulan.com/2011/11/32gig-hp-touchpad-running-cyanogenmod-7.html?m=1
Sent from my Touchpad using Tapatalk
Click to expand...
Click to collapse
The (only) interresting part of your link, also in the RootzWiki original thread :
"HOW DO I CLEAR OUT *ALL* MY WIFI SETTINGS AND START FRESH?
If you find that your wifi is "strobing" on and off, or you wish to completely wipe out all wifi settings, you can do this in one of three ways:
THE "RIGHT" WAY (USING ADB):
adb shell rm -rf /data/misc/wifi && reboot
(this will remove the settings and then force a reboot)
THE "I-DON'T HAVE ADB INSTALLED" WAY:
From the Terminal app.
# rm -rf /data/misc/wifi && reboot
(similar command as above. The # is a prompt-- don't type that part. If you see a $ prompt instead, type "su" (no quotes) and it should become a #)[/INDENT]
THE VERY DRAMATIC "I DON'T MIND LOSING *ALL* MY SETTINGS" WAY
Boot into clockworkmod recovery. Do a factory reset. This will remove your wifi settings... along with ALL your personal settings and apps. Only use this if you understand that you will effectively be resetting CM7 to the first time you ran it."
Click to expand...
Click to collapse
Didn't got the time to install A3 this noon, I hope wifi will work with and this fix (already known but not personnaly tested, I was waiting the next alpha)
Édit : install and wifi ok for me.
markwebb said:
Wow...deal breaker for me if no wifi. I will wait for a decent beta....if it ever appears.
Click to expand...
Click to collapse
wow...most people don't have a wi-fi issue, but your welcome to miss out on what has been a godsend...besides you still have webOS if it doesn't float your boat.
Not sure what people are complaining baout WiFi works perfectly.
Awesome release thanks for the hard work!!
sonjohn1 said:
It's been on channel six from the beginning. I'm wondering if it has something to do with U Verse. My WebOS wifi works great.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
then try changing it to channel 1. the point is that sometimes the channel gets really congested (as in everyone in your apartment area is using the same channel) and sometimes it just refuses to work.
Mine was originally at 11 and it took forever to connect. i swapped it out to channel 1 (i think) and now it's a snap
sonjohn1 said:
It's been on channel six from the beginning. I'm wondering if it has something to do with U Verse. My WebOS wifi works great.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I'm on Uverse and have no wifi issues FWIW
No wifi issues here. Rocking the ICS theme and loving it!!!
I installed A3 and it worked fine but then I got a wifi FC problem
=/
it wasnt even turned off the screen wasnt off

I think i did something bad!!!

When i was in twrp 2.0 i did something wrong!!! I fixed permissions!!! I pressed that botton is that bad??? Please help!! Thaqnks
evod3 said:
When i was in twrp 2.0 i did something wrong!!! I fixed permissions!!! I pressed that botton is that bad??? Please help!! Thaqnks
Click to expand...
Click to collapse
You will be fine. You should not have any problems
Fixed permissions
Ru sure bro?? What did it do anyways??????
evod3 said:
Ru sure bro?? What did it do anyways??????
Click to expand...
Click to collapse
Sometimes app permissions may be out of whack. You can reset permissions and correct problems.
bradley26 said:
sometimes app permissions may be out of whack. You can reset permissions and correct problems.
Click to expand...
Click to collapse
how do i do that reset it??
evod3 said:
how do i do that reset it??
Click to expand...
Click to collapse
You already did...when you fixed permissions.
evod3 said:
how do i do that reset it??
Click to expand...
Click to collapse
I said reset but meant fix. If you add an app to system/app and the permissions are wrong you can fix permissions. You will be fine. You don't notice anything wrong with your phone, do you?
Fix permission is a great tool it help you get rid of force closes so you'll be fine.
Sent From My Nocturnal 3Dimension
I promise you. What you did was fine. No harm was done to your phone as the guys above said. You don't have to restore or change anything back. If you want to read a little bit about it, check out this page on the CyanogenMod Wiki.
If you don't know what a feature does, simply type something like "Android fixing permissions" or "Flash ROM Evo 3D" into Google or into the search here on XDA-Developers. The search tool will save you a lot of frustration when you aren't sure what to do.
Best of luck to you.
Probably gonna have to run the command to fix contact pictures in messaging app now.
KB112 said:
Probably gonna have to run the command to fix contact pictures in messaging app now.
Click to expand...
Click to collapse
Come on. It's really not nice to mess around like that.
closeone said:
Come on. It's really not nice to mess around like that.
Click to expand...
Click to collapse
It's true, they should have looked into removing that chunk from their script as I've always had that issue after running fix permissions. Unfortunately...
Via My HTC Evo 3D On The Now Network From Sprint.
closeone said:
Come on. It's really not nice to mess around like that.
Click to expand...
Click to collapse
It's not a big deal. Happens any time I fix permission.
Open terminal emulator.
Type the letters su
Then type this command.
chmod 666 /data/data/com.android.providers.contacts/files/*
Sent from my PG86100 using xda premium
bradley26 said:
Sometimes app permissions may be out of whack. You can reset permissions and correct problems.
Click to expand...
Click to collapse
KB112 said:
It's not a big deal. Happens any time I fix permission.
Open terminal emulator.
Type the letters su
Then type this command.
chmod 666 /data/data/com.android.providers.contacts/files/*
Sent from my PG86100 using xda premium[/QUOTi did that and nothing happen??
Click to expand...
Click to collapse
Reboot and your contact pictures will be shown in the messaging app now.
Sent from my PG86100 using xda premium
KB112 said:
Probably gonna have to run the command to fix contact pictures in messaging app now.
Click to expand...
Click to collapse
Sorry about that KB112. The way you wrote that just sounded like you were joking. The good ol' English language reads so much different than when it's spoken.
I knew about that problem in ClockworkMod Recovery. I thought that TWRP had fixed that problem in their recovery.
Thanks.
Ok this trolling in this thread is just sad and plain annoying. I'm going to set this straight right now. Fixing permissions WILL NOT have any adverse effects on your ROM, but can actually help your ROM if you run into Force Closes and whatnot. Fixing permissions does exactly what its name says it does, it fixes the permissions of your the apps and other files.
Evod3 you need to run this in your Terminal Emulator to revert what KB112 did:
Type this and press enter:
Code:
su
When a # appears type this and then press enter:
Code:
chmod 760 /data/data/com.android.providers.contacts/files/*
thanks you !!!! sorry about that im new trying to learn ya kno.. my bad!!! thanks again bro!!!
dastin1015 said:
Ok this trolling in this thread is just sad and plain annoying. I'm going to set this straight right now. Fixing permissions WILL NOT have any adverse effects on your ROM, but can actually help your ROM if you run into Force Closes and whatnot. Fixing permissions does exactly what its name says it does, it fixes the permissions of your the apps and other files.
Evod3 you need to run this in your Terminal Emulator to revert what KB112 did:
Type this and press enter:
Code:
su
When a # appears type this and then press enter:
Code:
chmod 760 /data/data/com.android.providers.contacts/files/*
Click to expand...
Click to collapse
Dastin1015. My apologizes. I literally Googled:
Code:
chmod 666 /data/data/com.android.providers.contacts/files/*
And came up with several pages of "Do this to fix those permissions" threads, looked, and assumed that I had made a mistake.
I also want to apologize to you evod3 for this. If I personally misled you, I want to say that I am sorry. I feel pretty bad (and slightly embarrassed) right now.
closeone said:
Dastin1015. My apologizes. I literally Googled:
Code:
chmod 666 /data/data/com.android.providers.contacts/files/*
And came up with several pages of "Do this to fix those permissions" threads, looked, and assumed that I had made a mistake.
I also want to apologize to you evod3 for this. If I personally misled you, I want to say that I am sorry. I feel pretty bad (and slightly embarrassed) right now.
Click to expand...
Click to collapse
its all good bro!! im all set now

[Q] Power off vs Reboot

Is there an app or a widget that allows for a reboot? I hate having to Power off....,then Power on to restart the Nook Tablet. Thanks in advance.
laserbiz said:
Is there an app or a widget that allows for a reboot? I hate having to Power off....,then Power on to restart the Nook Tablet. Thanks in advance.
Click to expand...
Click to collapse
You can easily reboot from the Terminal Emulator app typing these commands:
1. su
2. reboot
Get an app called quick boot, should be in the market
Sent from my HTC Glacier using xda premium
dodgepot said:
Get an app called quick boot, should be in the market
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
yes,quick boot worked well
That's great news! Hit the Thanks button
Which would be the better app to have ? Quick Boot or Terminal Emulator? Are there other uses for Terminal Emulator?
laserbiz said:
Which would be the better app to have ? Quick Boot or Terminal Emulator? Are there other uses for Terminal Emulator?
Click to expand...
Click to collapse
Quick boot bc it the click of an app and the push of a button vs have to open emu and type commands so yea i would say app is better quick boots a prime choice for ne android device that doesn't have a reboot feature or an added mod like 4-1 reboot that are in most roms
Sent from my PG86100-EVO3D-using Tapatalk Born Jan 5th 84 and still getting it in eeee
laserbiz said:
Which would be the better app to have ? Quick Boot or Terminal Emulator? Are there other uses for Terminal Emulator?
Click to expand...
Click to collapse
if you solely only want to an app that reboots your NT, go with quick boot.
terminal emulator is for those who want easy reboots, and then some. mainly good for devs, or people that have experience with linux.
so i think in your case quick boot is the best option

[Q] Rename network id

Where is the setting to rename the device ID on a network? I don't like that it comes up as a long name under router and tether info page.
I used to do it on my Inc but can't find it now.
On rooted stock.
Sent from this Note 2 using xda app-developers app
"Rename Phone" under Bluetooth settings changes the host name if I'm not mistaken
Sent from my SCH-I605 using xda app-developers app
Nope, that only changes the blutooth friendly name. I'm looking for network name change. It shows up as something like android-16945agr956
Would rather say Note II, or the like...
Sent from this Note 2 using xda app-developers app
firewater88 said:
Nope, that only changes the blutooth friendly name. I'm looking for network name change. It shows up as something like android-16945agr956
Would rather say Note II, or the like...
Sent from this Note 2 using xda app-developers app
Click to expand...
Click to collapse
try Settings -> development -> device name.
That's where I thought I remember that setting being, but I don't see it on my device. Is it usually only under custom roms?
Sent from this Note 2 using xda app-developers app
Settings.. more settings.. nearby devices.. device name..
http://i.imgur.com/XiEnk0Y.jpg
making a note for the 2nd time in Samsungs Galaxy
Nope. Host name on router still shows long name android-e30b796c1210fa09.
Sent from this Note 2 using xda app-developers app
Is there a configure option in your tether app your using to change the ssid? Other then that I don't know .. I use the mobile hot spot it says configure at the bottom I changed my ssid in there and it says what I named it when it broadcasts my signal..
http://i.imgur.com/XiEnk0Y.jpg
making a note for the 2nd time in Samsungs Galaxy
I've only seen device ID change in AOSP/AOKP Roms, in dev section though on those roms...
firewater88 said:
Where is the setting to rename the device ID on a network? I don't like that it comes up as a long name under router and tether info page.
I used to do it on my Inc but can't find it now.
On rooted stock.
Click to expand...
Click to collapse
Add the following to system/build.prop and reboot the phone:
net.hostname=YOURNEWHOSTNAME
Your router should pick it up. I just tested this and it worked on my WRT400N router.
That's is! Thanks.
Sorry if I was calling it the wrong thing before and confusing people, it was host name I was looking to change. Added that line in the build prop file and rebooted phone and router and it now has a friendly name!
Sent from this Note 2 using xda app-developers app
To edit build.prop file, had to download and use "Build Prop Editor" from Google Play (would post link but being a n00b I can't ) as other editing methods would not allow me to save my changes.
Props to alistairs1 for the workaround. :good:
Cheers
- J
alistairs1 said:
Add the following to system/build.prop and reboot the phone:
net.hostname=YOURNEWHOSTNAME
Your router should pick it up. I just tested this and it worked on my WRT400N router.
Click to expand...
Click to collapse

Categories

Resources