[Touch HD Android Development] gul_dukat_:
great it works' , thank you OliWe.

but one thing, with kernel modules-2.6.27.46-01147-g8d850db the phone realy power off when i push the power off button. now no more.

(sorry for my english)

some lines of my log:

line 586-588

V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=130, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=907, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 1 name: Headset mic: 0

and line 704-774 ( i plugged the headset in and out)

V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=129, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=935, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=936, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
W/TimedEventQueue( 1243): Event 94 was not found in the queue, already cancelled?
W/BatteryStatsImpl( 1262): Couldn't get kernel wake lock stats
E/Tethering( 1262): attempting to remove unknown iface (usb0), ignoring
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 0 name: Headset mic: 0
D/WifiService( 1262): ACTION_BATTERY_CHANGED pluggedType: 1
W/KeyCharacterMap( 1751): Can't open keycharmap file
W/KeyCharacterMap( 1751): Error loading keycharmap file '/system/usr/keychars/gpio-keys.kcm.bin'. hw.keyboards.65540.devname='gpio-keys'
W/KeyCharacterMap( 1751): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
W/gralloc ( 1262): mHeapSize:33554432
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=130, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=940, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 1 name: Headset mic: 0
I/AudioService( 1262): AudioFocus requestAudioFocus() from android.media.AudioManager@43db2c28com.android.music.MediaPlaybackService$3@43db1d90
I/AudioService( 1262): Remote Control registerMediaButtonEventReceiver() for ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}
W/AudioFlinger( 1243): write blocked for 220 msecs, 2 delayed writes, thread 0xbb38
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=129, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=944, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=945, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
W/TimedEventQueue( 1243): Event 134 was not found in the queue, already cancelled?
I/dalvikvm( 1751): Jit: resizing JitTable from 512 to 1024
I/AudioService( 1262): AudioFocus requestAudioFocus() from android.media.AudioManager@43db2c28com.android.music.MediaPlaybackService$3@43db1d90
I/AudioService( 1262): Remote Control registerMediaButtonEventReceiver() for ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 0 name: Headset mic: 0
I/AudioHardwareMSM72XX( 1243): Routing audio to Speakerphone
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=130, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=946, ACTION=change, SWITCH_NAME=Headset}
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 1 name: Headset mic: 0
I/AudioHardwareMSM72XX( 1243): Routing audio to No microphone Wired Headset (0,8)
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=129, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=947, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=948, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
W/TimedEventQueue( 1243): Event 200 was not found in the queue, already cancelled?
W/BatteryStatsImpl( 1262): Couldn't get kernel wake lock stats
E/Tethering( 1262): attempting to remove unknown iface (usb0), ignoring
D/WifiService( 1262): ACTION_BATTERY_CHANGED pluggedType: 1
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 0 name: Headset mic: 0
I/AudioService( 1262): AudioFocus requestAudioFocus() from android.media.AudioManager@43db2c28com.android.music.MediaPlaybackService$3@43db1d90
I/AudioService( 1262): Remote Control registerMediaButtonEventReceiver() for ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}
I/AudioHardwareMSM72XX( 1243): Routing audio to Speakerphone
V/HeadsetObserver( 1262): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=130, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=952, ACTION=change, SWITCH_NAME=Headset}
W/Vold ( 1238): Ignoring unknown switch 'Headset'
V/HeadsetObserver( 1262): Intent.ACTION_HEADSET_PLUG: state: 1 name: Headset mic: 0
I/AudioHardwareMSM72XX( 1243): Routing audio to No microphone Wired Headset (0,8)
W/TimedEventQueue( 1243): Event 265 was not found in the queue, already cancelled?
W/BatteryStatsImpl( 1262): Couldn't get kernel wake lock stats