Active Topics

 


Reply
Thread Tools
Posts: 17 | Thanked: 3 times | Joined on Jul 2013 @ Focsani, Romania
#1
My n900 has a problem with the lock switch, it locks itself at random times. On the forum i have found that editing a certain line in mce will disable it.(gpio-switch.kb_lock/state becomes gpio-switch.kb_lockx/state or something). At first i stopped mce;edited mce with nano, started mce, and then the "explorer" app closed,it looked weird and restarted. in Uboot, if i choose 2): the attached kernel, i can get into Maemo 5 loading dots, and then i see a NOKIA screen with the loading dots underneath.
The first option is maemo 5 with cssu kernel, and that doesn`t even get me to the dots, restart. I can acces backupmenu, i don`t have any backups though.
should i reflash? or do i need to edit the mce file back?
i`m sorry if this problem exists on the forum, it is urgent, pc acces is limited,i am at someones
 
Posts: 17 | Thanked: 3 times | Joined on Jul 2013 @ Focsani, Romania
#2
Fixed with flashing... I was hoping to not lose all the programs but I`d rather have a working phone.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
Be careful when editing critical system files like mce.ini or systemui.xml or ...

You could have saved your setup by using rescueOS and re-editing mce, as I believe you messed it up.
Nevertheless thanks for the notice.


I believe what you want to have is:
Code:
echo 1 > /sys/bus/platform/devices/gpio-switch/kb_lock/disable
This executed after every boot (best to be placed in event.d) will disable the lock switch.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 17 | Thanked: 3 times | Joined on Jul 2013 @ Focsani, Romania
#4
Thanks for the reply. I thought of using rescue OS but thought I didn't have the time. It's possible to disable it automatically at startup? I will check it for dust though
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#5
Yeah, sure.

Just put that piece of code as root into a file named "gpio-switch_disabler" (or anything you like) into /etc/event.d folder

Code:
description "disabling gpio switch lock"

author "peterleinchen"

#start on MOUNTS_OK
start on started ke-recv
stop on starting shutdown

pre-start script
  sleep 60	
end script

script
  echo 1 > /sys/bus/platform/devices/gpio-switch/kb_lock/disable
end script
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:42.