[Half-SOLVED] Increasing HDD idle spin down interval? - Gen9, Gen10 General

Anyone know of a way to increase the HDD's (incredibly short) idle spin-down interval?
I run Debian in a chroot on my 101 g9. It runs smooth as silk when the HDD is spun up, but usually it's not, and it's extraordinarily annoying to have to wait for it to spin up when running something as basic as 'ls' - especially when the tablet is on AC power and doesn't need to conserve battery.
Also, I'd like to put a swap file on the HDD. (According to dd, when spun up, the HDD writes at around 18.5 MB/s, much faster than the SD card's 8.5 MB/s.) But it would be useless with the current idle interval.
I tried setting it with hdparm, but no go. (Not surprised.)
Any tips or hints would be much appreciated.
Thanks

I did some digging and found that the HDD idle timeout can be set using sysfs. From a root shell,
echo 90000 >/sys/devices/platform/jm20329/timeout
...where 90000 is the timeout in milliseconds. If the value supplied is less than 1000ms, the timeout will be set to 1000ms. There doesn't appear to be a way to disable the timeout completely aside from setting it to a ridiculously large number.
The next step is to have...something...listen for power change events and adjust the timeout to be longer when on AC power and shorter when not.
A power profile for swap on the HDD might look something like:
When on AC:
- set vm.swappiness to 60
- set jm20329 timeout to 2-3 minutes
When on DC:
- set vm.swappiness to 5 or 10
- set jm20329 timeout to 30-45 seconds
Working on it...
Edit:
By the way, the default timeout is 20 seconds.

It seems that Android resets the timeout value every so often. I'll update when I figure out what's doing it.

Related

wifi timeout

can somebody tell me how to increase timeout value - the settings menu goes up only to 5 mins.
Use your favorite registry editor and set HKLM\Comm\tiacxwln1\Parms\HTCAutoOffTimeout to your desired timeout value (in milliseconds).
i've set that key to 900000 (15 mins), rebooted, but wifi still times out after a couple of minutes ...
Try the same trick with HKLM\Comm\tiacxwln1\Parms\HTCPowerSaveTimeout. The first one is the timeout you set in the WLAN Settings tab; i.e. how long the WiFi should be on if it can't connect. This one should specify how long a connection can be inactive but still connected.
WiFi Always Active, Does not timeout
Is there a way to keep the wifi always on, even when you tap the power button to shut the screen off and lock the device? My phone doesn't have signal in the school I work in, so what I am trying to do is use a program like VeriChat for teachers and administrators to get ahold of me. We have wireless (802.11G) throughout the whole school. Battery life is not a concern to me becase I shut the wifi off when im not using it and I plan to have a spare battery to swap with the one I use while at work.
Any suggestions would be helpfull. Will the above reg hack work?

[REQ] Dynamic Service/Application config based on power state

I was wondering whether it's possible to change the Windows Mobile (registry/file) configuration, dependent on the power available to the device?
Ideally, I'm looking for something that for example will allow:
-When power level >90%, check Email every 5 minutes
-when power level between 60% and 90%, check Email every hour
-when power level between 40% and 60%, check Email every 6 hours
The idea is, that when hooking up the mobile to the PC (or charger), it'll first charge to 100%, after which it will automatically check Email every 5 minutes.
The power values are just an example, it'd be cool if the application were customizable and would not just pertain to the Email send/receive schedule. For instance, Messenger applications could be closed automatically whenever the power is low.
Windows Mobile already features turning the screen on/off after a while, dependant on whether the phone is on an external power source. It'd be cool if these 'profiles' could be expanded to more beyond the display/backlight setting.
That would be possible, will look in to it later.
Having configuration may make it more difficult to do...
Would there happen to be some developments on this, by anyone?

[Q] Setting time by second

This is something that has been bothering me for quite some time. I cannot set the phone time accurately, and by this i mean by seconds.
For me, the expected behaviour was that when i set the hour and minute and press ok, the clock would be set and start at the 0 second mark.
Is there a solution, other than rooting the phone, to accurately set the clock ?
Thanks

[Q] Queue background data

Hi,
Does anyone know whether we are able to alter the send interval? By default, the queue is emptied about every 15 minutes.
Thanks!
You can install ds batteey saver and set interval 1h for example with 1min activity.

New to NFC - question regarding sizes

I want to start using NFC tags to automate tasks with tasker but I am unsure of which size tags I will need as I have never used NFC before. Are NTAG 212/213 too small to do anything in Tasker? Should most people go with NTAG 215/216 to be safe? Basically 212/213 is around 150 bytes whereas 215/216 is around 500-888 or something. Those are big differences. Sure we could all grab 215/216 and be safe, but they cost nearly double and there doesn't seem to be any 'clear' for those sizes that I could find. Besides why pay double for space that will go unused too.
So any info regarding Tasker automations/NFC automation sizes would be appreciated. I know a simpler task will use much less space that a more advanced task, ex. turning on/off WiFi VS, turning on WiFi, turning on Bluetooth, opening an app. I am just completely unaware of said sizes
Hey @moccor,
About a month ago bought few ntag213's, and also was completely unaware of how much memory does it take to store multiple tasks. This tag has 144bytes of useable memory and havent yet needed an upgrade.
For example following tasks (made to scan when i arrive at office) - disable wifi, disable wifi hotspot, disable bluetooth, turn ringtone volume to 0 , as well as media, alarm, system and notification volumes to 0, also dim brightness to 30% and set screen to turn off after 15sec - uses 120 bytes. And note that instead of turning all volumes down seperately, i could have just used one action - set do not disturb to 'yes' - which would also disable vibrations and use less memory.
For apps its even better. To open an app, you have to simply write app package name, for example google Chrome browser - type com.google.chrome - which uses 17bytes and voilĂ .
If you are curious about specific set of tasks, i can test it for you and reply with exact amount of memory it takes, so u can better understand whether u need larger ones or are ok with smaller ones.
kvefst said:
Hey @moccor,
About a month ago bought few ntag213's, and also was completely unaware of how much memory does it take to store multiple tasks. This tag has 144bytes of useable memory and havent yet needed an upgrade.
For example following tasks (made to scan when i arrive at office) - disable wifi, disable wifi hotspot, disable bluetooth, turn ringtone volume to 0 , as well as media, alarm, system and notification volumes to 0, also dim brightness to 30% and set screen to turn off after 15sec - uses 120 bytes. And note that instead of turning all volumes down seperately, i could have just used one action - set do not disturb to 'yes' - which would also disable vibrations and use less memory.
For apps its even better. To open an app, you have to simply write app package name, for example google Chrome browser - type com.google.chrome - which uses 17bytes and voilĂ .
If you are curious about specific set of tasks, i can test it for you and reply with exact amount of memory it takes, so u can better understand whether u need larger ones or are ok with smaller ones.
Click to expand...
Click to collapse
Thanks, I very much appreciate the info. Though yesterday I went ahead and ordered some NTAG216's since it seemed like not many people knew/wanted to answer my question haha. I appreciate the info though, maybe I will return them with Prime shipping, not sure yet. But at least now I will know for if others have the same question

Categories

Resources