Hello to all.
Could somebody here tell me the way ton disable the trackpad sensor on my HTC desire Z??
1 year ago, it began to act on itself, without manual action, as if somebody else was playing with it.... : hard to write any sms because of the permanent moving cursor, and many examples very annoying for any situations.
"I don't believe in ghosts, anyway" was singing The Opposition in 1984,....and so do i.
I don't have any use of this trackpad, except its backlight when charging or missed calls (i'd like to conserve this notification backlight if possible).
The problem is the same since i rooted my phone, on oxygen, cyanogenmod and Jelly baby, so it seems to be a hardware malfunction.
I have looked after all xda forums on this subject, before posting my question here.
Just one talk about editing "vision-keypad-fra.kl" located in : System>usr>keylayout... and no more.
Here is mine:
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Generic key layout file for full alphabetic US English PC style external keyboards.
#
# This file is intentionally very generic and is intended to support a broad rang of keyboards.
# Do not edit the generic key layout to support a specific keyboard; instead, create
# a new key layout file with the required keyboard configuration.
#
key 1 ESCAPE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 12 MINUS
key 13 EQUALS
key 14 DEL
key 15 TAB
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 28 ENTER
key 29 CTRL_LEFT
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 41 GRAVE
key 42 SHIFT_LEFT
key 43 BACKSLASH
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 54 SHIFT_RIGHT
key 55 NUMPAD_MULTIPLY
key 56 ALT_LEFT
key 57 SPACE
key 58 CAPS_LOCK
key 59 F1
key 60 F2
key 61 F3
key 62 F4
key 63 F5
key 64 F6
key 65 F7
key 66 F8
key 67 F9
key 68 F10
key 69 NUM_LOCK
key 70 SCROLL_LOCK
key 71 NUMPAD_7
key 72 NUMPAD_8
key 73 NUMPAD_9
key 74 NUMPAD_SUBTRACT
key 75 NUMPAD_4
key 76 NUMPAD_5
key 77 NUMPAD_6
key 78 NUMPAD_ADD
key 79 NUMPAD_1
key 80 NUMPAD_2
key 81 NUMPAD_3
key 82 NUMPAD_0
key 83 NUMPAD_DOT
# key 84 (undefined)
# key 85 "KEY_ZENKAKUHANKAKU"
key 86 BACKSLASH
key 87 F11
key 88 F12
# key 89 "KEY_RO"
# key 90 "KEY_KATAKANA"
# key 91 "KEY_HIRAGANA"
# key 92 "KEY_HENKAN"
# key 93 "KEY_KATAKANAHIRAGANA"
# key 94 "KEY_MUHENKAN"
key 95 NUMPAD_COMMA
key 96 NUMPAD_ENTER
key 97 CTRL_RIGHT
key 98 NUMPAD_DIVIDE
key 99 SYSRQ
key 100 ALT_RIGHT
# key 101 "KEY_LINEFEED"
key 102 MOVE_HOME
key 103 DPAD_UP
key 104 PAGE_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 107 MOVE_END
key 108 DPAD_DOWN
key 109 PAGE_DOWN
key 110 INSERT
key 111 FORWARD_DEL
# key 112 "KEY_MACRO"
key 113 VOLUME_MUTE
key 114 VOLUME_DOWN
key 115 VOLUME_UP
key 116 POWER WAKE
key 117 NUMPAD_EQUALS
# key 118 "KEY_KPPLUSMINUS"
key 119 BREAK
# key 120 (undefined)
key 121 NUMPAD_COMMA
# key 122 "KEY_HANGEUL"
# key 123 "KEY_HANJA"
# key 124 "KEY_YEN"
key 125 META_LEFT
key 126 META_RIGHT
key 127 MENU WAKE_DROPPED
key 128 MEDIA_STOP
# key 129 "KEY_AGAIN"
# key 130 "KEY_PROPS"
# key 131 "KEY_UNDO"
# key 132 "KEY_FRONT"
# key 133 "KEY_COPY"
# key 134 "KEY_OPEN"
# key 135 "KEY_PASTE"
# key 136 "KEY_FIND"
# key 137 "KEY_CUT"
# key 138 "KEY_HELP"
key 139 MENU WAKE_DROPPED
# key 140 "KEY_CALC"
# key 141 "KEY_SETUP"
key 142 POWER WAKE
key 143 POWER WAKE
# key 144 "KEY_FILE"
# key 145 "KEY_SENDFILE"
# key 146 "KEY_DELETEFILE"
# key 147 "KEY_XFER"
# key 148 "KEY_PROG1"
# key 149 "KEY_PROG2"
key 150 EXPLORER
# key 151 "KEY_MSDOS"
key 152 POWER WAKE
# key 153 "KEY_DIRECTION"
# key 154 "KEY_CYCLEWINDOWS"
key 155 ENVELOPE
key 156 BOOKMARK
# key 157 "KEY_COMPUTER"
key 158 BACK WAKE_DROPPED
key 159 FORWARD
key 160 MEDIA_CLOSE
key 161 MEDIA_EJECT
key 162 MEDIA_EJECT
key 163 MEDIA_NEXT
key 164 MEDIA_PLAY_PAUSE
key 165 MEDIA_PREVIOUS
key 166 MEDIA_STOP
key 167 MEDIA_RECORD
key 168 MEDIA_REWIND
key 169 CALL
# key 170 "KEY_ISO"
# key 171 "KEY_CONFIG"
key 172 HOME
# key 173 "KEY_REFRESH"
# key 174 "KEY_EXIT"
# key 175 "KEY_MOVE"
# key 176 "KEY_EDIT"
key 177 PAGE_UP
key 178 PAGE_DOWN
key 179 NUMPAD_LEFT_PAREN
key 180 NUMPAD_RIGHT_PAREN
# key 181 "KEY_NEW"
# key 182 "KEY_REDO"
# key 183 F13
# key 184 F14
# key 185 F15
# key 186 F16
# key 187 F17
# key 188 F18
# key 189 F19
# key 190 F20
# key 191 F21
# key 192 F22
# key 193 F23
# key 194 F24
# key 195 (undefined)
# key 196 (undefined)
# key 197 (undefined)
# key 198 (undefined)
# key 199 (undefined)
key 200 MEDIA_PLAY
key 201 MEDIA_PAUSE
# key 202 "KEY_PROG3"
# key 203 "KEY_PROG4"
# key 204 (undefined)
# key 205 "KEY_SUSPEND"
# key 206 "KEY_CLOSE"
key 207 MEDIA_PLAY
key 208 MEDIA_FAST_FORWARD
# key 209 "KEY_BASSBOOST"
# key 210 "KEY_PRINT"
key 211 FOCUS
key 212 CAMERA
# key 213 "KEY_SOUND"
# tempEdit for ? button
key 214 BUTTON_R2
key 215 AT
# key 216 "KEY_CHAT"
key 217 SEARCH
# key 218 "KEY_CONNECT"
# key 219 "KEY_FINANCE"
# key 220 "KEY_SPORT"
# key 221 "KEY_SHOP"
# key 222 "KEY_ALTERASE"
# key 223 "KEY_CANCEL"
# key 224 "KEY_BRIGHTNESSDOWN"
# key 225 "KEY_BRIGHTNESSUP"
key 226 HEADSETHOOK
key 256 BUTTON_1
key 257 BUTTON_2
key 258 BUTTON_3
key 259 BUTTON_4
key 260 BUTTON_5
key 261 BUTTON_6
key 262 BUTTON_7
key 263 BUTTON_8
key 264 BUTTON_9
key 265 BUTTON_10
key 266 BUTTON_11
key 267 BUTTON_12
key 268 BUTTON_13
key 269 BUTTON_14
key 270 BUTTON_15
key 271 BUTTON_16
key 288 BUTTON_1
key 289 BUTTON_2
key 290 BUTTON_3
key 291 BUTTON_4
key 292 BUTTON_5
key 293 BUTTON_6
key 294 BUTTON_7
key 295 BUTTON_8
key 296 BUTTON_9
key 297 BUTTON_10
key 298 BUTTON_11
key 299 BUTTON_12
key 300 BUTTON_13
key 301 BUTTON_14
key 302 BUTTON_15
key 303 BUTTON_16
key 304 BUTTON_A
key 305 BUTTON_B
key 306 BUTTON_C
key 307 BUTTON_X
key 308 BUTTON_Y
key 309 BUTTON_Z
key 310 BUTTON_L1
key 311 BUTTON_R1
key 312 BUTTON_L2
key 313 BUTTON_R2
key 314 BUTTON_SELECT
key 315 BUTTON_START
key 316 BUTTON_MODE
key 317 BUTTON_THUMBL
key 318 BUTTON_THUMBR
# key 352 "KEY_OK"
# key 353 "KEY_SELECT"
# key 354 "KEY_GOTO"
# key 355 "KEY_CLEAR"
# key 356 "KEY_POWER2"
# key 357 "KEY_OPTION"
# key 358 "KEY_INFO"
# key 359 "KEY_TIME"
# key 360 "KEY_VENDOR"
# key 361 "KEY_ARCHIVE"
key 362 GUIDE
# key 363 "KEY_CHANNEL"
# key 364 "KEY_FAVORITES"
# key 365 "KEY_EPG"
key 366 DVR
# key 367 "KEY_MHP"
# key 368 "KEY_LANGUAGE"
# key 369 "KEY_TITLE"
# key 370 "KEY_SUBTITLE"
# key 371 "KEY_ANGLE"
# key 372 "KEY_ZOOM"
# key 373 "KEY_MODE"
# key 374 "KEY_KEYBOARD"
# key 375 "KEY_SCREEN"
# key 376 "KEY_PC"
key 377 TV
# key 378 "KEY_TV2"
# key 379 "KEY_VCR"
# key 380 "KEY_VCR2"
# key 381 "KEY_SAT"
# key 382 "KEY_SAT2"
# key 383 "KEY_CD"
# key 384 "KEY_TAPE"
# key 385 "KEY_RADIO"
# key 386 "KEY_TUNER"
# key 387 "KEY_PLAYER"
# key 388 "KEY_TEXT"
# key 389 "KEY_DVD"
# key 390 "KEY_AUX"
# key 391 "KEY_MP3"
# key 392 "KEY_AUDIO"
# key 393 "KEY_VIDEO"
# key 394 "KEY_DIRECTORY"
# key 395 "KEY_LIST"
# key 396 "KEY_MEMO"
# key 397 "KEY_CALENDAR"
# key 398 "KEY_RED"
# key 399 "KEY_GREEN"
# key 400 "KEY_YELLOW"
# key 401 "KEY_BLUE"
key 402 CHANNEL_UP
key 403 CHANNEL_DOWN
# key 404 "KEY_FIRST"
# key 405 "KEY_LAST"
# key 406 "KEY_AB"
# key 407 "KEY_NEXT"
# key 408 "KEY_RESTART"
# key 409 "KEY_SLOW"
# key 410 "KEY_SHUFFLE"
# key 411 "KEY_BREAK"
# key 412 "KEY_PREVIOUS"
# key 413 "KEY_DIGITS"
# key 414 "KEY_TEEN"
# key 415 "KEY_TWEN"
# key 448 "KEY_DEL_EOL"
# key 449 "KEY_DEL_EOS"
# key 450 "KEY_INS_LINE"
# key 451 "KEY_DEL_LINE"
key 464 FUNCTION
key 465 ESCAPE FUNCTION
key 466 F1 FUNCTION
key 467 F2 FUNCTION
key 468 F3 FUNCTION
key 469 F4 FUNCTION
key 470 F5 FUNCTION
key 471 F6 FUNCTION
key 472 F7 FUNCTION
key 473 F8 FUNCTION
key 474 F9 FUNCTION
key 475 F10 FUNCTION
key 476 F11 FUNCTION
key 477 F12 FUNCTION
key 478 1 FUNCTION
key 479 2 FUNCTION
key 480 D FUNCTION
key 481 E FUNCTION
key 482 F FUNCTION
key 483 S FUNCTION
key 484 B FUNCTION
# key 497 KEY_BRL_DOT1
# key 498 KEY_BRL_DOT2
# key 499 KEY_BRL_DOT3
# key 500 KEY_BRL_DOT4
# key 501 KEY_BRL_DOT5
# key 502 KEY_BRL_DOT6
# key 503 KEY_BRL_DOT7
# key 504 KEY_BRL_DOT8
# Joystick and game controller axes.
# Axes that are not mapped will be assigned generic axis numbers by the input subsystem.
axis 0x00 X
axis 0x01 Y
axis 0x02 Z
axis 0x03 RX
axis 0x04 RY
axis 0x05 RZ
axis 0x06 THROTTLE
axis 0x07 RUDDER
axis 0x08 WHEEL
axis 0x09 GAS
axis 0x0a BRAKE
axis 0x10 HAT_X
axis 0x11 HAT_Y
I don't know what line to modify.....
Or are there any available app to turn of this sensor ?
If anyone had a solution, i would be relieve. Thanks
Sorry if my question is posted on a wrong forum.
And sorry for my very bad english, i do my best, i'm french...
hum hum......
bibole said:
hum hum......
Click to expand...
Click to collapse
your not going to get much help here ..this is the HTC One forum
I know nothing about a HTC desire Z
clsA said:
your not going to get much help here ..this is the HTC One forum
I know nothing about a HTC desire Z
Click to expand...
Click to collapse
I apologize, and going to find the good topic.
If someone can tell me which one it is, it would be nice...
bibole said:
I apologize, and going to find the good topic.
If someone can tell me which one it is, it would be nice...
Click to expand...
Click to collapse
Desire Z Forum
http://forum.xda-developers.com/htc-desire-z
Good luck!
Related
I've tried many ROM and always have a problem with my device when touch Home , Back, and Menu button. when I install a new ROM, the home, back, menu does not match my new ROM. so when i press the back button then considered by the android menu button.. i'm sorry i can't explain with good english, so i attach this picture to understand my problem.
{
"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"
}
just lezo ROM by abenagiel is match with my device,
My device is Axioo Vigo 410
just take a look at this
forum.xda-developers.com/showthread.php?t=1715906
next time ask your qitestions in q&a section
I answered your question where you first put it mate..
Soft key patches
http://forum.xda-developers.com/showthread.php?p=27533356
Sent from my A99 using xda app-developers app
Sent from my A99 using xda app-developers app
chrillefr said:
I answered your question where you first put it mate..
Soft key patches
http://forum.xda-developers.com/showthread.php?p=27533356
Sent from my A99 using xda app-developers app
Sent from my A99 using xda app-developers app
Click to expand...
Click to collapse
Thanks all for your reply,I've tried that but it can take effect to my device :crying:
Update:
After i install 2 patch, its working.. thanks all..
hi have similar problems with a huawei Y200.
I have the touchpad replaced because it was broken.
Now, the menu key and back key are swapped.
i tried the patches but it did not work.
I think it is a fault in the new touchpad.
can someone help me?
te files in system\usr\keylayout are
what I have to change to swap the keys
7k_handset.kl
key 226 HEADSETHOOK WAKE
key 116 POWER WAKE
key 107 ENDCALL WAKE_DROPPED
7x27a_kp.kl
# Function keys
key 59 MENU WAKE
key 60 HOME WAKE
key 61 CALL WAKE_DROPPED
key 62 BACK WAKE_DROPPED
key 63 ENDCALL WAKE_DROPPED
key 64 MEDIA_NEXT WAKE
key 65 MEDIA_PLAY_PAUSE WAKE
key 66 MEDIA_PREVIOUS WAKE
key 67 MEDIA_STOP WAKE
key 68 CAMERA
key 87 POWER WAKE
key 217 SEARCH WAKE_DROPPED
# Row 2
key 2 1 WAKE_DROPPED
key 3 2 WAKE_DROPPED
key 4 3 WAKE_DROPPED
key 5 4 WAKE_DROPPED
key 6 5 WAKE_DROPPED
key 7 6 WAKE_DROPPED
key 8 7 WAKE_DROPPED
key 9 8 WAKE_DROPPED
key 10 9 WAKE_DROPPED
key 11 0 WAKE_DROPPED
key 110 MENU WAKE
key 102 HOME WAKE
# Row 3
key 16 Q WAKE_DROPPED
key 17 W WAKE_DROPPED
key 18 E WAKE_DROPPED
key 19 R WAKE_DROPPED
key 20 T WAKE_DROPPED
key 21 Y WAKE_DROPPED
key 22 U WAKE_DROPPED
key 23 I WAKE_DROPPED
key 24 O WAKE_DROPPED
key 25 P WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 104 DPAD_UP WAKE_DROPPED
# Row 4
key 58 SHIFT_LEFT WAKE
key 30 A WAKE_DROPPED
key 31 S WAKE_DROPPED
key 32 D WAKE_DROPPED
key 33 F WAKE_DROPPED
key 34 G WAKE_DROPPED
key 35 H WAKE_DROPPED
key 36 J WAKE_DROPPED
key 37 K WAKE_DROPPED
key 38 L WAKE_DROPPED
key 28 DPAD_CENTER WAKE_DROPPED
key 109 DPAD_DOWN WAKE_DROPPED
# Row 5
key 183 SYM WAKE_DROPPED
key 44 Z WAKE_DROPPED
key 45 X WAKE_DROPPED
key 46 C WAKE_DROPPED
key 47 V WAKE_DROPPED
key 48 B WAKE_DROPPED
key 49 N WAKE_DROPPED
key 50 M WAKE_DROPPED
key 51 COMMA WAKE_DROPPED
key 52 PERIOD WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
# Row 6
key 42 SHIFT_LEFT WAKE_DROPPED
key 464 MENU WAKE_DROPPED
key 29 MENU WAKE_DROPPED
key 56 MENU WAKE_DROPPED
key 151 MENU WAKE_DROPPED
key 57 SPACE WAKE_DROPPED
key 111 DEL WAKE_DROPPED
key 54 SHIFT_RIGHT WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
# Volume keys
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
# Numeric keypad
key 522 STAR WAKE_DROPPED
key 523 POUND WAKE_DROPPED
key 355 DEL WAKE_DROPPED
#L- Mapping
key 139 MENU WAKE
#SEND Key Mapping
key 231 CALL WAKE_DROPPED
# R+ Mapping
key 142 HOME WAKE_DROPPED
AVRCP.kl
key 200 MEDIA_PLAY_PAUSE WAKE
key 201 MEDIA_PLAY_PAUSE WAKE
key 166 MEDIA_STOP WAKE
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
key 168 MEDIA_REWIND WAKE
key 208 MEDIA_FAST_FORWARD WAKE
qwerty.kl
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
# On an AT keyboard: ESC, F10
key 1 BACK WAKE_DROPPED
key 68 MENU WAKE_DROPPED
qwerty_m660.kl
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
# DTS2012012902981 liuyali 20120208 begin
#key 11 0
# DTS2012021801815 wangenhua 20120218 begin
key 11 SMILE WAKE
# DTS2012021801815 wangenhua 20120218 end
# DTS2012012902981 liuyali 20120208 end
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
# DTS2012021801815 wangenhua 20120218 begin
key 17 W WAKE
key 18 E WAKE
key 19 R WAKE
# DTS2012021801815 wangenhua 20120218 end
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
# DTS2012021801815 wangenhua 20120218 begin
key 31 S WAKE
key 32 D WAKE
key 33 F WAKE
# DTS2012021801815 wangenhua 20120218 end
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
# DTS2012021801815 wangenhua 20120218 begin
key 44 Z WAKE
key 45 X WAKE
key 46 C WAKE
# DTS2012021801815 wangenhua 20120218 end
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
# On an AT keyboard: ESC, F10
key 1 BACK WAKE_DROPPED
key 68 MENU WAKE_DROPPED
#DTS2011093003360 wangxiong 20111226 begin
key 194 SYM
key 200 MESSAGE
#DTS2011093003360 wangxiong 20111226 end
surf_keypad.kl
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 HOME WAKE
key 60 SOFT_RIGHT WAKE
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
# /*<DTS2010112900606 zhaoyingchun 20101129 begin*/
key 102 HOME WAKE
# /*DTS2010112900606 zhaoyingchun 20101129 end>*/
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
# /*<DTS2011010604745 yinzhaoyang modify 20110110 begin*/
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# /* DTS2011010604745 yinzhaoyang modify 20110110 end >*/
key 212 SLASH
key 213 DEL WAKE_DROPPED
key 355 DEL WAKE_DROPPED
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 28 ENTER
key 56 ALT_LEFT
key 42 SHIFT_LEFT
key 215 AT
key 57 SPACE
key 53 SLASH
key 127 SYM
key 100 ALT_RIGHT
key 399 GRAVE
i I solved the problem myself
in the file qwerty.kl
key 158 BACK WAKE_DROPPED
in
key 158 MENU WAKE_DROPPED
and
139 MENU WAKE_DROPPED
in
139 BACK WAKE_DROPPED
changed. now everything is as it should be
Has anyone tried this? We have the hardware behind it (twl6040).
I compiled the driver for it, and found the firmware blobs it wanted to load.
Insmod dmesg logs:
Code:
<3>[ 3012.835601] init: no such service 'fm_dl'
<3>[ 3014.386718] init: untracked pid 2225 exited
<3>[ 3015.045623] init: untracked pid 2213 exited
<6>[ 3015.710144] (stc): st_register(8)
<6>[ 3015.710174] (stc): chnl_id list empty :8
<6>[ 3015.710205] (stk) : st_kim_start
<6>[ 3015.710205] Enable wl12xx power
<6>[ 3015.917175] (stk) :ldisc_install = 1
<6>[ 3015.968597] (stc): st_tty_open
<6>[ 3015.968627] (stk) :line discipline installed
<6>[ 3015.969879] (stk) :TIInit_7.6.15.bts
<6>[ 3016.060791] (stc): add_channel_to_table: id 8
<6>[ 3016.726562] (stc): remove_channel_from_table: id 8
<6>[ 3016.726623] (stc): all chnl_ids unregistered
<6>[ 3016.726684] (stk) :ldisc_install = 0
<6>[ 3016.727081] (stc): st_tty_close
<6>[ 3016.729278] Disable wl12xx power
<6>[ 3023.407836] (stc): st_register(8)
<6>[ 3023.407897] (stc): chnl_id list empty :8
<6>[ 3023.407928] (stk) : st_kim_start
<6>[ 3023.407958] Enable wl12xx power
<6>[ 3023.615295] (stk) :ldisc_install = 1
<6>[ 3023.666046] (stc): st_tty_open
<6>[ 3023.666107] (stk) :line discipline installed
<6>[ 3023.666595] (stk) :TIInit_7.6.15.bts
<6>[ 3023.755706] (stc): add_channel_to_table: id 8
The radio app, itself, seems to want to work.
logcat logs
Code:
D/fm_apln ( 2190): freq_set_dlg_shw: Frequency changing to : 106500 KHz
D/fm_srvc ( 2190): dhrdw_freq_set fd: 6 freq: 106500
D/fm_hrdw ( 2190): hrdw_so_freq_set api_hndl: 6 freq: 106500
D/fm_hrdw ( 2190): gen_freq_set freq: 106500 limited: 106500
D/fm_hrdw ( 2190): rds_reset
D/fm_hrdw ( 2190): v4_freq_set: 106500
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_pi_chngd
D/fm_srvc ( 2190): dhrdw_pi_get fd: 6
D/fm_hrdw ( 2190): hrdw_so_pi_get api_hndl: 6 pi: 0x0
D/fm_apln ( 2190): on_pi_chngd
D/fm_hrdw ( 2190): v4_freq_set VIDIOC_S_FREQUENCY success
D/fm_sttn ( 2190): pt_parse: 0
D/fm_apln ( 2190): run_on_pi_chngd run
D/fm_apln ( 2190): run_on_pi_chngd run pi: 0 cs: null
D/fm_apln ( 2190): run_on_pi_chngd run cs: 0000 m_just_pi: true m_just_pi_time: 1395133231826
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_freq_chngd: freq: 106500
D/fm_apln ( 2190): on_freq_chngd freq: 106500
D/fm_apln ( 2190): ui_sttn_info_reset m_freq: 106500 sttn_name: 106.5
D/fm_sttn ( 2190): pt_parse: 0
D/fm_apln ( 2190): sttn_id_tv_set m_station_id: 0 sttn_id: PI: 0
D/fm_apln ( 2190): prefs_set int: last_frequency = 106500
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): dhrdw_pt_get fd: 6
D/fm_hrdw ( 2190): hrdw_so_pt_get api_hndl: 6 pt: -1
D/fm_srvc ( 2190): evt_pt_chngd: -1
D/fm_apln ( 2190): cb_on_pt_chngd
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_ps_chngd:
D/fm_apln ( 2190): run_on_pt_chngd: -1
D/fm_sttn ( 2190): pt_parse: -1
D/fm_sttn ( 2190): pt_parse: -1
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_rt_chngd:
D/fm_hrdw ( 2190): v4_rssi_get VIDIOC_G_TUNER success name: FM type: 1 cap: 0x91 lo: 1400000 hi: 1728000 sc: 3 am: 1 sig: 31097 afc: 0
No audio. I'm not sure if I just need to use a mixer to map it or if I have further driver problems.
Sometimes I get these errors?
Code:
<3>[ 3081.753814] fmdrv: Response SKB ptr not NULL
<3>[ 3081.754577] fmdrv: Response SKB is missing
<3>[ 3082.530303] fmdrv: Response SKB ptr not NULL
<3>[ 3082.531036] fmdrv: Response SKB is missing
Anyway, I'm thinking it's possible with some work.
Well I definitely know that it's going to be possible with a little bit of work.
I managed to get a split second of audio from radio station while I was messing with spirit radio settings and unplugged the headset.
Don't know what I did because I haven't managed to recreate, but it was enough to let me know that it was there and just needs to be mapped.
If anyone else would like to work with me on this, here's the files:
http://www.mediafire.com/download/6296mev66ydlb2y/fm_radio_files.zip
the *.bts files go in /system/etc/firmware
fm_drv.ko goes in /system/lib/modules
omap audio-tool (which I just compiled) goes in /system/xbin
You have to procure spirit FM unlocked (from market or elsewhere).
I'm not going to get involved but that's cool and unexpected. Good stuff.
Well at least I found a practical use for audio-tool. Apparently our sound chipset is normally configured for low-power operation. You can use audio-tool to change this to high performance.
Code:
[email protected]:/ # audio-tool mix
Number of controls: 71
ctl type num name value
0 ENUM 1 DL1 Equalizer Flat response
1 ENUM 1 Sidetone Equalizer Flat response
2 ENUM 1 AMIC Equalizer High-pass 0dB
3 ENUM 1 DMIC Equalizer High-pass 0dB
4 INT 1 DL1 Media Playback Volume 132
5 INT 1 DL1 Tones Playback Volume 0
6 INT 1 DL1 Voice Playback Volume 130
7 INT 1 DL1 Capture Playback Volume 0
8 INT 1 VXREC Media Volume 0
9 INT 1 VXREC Tones Volume 0
10 INT 1 VXREC Voice DL Volume 0
11 INT 1 VXREC Voice UL Volume 0
12 INT 1 AUDUL Media Volume 0
13 INT 1 AUDUL Tones Volume 0
14 INT 1 AUDUL Voice UL Volume 120
15 INT 1 AUDUL Voice DL Volume 0
16 INT 1 SDT UL Volume 101
17 INT 1 SDT DL Volume 120
18 INT 2 DMIC1 UL Volume 120 120
19 INT 2 DMIC2 UL Volume 120 120
20 INT 2 DMIC3 UL Volume 120 120
21 INT 2 AMIC UL Volume 120 120
22 INT 2 BT UL Volume 126 126
23 BOOL 1 DL1 Mono Mixer Off
24 BOOL 1 AUDUL Mono Mixer Off
25 BOOL 1 DL1 MM_EXT Switch Off
26 BOOL 1 DL1 BT_VX Switch Off
27 BOOL 1 DL1 PDM_DL2 Switch On
28 BOOL 1 DL1 PDM Switch Off
29 BOOL 1 Sidetone Mixer Capture Off
30 BOOL 1 Sidetone Mixer Playback On
31 BOOL 1 Capture Mixer Tones Off
32 BOOL 1 Capture Mixer Voice Playback Off
33 BOOL 1 Capture Mixer Voice Capture Off
34 BOOL 1 Capture Mixer Media Playback Off
35 BOOL 1 Voice Capture Mixer Tones Playback Off
36 BOOL 1 Voice Capture Mixer Media Playback Off
37 BOOL 1 Voice Capture Mixer Capture Off
38 BOOL 1 DL1 Mixer Tones Off
39 BOOL 1 DL1 Mixer Voice Off
40 BOOL 1 DL1 Mixer Capture Off
41 BOOL 1 DL1 Mixer Multimedia On
42 ENUM 1 MUX_VX1 None
43 ENUM 1 MUX_VX0 None
44 ENUM 1 MUX_UL11 None
45 ENUM 1 MUX_UL10 None
46 ENUM 1 MUX_UL07 None
47 ENUM 1 MUX_UL06 None
48 ENUM 1 MUX_UL05 None
49 ENUM 1 MUX_UL04 None
50 ENUM 1 MUX_UL03 None
51 ENUM 1 MUX_UL02 None
52 ENUM 1 MUX_UL01 None
53 ENUM 1 MUX_UL00 None
54 INT 2 Capture Preamplifier Volume 1 1
55 INT 2 Capture Volume 4 4
56 INT 2 Aux FM Volume 3 3
57 INT 2 Headset Playback Volume 7 7
58 INT 2 Handsfree Playback Volume 26 26
59 INT 1 Earphone Playback Volume 15
60 ENUM 1 Headset Power Mode Low-Power
61 BOOL 1 Earphone Playback Switch Off
62 BOOL 1 Spk Right Playback Switch On
63 BOOL 1 Spk Left Playback Switch On
64 ENUM 1 Headset Right Playback Off
65 ENUM 1 Headset Left Playback Off
66 ENUM 1 Handsfree Right Playback HF DAC
67 ENUM 1 Handsfree Left Playback HF DAC
68 ENUM 1 Analog Right Capture Route Off
69 ENUM 1 Analog Left Capture Route Off
70 ENUM 1 TWL6040 Power Mode Low-Power
[email protected]:/ # audio-tool mix 70 1
[email protected]:/ # audio-tool mix
Number of controls: 71
ctl type num name value
0 ENUM 1 DL1 Equalizer Flat response
1 ENUM 1 Sidetone Equalizer Flat response
2 ENUM 1 AMIC Equalizer High-pass 0dB
3 ENUM 1 DMIC Equalizer High-pass 0dB
4 INT 1 DL1 Media Playback Volume 132
5 INT 1 DL1 Tones Playback Volume 0
6 INT 1 DL1 Voice Playback Volume 130
7 INT 1 DL1 Capture Playback Volume 0
8 INT 1 VXREC Media Volume 0
9 INT 1 VXREC Tones Volume 0
10 INT 1 VXREC Voice DL Volume 0
11 INT 1 VXREC Voice UL Volume 0
12 INT 1 AUDUL Media Volume 0
13 INT 1 AUDUL Tones Volume 0
14 INT 1 AUDUL Voice UL Volume 120
15 INT 1 AUDUL Voice DL Volume 0
16 INT 1 SDT UL Volume 101
17 INT 1 SDT DL Volume 120
18 INT 2 DMIC1 UL Volume 120 120
19 INT 2 DMIC2 UL Volume 120 120
20 INT 2 DMIC3 UL Volume 120 120
21 INT 2 AMIC UL Volume 120 120
22 INT 2 BT UL Volume 126 126
23 BOOL 1 DL1 Mono Mixer Off
24 BOOL 1 AUDUL Mono Mixer Off
25 BOOL 1 DL1 MM_EXT Switch Off
26 BOOL 1 DL1 BT_VX Switch Off
27 BOOL 1 DL1 PDM_DL2 Switch On
28 BOOL 1 DL1 PDM Switch Off
29 BOOL 1 Sidetone Mixer Capture Off
30 BOOL 1 Sidetone Mixer Playback On
31 BOOL 1 Capture Mixer Tones Off
32 BOOL 1 Capture Mixer Voice Playback Off
33 BOOL 1 Capture Mixer Voice Capture Off
34 BOOL 1 Capture Mixer Media Playback Off
35 BOOL 1 Voice Capture Mixer Tones Playback Off
36 BOOL 1 Voice Capture Mixer Media Playback Off
37 BOOL 1 Voice Capture Mixer Capture Off
38 BOOL 1 DL1 Mixer Tones Off
39 BOOL 1 DL1 Mixer Voice Off
40 BOOL 1 DL1 Mixer Capture Off
41 BOOL 1 DL1 Mixer Multimedia On
42 ENUM 1 MUX_VX1 None
43 ENUM 1 MUX_VX0 None
44 ENUM 1 MUX_UL11 None
45 ENUM 1 MUX_UL10 None
46 ENUM 1 MUX_UL07 None
47 ENUM 1 MUX_UL06 None
48 ENUM 1 MUX_UL05 None
49 ENUM 1 MUX_UL04 None
50 ENUM 1 MUX_UL03 None
51 ENUM 1 MUX_UL02 None
52 ENUM 1 MUX_UL01 None
53 ENUM 1 MUX_UL00 None
54 INT 2 Capture Preamplifier Volume 1 1
55 INT 2 Capture Volume 4 4
56 INT 2 Aux FM Volume 3 3
57 INT 2 Headset Playback Volume 7 7
58 INT 2 Handsfree Playback Volume 26 26
59 INT 1 Earphone Playback Volume 15
60 ENUM 1 Headset Power Mode Low-Power
61 BOOL 1 Earphone Playback Switch Off
62 BOOL 1 Spk Right Playback Switch On
63 BOOL 1 Spk Left Playback Switch On
64 ENUM 1 Headset Right Playback Off
65 ENUM 1 Headset Left Playback Off
66 ENUM 1 Handsfree Right Playback HF DAC
67 ENUM 1 Handsfree Left Playback HF DAC
68 ENUM 1 Analog Right Capture Route Off
69 ENUM 1 Analog Left Capture Route Off
70 ENUM 1 TWL6040 Power Mode High-Performance
[email protected]:/ #
I'm not real sure where to start as far as mapping.
[Q] How to disable Settings -> bluetooth item or in BT settings enable/disable button
How to disable Settings -> bluetooth item or in BT settings enable/disable button,thx
i want to disable bt operating in Settings, but i can't make it work, even i want to disable mBluetoothEnabler which in
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java, i can't hook it at all, is there any other method to make it work using Xposed, thanks!
@override
111 void addPreferencesForActivity() {
112 addPreferencesFromResource(R.xml.bluetooth_settings);
113
114 Activity activity = getActivity();
115
116 Switch actionBarSwitch = new Switch(activity);
117
118 if (activity instanceof PreferenceActivity) {
119 PreferenceActivity preferenceActivity = (PreferenceActivity) activity;
120 if (preferenceActivity.onIsHidingHeaders() || !preferenceActivity.onIsMultiPane()) {
121 final int padding = activity.getResources().getDimensionPixelSize(
122 R.dimen.action_bar_switch_padding);
123 actionBarSwitch.setPaddingRelative(0, 0, padding, 0);
124 activity.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
125 ActionBar.DISPLAY_SHOW_CUSTOM);
126 activity.getActionBar().setCustomView(actionBarSwitch, new ActionBar.LayoutParams(
127 ActionBar.LayoutParams.WRAP_CONTENT,
128 ActionBar.LayoutParams.WRAP_CONTENT,
129 Gravity.CENTER_VERTICAL | Gravity.END));
130 }
131 }
132
133 mBluetoothEnabler = new BluetoothEnabler(activity, actionBarSwitch);
134
135 setHasOptionsMenu(true);
136 }
[Q] How to disable Settings -> bluetooth item or in BT settings enable/disable button
i want to disable bt operating in Settings, but i can't make it work, even i want to disable mBluetoothEnabler which in
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java, i can't hook it at all, is there any other method to make it work using Xposed, thanks!
@override
111 void addPreferencesForActivity() {
112 addPreferencesFromResource(R.xml.bluetooth_setting s);
113
114 Activity activity = getActivity();
115
116 Switch actionBarSwitch = new Switch(activity);
117
118 if (activity instanceof PreferenceActivity) {
119 PreferenceActivity preferenceActivity = (PreferenceActivity) activity;
120 if (preferenceActivity.onIsHidingHeaders() || !preferenceActivity.onIsMultiPane()) {
121 final int padding = activity.getResources().getDimensionPixelSize(
122 R.dimen.action_bar_switch_padding);
123 actionBarSwitch.setPaddingRelative(0, 0, padding, 0);
124 activity.getActionBar().setDisplayOptions(ActionBa r.DISPLAY_SHOW_CUSTOM,
125 ActionBar.DISPLAY_SHOW_CUSTOM);
126 activity.getActionBar().setCustomView(actionBarSwi tch, new ActionBar.LayoutParams(
127 ActionBar.LayoutParams.WRAP_CONTENT,
128 ActionBar.LayoutParams.WRAP_CONTENT,
129 Gravity.CENTER_VERTICAL | Gravity.END));
130 }
131 }
132
133 mBluetoothEnabler = new BluetoothEnabler(activity, actionBarSwitch);
134
135 setHasOptionsMenu(true);
136 }
(Please delete my previous similar thread)
Most modern phones won't reach peak brightness unless they are in direct sunlight (by the light sensor). The slider at maximum brightness isn't really the phone's peak brightness. The slider is "capped" unless one modifies it somehow (the idea is to protect one's eyes, save battery life etc...).
For example, on gsmarena the specs for the S23's display are: "1200 nits (HBM), 1750 nits (peak)".
So, the slider only brings the phone's display to 1200 nits, while the display's full capacity is actually 1750 nits.
I don't want "daddy Samsung" to decide when my phone can reach maximum brightness or not [even if it is to protect my eyes or save battery etc..].
So, how do I enable my phone [in any way necessary] so that I can manually adjust it to maximum/peak brightness via the slider, without being in sunlight
You can just manually play with the settings:
Code:
$ settings list system|grep bright
screen_auto_brightness_adj=0.0
screen_brightness=22
screen_brightness_float=0.08333588
screen_brightness_for_vr=86
screen_brightness_mode=0
$ settings put system screen_brightness 100
Many LCD screens (and eInk screens) use the venerable TI LM3630A chip as LED driver.
Just find under /sys/devices/platform/<somewhere I²C>
I just looked and my Moto G is using a AW99703 instead.
Renate said:
You can just manually play with the settings:
Code:
$ settings list system|grep bright
screen_auto_brightness_adj=0.0
screen_brightness=22
screen_brightness_float=0.08333588
screen_brightness_for_vr=86
screen_brightness_mode=0
$ settings put system screen_brightness 100
Many LCD screens (and eInk screens) use the venerable TI LM3630A chip as LED driver.
Just find under /sys/devices/platform/<somewhere I²C>
I just looked and my Moto G is using a AW99703 instead.
Click to expand...
Click to collapse
Oh, interesting! But I'm in a bit over my head here...
Should I start by looking for a file named "TI LM3630A" somewhere within /sys/devices/platform/ ?
white-k said:
Should I start by looking for a file named "TI LM3630A" somewhere within /sys/devices/platform/ ?
Click to expand...
Click to collapse
It's not that complicated:
You can manually set the brightness with similar settings command (note: brightness could go to 100 or 255 or anything).
You could write a tiny app that just used the Android Java Settings.
Of course you'd have to have <uses-permission android:name="android.permission.WRITE_SETTINGS"/> in your AndroidManifest.xml
You could interact with the Linux driver. You have to enumerate:
Code:
# cd /sys/class/backlight/
# ls -l
lrwxrwxrwx 1 root root 0 1971-12-21 10:12 warm -> ../../devices/soc/c1b6000.i2c/i2c-6/6-0038/backlight/warm
lrwxrwxrwx 1 root root 0 1971-12-21 10:12 white -> ../../devices/soc/c1b6000.i2c/i2c-6/6-0038/backlight/white
# cd warm
# ls -l
-r--r--r-- 1 root root 4096 2023-06-17 09:04 actual_brightness
-rw-r--r-- 1 root root 4096 2023-06-17 09:04 bl_power
-rw-rw-rw- 1 root root 4096 2023-06-17 09:03 brightness
lrwxrwxrwx 1 root root 0 2023-06-17 09:04 device -> ../../../6-0038
-r--r--r-- 1 root root 4096 2023-06-17 09:04 max_brightness
drwxr-xr-x 2 root root 0 2023-06-17 09:04 power
lrwxrwxrwx 1 root root 0 2023-06-17 09:04 subsystem -> ../../../../../../../class/backlight
-r--r--r-- 1 root root 4096 2023-06-17 09:04 type
-rw-r--r-- 1 root root 4096 2023-06-17 09:04 uevent
If you alter this unilaterally you'll have to come up with some way to reconcile it with the settings.
You could interact directly over I²C to the chip itself, but you have to read the datasheet and know what all the numbers mean.
Code:
# ./lights
warm i2c-6 38
00 Control 06
01 Configuration 18
02 Boost Control 58
03 Brightness A 2f
04 Brightness B 6f
05 Current A 0a
06 Current B 0a
07 On/Off Ramp 0a
08 Run Ramp 0a
09 Interrupt Status 02
0a Interrupt Enable 00
0b Fault Status 00
0f Software Reset 00
12 PWM Out Low 00
13 PWM Out High 00
1f Revision 02
50 Filter Strength 00
white i2c-6 38
And you could fry stuff by writing the wrong numbers.
I did all this stuff for an app for my eInk device that uses two color temperatures of backlight. The stock controls were crap.
So I wrote my own that just used /sys/class/backlight/...
Oh, it could be that some limit is set in the DTB itself:
Code:
029260 [email protected] {
029270 compatible = "onyx,lm3630a";
02928c reg = < 0x38 >;
02929c status = "okay";
0292b0 lm3630-vdd-supply = < 0x18b >;
0292c0 lm3630,en_gpio = < 0xa1 0x4c 0x0 >;
0292d8 lm3630,bank_sel = < 0x6 >;
0292e8 lm3630,bank_swap = < 0x0 >;
0292f8 lm3630,linear_output = < 0x0 >;
029308 lm3630,max_current = < 0xa >;
029318 lm3630,default_brightness = < 0x0 >;
029328 lm3630,max_brightness = < 0xff >;
029338 lm3630,pwm_enable = < 0x0 >;
029348 }
Renate said:
It's not that complicated:
You can manually set the brightness with similar settings command (note: brightness could go to 100 or 255 or anything).
You could write a tiny app that just used the Android Java Settings.
Of course you'd have to have <uses-permission android:name="android.permission.WRITE_SETTINGS"/> in your AndroidManifest.xml
Click to expand...
Click to collapse
Wow, this is way beyond my comfort level. I'll ask my programmer friend if he can help me based on what you have written
Much appreciated!