"There is a relatively miniscule patch to the Linux kernel scheduler being queued up for Linux 2.6.38 that is proving to have dramatic results for those multi-tasking on the desktop. Phoronix is reporting the ~200 line Linux kernel patch that does wonders with before and after videos demonstrating the much-improved responsiveness and interactivity of the Linux desktop. While compiling the Linux kernel with 64 parallel jobs, 1080p video playback was still smooth, windows could be moved fluidly, and there was not nearly as much of a slowdown compared to when this patch was applied. Linus Torvalds has shared his thoughts on this patch: So I think this is firmly one of those 'real improvement' patches. Good job. Group scheduling goes from 'useful for some specific server loads' to 'that's a killer feature.'"
Can this be applied to the kernel used in android?
intersectRaven has incorporated it into his latest kernel, and it was up for review on the cyanogenmod gerrit. It was rejected because Android does not use tty groups, therefore the patch would have no real benefit.
Sent from my Nexus One using XDA App
Thanks for your reply.
Related
When I use cifs for streaming video for my phone, i noticed many freezes during playback, that makes watching uncomfortable. Having many hours on finding way to fix this problem, i got source code of opencore and began to understand it's architecture.
As result i found that file source filter in chain didn't perform any stream buffering, so i patched source code of libopencore_common and force the use of asynchronous reading mode within 256Kb buffer size. (16 buffers of 16Kb each)
After replacing original file by patched, video playing from network through cifs stopped to freeze and stutter.
Installation:
Mount /system for rw access
Replace original /system/bin/libopencore_common.so by patched file
Reboot phone
Based on android 2.2 opencore sources, so i don't recommend install this over gingerbread updates. Though may still work, why not to try?
Don't forget to make backup just in cause. This can save a bunch of time, if this isn't work for your device.
PS. For those who interests: i patched oscl_file_io.cpp, method Oscl_File::OpenFileCacheOrAsyncBuffer and oscl_file_async_read.cpp
PPS. Perhaps this work also for Droid 2 and Milestone 2, cause those two have same opencore implementation as D2G
What Android version are you running on your D2G, Is this still a problem with the new Gingerbread update?
Oh.. I so sorry for forgetting, it's last froyo update 2.4.330 for D2G (last year update), gingerbread not released yet, as i know.
However, probably i won't upgrade my device to gingerbread, as far as froyo suits very well for me.
I found way to trick system and put file in internal storage as fully functional sd card, enabled buffering for video playback, installed cifs support, hardware 720p decoder, writed simple cli tool that displays text on screen for output of custom boot scripts, and did some other small tweaks. I don't want setup all from beginning, cause new update unlikely increase computing power of cpu in this phone, in fact the only thing i prefer.
Excellent work my friend. You are a credit to this community. Thanks.
Sent from my DROID2 GLOBAL using XDA App
Can some1plz tell wat exactly are the major differences btwn
2.3.3
2.3.4
2.3.5
Sent from my X10i using XDA App
I got this question too
Apparently they are all minor fixes like near field communication (NFC) and security and bug fixes though I doubt they have any major changes that would affect us.
Actually better off asking scoobysnacks cos he knows more than me about this question.
Sent from my X10i using Tapatalk
smithinsundar said:
Can some1plz tell wat exactly are the major differences btwn
2.3.3
2.3.4
2.3.5
Click to expand...
Click to collapse
Here you go...
2.3 (based on Linux kernel 2.6.35):
System: Updated user interface design for simplicity and speed
Display: Support for extra-large screen sizes and resolutions (WXGA and higher)
Internet calling: Native support for SIP VoIP telephony
Virtual Keyboard: Faster, more intuitive text input, improved accuracy, better suggested text. Voice input mode
Copy/Paste: Enhanced. Select a word by press-hold, copy, and paste
Near Field Communication lets the user read an NFC tag embedded in a poster, sticker, or advertisement
New audio effects such as reverb, equalization, headphone virtualization, and bass boost
New Download Manager giving users easy access to any file downloaded from the browser, email, or another application
Camera: Access multiple cameras on the device, including a front-facing camera, if available
Media: Support for WebM/VP8 video playback, and AAC audio encoding
System: Improved power management with a more active role in managing apps that are keeping the device awake for too long
System: Enhanced support for native code development
System: Switched from YAFFS to ext4 on newer devices
Audio, graphical, and input enhancements for game developers
Concurrent garbage collection for increased performance
Native support for more sensors (such as gyroscopes and barometers)
2.3.3:
Android 2.3.3 is a small feature release that adds several improvements and APIs to the Android 2.3 platform
2.3.4:
Added support for voice or video chat using Google Talk
2.3.5:
Brought improved network performance for the Nexus S 4G, among other fixes and improvements
Fixed Bluetooth bug on Samsung Galaxy S
Improved Gmail application
2.3.6:
Voice search bug fixed
2.3.7
Google Wallet support for Nexus S 4G
I've searched a lot about why there are so many better audio apps on iOS.
What I've learnt is that Android is much harder to write for. Generally we have both UI lag issues but also audio lag issues. Combine this too and we have significant problems for say, a keyboard app.
Now what I want to know is what is the source of this and can it be improved.
I remember this problem with linux years ago. Eventually we than had ALSA, jack and all the rest. There's a lot to fixing latency in linux:
1) Realtime kernel is useful
2) ALSA or Jack... Pulseaudio and AudioFlinger I'm not quite sure why we'd want one but not the other??
3) Then there's the OS itself and keeping the relevent process at a good priority... but not too high to freeze interactivity.
So what's the analog for Android? What do I even search for to find info? Keywords I can think of at the mo are only "Android realtime" or "android lag" and both of these only produce semi useufl results.
Here's some threads but they seem to be UI related which would not be fully related to the example of a beatboxing app, which could have no UI and be audio only and still lag:
https://plus.google.com/100838276097451809262/posts/VDkV9XaJRGS
http://androidandme.com/2011/12/news/android-may-never-be-as-smooth-as-ios-says-ex-googler/
http://forum.xda-developers.com/showthread.php?t=1381882
update:
If interested in this try searching for "PulseAudio" and "Audioflinger". Those were the 2 keywords I was looking for...
Audio latency
I'm also very interested in this topic... I found these two links:
http://www.freedesktop.org/wiki/Software/PulseAudio/Ports/Android and
http://arunraghavan.net/2012/01/pulseaudio-vs-audioflinger-fight/
However, this seems only to work on Galaxy Nexus so far... more work has to be done for other phones
Now of course I want to have this on my Defy+ (Quarx ICS cm9) however I'm not sure if this is even possible without a custom kernel (since bootloader is locked) - but it looks like the patches are only for bionic lib, not the kernel
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
I'm fairly new to Android (or any) development in general, I've currently made a camera app for more functionality for filmmakers. My question lies in accessing the raw frame stream from the level that the media recorder/omx native source uses to compress video? Reason being, this is the only sure way to grab the frames at a locked frame rate and without going through Java's bottlenecks in grabbing consecutive frames at a high frame rate. I'm searching through the OPPO FIND CM 10 device and kernel sources to find where the magic happens so to speak. Just locating the binder interfaces for IPC at the moment. Is V4L at work here?
Ehm ....which one you use, Mono Android?
Sent from my SonyX8 using Tapatalk 2
lkd85 said:
I'm fairly new to Android (or any) development in general, I've currently made a camera app for more functionality for filmmakers. My question lies in accessing the raw frame stream from the level that the media recorder/omx native source uses to compress video? Reason being, this is the only sure way to grab the frames at a locked frame rate and without going through Java's bottlenecks in grabbing consecutive frames at a high frame rate. I'm searching through the OPPO FIND CM 10 device and kernel sources to find where the magic happens so to speak. Just locating the binder interfaces for IPC at the moment. Is V4L at work here?
Click to expand...
Click to collapse
You mean an external camera? Like a USB camera? Or an internal camera? Internal cameras may be different, USB cameras might use different drivers. Anyway V4L is available on Android from the NDK, yes. But there are difficulties you'll have to work on.
Hi,
I'm a bit new to custom ROMs although I've known for a long time what advantages it could bring. Today, I need to develop, for a project, an efficient and low latency streaming app from my old SIII camera. I thought that there may be a custom ROM that would enhance JPEG frames compression by a better use of CPU/GPU, however I did only find "Camera improved" on ROMs descriptions. I thought of Android Revolution HD, but not sure at all!
Any ms gained is good to take, so I'll be glad if anyone could help a bit here!
Thanks in advance
Try archidroid 3.0.2 (KK).
CM
Hi,
CyanogenMod and all based ROMs have got Snap-Camera. It's very good.
Download:
CyanogenMod: cm-13.0-20160115-NIGHTLY-i9300.zip
AICP: aicp_i9300_mm-11.0-NIGHTLY-20160116.zip
Thanks, I'll look for both of these CM!
However I just don't see how snap camera can help me, I haven't any source code that could help me developping an optimal JPEG images diffusion stream (like done here at the end of the article -> google "peepers fox dog studio", can't post link yet)
Also, does anyone know if there is a possibility to mod S3 camera in order to record in [email protected] ?