[GUIDE] enable trackball/pad wake on the latest MIUI builds again

Search This thread

g4rb4g3

Senior Member
Jul 22, 2009
508
288
I think I found an easier way to enable trackball/pad wake again!

1. connect your phone to your pc and open a cmd window
2. execute the following commands:
  1. adb shell
  2. stop
  3. cd /data/data/com.android.providers.settings/databases/
  4. cp settings.db settings.bak
  5. sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',1);"
  6. start
3. thats it, if you want to disable it again do the same again but instead of
sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',1);"
use
sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',0);"

I have found a way to enable trackpad wake on MIUI Roms again! It's a little tricky but it works perfectly.
Things you need:

SQLite Database Browser -> http://sourceforge.net/projects/sqlitebrowser/

Follow these steps exactly:

1. connect your phone to your computer and open a cmd prompt
2. type in the terminal:
Code:
cd %USERPROFILE%\desktop
adb shell stop
adb pull /data/data/com.android.providers.settings/databases/settings.db
3. extract SQLite Database Browser somewhere and start it
4. open your settings.db with SQLite Database Browser (you'll find it on your desktop)
5. Change to "Browse Data" and select the system table
6. add a "New Record"
7. doubleclick the name filed of the new record and write
Code:
trackball_wake_screen
inside. Click Apply Changes!
8. doubleclick the value field of trackball_wake_screen and write
Code:
1
inside. Click Apply Changes!
9. Save the file (maybe you want to make a backup of the original file before this point ;))
10. last step is to copy the file back to your phone:
Code:
adb push settings.db /data/data/com.android.providers.settings/databases/
adb shell start

Now trackpad wake should work again.
 
Last edited:

g4rb4g3

Senior Member
Jul 22, 2009
508
288
Can you do it without using adb, eg. with root explorer on the phone ?
(I am using MIUI on my google N1)

I guess not since android has to be stoped to make this change. (stop command is to shut down android)
But why don't you just enable trackball wake in the settings menu? The Nexus One had always the option for it. The settings app checked the device name and if it wasn't passion (N1) or bravo (Desire) the trackball wake option didn't show up.
So Desire Z (vision) lost trackpad wake. Thats why I was looking for a way to enable it again. But since a few releases this isn't needed anyways.

Sent from my HTC Desire Z using Tapatalk
 

slim_thumb

Senior Member
Mar 19, 2011
181
19
g4rb4g3 said:
But why don't you just enable trackball wake in the settings menu? The Nexus One had always the option for it.

Sorry I looked at the settings menu (under "hardware key setting"), there is no such option.
 

chad24taylor

Senior Member
Sep 18, 2010
273
104
Any chance someone could post step by step instructions on how to do this with sqlite editor on the phone?

EDIT:
Scratch that. Figured it out.
 
Last edited:

g4rb4g3

Senior Member
Jul 22, 2009
508
288
I wonder why people don't use the trackball/pad wake option in the settings menu too....
This was an issue half a year ago but the MIUI team fixed it a few weeks later and since then it works without this.
 
works for me

I have found a way to enable trackpad wake on MIUI Roms again! It's a little tricky but it works perfectly.
Things you need:

SQLite Database Browser -> http://sourceforge.net/projects/sqlitebrowser/

Follow these steps exactly:

1. connect your phone to your computer and open a cmd prompt
2. type in the terminal:
Code:
cd %USERPROFILE%\desktop
adb shell stop
adb pull /data/data/com.android.providers.settings/databases/settings.db
3. extract SQLite Database Browser somewhere and start it
4. open your settings.db with SQLite Database Browser (you'll find it on your desktop)
5. Change to "Browse Data" and select the system table
6. add a "New Record"
7. doubleclick the name filed of the new record and write
Code:
trackball_wake_screen
inside. Click Apply Changes!
8. doubleclick the value field of trackball_wake_screen and write
Code:
1
inside. Click Apply Changes!
9. Save the file (maybe you want to make a backup of the original file before this point ;))
10. last step is to copy the file back to your phone:
Code:
adb push settings.db /data/data/com.android.providers.settings/databases/
adb shell start

Now trackpad wake should work again.

This method worked for me on my HTC Droid Incredible running MIUI 2.11.9. I actually used File Explorer in Android:
1. copied settings.db
2. uploaded it to my PC
3. used SQLite to edit it
4. copied it back to phone
5. backed up settings.db
6. pasted the new file in

Restarted phone and trackball wakes it up now.

Thanks!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    I think I found an easier way to enable trackball/pad wake again!

    1. connect your phone to your pc and open a cmd window
    2. execute the following commands:
    1. adb shell
    2. stop
    3. cd /data/data/com.android.providers.settings/databases/
    4. cp settings.db settings.bak
    5. sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',1);"
    6. start
    3. thats it, if you want to disable it again do the same again but instead of
    sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',1);"
    use
    sqlite3 settings.db "insert into system (name,value) values ('trackball_wake_screen',0);"

    I have found a way to enable trackpad wake on MIUI Roms again! It's a little tricky but it works perfectly.
    Things you need:

    SQLite Database Browser -> http://sourceforge.net/projects/sqlitebrowser/

    Follow these steps exactly:

    1. connect your phone to your computer and open a cmd prompt
    2. type in the terminal:
    Code:
    cd %USERPROFILE%\desktop
    adb shell stop
    adb pull /data/data/com.android.providers.settings/databases/settings.db
    3. extract SQLite Database Browser somewhere and start it
    4. open your settings.db with SQLite Database Browser (you'll find it on your desktop)
    5. Change to "Browse Data" and select the system table
    6. add a "New Record"
    7. doubleclick the name filed of the new record and write
    Code:
    trackball_wake_screen
    inside. Click Apply Changes!
    8. doubleclick the value field of trackball_wake_screen and write
    Code:
    1
    inside. Click Apply Changes!
    9. Save the file (maybe you want to make a backup of the original file before this point ;))
    10. last step is to copy the file back to your phone:
    Code:
    adb push settings.db /data/data/com.android.providers.settings/databases/
    adb shell start

    Now trackpad wake should work again.
    1
    Sorry I looked at the settings menu (under "hardware key setting"), there is no such option.

    Goto Settings - System - Button Settings - Trackball wake

    I can't belive that this doesn't exist on the Nexus One.

    Sent from my HTC Desire Z using Tapatalk
    1
    Hi..
    when I open cmd and I type adb shell... i get this..
    'adb' is not recognized as an internal or external command,
    operable program or batch file.
    1
    HI @The Prince1
    more than likely this is an issue with adb not being full set up on your pc, feel free to look through THIS GUIDE to set up adb and fastboot on your pc
    once working the commands given here should work without a hitch.

    I'm not sure why root explorer isn't able to find your files, using root explorer should to do this should work fine, If you want to do it with this method let me know and i can help, but adb shell is the best way for this in my opinion,

    the next best way, for me anyway, would be with a terminal emulator on your phone (download the one by jack p from the play store - free) then follow the same steps, but this is much easier to execute on a pc

    if you need some more help i would suggest to go HERE and feel free to ask me any further questions if you get stumped
    happy flashing!
    1
    Well this is a good opportunity to learn adb, its rather easy actually. What PC are you using, Linux? Win? 7? 8? Xp?
    Have you ever got adb or fastboot working in the past? If not I'll help you set it up and run the commands, doesn't take long

    Sent from my Nexus 4 using XDA Premium 4 mobile app
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone