[SM-P600][4.4.4]CyanogenMod 11 - Note 10.1 (2014) WiFi

equilibriumtr

Member
Jan 24, 2011
30
81
0
Lausanne
www.ayberkozgur.com
@equilibriumtr

How did u manage to get the S-Pen to work in Portrait...what did u change and how.

Thanks,
Your fellow friend and dev. :)

Shawn5162
I had to go through the kernel input handler code, then the Android InputReader and EventHub in order to discover there is a tiny proprietary pen configuration file that must be installed in the right place.

You can also follow the commits in the github source page (links in the first post) to be aware of the changes made to the code.
 
Last edited:

Ectoftso

New member
Nov 15, 2014
1
0
0
I want to buy this device. However, there seem to be two different versions. One with the Samsung 8-core and another one with a Qualcomm Snapdragon 4-core CPU. Thy both go under the name P600. Which version is supported by this CM version?
 

Shawn5162

Senior Member
Jun 24, 2013
2,207
9,586
0
I had to go through the kernel input handler code, then the Android InputReader and EventHub in order to discover there is a tiny proprietary pen configuration file that must be installed in the right place.

You can also follow the commits in the github source page (links in the first post) to be aware of the changes made to the code.
could u give e a copy of the new updated file and let me know to directory path to place it in :)

thanks
shawn5162
 

benjamimgois

Member
Dec 21, 2010
29
6
0
I want to buy this device. However, there seem to be two different versions. One with the Samsung 8-core and another one with a Qualcomm Snapdragon 4-core CPU. Thy both go under the name P600. Which version is supported by this CM version?
P600 and P601 are based on Samsung Exynos processor. P605 is qualcom based.
 

Pazzu510

Senior Member
Dec 10, 2010
317
56
0
One thing I have seen during experimentation:
Spen attach and detachment do not work.
So, apps that rely on attach or detachment dont work.
Tab consumes more battery because it never turns of the spen sensor(Touchwiz turns off spen detection when the spen is inside to not consume battery detecting something is not been used).
 

Aletheia

Senior Member
Aug 28, 2008
143
35
28
@equilibriumtr
It seems that the video streaming problems I been having are related to a HLS bug in android 4.4.3 and onwards (possible addressed in factory release of L), not a bug that's unique to your build. Thought you should know so you don't waste your time researching what in the end is a Google screw up.

@Pazzu510
What about the cm s pen add-on ? I don't know about the sensors but at least you can get the attached/detached broadcast.
 
Last edited:

Pazzu510

Senior Member
Dec 10, 2010
317
56
0
@Pazzu510
What about the cm s pen add-on ? I don't know about the sensors but at least you can get the attached/detached broadcast.
@Aletheia
Yeah, that app seems to work, thank you. I was trying to access to the event through the spen sdk which seems to be what is broken. In contrast, other things in the SPen SDK like hover or hover and button press do work. I tried with SPen Launcher which doesn't works either; must be using the sdk too. Thanks a lot.
 
Last edited:

equilibriumtr

Member
Jan 24, 2011
30
81
0
Lausanne
www.ayberkozgur.com
@equilibriumtr
It seems that the video streaming problems I been having are related to a HLS bug in android 4.3 and onwards (possible addressed in factory release of L), not a bug that's unique to your build. Thought you should know so you don't waste your time researching what in the end is a Google screw up.

@Pazzu510
What about the cm s pen add-on ? I don't know about the sensors but at least you can get the attached/detached broadcast.
Thanks for the heads up about the streaming bug!

About spen, I can tell you that I've confirmed that attach/detach events are emitted from the kernel without problems. I didn't test EventHub though.
 

mifiik

Member
Jan 30, 2013
37
12
0
Thanks for the heads up about the streaming bug!

About spen, I can tell you that I've confirmed that attach/detach events are emitted from the kernel without problems. I didn't test EventHub though.
I can confirm that with the CM spen addon the pen actions are detected propperly and with the Note Buddy you can even achieve almost the same results like with the stock rom. (on attach/detach actions, pop up notification with apps shortcuts on detuch atc.)
 

sdfgsteve

Senior Member
Dec 24, 2013
91
19
0
I think I've found another wee bug. In a completely dark room, with the adaptive brightness on and set to lowest brightness at darkest settings, it doesn't actually go to that setting. From what I can determine, it's sitting at about 20%. Can anyone confirm this?
 

Pazzu510

Senior Member
Dec 10, 2010
317
56
0
I think I've found another wee bug. In a completely dark room, with the adaptive brightness on and set to lowest brightness at darkest settings, it doesn't actually go to that setting. From what I can determine, it's sitting at about 20%. Can anyone confirm this?
That is a setting not a bug. Go to settings, Brightness, adjust and move how much light will be mited for different LUX detected on the sensor; 0 lux is tab used on pitch dark room and 5000lux is as far as the sensor can detect.

Can I flash this on P601 (3G version)?
Yes but 3g functionality is not implemented yet.

About spen, I can tell you that I've confirmed that attach/detach events are emitted from the kernel without problems. I didn't test EventHub though.
@equilibriumtr
I tried recieving the broadcast from the system but there was none detected, or at least apps like Internal Broadcasts Monitor couldnt detect them.
I found this info from the devs of sPen addon and it seems to aknowledge that there are no broadcast to the user apps and must be created with help of the event files from the particular devices.
Explanation of how it works:
The android system automatically adds event files for each input device it detects when being installed. These event files are located in /dev/input/eventX where X denotes a particular device. These event files can be read using native C code for which I use an API provided by Radu Motisan which can be found here and also a bit more information about the event files can be found there. So now using this interface I find the event file for the S Pen and then continously read it to see if the value of the S Pen sensor has been changed. Whenever it changes I broadcast the corresponding Intent which was broadcasted by Samsung so that any applications which work based on that Intent can work even on these ROMs without having to change any of their code.

An interesting thing is that this feature is already present in CyanogenMod i.e S-Pen Power saving mode which disables the s pen touch decoder when the s pen is inserted. I fail to understand why they are not doing the same thing that I am doing through my application and save all of us the trouble.
At least i can now decide that most of the roms out there for the note series have no broadcasts of these events and i have decided to then rely on the cm addon. Still, it would be suuuuper nice to have this broadcast and share them with all the cm roms out there. With that and milti window multitasking on cm, or xposed for that matter, all samsung gimmicks could be cloned on all devices and without touchwiz.
Thanks for your help everyone.
 
Last edited:

sdfgsteve

Senior Member
Dec 24, 2013
91
19
0
That is a setting not a bug. Go to settings, Brightness, adjust and move how much light will be mited for different LUX detected on the sensor; 0 lux is tab used on pitch dark room and 5000lux is as far as the sensor can detect..
As I said, I already set that. Sorry if it was difficult to understand, talking about the two different types of brightness can be confusing to follow.

Not my first rodeo ;) Not that you knew that of course.
 
Last edited:

M.Y.

Senior Member
Oct 14, 2014
98
51
0
Camera

Thanks to all developers for this amazing work.

I install .zip with CWM and everything works but camera.
I install Snap Camera and after reboot I use Snap Camera without any problems.
 
  • Like
Reactions: rootnooby

smac7

Senior Member
Feb 15, 2009
1,361
168
0
Chicago
Alright Dear friends ... Here is the Updater Script which is Edited to be able to flash this Great ROM on TWRP ... So Just Extract the Zip and Replace the " Updater-Script " in the address ( in extracted ROM zip ) " META-inf > com > android > google " and Re compress the ROM and try flashing it using TWRP ... I think it should work Now ... Thanks @Aletheia for providing me the File ... Please inform me if it's OK now or not ... Thanks in advance

NOTE : as our friend @smac7 said , it seems that it doesn't work with TWRP 2.6.3.3

With Best Wishes
Hitman1376​
So maybe i'm just doing it wrong. I tried on 2.8.1.0 and it fails on "updating partition details". Is this the right way? Download rom->unzip rom-> go to META-inf > com >google> android and replace the current updater script with the one you supplied -> rezip -> flash

In android>google there is no updater script in the original rom but the there is and updater script in google>android.
 
  • Like
Reactions: hitman1376