Custom kernel for nordic hardware keyboards - Tilt, TyTN II, MDA Vario III Android Development

Here is a kernel (should be up to date with the 31-03-10 kernel from DZO which means bluetooth on Eclair works again) which has the keyboard remapped to better work with Kaisers that are equipped with Nordic keyboards.
I was unable to map the special nordic characters but you can get them by holding down A or O for a couple of seconds.
Everything is mapped as it is printed on the hardware keyboard except the following:
Left softkey = [
Shift->Left softkey = {
Right softkey = ]
Shift->Left softkey = }
Fn->Tab = $
Fn->Enter = %
Fn->L = |
Fn->O = "
Fn->Left = ;
Fn->Right = '
Let me know how it works for you. No NBH's yet (I'm still learning) so it's only for those who use HARET at the moment.
EDIT: Updated kernel! New kernel also maps $ and %. IMPORTANT! Make sure board-kaiser-keypad.atttilt=2 is in your default.txt/startup.txt or you will not get the nordic keymappings
EDIT2: Removed attachment, later version (and NAND) available here: http://forum.xda-developers.com/showthread.php?t=660158

thank you sir.
Trying it at morning...

New version added to first post.

Related

keyboard fix needed!

hi guys, i already attempted to solve my problem by asking in some topics here, but it's like nobody reads my post...
I've downloaded the 6.1 rom update, and wow, thats a beauty, but i have a quite unknown problem with it, i'm using an azerty keyboard version of the excalibur, quite rare in the excalibur world, and, like you will probably gues, the keyboard is typing qwerty, and not azerty...
I looked at keyboard mapping, but thats al for qwerty keyboards, so im nowhere...
sorry for my English it probably sucks cuz i'm just a belgian student
cheers, and thanks!
I will try to look for a fix for this and get back to you as soon as I can. And for your english its okay, I understood what you are looking for.
In the sticky for remapping that you also posted in it says in post #22 that there is a zip file of cabs files for different layouts for different regions. I don't know if they are azerty, but you could start there. If not then in post #27 you could try flashing back to your old original Rom and look for those files and copy or safe them then flash back. Otherwise I would say no 6.1
You may find the person who altered the xT9 to Portugueses may be able to help? Worth a PM.
hey jdoggraz thanks allot man, finally someone who try's to help me!
@pfunkside, i tested those files already, and they didn't work, and about turning back to 6.0: no way! i just like 6.1
@stylez, yeah, maybe, but thats a qwerty keyboard, and with portugueses letters, so it probably won't work...
But, thanks allot so far guys!
if nothing else works, couldnt you just edit the keymap?
gospeed.racer said:
if nothing else works, couldnt you just edit the keymap?
Click to expand...
Click to collapse
Thats why i said about the person who edited to Portugueses as you would just have to edit everything to azerty
it's possible, but i'm a real noob with that, and it's hard to understand how to do it, becaus i'm not english speaking, that's why i'm asking for someone who can do that for me, that should be wonderfull, and help others with the azerty problem.
best regards, Samuel.
here is how the keymap looks, this is an English example. You can see, it even shows you how the values are assigned. You would just need to cross reference what the values are on the different keyboards and change the values to match.
You may get lucky and find someone that has already done this, but if you have a couple hours you could probably get it working pretty easily even if its your first time. Note, you should reboot the device after changing the keymap
Code:
//
// N O T E: This file must be saved as Unicode
//
// This file contains the virtual keys mapping table for the
// Excalibur device. The mapping table is define as follow
//
// VK_TPOUND = 0x78
// VK_TSTAR = 0x77
// VK_TAB = 0x09
//
// We do not support escape value yet. So the key/char values should be
// entered explicitly or by encoding start with 0x
//
// Format:
// {VK VK' CH1 CH2}
// VK -> value from keyboard driver
// VK' -> printed on keys
// CH1 -> symbols produced by Fn + key
// CH2 -> symbols in 123 mode
// KeyIndex -> matched the kdb key index, 0xff -> no key index
{Q Q % % 0x00}
{1 W 1 1 0x01}
{2 E 2 2 0x02}
{3 R 3 3 0x03}
{T T + + 0x04}
{Y Y ( ( 0x05}
{U U ) ) 0x06}
{I I - - 0x07}
{O O _ _ 0x08}
{P P " " 0x09}
{0x78 A # # 0x0a} // VK_TPOUND maps to Device Button A
{4 S 4 4 0x0b}
{5 D 5 5 0x0c}
{6 F 6 6 0x0d}
{G G / / 0x0e}
{H H ? ? 0x0f}
{J J @ @ 0x10}
{K K $ $ 0x11}
{L L = = 0x12}
{0x77 Z * * 0x13} // VK_TSTAR maps to Z
{7 X 7 7 0x14}
{8 C 8 8 0x15}
{9 V 9 9 0x16}
{B B ' ' 0x17}
{N N & & 0x18}
{M M ! ! 0x19}
{0xBC , ; ; 0xff} // 0xBC = VK_COMMA
{0xBE . : : 0xff} // 0xBE = VK_PERIOD
{0 0x09 0 0 0xff} // 0x30 = VK_TAB
{0xE9 0xE9 0xC1 0xC1 0xff} // Launch Camera with Fn
yeah, it seams simple, but for me it isn't problem is, i don't really have time to do it, but i'll try soon if i have some time, thanks man!
I also hope i dont kill my machine
shoot, can't fix it... i need a pro!
grtz
someone?
Ummm so did you try to fix it?
yeah, but i'm a real noob and i really dont understand anything of that mapping, i really need a pro, but, you'll probably all think i'm just to lazy to do it by myselve, but i realy don't have time to do it and the skills to do it...
Copy eT9-Full.cab to your device and run it from there - this patch fixes keyboard mapping problems with the original install.
already done that, but thats a patch for qwerty keyboards
come on, there has to be one pro who can fix this?
acropilot said:
already done that, but thats a patch for qwerty keyboards
come on, there has to be one pro who can fix this?
Click to expand...
Click to collapse
Oh so you want the azerty, I will see what I can do and work on this if I have some spare time.
Also, can you please give me the layout of the azerty or of your keyboard like possibly take a picture and post it on here of your keyboard so I can adjust it accordingly.
here you go:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
thanks man, you rock!
outragis said:
Copy eT9-Full.cab to your device and run it from there - this patch fixes keyboard mapping problems with the original install.
Click to expand...
Click to collapse
a question on that:
i have german S620 using german WM6. I'm curious of upgrading to 6.1, but i have a qwertz-keyboard (so german layout model.) is it possible to keep that layout with a cab, too.?
Well, just read the "german fix" thread just below this one, and there seem still to be issues with the layout and some letters not shown in symbols map. .... seems, i gotta keep wm6 for now.

TCPMP v0.81rc1 beta for TouchHD

Hi everybody... I create a CAB file for install TCPMP media player with support HTC Touch HD and still work fine. It suport GAPI but isn`t work on full screen wery well. I`mm not a programmer but as you know how to modifiy "Common.dll" or "gx.dll" files to work GAPI video on full screen properly, it would be nice to make someone...
This CAB contains everything you need to play all known formats and subtitles.
Link to download CAB:
http://www.4shared.com/file/97112995/795ee107/TCPMP_v081RC1Beta_Touch_HD.html
I have installed but mine version work full screen
Yes, but no on GAPI video driver which is fastest. All other video driver work fine on full screen but GAPI not work on full screen properly.
you mean with sub. files?
I also noticed, that GAPI driver is fastest (faster then directdraw) on HD.
But there is no full screen. Can somebody fix this, please.
Because movies are really watchable with GAPi driver.
Thanks
vidojajce said:
you mean with sub. files?
Click to expand...
Click to collapse
Yes, i mean with all sub file formats and all video formats. GAPI is fastest video driver for play video with any sub files, but GAPI is not properly play video at full screen.
My benchmark result in TCPMP with GAPI driver is between 150% of played speed, but full screen not work as reel full screen.
Uhhh... Sorry if my english as bad...
Is there much difference between this version and 0.72RC1 which works fine on the HD?
I think that is v0.72RC1 not support GAPI video?!
Hi
Can't download. Can post the cab here or somewhere else? Preferably not Rapid share..
v0.72RC3 posted here support GAPI and also subtittles (you must use subtittles addon). This is only version that works on qualcomm.
I would like to try this 0.81 version, but I get crash.txt error (same as with 072RC1). Do you know what is problem?
gregy74 said:
v0.72RC3 posted here support GAPI and also subtittles (you must use subtittles addon). This is only version that works on qualcomm.
I would like to try this 0.81 version, but I get crash.txt error (same as with 072RC1). Do you know what is problem?
Click to expand...
Click to collapse
Hi,
Can provide the link?
gregy74 said:
v0.72RC3 posted here support GAPI and also subtittles (you must use subtittles addon). This is only version that works on qualcomm.
I would like to try this 0.81 version, but I get crash.txt error (same as with 072RC1). Do you know what is problem?
Click to expand...
Click to collapse
Do you use a d3dm_ati.dll? If you don`t use this driver, maybe is d3d driver is problem?!
Try to create this file and copy to \Windows folder...
File name: atihwtbl0.txt
--------------------------------------------------------------
//ATI_HW_TBL
[Header] // Header
"Revision"=string:2.30.061208.88258
"OEMID"=dword:0x00000000
"ProductID"=dword:0x00000000
"Date"=dword:0x20060818
[Platform] // Hardware
"CPU"=dword:1
"RDN"=dword:5
"RDF"=dword:5
"RRR"=dword:1
"BusWidth"=dword:16
"InterruptNum"=dword:21
"IntISTPriority"=dword:101
"IntActiveLevel"=dword:0 // active high
"IntTriggerType"=dword:1 // call back trigger
[ASIC]
"ExtMemCfg"=dword:5
"ExtMemEnable"=dword:1
"CoreVoltage"=dword:0x00015000 //1.5V
"ChipPhysAddr"=dword:0x10000000
"VRamAllocCfg"=dword:0
"PM4IdleIntEnable"=dword:0
"PM4RBSize"=dword:11
"ClkXtalFreq"=dword:16000000 //16MHz
"ClkSysFastFreq"=dword:192000000 //PLL2 = 192MHz
"ClkExternalInputFreq"=dword:32768 //src = 32.768kHz
"ClkSysNormXtalSrcDiv"=DWORD:3
"ClkSysFastPllSrcDiv"=DWORD:2
"ClkSysNormPllSrcDiv"=DWORD:14
"ClkSysNormSrc"=DWORD:1
"ClkSysTurboPllSrcDiv"=dword:2
"ClkPixDiv"=DWORD:3 //For LCD 5.3MHz => 16MHz / 3
"ClkPixSrc"=DWORD:0
"ClkPixDiv2"=DWORD:2 //For LCD 8MHz => 16MHz / 2
"ClkPixSrc2"=DWORD:0
"ClkVipDiv"=DWORD:8
"ClkVipSrc"=DWORD:1
"ClkCliDiv"=DWORD:1
"ClkCliSrc"=DWORD:0
[MEMORY]
"MemClkDriveStrength"=dword:0x000000F3 // 0011 1100 1 1 = 0000 1111 0011
"MemAddrDriveStrength"=dword:0x0000030F // 1100 0011 1 1 = 0011 0000 1111
"MemDqDriveStrength"=dword:0x0000030F // 1100 0011 1 1 = 0011 0000 1111
[PowerManagement]
"Enable"=dword:1
"HwAutoModeSwitch"=dword:1
"HwAutoFastTurboSwitch"=dword:0
"ExtMemPowerManagement"=dword:1
[LCD] // LCD
"ResolutionWidth"=dword:240 // 240
"ResolutionHeight"=dword:320 // 320
"ColorDepth"=dword:16
"ColorOrdering"=dword:0
"Rotation"=dword:0
// Panel (240x320)
"LcdFormat"=dword:0x003
"GraphicCtrl"=dword:0x18f1c06
"CrtcTotal"=dword:0x01450117
"ActiveHDisp"=dword:0x00f00000
"ActiveVDisp"=dword:0x01400000
"GraphicVDisp"=dword:0x01400000
"GraphicHDisp"=dword:0x00f00000
"CrtcSS"=dword:0x80f00000
"CrtcLS"=dword:0xa10600fc
"CrtcGS"=dword:0xc0050005
"CrtcVPosGS"=dword:0x01430141
"CrtcGClk"=dword:0x0
"CrtcGOE"=dword:0x0
"CrtcRev"=dword:0x00400008
"CrtcDClk"=dword:0xa0000000
"CrtcDefaultCount"=dword:0
"CrtcFrame"=dword:0x0
"CrtcFrameVPos"=dword:0
"LcddCntl1"=dword:0x0f00000
"LcddCntl2"=dword:0x3ffff
"GenLcdCntl1"=dword:0xa950fd
"GenLcdCntl2"=dword:0x3f000
"LcdBackGroundColor"=dword:0x00ffffff
[LCD2] // LCD
"ResolutionWidth"=dword:240 // 240
"ResolutionHeight"=dword:320 // 320
"ColorDepth"=dword:16
"ColorOrdering"=dword:0
"Rotation"=dword:0
// Panel (240x320) as secondary
"LcdFormat"=dword:0x003
"GraphicCtrl"=dword:0x18f1c06
"CrtcTotal"=dword:0x014f010A
"ActiveHDisp"=dword:0x00fb000b
"ActiveVDisp"=dword:0x01470007
"GraphicVDisp"=dword:0x01470007
"GraphicHDisp"=dword:0x00fb000b
"CrtcSS"=dword:0x800c000b
"CrtcLS"=dword:0xe0050001
"CrtcGS"=dword:0xC0010001
"CrtcVPosGS"=dword:0x0003014f
"CrtcGClk"=dword:0x0
"CrtcGOE"=dword:0x0
"CrtcRev"=dword:0x00400008
"CrtcDClk"=dword:0xa0000000
"CrtcDefaultCount"=dword:0
"CrtcFrame"=dword:0x0
"CrtcFrameVPos"=dword:0
"LcddCntl1"=dword:0x0f00000
"LcddCntl2"=dword:0x3ffff
"GenLcdCntl1"=dword:0xa950fd
"GenLcdCntl2"=dword:0x3f000
"LcdBackGroundColor"=dword:0x00ffffff
[GPIO] // GPIO
"PinUsed"=dword:0xFFFFFFFF
"PinDirection"=dword:0xFFFFFFFF
"PinData"=dword:0x0
"PinPullDown"=dword:0xFFFFFFFF
[SD]
"SdClockRate"=dword:312500 // SD Card Initial Clock Rate (Hz)
"SdCardDetectMethod"=dword:1 // SD Card Detection Method is initialized to polling
[CAMERA]
"CameraFlashGpioPin"=dword:0x11 // GPIO17
"CameraFlashPinPolarity"=dword:0 // Active high
"CameraOutputClkFreq"=dword:0 // Hz
"CameraFlashTrigger"=dword:0 // trigger by VSync
Thank, I will try.
Sian said:
Hi,
Can provide the link?
Click to expand...
Click to collapse
Link for subtittles plugin:
http://sourceforge.net/projects/tcpmpsubssubtit/
You can find program in development and hacking.
I have difficulty downloading this application here in this thread too. Can't someone post it somewhere for downloading?
Download link shagged
For people that are having problems with the download link, it's because of the spaces.
Use this instead...
http://www.easy-share.com/1903736063/TCPMP 081rc1b TouchHD.rar
Am I suppose to register with Easy Share in order to download this? Cos' the 'Free download' timer run up and no button appear for me to start the download.
Sian said:
Am I suppose to register with Easy Share in order to download this? Cos' the 'Free download' timer run up and no button appear for me to start the download.
Click to expand...
Click to collapse
Nope works fine here. Try a reboot, a different browser etc. When the free download timer is up and the "free download" button appears in the same place.
Now I see the button (using IE) but after clicking on the button it brought me to this other page with a 'Download the file' button, but clicking on it didn't bring up the 'save function'??
Can you provide mirror sites pls. Thanks

[prj][XDANDROID][2.1][DEVELOPMENT DISCONTINUED]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CLICK HERE FOR THE XDANDROID 2.2 PROJECT​
XDANDROID 2.1 AOSP
Welcome to the official XDANDROID thread which is dedicated to getting Android running on our beloved HTC devices.
So far devices supported are raphael|fuze|diamond|blackstone|topaz|rhodium
Over at the vogue forums, Zenulator has just released an updated version for Android. Codename Eclair, it brings Android to 2.0.1
Since then it has been bumped up and based upon Manup456 port. Many thanks
Stinebd has recently built an 2.1 AOSP build from source for those who want to use a clean 2.1 build. The current builds are based on the AOSP and we are waiting for 2.2 source
Phhusson: has dedicated most of his time helping users and updating kernel to run Eclair and his work for other msm7k devices. However phhusson is not alone as there are also other members working on this. You can find some of them on http://www.htc-linux.org. I've listed some of the developers i know of that currently are working on and they deserve credits and thanks. We also have to note that before this work done there was quite a substantial number of people starting working on linux for our devices. Without them we may not be where we are today. So respect and credits to everyone involved in working on linux kernel for msm devices.
I am not responsible for any damages or problems your device encounters. The build is relatively safe and shouldn't cause any problems.​
Dedicated threads
Dedicated threads for other devices running XDANDROID
Diamond500
Raphael800
Blackstone
Topaz
RhodiumThread1
RhodiumThread2
xda-developers signatures
For everyone posting on this thread about problems and issues, I urge you to please specify you're device or more conveniently update you're signature in control panel so it always has the details at the bottom of your posts. ​
FAQ
This has lots of Q&A and is recommended to go through before posting bugs and problems
XDANDROID project wiki huge thanks to sd73ta for hosting
Android questions and general FAQ
Connect-utb help section
RaphaelEclair-wiki
Media Scanner fix
For people who have problems with no having no ringtones, notification tones or general music problems look here:
MediaScannerFix
Waiting for SDCard error
For people who have problems with sdcard message, add this to your startup
msmsdcc_1bit msmsdcc_fmax=14000000 msmsdcc_nopwrsave
Overclocking Android on MSM7K
MSM7K Android OverClock
XDANDROID boot-Animation | Wallpaper contest
XDANDROID wallpaper | boot animation contest
TheDeadCPU video for XDANDROID
XDANDROID initial-bootup
XDANDROID booting on HD2 NEW!
Thanks to
phhusson, zenulator, Chamonix, Stinebd, Makkonen, MrPippy, cr2, Markinus, bzo, captainoord, glemsom, balsat and anyone else who contribued or who i forgot
Thanks ben_duder for the awesome sig ​
Donations:
Please consider a donation to the XDANDROID project. We work on this on our spare time, even not on our spare times and every little bit gives us more inspiration and motivation to continue providing you our friends awww* great builds and support ​
​
Thanks to from me and phhusson:
R^7Z | auss81 | Sergej Philipp | Malte Lewan | suksanto | Tyler Brixey | axelo | ElbertF
w3bm4st3r | Kenny Maples | Daniel Krebs | Dan Colardeau | Ghostdogg | Gregory Thomas
Vincent Paoli | nim_ayyan | mindfrost82 | Olivier van der Kruijf | Robert Russell
Kamil Kowalski | Tobias Kästle | Scrog | Mehdi Bouzakri | Jay Onisch | Daren Scroggie
Robert Batty | James Frank | Matthias Helfmann | colo-natas
dcb.insomniacsoft.com | Alexis Perez | Ann Marie Steichmann | Cristian Pereyra
Adam Williamson | Benedikt Wieloch | Brad Stage | Paolo Vernazza | CDK Hosting
Haicheng Wang | Jonas Lejeune | Haicheng Wang | Jonas Lejeune
Adrian Kajda | Wilson Seto | Pedro Aragao | babijoee (yup, myself XD)​
Spread the word about xdandroid, please feel free to use this sig created by ben_duder​​
Working:
Touchscreen:
Vibration:
Capacitive Buttons and Navigation wheel
Keyboard
Radio
Brightness Control: Must turn off autolight in WinMo
GPRS (thanks Phhusson )
Microphone works
Charging (phhusson )
Market
Sound ( Phhusson )
debugging breathing led for sleep mode: lets you know when your device is sleeping. This shouldnt affect your battery life at all.
Wifi: was always on when enabled. Now it is used alot less often so the device will be warm at most. (phhusson)
Task killer app.
Android information program.
Gsensor: fixed
Power collapse
Proximity sensor
ramzswap
idle sleep mode
deep sleep: Remove pm.sleep_mode=X from startup.txt if you have it in your default.txt
Accelerometer fix: Now very accurate and shouldn't cause your device to randomly change view. Thanks to mmone3
sms fix: yep the one you guys have all been waiting for ( thanks phhusson )
Android system wide Mic support. Eg: Voice dialer works. (phhusson)
14.01.10
updated apns.xml ( hopefully this should fix some 3g/GPRS issues people are having )
Fuze keyboard layout: (Stinebd)
Updated generic Raphael layout with better keymapping
15.01.10
Power off should work now (MrPippy)
Tested and working on Raph100. Raph110 doesn't work. Weirdly doesnt work for raph800. Please dont post bugs and errors about this or you will be flamed :3
Keyboard arrows for fuze, raph users should now work. (Stinebd)
Fixed layout for 500,800 CDMA
Mapped PTT button for fuze only. (Stinebd)
16.01.10
Old plus new apns.xml merged plus some extras.This should re-enable data connection people had before but broke now. For people who never had data connection this may help or may not.
New RIL: now has geolocation: (Chamonix)
Apps now separate for people who want to choose what to put in Android. Will be placed within AndroidApps folder
Live Wallpaper ( Battery drainer )
Matrix code
Bubbles
Star field
22.01.10
Proper Backlight control: dimming and controlling brightness. No need to change in WinMo anymore (phhusson)
Updated RIL: force cdma option, for cdma topa/rhod since we have no way to detect that they are cdma
Slow sim option to slow down SIM access, I think this might fix the problem of people having crashing android with bad sims (phhusson)
Updated apps
Startup cmds:
force_cdma=1
slow_sim=<time in microsecond to wait between every SIM access)
24.01.10
Clean Build
AndroidApps now consists of 4 folders
Ring Delay set to 0 from 3000 milliseconds
Updated startup configs
System is definantly faster when stripped
(Copy the applications you want to the root of AndroidApps. For people who dont know what core files to copy, i suggest you copy them all)
Core
Games
Media
Others
Nexus One media
Audio
Resource
2.02.10
touch screen calibration tool (makkonen & phhusson)
tilt2 keymap (adamw)
sensors for rhod/topa
LedEffect included in apps for diam/raph (chamonix)
Update by leobaillard
04.02.10
ShootMe ( AndroidApp to take screenshot via shaking phone )
Merging the massive apns.xml direcly pulled from my nexus one into current one. I hope fixes data for some people
Overall smoother scrolling. (Stinebd)
Rhod210 keylayout (adamw)
Double RAM implement in kernel.
08.02.10
hw3d ( MrPippy & Phhusson )
Ramzswap: ramzswap settings from user.eclair.conf are applied ( Phhusson )
Wifi changes ( Phhusson )
No longer need wifi calibration file. it's readen from nand, and is written to data.img ( Phhusson )
Updated ledeffects ( Chamonix )
Calibration file will be removed in future XDANDROID packages.
27.02.10
Bluetooth via new rootfs
Use Home++ as base launcher
Battery Indicator to show 1% increments in notification panel ( Note to ignore it in advanced task killer to keep service alive )
Topaz sensors added ( Markinus )
Latest updated rootfs
Removed gtalk, googlevoice for a very special members request
Added Genie widgit ( thanks for wpbcubsfan for extracting from nexus one )
Changed default lcd.density to 240. Majority android devices are using it even my nexus one
1.03.10
Slightly updated raph800 startup.txt ( Makkonen )
Slightly updated apns list for cdma networks ( Makkonen )
Readded gtalk, gservices apks
Removed topaz custom g-sensor and integrated with default one ( Markinus )
Updated Topaz startup.txt
Fixed Market downloads problem
31.03.10
Added DeskClock apk
Added calculator apk
Readded Gallery apk
Updated Home++, BatteryIndicator, Advanced Task Killer, AndroidInfo
Added OI file manager
Removed Astro File manager ( due to trial expiring and long waits )
Added updated version of Facebook
Updated STARTUP CONFIGS
Removed google Maps to save 3mb space
Bundled with balsat zImage autobuilds without debugging for speed
03.05.10
Based on Stinebd MSM 2.1 AOSP XDANDROID
Updated hosts file to block ads in apps (delta_foxtrot2. Updated version by phaelox)
home++, Battery Indicator, IO file Manager, Advanced Task killer, XDA forum app
Updated ledEffects (charmonix)
Nexus Boot Animation
Nexus media
Fixed Startup configs
11.05.10
GPS ( phhusson , cr2, jonpry )
31.5.10
Readded Google Maps since we have GPS support now
Replacing default Music app modd by cacheinjection
Adding new launcher LauncherPro 0.3.0
Removing home++ as i think LauncherPro is quite awesome
Updated xda app, advanced task killer, OI file manager, Battery Indicator
12.6.10
Updated APN list from cynaogen nexus one rom
Using LauncherPro beta as default launcher
Removing default launcher
Updating music application
Removing apps from /system/app to AndroidApps on SD
Implementing test boot animation from lugiber [ NOT FINAL ]
Removing BatteryIndicator as reading are not accurate and always jumping.
Updating startup files
Removing livewallpaper picker and livewallpapers as they dont work at the moment.
Support for non ascii characters
Nordic raph keylayout
Uploading ext2 file for people using ext2
21.6.10
Updated build.prop
Updated Launcherpro to latest
Added libspeech for voice search support
Added 3D driver for 3D support
Removed Advanced Task killer
Not Working
Camera/videorecord
Removed
light sensor
Added but not yet released
Terms and conditions
Enjoy and remember to post some feedback. ​
Downloads
Bundles
21.06.10 | 2.1 builds NEW!
XDANDROID.2.1.AOSP.21.6.10
The latest release of XDANDROID for AOSP 2.1 based on Stinebd AOSP build kitchen.
System
Old builds can be located here
htcandroid.xland.cz
4shared.com
Here is a repositories for older releases of XDANDROID and Android1.6 donut files​
zImage Autobuild: ( glemsom / balsat )
glemsomAutobuilds
balsatAutobuilds
zImage are updated quite often but just because its updated, it doesn't necessarily mean it will work 100%. If a new zImage breaks and doesn't boot; load a previous working zImage. thanks​
Rootfs Autobuild ( Stinebd )
RootfsAutobuilds
Get the latest rootfs here from the rootfs build service provided Stinebd for XDANDROID
Initramfs Autobuilds ( Stinebd )
InitramfsAutobuilds
Get the latest Initramfs here from the Initramfs build service provided Stinebd for XDANDROID
Others
WinMO/Android dual-boot
Yozgatg dual-boot
Yozgatg has released his dual boot WinMo / Android program for everyone to enjoy ​
LiteWM ROM to autoboot linux
LightNHB boot
MichyPrima has created a lite WinMo that automatically loads haret from your SD card. It loads pretty quick and i can confirm it works It has a boot option so just wait until you see Booting countdown and touch the screen.
Reboot, Shutdown, USB mass Storage and Continue Booting Android​
CAB-Install for XDANDROID
Automated cab-install
TheBrilliantMistake has made a convenient program for people out there having installation problems with XDANDROID.
Have a look and see if you like it. If this proves successful we may roll out the updates like this in the future.​
Chamonix ledEffects
LedEffects
LedEffects controls how your device reacts to calls, messages, charging and other phone status'​
Guide
Place everything into the root of your sd card for Raphael and Everything in your internal memory for Diamond. Remember to copy the correct startup from the startup config folder.
It should look like this
--root--
\AndroidApps
\conf
\media
-haret.exe
-initrd.gz
-rootfs.img
-system.ext | system.sqsh
-zImage
-modulesXXXXXXXXXXX
-startup.txt​
Startup|default configs options
Overclocking
acpuclock.oc-freq-khz=XXXXXX ( i use 600000 )
but it very unstable if you try to get higher than 650000-700000
Physical Keyboard layout
physkeyboard=fuze
physkeyboard=raph
physkeyboard=nordic_raph
physkeyboard=tilt2
physkeyboard=rhod210
physkeyboard=rhod100_de
physkeyboard=rhod100_fr
physkeyboard=rhod100_it
physkeyboard=rhod100_uk
physkeyboard=rhod100_nordic
physkeyboard=rhod400
physkeyboard=rhod500
Button wake up
board-htcraphael-navi.wake=X
0 = screen only wakes on power button
1 = wakes on any keypress
Onscreen terminal keyboard
msmvkeyb_toggle= (on/off)
on = displays terminal onscreen keyboard
off = hide terminal onscreen keyboard
Headset
snd.force_headset=X
1=USB headset
2=3.5mm headset
Incall volume adjust
htc_hw.call_vol=X
0-5
Enable/Disable handsfree
htc_hw.handsfree=X
1
0
Recommended best loud and clear voice values are said to be 5/1
htc_hw.call_vol=5
htc_hw.handsfree=1
LCD density / resolution
lcd.density=XXX
210 = 640x480 VGA devices
240 = 800x480 WVGA devices​
Load Haret
Load haret by going into FileExplorer and navigate to where haret is and load it.​
Navigation
Note: This is a dummy screen i took from google images Its not actually looking like this
1. Power Button
Press: Go home screen
Hold: Switch between Application
2. VolUP
Press: Increase ringtone, media and incall volume
3. VolDown
Press: Decrease ringtone, media and incall volume. Can also set vibrate and Silent.
4. Home Button
Press: Open up setting
5. Call Button
Press: Open recent call
Hold: Launch Voice dialer
6. Back Button
Press: Goes back one previous screen
7. Call end Button
press: Turn off display or end phone call
Hold: Set audio on or off, Airplane mode or turn off device
8. Center Button
Press: Accept or select. Also used as scrolling, zoom in or out.
9. Android Menu tab
Pull up or down to open / close Program tab
10. Notification tab
Pull up or down to open / close notification tab
11. USB
Plug in USB for adb, USB debugging, charging
Useful links
XDANDROID Facebook fan page
Stinebd blog
BugFeatures and Request
Phhussons git repo
Phhusson wiki
Nice to see someone contributing for the Raphael side of the forum, as i always felt why is support so good on the Vogue for Android? Why does Sense UI, most Android related etc. work on Vogue, well nvm. Looking towards the new build, nice work.
[email protected]
RAPH110 not working
I had tried it two days ago with kernel 2009-12-13 and the original files and got freeze at the setup screen on my RAPH110.
Procedure was as depicted and after deleting data.img.
At the top of the frozen screen there was the "no network" sign and I did not get the usual sounds of GSM network handshake in my loudspeakers so the hang seems to be in really early stage. That was weird enough to mention because on donut the radio turns on before the GUI comes up.
It could be Android initializing hardware that our kernel does not yet support. All i can think of is GPS and camera. But i'm going to stick with GPS for the time being. As data connections can be disabled and other hardware is at a functional stage.
my device is resetting at the android splashscreen, I had one time where I've seen the setup page. but then freeze and reset...
I don't know if its a problem but my diamond isn't detected in this build, it's detecting a vogue. So probably its loading false drivers?
the recognition is in the rootfs
These are really good news!
I'm glad to see some one looking into this! I own a raph100 and (needless to say) i got no further than you guys. But is there some way i can provide information? I'm no programmer but if there is any way i can help let me know!
/P
will try this on my diam100 ... i will only have to change the system.sqsh right ??? and keep all the other files
TQ
cruzzmz said:
will try this on my diam100 ... i will only have to change the system.sqsh right ??? and keep all the other files
TQ
Click to expand...
Click to collapse
I hope my guide was easy to understand . Its pretty much like any other build. The two main files are system.sqsh and rootfs.img. Kernel is always from glemsom autobuilds and the basefiles should provide the rest.
Razzee said:
my device is resetting at the android splashscreen, I had one time where I've seen the setup page. but then freeze and reset...
I don't know if its a problem but my diamond isn't detected in this build, it's detecting a vogue. So probably its loading false drivers?
the recognition is in the rootfs
Click to expand...
Click to collapse
same behavior when recognizing diamond.
is there a logfile anywhere or an option for one? so that we can see at what task it fails?
You can setup adb, which will let you see what task is being run. I've been reading into it and will set it up soon. As this would surely give us a better detailed diagnosis.
Eclair on RAPH100
Tested on my RAPH100 and got stuck on the setup screen too :-(
Offering a Diam100 to test
Hy guys! I offer a diam100 to test. Im not much of a programmer.
I offer my diam100 to do any test. At the moment i've tried and when i have "android" letters on screen, after 20 seconds the system reboots and enter into Windows mobile again. I'll be awake, every new version i'll try it and post feedbacks. Thanks for building.
Jordi
Spain
pik0n said:
At the moment i've tried and when i have "android" letters on screen, after 20 seconds the system reboots and enter into Windows mobile again.
Click to expand...
Click to collapse
Same problem here, after the SMD ch 0 closing -> opening and SMD ch 0 opening -> opened messages it resets.
I haven't tried the kernel flashing from the androidinstall package, for I'm a bit scared to brick my phone (though I'm not scared to flash it when I know it's quite safe )
Greetz
p.s. running on wm 6.5.3 (28011) if it matters.
Anyone have any luck with ADB, Windows7 and XP both say the android is an unrecognized device and it won't allow me to use the usb_android drivers that came with ADB.
jamen said:
Anyone have any luck with ADB, Windows7 and XP both say the android is an unrecognized device and it won't allow me to use the usb_android drivers that came with ADB.
Click to expand...
Click to collapse
nvm, i was missing 'board-htcraphael.adb=1' in the startup.txt almost got it working now!
it's pity i can not download all files.
Hi, since the kernel is shared between raph, diamond & blackstone, I tried it on my blackstone.
It did not work either, but I managed to save the debug output.
I've attached it here, in case it helps you.
aavan said:
Hi, since the kernel is shared between raph, diamond & blackstone, I tried it on my blackstone.
It did not work either, but I managed to save the debug output.
I've attached it here, in case it helps you.
Click to expand...
Click to collapse
What occurs to me is:
Code:
12-18 13:35:09.058: INFO/ActivityManager(160): Start proc com.android.setupwizard for activity com.android.setupwizard/.SetupWizardActivity: pid=221 uid=10023 gids={3003}
12-18 13:35:09.228: ERROR/jdwp(221): Failed sending reply to debugger: Broken pipe
and later at the end:
Code:
12-18 13:35:17.428: DEBUG/BT HSHFP(210): Starting BluetoothHeadsetService
12-18 13:35:17.478: DEBUG/MobileDataStateTracker(160): default Received state= DISCONNECTED, old= DISCONNECTED, reason= gprsDetached, apnTypeList= default
12-18 13:35:18.438: DEBUG/GoogleLoginService(243): onBind: Intent { cmp=com.google.android.googleapps/.GoogleLoginService }
12-18 13:35:18.458: DEBUG/dalvikvm(210): GC freed 3317 objects / 237640 bytes in 895ms
12-18 13:35:18.528: WARN/GoogleLoginService(243): Device has no accounts: sending Intent { act=com.google.android.googlelogin.LOGIN_ACCOUNTS_MISSING }
It looks like the last sequence of actions were to find out there is no google account set up, with the reaction to call the Intent googlelogin with LOGIN_ACCOUNTS_MISSING. I guess the right reaction to that would be to request for login data.
Not that does not seem very hardware dependent to me so I'd rather bet the the freeze is due to something initiated earlier, maybe "Starting BluetoothHeadsetService". Looking at what happens in that process (pid=210) this looks like a weird path:
Code:
12-18 13:35:16.008: DEBUG/(210): unable to unlink '/data/data/com.android.phone/shared_prefs/_has_set_default_values.xml.bak': No such file or directory (errno=2)
Where is /data mounted and was there something created in /data/data?

[DEV][08/May/2013]HD2 off-mode Alarm Clock(cLK)[WIP]

This is an experiment - project. It is about adding off-mode alarm clock to the HD2.
(If you don't have cLK installed (at least v1.5.1.4), then this is not applicable for you)
kokotas said:
Is it even possible to include something like auto-power-on in cLK, for alarm clock purposes?
Click to expand...
Click to collapse
After ~10 months, zicoxx asked more or less the same thing:
zicoxx said:
i want to suggest a feature for clk and our hd2..offline alarms
Click to expand...
Click to collapse
So lets see what we have so far...
This project depends on 3 factors, (1)Kernel, (2)Android application, (3)Bootloader.
Kernel
The kernel has a function in arch\arm\mach-msm\pm.c which handles the reboot reason:
Code:
static int msm_reboot_call(struct notifier_block *this, unsigned long code, void *_cmd)
{
if((code == SYS_RESTART) && _cmd) {
char *cmd = _cmd;
if (!strcmp(cmd, "bootloader")) {
restart_reason = 0x77665500;
} else if (!strcmp(cmd, "recovery")) {
restart_reason = 0x77665502;
} else if (!strcmp(cmd, "eraseflash")) {
restart_reason = 0x776655EF;
} else if (!strncmp(cmd, "oem-", 4)) {
unsigned code = simple_strtoul(cmd + 4, 0, 16) & 0xff;
restart_reason = 0x6f656d00 | code;
[COLOR="YellowGreen"]
//This is the proposed patch to our kernel
//(thanks Rick_1995 for suggesting it to bypass the time limit of 255 min)
} else if (!strncmp(cmd, "S", 1)) {
unsigned code = simple_strtoul(cmd + 1, 0, 16) & 0x00ffffff;
restart_reason = 0x53000000 | code;
[/COLOR]
} else if (!strcmp(cmd, "force-hard")) {
restart_reason = 0x776655AA;
} else {
restart_reason = 0x77665501;
}
}
return NOTIFY_DONE;
}
Not being able to compile a new kernel with a change like the green text in the above function, I just used the "oem-" prefix in the reboot reason passed from the application. The downside of this is that we can't set an alarm for more than 255 min from the current time.
Application
The application is able to:
reboot the device using the PowerManager class since it is signed and placed in /system/app:
Code:
//MinutesToSuspend is set using a TimePicker
mPowerManager.reboot("oem-" + MinutesToSuspend);
[COLOR="YellowGreen"]
//In case we have a kernel with the above patch included
mPowerManager.reboot("S" + MinutesToSuspend);[/COLOR]
play the alarm when the device has booted usind the BroadcastReceiver class that will get the BOOT_COMPLETED action.
Bootloader
The bootloader (in this case cLK):
detects the boot reason and decodes the MinutesToSuspend from it and enters a sort of suspend mode with a timeout equal to MinutesToSuspend converted to msec
Code:
if(target_check_reboot_mode() == (target_check_reboot_mode() | 0x6f656d00)) {
char str[16];
char *endptr;
unsigned MinutesToSuspend;
unsigned msecToSuspend = 0;
// Decode the MinutesToSuspend from the reboot_mode
sprintf(str, "%i", (target_check_reboot_mode() ^ 0x6f656d00));
MinutesToSuspend = strtol(str, &endptr, 16);
if (MinutesToSuspend < 3)
msecToSuspend = (MinutesToSuspend * 60000);
else
msecToSuspend = (MinutesToSuspend * 60000) - (120000);
suspend_time = msecToSuspend;
show_multi_boot_screen = 0;
boot_into_recovery = 0;
}
[COLOR="YellowGreen"]
//In case we have a kernel with the above patch included
#define MARK_ALARM_TAG 0x53000000
if(target_check_reboot_mode() & 0xFF000000 == MARK_ALARM_TAG) {
uint32_t MinutesToSuspend;
// Decode the MinutesToSuspend from the reboot_mode
MinutesToSuspend = target_check_reboot_mode() ^ MARK_ALARM_TAG;
if (MinutesToSuspend > 3)
MinutesToSuspend -= 2;
suspend_time = MinutesToSuspend * 60000;
show_multi_boot_screen = 0;
boot_into_recovery = 0;
}
[/COLOR]
if(suspend_time) {
msm_acpu_clock_init(1); // 384MHz (acpu_freq_tbl[0])
//Could try setting cpu clock at 245...
//msm_acpu_clock_init(0); // 245MHz (acpu_freq_tbl[0])
htcleo_suspend(suspend_time);
}
the suspend mode is implemented using this function
Code:
#define DS2746_SAFE_CHG_VOLTAGE 4200 // mV
void htcleo_suspend(unsigned timeout)
{
uint32_t voltage;
//int16_t current;
bool usb_cable_connected;
time_t start_time;
start_time = current_time();
if (timeout)
htcleo_panel_bkl_pwr(0);
do {
//current = ds2746_current(DS2746_I2C_SLAVE_ADDR, 1200);
voltage = ds2746_voltage(DS2746_I2C_SLAVE_ADDR);
usb_cable_connected = htcleo_usb_online();
if (usb_cable_connected) {
if (voltage < DS2746_SAFE_CHG_VOLTAGE) {
// If battery needs charging, set new charger state
if (htcleo_ac_online()) {
if (htcleo_charger_state() != CHG_AC ) {
writel(0x00080000, USB_USBCMD);
ulpi_write(0x48, 0x04);
htcleo_set_charger(CHG_AC);
}
} else {
if (htcleo_charger_state() != CHG_USB_LOW ) {
writel(0x00080001, USB_USBCMD);
mdelay(10);
htcleo_set_charger(CHG_USB_LOW);
}
}
// Led = solid amber
if (htcleo_notif_led_mode != 2)
thread_resume(thread_create("htcleo_notif_led_set_mode_2",
&htcleo_notif_led_set_mode,
(void *)2,
HIGH_PRIORITY,
DEFAULT_STACK_SIZE));
} else {
// Battery is full
if(timeout) {
// Set charger state to CHG_OFF_FULL_BAT
if (htcleo_charger_state() != CHG_OFF_FULL_BAT ) {
writel(0x00080001, USB_USBCMD);
mdelay(10);
htcleo_set_charger(CHG_OFF_FULL_BAT);
}
// and turn led solid green
if (htcleo_usb_online() && (htcleo_notif_led_mode != 1))
thread_resume(thread_create("htcleo_notif_led_set_mode_1",
&htcleo_notif_led_set_mode,
(void *)1,
HIGH_PRIORITY,
DEFAULT_STACK_SIZE));
} else {
// exit while if we don't have a timeout
break;
}
}
} else {
// Set charger state to CHG_OFF
if (htcleo_charger_state() != CHG_OFF ) {
writel(0x00080001, USB_USBCMD);
mdelay(10);
htcleo_set_charger(CHG_OFF);
}
// and turn off led
if (htcleo_notif_led_mode != 0)
thread_resume(thread_create("htcleo_notif_led_set_off",
&htcleo_notif_led_set_mode,
(void *)0,
HIGH_PRIORITY,
DEFAULT_STACK_SIZE));
}
// While in loop keep tracking if POWER button is pressed
// in order to (re)boot the device
for (int i=0; i<6; i++) {
if(keys_get_state(KEY_POWER)!=0) {
target_reboot(0);
return;//:)
}
mdelay(96);//total delay ~500ms per loop
}
// And check if timeout exceeded in order to reboot
if (timeout && (current_time() - start_time >= timeout))
target_reboot(0);
} while ( (usb_cable_connected) /* && current >= 0) */
||(timeout) ); // If we have a timeout this while-loop never breaks if we don't reboot.
// Double check voltage
mdelay(10);
voltage = ds2746_voltage(DS2746_I2C_SLAVE_ADDR);
if (voltage < DS2746_SAFE_CHG_VOLTAGE) {
// If battery is not full then
// EITHER the cable is unplugged
// OR the double check of voltage gave us
// a value less than the safe voltage.
// Set charger state to CHG_OFF
writel(0x00080001, USB_USBCMD);
mdelay(10);
htcleo_set_charger(CHG_OFF);
} else {
// If battery is full
// set charger state to CHG_OFF_FULL_BAT
writel(0x00080001, USB_USBCMD);
mdelay(10);
htcleo_set_charger(CHG_OFF_FULL_BAT);
// and turn led solid green
if (htcleo_usb_online() && (htcleo_notif_led_mode != 1))
thread_resume(thread_create("htcleo_notif_led_set_mode_1",
&htcleo_notif_led_set_mode,
(void *)1,
HIGH_PRIORITY,
DEFAULT_STACK_SIZE));
// While usb cable is connected
// keep tracking if POWER button is pressed OR timeout exceeded
// in order to (re)boot the device
while (htcleo_usb_online()) {
if(keys_get_state(KEY_POWER)!=0)
target_reboot(0);
/* if (timeout && (current_time() - start_time >= timeout))
break; */
}
}
// If we've set a timeout and reached it, reboot the device
/* if (timeout && (current_time() - start_time >= timeout))
target_reboot(0); */
// Shutdown the device
enter_critical_section();
platform_exit();
msm_proc_comm(PCOM_POWER_DOWN, 0, 0);
for (;;) ;
}
Any suggestions or observations are welcomed!
This is open for everyone to use or contribute. Source is available at https://github.com/n0d3/HD2_Alarm_Clock
If you have to ask for an apk to test, then you may download this example's apk from here.But don't consider this as an application release thread.
Bazinga
Should I say first or something? Anyway, testing with ~.7 clk now
Thank you!
THANKS KOKOTAS to make it possible also if it is an experiment..
almost you try if it's possible to use it in our beloved hd2
now i try it,and test this version..
however there is an app for samsung phone developer from chainfire team nomoarpowah that use offline charging mode for alarm..
maybe you can check that app to see if can use something
i hope that OUR WONDERFUL DEVELOPER can do another miracle..
I think since Android is between us, make a wake up alarm is really hard to do. Because we need a sub level software such as a boot loader, that listen the internal clock to turn on the device when established. I hope that you will win this challenge bro
All the best !
Although I think this Will be difficult...
zicoxx said:
THANKS KOKOTAS to make it possible also if it is an experiment..
almost you try if it's possible to use it in our beloved hd2
now i try it,and test this version..
however there is an app for samsung phone developer from chainfire team nomoarpowah that use offline charging mode for alarm..
maybe you can check that app to see if can use something
i hope that OUR WONDERFUL DEVELOPER can do another miracle..
Click to expand...
Click to collapse
Chainfire use the charging deamon to include his project. Because we doesnt see source which are availible for the HD2 we couldnt build something like this. Another point would be that the device comes original by windows Mobile so the process completly differs like bootloader/ init by spl/ availible functions !
If you Test chainfire app and read the thread you readout that most of them completly new written coded.
Alarm is integrated into new charging deamon so it doesnt fire device to boot up normal android ...
See it like another very small System work completly alone if device is off (charging)
Sent from my GT-I9300 using xda app-developers app
tb-killa said:
Chainfire use the charging deamon to include his project. Because we doesnt see source which are availible for the HD2 we couldnt build something like this. Another point would be that the device comes original by windows Mobile so the process completly differs like bootloader/ init by spl/ availible functions !
If you Test chainfire app and read the thread you readout that most of them completly new written coded.
Alarm is integrated into new charging deamon so it doesnt fire device to boot up normal android ...
See it like another very small System work completly alone if device is off (charging)
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
If you look closely, It should work already and NOT require any of chainfire's work. cLK is open source, Linux is open source, Android is open source (atleast the part related to this). The only issue you might think of is that the core will be in wfi state instead of pc, unless kokotas has fixed pc in clk.
kokotas said:
Code:
unsigned code = simple_strtoul(cmd + 1, 0, 16) & 0xff000000;
Click to expand...
Click to collapse
Don't you think it should be
Code:
unsigned code = simple_strtoul(cmd + 1, 0, 16) & 0x00FFFFFF;
That's a good point.
I think booting into android to have a ring might be an issue in some cases
(bootloop, long time to boot android itself)
Using a recovery mode to quickly boot into and initiate an alarm that would be more reliable.
... at least I think
nerveless, good job and keep up the good work
Very nice work, seems like more and more people are learning to dev.
Rick_1995 said:
If you look closely, It should work already and NOT require any of chainfire's work. cLK is open source, Linux is open source, Android is open source (atleast the part related to this). The only issue you might think of is that the core will be in wfi state instead of pc, unless kokotas has fixed pc in clk.
Click to expand...
Click to collapse
I think we doesnt have sources of charging deamon for the HD2 right?
If we checked different threads we could read that htc doesnt public sources for Desire, others!
I agree that C(LK) could also do the Same job!
Sent from my GT-I9300 using xda app-developers app
tb-killa said:
I think we doesnt have sources of charging deamon for the HD2 right?
If we checked different threads we could read that htc doesnt public sources for Desire, others!
I agree that C(LK) could also do the Same job!
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
code for charging daemon is not needed....
@kokotas, Why aren't you entering WFI state ?
You should do something like this:
Create a suspend thread and ensure there is no other thread with a higher (or the same) priority.
Inside the thread handle, there should be an infinite loop with something like this:
Code:
int suspend_task(void *args) {
int timeout_ms = (uint32_t) args;
htcleo_panel_bkl_pwr(0);
while( ! (key_pressed(KEY_POWER) && (timeout_ms <= 0)) ) {
if(usb_is_connected())
charge_device();
else
arch_idle(); // WFI
timeout_ms -= 10;
}
reboot();
return 0;
}
#define MARK_ALARM_TAG 0x53000000
void board_init(void) {
.........
uint32_t MinutesToSuspend = target_check_reboot_mode();
if((MinutesToSuspend & 0xFF000000) == MARK_ALARM_TAG) {
MinutesToSuspend &= 0x00FFFFFF;
if (MinutesToSuspend > 3)
MinutesToSuspend -= 2;
thread_create("suspend", suspend_task, (void *) (MinutesToSuspend * 60000) , HIGHEST_PRIORITY, DEFAULT_STACK_SIZE)
}
.........
}
Rick_1995 said:
@kokotas, Why aren't you entering WFI state ?
Click to expand...
Click to collapse
Honestly, never thought of Wait For Interrupt state
I'll rewrite the code based on your example and I'm thinking of creating a new branch in git in order to upload the complete source of latest cLK.
Regards!
kokotas said:
Honestly, never thought of Wait For Interrupt state
I'll rewrite the code based on your example and I'm thinking of creating a new branch in git in order to upload the complete source of latest cLK.
Regards!
Click to expand...
Click to collapse
Thanks, was wanting to update too. Just remember to create a new branch instead of an entirely new repository.
Regards
FYI.
Kernel patch arch\arm\mach-msm\pm.c in the first post has already added into my git.
It was included in my latest ICS kernel r3.6.
https://github.com/tytung/android_k...mmit/23357b2a9d64a076f1b9ac664dae209748fd5ece
tytung said:
FYI.
Kernel patch arch\arm\mach-msm\pm.c in the first post has already added into my git.
It was included in my latest ICS kernel r3.6.
https://github.com/tytung/android_k...mmit/23357b2a9d64a076f1b9ac664dae209748fd5ece
Click to expand...
Click to collapse
Thank you tytung:good:
I changed the relevant source in the application (also updated git repo) and tested successfully.
This also gave me the chance to try something else. Since it makes "oem-" prefix available to be used for other purposes, I've written another application which uses that prefix in reboot_reason for rebooting directly to any extra boot partition, with no need to press any buttons during boot-up.
Will post more info in a separate thread.
EDIT1:
Link
EDIT2:
Rick_1995 said:
Thanks, was wanting to update too. Just remember to create a new branch instead of an entirely new repository.
Regards
Click to expand...
Click to collapse
Just created new branch here.
Regards!
Thank you for your great work.I am trying to make offmode alarm work in clk 1.5.1.5 and nand rom nexushd2 v2.8
After i press set alarm device reboots but then it gives message "error:boot selection not found.an irrecoverable error found" and it boot in clk menu and stays there.I have boot,sboot partition and i select from default kernel the boot partition
clio94 said:
Thank you for your great work.I am trying to make offmode alarm work in clk 1.5.1.5 and nand rom nexushd2 v2.8
After i press set alarm device reboots but then it gives message "error:boot selection not found.an irrecoverable error found" and it boot in clk menu and stays there.I have boot,sboot partition and i select from default kernel the boot partition
Click to expand...
Click to collapse
Hi clio94,
Did you download the SysAlarm2.apk or you're still using the first one (SysAlarm.apk)?
Now that I think of it, I should remove the first one cause it will not work as expected with the last cLK.
Regards!
I tried the first version.The second version work ok.Thank you
clio94 said:
I tried the first version.The second version work ok.Thank you
Click to expand...
Click to collapse
Have you try in nand rom or nativesd ROM?
Thanks!!
Inviato dal mio multiboot HD2

[Help]How to switch hw keyboard language

Hi, i am on stock ics rooted and i need to change my hardware (slide) keyboard language from English to Greek
i navigate to system/usr/keychars/STMPE_keypad.kcm and replace the following lines with success
PHP:
type ALPHA
key A {
label: 'A'
number: '2'
base: 'a'
shift, capslock: 'A'
alt: '!'
shift+alt, capslock+alt: '!'
}
to
type ALPHA
key A {
label: '\u03b1'
number: '2'
base: '\u03b1"
shift, capslock: '\u0391'
alt: '!'
shift+alt, capslock+alt: '!'
}
.....
after that i am not able to write English again with hw keybard,there is any way that i can switch eng to greek without rebooting? thanks !
i also made 2 files STMPE_keypad.kcm.en , STMPE_keypad.kcm.gr
and i execute the following commands witch it works su -c"cat /system/usr/keychars/STMPE_keypad.kcm.en > /system/usr/keychars/STMPE_keypad.kcm"
or su -c"cat /system/usr/keychars/STMPE_keypad.kcm.gr > /system/usr/keychars/STMPE_keypad.kcm"
but it works only for one time if i try to change back to english or greek the keyboard wont read anything new from the file
any idea how to force the system update the hwkeyboard layout more than once without reboot?
thanks

Categories

Resources