Hello, Basically it's singleline modem type and needs some vital extra init commands. Based on nexus one configuration.
Best Lukas
From 08c592a9ff934f5244a783c04d758c3858349b86 Mon Sep 17 00:00:00 2001 From: Lukas-David Gorris <lukas.gor...@gmail.com> Date: Sun, 6 Mar 2011 12:47:56 +0100 Subject: [PATCH] Add htcleo (HTC HD2) config Based on GNUtoo's nexus one config. Tested and working on the device. Known problem: Non working audio routing. --- fsogsmd/conf/htcleo/alsa-default/gsmhandset | 5 ++ fsogsmd/conf/htcleo/alsa-default/gsmheadset | 5 ++ fsogsmd/conf/htcleo/alsa-default/gsmspeaker | 5 ++ fsogsmd/conf/htcleo/alsa-default/headset | 5 ++ fsogsmd/conf/htcleo/alsa-default/stereoout | 5 ++ fsogsmd/conf/htcleo/alsa.conf | 15 +++++++ fsogsmd/conf/htcleo/fsodeviced.conf | 58 +++++++++++++++++++++++++++ fsogsmd/conf/htcleo/fsogsmd.conf | 41 +++++++++++++++++++ fsogsmd/conf/htcleo/fsotdld.conf | 48 ++++++++++++++++++++++ fsogsmd/conf/htcleo/fsousaged.conf | 32 +++++++++++++++ 10 files changed, 219 insertions(+), 0 deletions(-) create mode 100644 fsogsmd/conf/htcleo/alsa-default/gsmhandset create mode 100644 fsogsmd/conf/htcleo/alsa-default/gsmheadset create mode 100644 fsogsmd/conf/htcleo/alsa-default/gsmspeaker create mode 100644 fsogsmd/conf/htcleo/alsa-default/headset create mode 100644 fsogsmd/conf/htcleo/alsa-default/stereoout create mode 100644 fsogsmd/conf/htcleo/alsa.conf create mode 100644 fsogsmd/conf/htcleo/fsodeviced.conf create mode 100644 fsogsmd/conf/htcleo/fsogsmd.conf create mode 100644 fsogsmd/conf/htcleo/fsotdld.conf create mode 100644 fsogsmd/conf/htcleo/fsousaged.conf diff --git a/fsogsmd/conf/htcleo/alsa-default/gsmhandset b/fsogsmd/conf/htcleo/alsa-default/gsmhandset new file mode 100644 index 0000000..bbde0fa --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa-default/gsmhandset @@ -0,0 +1,5 @@ +# scenario for cardname default (4 controls) +1:'PCM Playback Volume':1:-12 +2:'Handset Switch':1:1 +3:'Speaker Switch':1:0 +4:'Headset Switch':1:0 diff --git a/fsogsmd/conf/htcleo/alsa-default/gsmheadset b/fsogsmd/conf/htcleo/alsa-default/gsmheadset new file mode 100644 index 0000000..9b67b50 --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa-default/gsmheadset @@ -0,0 +1,5 @@ +# scenario for cardname default (4 controls) +1:'PCM Playback Volume':1:-12 +2:'Handset Switch':1:0 +3:'Speaker Switch':1:0 +4:'Headset Switch':1:1 diff --git a/fsogsmd/conf/htcleo/alsa-default/gsmspeaker b/fsogsmd/conf/htcleo/alsa-default/gsmspeaker new file mode 100644 index 0000000..fdac6d2 --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa-default/gsmspeaker @@ -0,0 +1,5 @@ +# scenario for cardname default (4 controls) +1:'PCM Playback Volume':1:-3 +2:'Handset Switch':1:0 +3:'Speaker Switch':1:1 +4:'Headset Switch':1:0 diff --git a/fsogsmd/conf/htcleo/alsa-default/headset b/fsogsmd/conf/htcleo/alsa-default/headset new file mode 100644 index 0000000..9b67b50 --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa-default/headset @@ -0,0 +1,5 @@ +# scenario for cardname default (4 controls) +1:'PCM Playback Volume':1:-12 +2:'Handset Switch':1:0 +3:'Speaker Switch':1:0 +4:'Headset Switch':1:1 diff --git a/fsogsmd/conf/htcleo/alsa-default/stereoout b/fsogsmd/conf/htcleo/alsa-default/stereoout new file mode 100644 index 0000000..fdac6d2 --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa-default/stereoout @@ -0,0 +1,5 @@ +# scenario for cardname default (4 controls) +1:'PCM Playback Volume':1:-3 +2:'Handset Switch':1:0 +3:'Speaker Switch':1:1 +4:'Headset Switch':1:0 diff --git a/fsogsmd/conf/htcleo/alsa.conf b/fsogsmd/conf/htcleo/alsa.conf new file mode 100644 index 0000000..b71cb5f --- /dev/null +++ b/fsogsmd/conf/htcleo/alsa.conf @@ -0,0 +1,15 @@ +[alsa] +cardname = default +default = scenario.stereoout + +# GSM +[scenario.gsmspeaker] + +[scenario.gsmheadset] + +[scenario.gsmhandset] + +# PCM +[scenario.stereoout] + +[scenario.headset] diff --git a/fsogsmd/conf/htcleo/fsodeviced.conf b/fsogsmd/conf/htcleo/fsodeviced.conf new file mode 100644 index 0000000..3508048 --- /dev/null +++ b/fsogsmd/conf/htcleo/fsodeviced.conf @@ -0,0 +1,58 @@ +# fsodeviced.conf for HTC Dream aka T-Mobile G1, Google ADP-1 +[logging] +log_level = INFO +log_to = file +log_destination = /var/log/fsodeviced.log + +[fsodevice] + +[Xfsodevice.accelerometer_lis302] +inputnode = /input/event2 +sample_rate = 100 +threshold = 100 +full_scale = 2.3 + +[Xfsodevice.accelerometer] +device_type = lis302 + +[fsodevice.kernel26_display] + +[fsodevice.kernel26_leds] +ignore_by_name = lcd-backlight + +[fsodevice.kernel26_powersupply] + +[fsodevice.kernel26_rfkill] + +[fsodevice.kernel26_rtc] + +#[fsodevice.kernel26_firmwareloader] + +[fsodevice.kernel_info] + +[fsodevice.kernel_input] +report001 = POWER,key,116,1 +report002 = MENU,key,139,1 +report003 = PHONE_ANSWER,key,231,1 +report004 = PHONE_HANGUP,key,107,1 +report005 = HOME,key,102,1 +report006 = BACK,key,158,1 +report007 = VOLUME_UP,key,115,1 +report008 = VOLUME_DOWN,key,114,1 +report009 = CAM_FOCUS,key,211,1 +report010 = CAM_SHOOT,key,212,1 +report011 = KEYBOARD,switch,0,0 +report012 = BALL_X,relative,0,0 +report013 = BALL_Y,relative,1,0 + +[fsodevice.kernel_idle] + +[fsodevice.vibrator_timedoutputclass] + +[fsodevice.player_alsa] + +[fsodevice.router_alsa] + +[fsodevice.audio] +player_type = alsa +router_type = none diff --git a/fsogsmd/conf/htcleo/fsogsmd.conf b/fsogsmd/conf/htcleo/fsogsmd.conf new file mode 100644 index 0000000..257c29a --- /dev/null +++ b/fsogsmd/conf/htcleo/fsogsmd.conf @@ -0,0 +1,41 @@ +####################################################################################### +# FSO GSM Daemon Configuration File -- for SYSTEM INTEGRATORS only +######################################################################################## +[logging] +# Log level: DEBUG, INFO (default), WARNING, ERROR +# Override via environment as FSO_LOG_LEVEL +log_level = DEBUG +# Where to log to: none (default), stderr, stderr:colors, file, syslog +# Override via environment as FSO_LOG_TO +log_to = file +# Log Destination (valid only for log_to = file) +# Override via environment as FSO_LOG_DESTINATION +log_destination = /var/log/fsogsmd.log + +[libfsotransport] +log_level = DEBUG +log_to = file +log_destination = /var/log/fsogsmd.log + +[fsogsm] +modem_access = serial:/dev/smd0:115200 +#modem_type = qualcomm_htc +modem_type = singleline +modem_charset = hex +pdp_type = qmi + +# Global modem init sequence; this is the first sequence that gets sent to the modem after power cycling +modem_init = E0V1;+CMEE=1;+CRC=1;+CSCS="UCS2";@BRIC=0;+GTKC=2;+CLIP=1 + +# Where to store SMS: <path> (default=/tmp/fsogsmd/sms/) +sms_storage_dir = /tmp/fsogsmd/sms/ + +[fsogsm.modem_singleline] +#[fsogsm.modem_qualcomm_htc] +# No settings yet + +[fsogsm.pdp_qmi] +# No settings yet + +[fsogsm.dbus_service] +# No settings yet diff --git a/fsogsmd/conf/htcleo/fsotdld.conf b/fsogsmd/conf/htcleo/fsotdld.conf new file mode 100644 index 0000000..65ea942 --- /dev/null +++ b/fsogsmd/conf/htcleo/fsotdld.conf @@ -0,0 +1,48 @@ +####################################################################################### +# FSO Time Date Location Daemon Configuration File -- for SYSTEM INTEGRATORS only +######################################################################################## +[logging] +# Log level: DEBUG, INFO (default), WARNING, ERROR +# Override via environment as FSO_LOG_LEVEL +log_level = INFO +# Where to log to: none (default), stderr, stderr:colors, file, syslog +# Override via environment as FSO_LOG_TO +log_to = file +# Log Destination (valid only for log_to = file) +# Override via environment as FSO_LOG_DESTINATION +log_destination = /var/log/fsotdld.log + +[fsotdl] +gps_receiver_transport = serial +gps_receiver_port = /dev/smd27 +gps_receiver_speed = 115200 + +[fsotdl.alarm] +# No settings yet + +#[fsotdl.source_dummy] +# No settings yet + +[fsotdl.source_ntp] +# Which server to use; default is 'pool.ntp.org' +server = pool.ntp.org + +[fsotdl.source_gsm] +# No settings yet + +#[fsotdl.provider_gps_nmea] +# No settings yet + +#[fsotdl.provider_gps] +#provider_type = nmea + +[fsotdl.sync_time] +# Which sources to use; available are ntp, gsm, gps, dummy +sources = ntp;gsm +# Which timezone file to update; default is /etc/timezone +timezone_file = /etc/timezone +# Which localtime file to update; default is /etc/localtime +localtime_file = /etc/localtime +# Path to zoneinfo files, default is /usr/share/zoneinfo +zoneinfo_dir = /usr/share/zoneinfo + diff --git a/fsogsmd/conf/htcleo/fsousaged.conf b/fsogsmd/conf/htcleo/fsousaged.conf new file mode 100644 index 0000000..900b335 --- /dev/null +++ b/fsogsmd/conf/htcleo/fsousaged.conf @@ -0,0 +1,32 @@ +####################################################################################### +# FSO Usage Daemon Configuration File -- for SYSTEM INTEGRATORS only +######################################################################################## +[logging] +# Log level: DEBUG, INFO (default), WARNING, ERROR +# Override via environment as FSO_LOG_LEVEL +log_level = INFO +# Where to log to: none (default), stderr, stderr:colors, file, syslog +# Override via environment as FSO_LOG_TO +log_to = file +# Log Destination (valid only for log_to = file) +# Override via environment as FSO_LOG_DESTINATION +log_destination = /var/log/fsousaged.log + +[fsousage] +# Which low level suspend/resume variant to use: none (default), kernel26, kernel26_staysalive, openmoko, palmpre +lowlevel_type = android +# FOR DEBUGGING ONLY: Do not suspend, but instead sleep a couple of seconds +debug_do_not_suspend = 1 +# FOR DEBUGGING ONLY: Enable every registered resource on startup +debug_enable_on_startup = 0 +# FOR DEBUGGING ONLY: Whether resource activation should be synchronized with the registration lifecycle: always (default), startup, shutdown, never +sync_resources_with_lifecycle = always + +[fsousage.lowlevel_android] +# Which inputnode to use for power key wakeup +wakeup_inputnode = 3 +# Key code of power key +wakeup_powerkeycode = 107 + +[fsousage.dbus_service] +# No settings yet -- 1.7.1
_______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland