Remote Access - Work Project - Raspberry Pi Q&A, Help & Troubleshooting

My boss had me setup some RPi 2's to access remotely and browse to download/route resumes from different sites.
Each machine has it's own login for a specific site (Indeed, Dice, Monster, etc.)
I removed a lot of the unnecessary packages and tried to slim it down. I tested out RDP, VNC and SSH. Some of my coworkers complain about it being laggy, especially Dice.
I have it setup right now for them using SSH and when they log in it opens up midori only. So there is no desktop environment running or anything like that.
It has seemed to help, but I was wondering if there was a way to maximize the performance, maybe tweak the kernel, or somehow give midori more memory to use when it runs.
If you guys have any suggestions that would be much appreciated. I'm trying to make it run as smooth as possible with little to know screen lag.

Thanks, very interesting!

I assume you are using the raspbian os. Run 'sudo nano /boot/config.txt' in a terminal to get into some extra system settings. (ctrl+x to exit) At or near the bottom, you should see something about #arm_freq. Here you can easily overclock your pi. I have set mine up to 1100Mhz(on the pi2). It's not perfect, I have had a few programs close unexpectedly, but it's hella fast. Play with these couple settings on one till you reach a stable, but still speedy system. Note -play at your own risk. You can potentially damage or break the pi this way, and your warranty WILL be void!
As far as memory goes, you can add swap memory.. Swap is a partition that is used as RAM when the RAM is full or close, and on a desktop it works great. But on a pi, the partition is written to the sd card. Modern sd cards are good, but they get bad sectors easily from repetitive read/write actions. Combine that with how often RAM has to read/write... it can significantly decrease the lifespan of your sdcard. Again, use at your own discretion. Swap is also slower than regular RAM, and many people recommend turning it off to lengthen sd card life
The biggest factor here I think though is ssh/vnc. It will take roughly twice as long as browsing on the pi (or a desktop) alone because the pi is acting as a relay; it has to get packets, interpret them, process and display (even if there is no direct monitor) then send them to the desktops to complete the same process.

cool share. Thank you!!

Related

is compcache worth it

if compcache compresses ram to fit more things in it will also have to de compress things to use them. So there is more stored in the ram but it takes longer to reach them.
what i wanna know is how long it takes to compress and decompress to see if itt is worth it. Any ideas?
That was my way of thinking too. I played with comp, swap, comp+swap, and comp backing swap. My user.conf file is attached to my signature. Swap only is what worked best for me.
It more than anything depends on how the phone is used. If your using apps that take a lot of RAM but don't take too much CPU power (namely something that has huge images, or something like co-pilot which pushes ram to its limits, and background processes), then compcache is good. However, using CPU intensive stuff and applications, swap only is much better. Compcache is good for things that run in the back that don't have to be accessed all the time, such as the launcher.
feel free to correct me/wreck me
thanks for the replies guys the things i doo need swap more than anything so ill stick with swap
B-man nailed it, like I said I'm running swap w/o compcache because as I said it works best for me. CoPilot is laggy and causes background programs to FC on this config, but i rarely use it in favor of google maps which is why it doesn't bother me.

Getting Android to USE swap (Cyanogen 5.0.7) 32B

I know this is as beaten as a dead horse, but I have to ask it anyways.
I've setup both Compcache and a swap partition on my Class 6 SD card, but I'm finding myself endlessly frustrated by the fact that Android is still killing stuff after just dipping it's toes in the swap.
Someone at HTC should be shot for making these phones with this little memory.
I'm aware the performance may be terrible and it may (will) murder my SD card, but how can I force Android to see all of the memory space as available?
As far as Linux is concerned there's 52MB of free memory (Meaning Android hasn't allocated it at all), including 16MB of physical swap that hasn't been touched (of 16MB). Android's still killing stuff (like my terminal session).
I'm aware that Android's management is supposedly more elegant, but I'm finding many apps and programs don't properly save their state and don't restore seamlessly, and I tend to multitask a lot and, well, this isn't working well. I at least want to see what a swap-heavy setup runs like, but Android won't let me!
There is a search button. There are plenty of howto's.
Hint: userinit.sh
-------------------------------------
Sent via the XDA Tapatalk App

[GUIDE] mr72's CM 7.10 (or 7.20) NC setup

I have done my NC and a couple of others, here are the steps I am using for IMHO the ultimate NC setup, FYI. This guide is adapted from the guide posted for installing CM7 http://forum.xda-developers.com/showthread.php?t=1030227 with many of my own extra steps. I recommend reading the original guide first.
I get an average of >12 hours battery life with very stable performance with these settings on my NC.
In short, this is how I think the Nook Color should have been done from the beginning. I have attempted to balance some goals that are pretty common to other users. This guide walks you through steps that will accomplish all of these goals, but you may decide to keep some and skip others.
Here is what this will do:
Root your Nook Color and put a variant of CM7 ROM on it. This is an "AOSP", or "generic Android" installation. Nook Color comes standard with Android under the covers of B&N's launcher and suite of apps. Many of the tweaks and advantages in this guide cannot be had without first abandoning B&N's standard OS in favor of CM7.
Enhance performance by overclocking. The Nook Color is 800MHz max clock rate from the factory, and this guide will allow it to run at 1.2GHz (50% faster), along with tweaking the governor settings to ensure you do not sacrifice battery life.
Improve battery life. My goal was to have a device that I can use on flights between Austin, TX and Europe to read books or watch movies without access to a power outlet. I believe I have achieved that goal.
Enhance stability. While many ROMs (such as the new ICS work) may favor bells & whistles and tinkering over stability, I want my device to be rock solid and never, ever crash. The goal here is a device that *just works*, much like Apple devices are known to *just work*.
Smooth and responsive UI. One common complaint of Android devices vs. Apple stuff is on smoothness and responsiveness of the UI, in particular scrolling, screen switching, etc. Glitchy or erratic movements, abrupt or stuttery scrolling, etc. all gives a feeling of poor quality or lack of "polish" IMHO, and I have made an effort to fix this flaw in Android on the NC, mostly because the hacky feel distracts from my enjoyment of the device.
Flexibility and efficient use of storage. My guide will swap the /emmc and /sdcard mountpoints as well as repartition the internal memory of the NC, with the goal of efficiently utilizing the internal storage space, and allowing the SD card to be used in a more portable fashion, not required for operation but interchangeable. Mostly this is because for me, I have a LOT of music and limited space on my 32GB SD card for other media. But on long trips, I may want to bring along movies to watch and they are far more portable when put on tiny microSD cards. So I want to be able to change SD cards and change the media content on my NC, without having to reboot or lose access to some apps.
NOTE
These instructions will root your device and install a variant of CM7 onto your Nook Color in the internal memory, EMMC. This will destroy the original (stock) Operating System and you will lose whatever you had in your Nook Color before the install. It is destructive and likely difficult to reverse. If you have reservations about changing it or wish to change back, don't use these instructions. Try someone else's less-permanent means of doing so. You may screw up a step or I may have missed something, or your NC may not respond like I expect, so if you brick your Nook, then you are on your own. There is no warranty included with these instructions.
These instructions are for those of you who want a smooth, fast and stable NC Android experience, with exceptional battery life as well as efficient usage of internal and external storage. IMHO, this is how they should have done it from the factory. Someone else likely figured out a better way, but this is my way, and it works for me. You do this at your own risk.
This is not for those of you who want the Barnes & Noble experience. And this is certainly not for those of you who are on the fence about whether to re-flash. As far as I know, there is no going back, or if there is, it probably is hard to do. I don't know, because I never considered it.
There. Now you're on your own
Also NOTE
I am not the developer of the ROMs, image files, tools for repartitioning, or any of the other stuff mentioned here. I simply am noting my method for doing the installation and settings. Full credit and thanks are due to all of the original developers of this content.
mr72's setup guide:
Power up your brand new Nook Color and register the device. Note: I have seen a few refurb NCs that needed to be returned... don't skip registering it! Might save you some heartache.
You will need two SD cards: the "boot SD", which will be used to install clockworkmod, the OS, and google apps; a "data SD" which will be used to install the repartitioning scripts and then can be used for data storage. You can use the same SD card for both, but you may want to reformat it after using it to install the OS. IMHO, 1G and 2G microSD cards are cheap and it makes sense to make the "boot SD" on one of these and keep it around for recovery, using a much larger microSD (16GB or 32GB) for data storage later.
Use Win32DiskImager to write the 1gb_clockwork-3.2.0.1-eyeballer.zip image to the boot SD. You must run Win32DiskImager as administrator!
Copy the following files to the "boot SD" which you prepared with Win32DiskImager (Note: do not unzip them.):
A. The CM7.20 Stable ROM
B. gapps-gb-20110828-signed.zip
Copy the following files to the "data SD" card (Note: don't unzip these either.):
reformatData-v1.zip
repartition2GBdata-v1.zip
Power off your Nook. Put the "boot SD" card in (the one with the 1gb_clockwork image), and then power it back on. It should boot into ClockworkMod Recovery ("CWM").
Navigate in CWM using the volume up/down keys to go up and down, N button to accept, power button to go back.
Optional: Now is a good time to back up the factory OS. Use "Backup" from the ClockworkMod menu.
Go back and navigate to "Install .zip from sdcard", then "Choose .zip"
Flash the files in this order:
1. update-cm-7.1.0-encore-signed.zip
2. gapps-gb-20110828-signed.zip
Once you've flashed the files, in the ClockworkMod main menu select "wipe data/factory reset"
Go back to the main menu, remove the "boot SD" card and put in your data SD card. Choose "Reboot system now", which should boot into CyanogenMod (CM7). Note, it requires an SD card to boot at this time.
Once you boot into CM7, you must add your Google account, which will require wifi access. You can set up wifi by using the menu on the status bar. It may be kind of tricky to set up the wifi and get through the wizard. But it will eventually work.
Go to the market and search for "ROM Manager", and install the latest version.
Then just open up Rom Manager from the app drawer and hit "Flash ClockworkMod Recovery" and choose "Nook Color". It's on the list, even though the list may not be in any discernible order.
Optional: While in the market, you probably want "ES File Explorer", makes life easier when trying to navigate files.
Reboot into recovery, and back up the current ROM. Seriously, now make a backup. This is a basic starting point before you add apps and do a lot of tricky stuff, so this is an excellent place to make a backup that may save you later.
Install the reformat/repartition using precise instructions in this thread
Follow the instructions to use custom 1.96GB "/data", 4+GB "/media" partitioning to the precise detail.
This process is destructive and may feel quite risky. I suppose it is! So be careful and don't make a mistake here. It is worth it. By repartitioning you will wind up with 2GB of space for apps (vs. 1GB stock) and the other 4GB is usable as temp storage (like an SD card). This will also allow you to run your Nook Color with no SD card installed, plus hot-swap SD cards with no effect on running apps.
Now, back to Menu -> Settings -> CyanogenMod Settings
Application
- uncheck "Allow application moving"
- Install location: "Internal"
- check "Use internal storage"
- uncheck "Permission management"​Note: This will cause the SD card to be mounted at /emmc and the internal 4G partition will be mounted at /sdcard. The result of this is your actual SD card does not have to be installed in order for the NC to work, apps that require /sdcard for storage will use the internal memory. This also means your SD card can be "clean", with only media on it, and interchangeable so you can have more than one SD card with content. The 2GB partition will be used for apps. You will have a hard time running out of application storage space with 2GB.
If you didn't repartition, then you will have 5GB for apps and only 1GB will be used for /sdcard stuff, which IMHO, is too little space for the /sdcard temp/settings storage, and way more than you can ever use for apps (certainly if your apps require sdcard space). So the repartition is IMHO necessary to make the sd/emmc swap feasible.
Install the V6 Supercharger script, update 8. Download it and use ES File Explorer or other tool to move it to the root level of the SD card partition (/mnt/sdcard). You will have to run the script in Terminal Emulator with the following commands:
su
cd /mnt/sdcard
sh V*
0
9
16​ Note: this changes the way apps' memory is managed and results in more available memory for the active app more often. This makes things faster. However, you may find that it winds up killing background apps more frequently, so there is a tradeoff. So if you pause your Angry Birds game and go do web surfing for a couple of hours, Angry Birds may have to restart when you return to it rather than staying in memory the whole time. FYI.
Also Note: There are some other tweaks floating around that are said to improve performance; in my observation, they do not really improve it, and they are not necessarily persistent across boots. The V6 Supercharger does the trick, and doesn't require anything else to get the job done, IMHO.
Some performance tweaks, if you want iPad-like scrolling and smoothness and 12+ hours of battery:
Menu -> Settings -> CyanogenMod Settings
Performance (say OK to the "Dragons ahead" warning)
- CPU Settings
- Governor: InteractiveX, min 300, max 1200, set on boot checked. Note: the Conservative governor may result in better battery life, InteractiveX will result in a more responsive device. I switch between the two depending on whether I need long battery life, such as on a long flight where I plan to read or watch movies.​ - Use JIT - checked
- Enable surface dithering - checked
- Use 16bit transparency - checked
- Allow purging of assets - checked
- Lock home in memory - checked
- Lock messaging app in memory - unchecked (there is no messaging on a NC)​ You will have to reboot for these to take effect.
Undervolt/Frequency settings (this improves battery):
Run the Nook Tweaks app
CPU Settings
Clock Settings
CPU Stepping 1: 350mhz
CPU Stepping 2: 600mhz
CPU Stepping 3: 800mhz
CPU Stepping 4: 1000mhz
CPU Stepping 5: 1200mhz
Set on boot: Checked​ Voltage Settings
Stepping 1: 0.925v
Stepping 2: 1.05v
Stepping 3: 1.2v
Stepping 4: 1.275v
Stepping 5: 1.325v​
Note: you can set the CPU minimum to 300 MHz to eek out a tiny bit more battery but when I do this, I get occasional SOD that are alleviated completely by using 350 MHz min.
I continue to update this whenever I have something meaningful to report. The truth is that for months now I have just basically been using my Nook Color regularly with no problems whatsoever, so this doesn't really require regular attention. Once ICS is fully-baked, I am sure I will come up with an alternative using ICS. For now, this setup appears to be rocking.
With this setup, with wifi disabled I achieved over 17 hours of battery life while reading ebooks with Moon+ Reader and the screen on (not night mode, this is white background, black text, and brightness about 10%). I also got about 10 hours of battery while watching movies. I think this is pretty great battery performance.
UPDATES CM10!
I have completed my experiments with CM10 and CM10.1 and (drum roll!)... they are not good choices IMHO for NC.
Battery life was about 1/2 on CM10 or CM10.1 what it was with CM7.20 and performance was very sluggish. Web browsing in particular is almost useless. I found I ONLY used my NC for reading books (since Moon+ Reader worked just fine) and I seriously hated having to use it for anything else.
The battery would not last throughout one overseas flight just reading books.
Just not nearly enough battery and performance for me, and while I like some of the UI enhancements (and particularly the ability to use Chrome browser) with CM10/10.1, they were in no way worth the extreme tradeoff in performance.
In the meantime I also dropped my NC and crunched the corner on it, so while it works, it does need to be replaced.
So, back to CM7.20 for me on the NC. I'm actually following my own guide right now to get it rebuilt the way it was. I'll be shopping for a new tablet to get maybe this summer that will run CM10+ with performance like I was getting from my lowly NC. Long live CM7.20 on NC!
Great!
It's very detail but some miss
If you put all 4 .zip files into ONE bootable CwMR uSD, step 9 you remove the uSD, insert the new one in, assuming it is blank then jump to step 14, you wont have the format file if you not re-insert the first usd back.
Also, flashing CwM into eMMC very convenience, yes, but it is a pain if you want to go back to stock ROM. I always preferred boot into CwM R via a bootable uSD card.
Your note in step 15, I personally do not believe it is 100% true. In my case, without an external uSD card plugged in, Aldiko Reader won't work. And yes, my system set up is like what you said.
votinh said:
Great!
It's very detail but some miss
Click to expand...
Click to collapse
Thanks, I updated it. Maybe didn't catch everything.
Also, flashing CwM into eMMC very convenience, yes, but it is a pain if you want to go back to stock ROM.
Click to expand...
Click to collapse
IMHO, if you have reservations and think you might want to go back to the stock ROM, then my instructions above are not for you.
Your note in step 15, I personally do not believe it is 100% true. In my case, without an external uSD card plugged in, Aldiko Reader won't work. And yes, my system set up is like what you said.
Click to expand...
Click to collapse
I have not tried Aldiko but I have probably 100 other apps and none of them require the SD to be installed. IIRC Aldiko does require you to tell it where the library is located; maybe this is the problem? I don't remember.
I switched to Moon+ Reader for my books, which I wholeheartedly recommend over Aldiko. I found Aldiko was crashing and causing my whole NC to crash/spontaneously reboot, etc., when you leave it running in the background for a long time. I think Aldiko likely has a memory leak.
While I am talking about app recommendations, I also suggested Go Launcher EX, which I really like. It feels faster and is more configurable in ways that improve responsiveness for my tastes compared to ADW. I have some theme preferences that I could share, which I think are optimal for the NC given the screen size, but I have found that most other people I know who are over 30 tend to think my settings for screen sizes of icons and controls are too small, so I didn't bother. Normal Tablet Tweaks and the default CM7 setup may be ok for you. I do prefer Dolphin HD browser over the stock browser, and I also tried Maxthon, Firefox Mobile, and Opera Mobile as well as Opera Mini. I like features of all of them, but on balance Dolphin HD is the winner.
votinh said:
Also, flashing CwM into eMMC very convenience, yes, but it is a pain if you want to go back to stock ROM. I always preferred boot into CwM R via a bootable uSD card.
Click to expand...
Click to collapse
I've tried a few of the new posts about returning to stock ROM and found it was really easy myself. YMMV
Thanks for the guide mr72.
The one thing I'd recommend to people who haven't done the cpu frequency / voltage tweaks before is to set it and test it out for a while without making it set on boot. The frequency settings are quite safe / standard, but the voltage settings vary a little more from person to person. If you've used it that way for a few hours without issue, then make it set on reboot.
insz said:
Thanks for the guide mr72.
The one thing I'd recommend to people who haven't done the cpu frequency / voltage tweaks before is to set it and test it out for a while without making it set on boot. The frequency settings are quite safe / standard, but the voltage settings vary a little more from person to person. If you've used it that way for a few hours without issue, then make it set on reboot.
Click to expand...
Click to collapse
Good point.
Also note, my settings are quite conservative. I have run them much lower and the NC was still stable, for at least a few hours. However, I figured I'd err on the side of stability.
Also note the impact screen brightness will have on battery life. While it may be second nature for some of us to turn down the brightness we might want to point out that it is the single biggest drain on the battery,
--------------------------------
Sent from the Center of my Mind
Nice work! I just updated Nook Tweaks with those settings. I updated to the SKANG RC-2 Mirage and so far the Nook is much speedier than stock CM7 RC1.
Will post back after I test these settings a bit.
MISRy said:
Also note the impact screen brightness will have on battery life.
Click to expand...
Click to collapse
That's true. Mine is normally about 40%. However, in my e-reader app (Moon+) I tend to adjust it to about 15-20% when reading with the lights on, and about 6% when reading in the dark. But the whole screen is mostly white so this is really a worst-case battery drain app for screen usage.
I managed to watch HD movies with wifi enabled but not streaming for 7 hours and the battery was maybe 30% afterward. So I think it has 10 hours of movies in it. With wifi disabled, it is better.
mr72 said:
I have not tried Aldiko but I have probably 100 other apps and none of them require the SD to be installed. IIRC Aldiko does require you to tell it where the library is located; maybe this is the problem? I don't remember.
Click to expand...
Click to collapse
Back to your "previously step 15", which probably a step 17 now, external uSD related. I just glanced through one of my previous post that talking about the requirement of an external uSD.
Can you do a quick test? Remove uSD off your NC, then capture the screenshot using the built-in feature (press and hold power button to bring up the menu).
See if it let you save the image or not.
votinh said:
Back to your "previously step 15", which probably a step 17 now, external uSD related. I just glanced through one of my previous post that talking about the requirement of an external uSD.
Can you do a quick test? Remove uSD off your NC, then capture the screenshot using the built-in feature (press and hold power button to bring up the menu).
See if it let you save the image or not.
Click to expand...
Click to collapse
Next time I have my SD card removed, I can try that. I'm not going to do it today. But trust me, it works just fine. The Android OS doesn't know there is no physical SD. You just have to make sure the internal partition is mounted at /sdcard. No part of Android OS can write to the partition without going through that mountpoint.
http://forum.xda-developers.com/showthread.php?t=1030227
Nice re-iteration of eyeballers thread..
Although I didn't use this post to setup my nook. It confirms some things. Also it said in the op and even links to eyeballers thread that this is how mr72's setup went and how he used settings to optimize his nook. I kinda like having the changes in one place.
khaytsus said:
http://forum.xda-developers.com/showthread.php?t=1030227
Nice re-iteration of eyeballers thread..
Click to expand...
Click to collapse
Sent from my NookColor
I've seen votinh talk about not wanting to install CWR to emmc, and have wondered why. I kinda just assumed it was some ethical dilemma concerning the warranty. It is pretty easy to wipe, in my experience at least.
One note to mr72. The V6 supercharger script is used to change the minfree values, and locking home in memory can conflict with its operation and cause lag. If you run the script in a terminal you can see it explained right beneath the script’s 17 option menu.
Just a note.
mateorod said:
I've seen votinh talk about not wanting to install CWR to emmc, and have wondered why. I kinda just assumed it was some ethical dilemma concerning the warranty. It is pretty easy to wipe, in my experience at least.
Click to expand...
Click to collapse
Maybe because I'm a bit of paranoid but since joining the forum and helping others, the most itchy issue that I've seen so far is restoring back to stock and a lot of people suffering the hiccup due to CwMR flashed into eMMC using ROM Manager.
In order to get out of it, they have to perform 8-boot ??? or whatever it is.
While w/o CwMR installed in eMMC, restore back to stock is just simply as re-flash a ROM.
Again, NOT ALL people hit the head-scratching issue but some did.
hhmm ... I wonder how this setup would work on ICS?
Once we get fully-functional, stable builds of ICS then I am sure I will do the same kinds of experiments as I have with CM7+ and wind up with a similar set of recommended tweaks and settings, if I have success running ICS and don't go back.
FYI, regarding battery life:
I got a PM asking for a little more detail. I am getting >12 hours of battery with the screen on while reading ebooks. This was on a series of flights overseas wherein I used the NC with Moon+ Reader, and wifi disabled.
I just got finished watching a movie for pretty much right at an hour, with wifi enabled, here at my house. MX Video Player, a DVD-rip of a movie, with the brightness on about "3" (set on MX Player). Battery went from 91% when I started to 80%. If it is linear, that's 9 hours of battery watching movies.
IMHO, this is pretty great. And it matches my rough experience from the previous experience watching movies.
Of note:
in MX Player, XviD movies play far better and consume less battery than x264. I got more like 15% per hour with x264 (BRrip, 720p) and frequently had to resync the audio and video. And also I have switched to the InteractiveX frequency scheduling, using the "SW Fast" decoder for MX Video Player, as an experiment to see if it improves video playback (it doesn't). But it doesn't seem to adversely affect battery life.
@mr72
I've been using Go Lancher EX on my CM7.2 NC (and Galaxy S2) and prefer it to AWD EX's features and performance. You mentioned earlier that you had some GO-specific tweaks that you'd be willing to share. I'd love to see how they compare with mine if you're still willing.
Thanks!
I just installed to and am running CM 7.2 from an SD card. Last night I full charged and today I noticed that my battery says that its at 15%, but the voltage is at 3693 mV. I know the max charge is around ~4200 mV, so the percentage seems very low considering the voltage value. Anyone help?

[Q] Reset in emulator and backup restore?

I have an actual WP8 device that I've backed up to skydrive (contacts and sms). I would like to be able to pull that down into the WP8 emulator which I have installed and running fine.
Am I correct in that you can only restore a WP8 from skydrive backup on the first cold boot after a reset?
When I try to reset the emulated phone via the Settings/About page, the emulated phone shuts down and restarts, but hangs when it restarts.
1. Is there a way to get the emulated phone to restore from skydrive without doing a full reset?
2. Is there a way to make the emulated phone do a full reset and bring up the initial first boot screens so I get the restore options?
Thank you.
The Emulator does not support setting a Microsoft-Account which also means that SkyDrive access, Backups or Marketplace Downloads don't work.
Well.. That's unfortunate.
No way to mount the flash and hack on a xml/etc file? Also, I was mistaken about the emulated phone hanging on restart after the reset. It does come back up after about 5 minutes. and I very briefly see some text on the screen right before the windows start screen, but it flashes by so quick I can't make it out. It looks like it may be the initial welcome information, and the emulator is automagically bypassing it?
The emulator can't do anything other than eating away at your resources and fool new developers into buying new hardware to support hyper V. The only useful thing you can do with them is check how the layout looks under different resolutions.
When you re/start it, you need to have the entire OS image do a complete OS boot. It takes so long because it is emulated (obviously, on a phone is a lot faster). It also uses different architectures (x86 compared to ARM on actual devices)
As I said, you can't do anything useful with it other than basic stuff like UI interaction and UI display.
Ehh I dunno about new hardware. Runs just fine on my i7 windows 7 gaming machine in a win8 vm in vmware
But yeah, completely ridiculous that it needs hyper-v and win8.
Hmm probably worthy of a different post, but do you know of a way to pull backed up sms from skydrive onto a PC?
As Long as you don't work with the Camera of NFC the Emulator actually works quite well. You can also simulate bad Network connectivity and so on which you can't do properly on the phone. The UI sometimes seems rather slow in the Emulator but actually it does outperform the phone quite a lot with CPU bound code (at least on my Core i7). Having Multitouch Support implemented in the Emulator is also a nice Addition.
I don't know of any way to Access the SkyDrive backup from anywhere but an actual device.
StevieBallz said:
As Long as you don't work with the Camera of NFC the Emulator actually works quite well. You can also simulate bad Network connectivity and so on which you can't do properly on the phone. The UI sometimes seems rather slow in the Emulator but actually it does outperform the phone quite a lot with CPU bound code (at least on my Core i7). Having Multitouch Support implemented in the Emulator is also a nice Addition.
I don't know of any way to Access the SkyDrive backup from anywhere but an actual device.
Click to expand...
Click to collapse
You forgot SD cards, media elements, any sort of audio playback, umm...well thats about it xD

Task switching without reloading? What memory is required?

Am running PA 3.60 which is great. I've now run some additional script that culls out and slims down the ROM and gapps. Again, everything runs great. I probably have a lot more memory free now than before. But I'm not sure what good that is.
Traditionally, we want to free up memory so we can install more apps - a2d and other methods help to keep things clear.
I don't want to do that - I want to be able to run more than one or two apps at the same time. But I don't know which memory types to clear up to do that.
The ROM is in, well, ROM, so making it smaller may not help free up memory if there's fixed 512MB used for it.
I know Android is actually running a lot of processes at once. What I mean is that if I load an app, say Candy Crush, then run another app, say Grindr, I can switch back and forth pretty much ok and each app resumes where it left off without any noticable reloading/refreshing. But if I then run another app, say Scruff, then as soon as I try to switch back to one of the others, it has to reload/refresh/restart. So clearly, there wasn't enough memory available to keep all 3 resident and it swapped some out or simply released it.
Logically, if I have more of a certain type of memory free, this will not happen as often. I know it depends on how much memory and other resources an app requires, but I don't need to get into that level of analysis yet. First and foremost, what sort of memory should I try to make as much of as possible to let me swtich between apps without so much reloading?
douginoz said:
Am running PA 3.60 which is great. I've now run some additional script that culls out and slims down the ROM and gapps. Again, everything runs great. I probably have a lot more memory free now than before. But I'm not sure what good that is.
Traditionally, we want to free up memory so we can install more apps - a2d and other methods help to keep things clear.
I don't want to do that - I want to be able to run more than one or two apps at the same time. But I don't know which memory types to clear up to do that.
The ROM is in, well, ROM, so making it smaller may not help free up memory if there's fixed 512MB used for it.
I know Android is actually running a lot of processes at once. What I mean is that if I load an app, say Candy Crush, then run another app, say Grindr, I can switch back and forth pretty much ok and each app resumes where it left off without any noticable reloading/refreshing. But if I then run another app, say Scruff, then as soon as I try to switch back to one of the others, it has to reload/refresh/restart. So clearly, there wasn't enough memory available to keep all 3 resident and it swapped some out or simply released it.
Logically, if I have more of a certain type of memory free, this will not happen as often. I know it depends on how much memory and other resources an app requires, but I don't need to get into that level of analysis yet. First and foremost, what sort of memory should I try to make as much of as possible to let me swtich between apps without so much reloading?
Click to expand...
Click to collapse
Try enabling zram, I haven't tried it personally but its supposed to allow for more multitasking.
Sent from my Nexus One using xda app-developers app
Moved To Q&A​
You may of considered it dev based, but its a question so belongs in the Q&A section.​
I've tried ZRAM now for a couple of days but makes no difference. I also have the problem on another Android device. I'm convinced its some sort of design limitation of the opsys or something. When I start up Grindr, it takes a long time to load all the images, make connections, etc. Then I start of Gruff, and it does the same. As long as I don't try to go to another app, I can flip between the two of them without them restarting/reloading/reinitialising themselves. That is clearly because their pages didn't get swapped out of memory or flagged for deletion and deleted.
But if I do something else, or even try to use additional functions within either app, its too much and the next time I try to flip to the other app, it has to reload and reestablish connections etc.
Its not just those apps either. The same with a game like Candy Crush. Or many many apps.
So either my devices don't have enough memory of some form to allow many concurrent apps to run without being swapped out, or Android can't handle it and unnecessarily swaps out or deletes a process's memory pages to make room for the next process, >>> even if the device has plenty of memory<<<.
I don't know which type of memory the opsys needs if this is the case. I'd like to know so that i can make sure there's ample available so that this constant restarting doesn't keep happening. It seems stupid to me that Android does this if the device has got "heaps" of available memory (no pun intended). Newer devices will continually have more and more built in memory, so if Android is doing this arbitrarily and not because of space issues then its, well, stupid.
I have to assume its my devices that are the problem. They're both old (Nook Color, Nexus One). But with the NC, I'd assume we can partition some of that 5GB for use as main memory to run lots of processes concurrently, without this annoying swapping/page deletion/forcing re-inits all the time.
I'm also having problems figuring out where in XDA to post this question - its not NC specific, or dev specific, but I need answers from people that know the Android architecture so I can work out if its possible to stop this from happening.

Categories

Resources