[AT&T, Rogers HTC One X, Telstra One XL] jm_paulin:
I had the problem on stock few month back and thought it was time for me to go custom Rom while wauting for my OnePlus invite. So I installed Cyanogenmod. I did my homework, I think, and got started with CyanogenMod 11 M6. I am:

- Bootloader 2.18.0000 unlocked ( and *** TAMPERED *** ) ? for whatever that means.

- S-ON (so I use `./fastboot flash boot boot.img` everytime)

- non rooted (because some app I need do not like rooted phone), but CWM is quite flexible for that,

I use CWM revovery:recovery-clockwork-touch-6.0.4.8-evita.img

I am relatively novice to all this so you have to be patient as I do not always understand all I am doing. I am using:

gapps-kk-20140105-signed.zip

I installed the following roms:

cm-11-20140504-SNAPSHOT-M6-evita.zip

cm-11-20140608-SNAPSHOT-M7-evita.zip

cm-11-20140708-SNAPSHOT-M8-evita.zip

cm-11-20140804-SNAPSHOT-M9-evita.zip

cm-11-20140829-NIGHTLY-evita.zip

I tend to do the Wipe data and Factory reset on CWM when applying a new ROM.

I still had issues with M6 (automatic switch off). I found that M7 was relatevly stable. With M8 & M9, the device kept turning itself off after a while (anything between 1 min to 2 days). It sometime turn itself off whlibe booting, or even when I am in fastboot.

I managed to get a last_kmsg, and that shows something like this at the end:

...
[ 64.695956] mipi_dsi_clk_enable: dsi_escWclk - clk_set_rate failed
[ 64.712864] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 64.730016] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 64.755379] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
S 64.775644] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 65.549793] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 65.56¶671] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 65.771188] [BATT] batT_worker: total_time since last batt update = 60030 ms. at 65766048772 (2014-08-30 11:14:23.808850840 UTC)
[ 65.786571] [BATT][BMS] FCC=0784000,UC=0,RC=963360,CC=12727,CC_reset=0,RUC=950633,SOC=54,SOC_R=511300,start_percent=-22,end_percent=-22,OCV=3840441,OCV_raw=3855441,rbatt=128,rbatt_sf=0,batt_temp=327,soc_rbatt=0,last_rbatt=-22,V_unusable_uv=3000000,pc_unusable=0,rc_pc=54,scalefactor=100,no_ocv_update_is=0,consistent=0
[ 65.814283] [BATT][BMS] soc = 54 reporting last_soc = 53
[ 65.818922] [BATT][BMS] pm8921_bms_get_batt_soc: state_of_charge=53, store_soc_ui=-1, last_good_ocv_uv=3840441, raw.cc=2957555, stored_cc_uv:2957555, currtime_ms=647990725
[ 65.834274] [BATT][CHG] usbin_ov_irq_state:1 -> 1 [1,0,1]
[ 65.839615] [BATT] remap: no soc drop and no additional 1%, ui:53%
[ 65.845811] [BATT][BMS] pm8921_bms_get_battery_ui_soc: batt_stored_soc: 0
[ 65.852525] [BATT] htc_batt_get_battery_ui_soc: original soc: 53, changed soc: 53. at 65848758982 (2014-08-30 11:14:23.890177113 UTC)
[ 65.866870] [BATT][BMS] soc = 54 reporting last_soc = 53
[ 65.879719] [BATT][CHG] V=3595 mV, I=873 mA, T=32 C, SoC=53%, FCC=1784000, id=256 mV, H=1, P=1, CHG=1, S=0, FSM=0, AC=0, USB=0, DC=0, WLC=0 iusb_ma=100, usb_target_ma=0, OVP=0, UVP=0, TM=0, eoc_count/by_curr=0/0, vbatdet_low=1, is_ac_ST=0, batfet_dis=0x2, pwrsrc_dis=0x1, is_full=0, temp^fault=0, is_bat_warm/cool=0/0, btm_warm/cool=0/0, ichg=797 uA, vph_pwr=3567699 uV, usbin=7572 uV, dcin=11358 uV, pwrsrc_unDer_rating=0, usbin_critical_low_cnt=0, disable_reverse_boost_check=0, flag=0000, hsml_target_ma=0, vin_iin=4400, pj_exist=0
[ 65.893575] mipi_dsi_clk_enable:`dsi_esc_clk - clk_set_rate failed
[ 65.932946] [BATT][CHG] [irq1] 0110 1010 0000 000 [irq2] 0011 0000 1010 011[ 65.939081] KBATT][CHG] CNTRL=0x85,CNTRL_2=0x72,CNTRL_3=0x88,PBL_ACCESS1=0x4,PBL_ACCESS2=0x2¬SYS_CONFIG_1=0x3,SYS_CONFIG_2=0xd8,IBAT_SAFE=0x10,IBAT_MAX=0x10,VBAT_DET=0x7f,VDD_SAFE=0x30,VDD_MAX=0x30,VIN_MIN=0x6,VTRICKLE=0xfa,ITRICKLE=0x8a,ITERM=0x0,TCHG_MAX=0x7f,TWDOG=0xa0,TEMP_THRESH=0x94,COMP_OVR=0x0,BUCK_CTRL_TEST1=0x1,BUCK_CTRL_TEST2=0x8d,BUCK_CTRL_TEST3=0x91,CHG_TEST=0xd0,USB_OVP_CONTROL=0x42,USB_OVP_TEST=0xa0,DC_OVP_CONTROL=0x4c,DC_OVP_TEST=0xa0,REGULATION_LOOP_CONTROL=0x0
[ 65.982755] [BATT][BMS] CONTROL=0x99,OUTPUT0=0x8c,OUTPUT1=0x06,TOLERANCES=0x2f,BMS_TEST1=0x11,OCV_UPDATE_STORAGE=0xa0,read_cc=0x2968823,last_good_ocv=0x3840441,vbatt_for_rbatt=0x0,vsense_for_rbatt=0x0,ocv_for_rbatt=0x0,vsense_avg=0x9493, [irq]0010000
[ 66.004089] [BATT] ID=2,level=53,level_raw=53,vol=3604,temp=327,current=896700,chg_src=0,chg_en=0,pj_src=0,pj_level=0,full_bat=1800,over_vchg=0,batt_state=1,overload=0,ui_chg_full=0 at 66009082497 (2014-08-30 11:14:24.041771801 UTC)
[ 66.025362] [BATT] power_supply_changed: battery at 66018360690 (2014-08-30 11:14:24.063044501 UTC)
[ 66.033633] [BATT] batt_worker: done
[ 66.333923] [LS][cm3629] lightsensor_ioctl LIGHTSENSOR_IOCTL_ENABLE, value = 0
[ 66.344605] [LS][cm3629] lightsensor_disable
[ 66.353792] [LS][cm3629] lightsensor_release
[ 67.020265] mipi_dsi_clk_enable: dsi_esc_clk - clk_set_rate failed
[ 67.030489] mipi_dsi_panel_power: state : 0
[ 67.030489] mipi_dsi_panel_power: off
[ 67.071204] request_suspend_state: sleep (0->3) at 67060082039 (2014-08-30 11:14:25.108886100 UTC)
Y 67.079169] [LS][cm3629] cm3629_early_suspend
[ 67.084205] [PS][cm3621] capella_pl_sensor_lpm_power: enter lmp,OK
[ 67.089638] [TP] synaptics_ts_suspend: enter
[ 67.096871] [DISP] sii9234_early_suspend(isMHL=0)
[ 67.100564] [DISP] MhlTx: SiiMhlTxInitialize
[ 67.109781] [DISP] Drv: SiiMhlTxChipInitialize: 9244
[ 67.114298] [DISP] SiI 9234
[ 67.116496] [DISP] Drv: WriteInitialRegisterValues
[ 67.145368] [DISP] Drv: MHL 1.0 Compliant Clock
[ 67.181168] [DISP] Drv: InitCBuqRegs
[ 67.187913] [DISP] Drv: Switch To 3: pinAllowD3 = 1
[ 67.281580] [BMA250] GSensor Low Power Mode
[ 67.286983] [GSNR][MPU3050][TIMERIRQ]stop_timerirq: data->period = 66, data->run = 1
[ 67.798351] [VIB_PWM]pm8xxx_vib_enable vibrate period: 0 msec
[ 67.803082] [VIB_PM]pm8xxx_vib_sep_off
[ 68.688020] NOHZ: local_softirq_pending 08
[ 68.751747] NOHZ: local_softirq_pending 08
[ 69.146223] NOHZ: local_softirq_pending 08
[ 69.197192] NOHZ: local_softirq_pending 08
[ 69.583946] NOHZ: local_softirq_pending 08
[ 70.700961] NOHZ: local_softirq_pending 08
[ 71.692629] NOHZ: local_softirq_pending 08
[ 71.788768] NOHZ: local_softirq_pending 08
[ 71.804425] NOHZ: local_softirq_pending 08
[ 71.848527] NOHZ: local_softirq_pending 08
[ 72.792339] resout_irq_handler PMIC Initiated shutdown
[ 72.796459] PMIC Initiated shutdown cpu_power_off cpu=0
[ 72.801648] [K] Powering off the SoC
[ 72.805249] Calling scm to disable arbiter
[ 72.809308] SCM returned even when asked to busy loop rc=-4
[ 72.814832] waiting on pmic to shut msm down
=== EOF ===

I also ran an `./adb bugreport` command but that gave me 7MB of stuff I cannot understand..

Any idea to help resolve that automatic power off would be welcome.

Thanks

JM