12/13/2011, 01:28 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
This patch disables the first slider sensor which wakes up the Veer when sliding the keyboard open.
For me it happens very often that I accidentally turn on the Veer by sliding the keyboard minimal open. This bothered me and here is a solution. With the patch the device waits until the second sensor fires before switching on. It's a first beta, test at your own risk!!! Download latest version here: http://omoco.de/de.omoco.veersliderfix_0.0.2.ipk Source: http://omoco.de/veersliderfix_0.0.2.c Let me know if it works, problems or suggestions. Last edited by SebastianHa; 12/27/2011 at 03:49 AM. |
12/13/2011, 02:25 PM
|
#3 (permalink) | |
|
Member
![]() Join Date: Nov 2011
Posts: 139
Likes Received: 8
Thanks: 25
Thanked 5 Times in 4 Posts
|
Quote:
Also found 1 more bug, that screen freezes sometime, lock the screen and unlock it then it works fine. |
|
12/23/2011, 06:21 AM
|
#4 (permalink) |
|
Member
![]() Join Date: Nov 2011
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
I installed this patch via webOS Quick Install. This gave me an error dialog in Windows, with no error message in it. When trying, it seems the patch was installed because the Veer was not powering up when sliding the keyboard a little bit open. But...
The power button did not seems to work consistently anymore, sometimes it works sometimes not. When sliding the keyboard open a bit and closing it again without powering up the Veer it seems that the switch is not closed again, because when powering up with the power button I get the dialog with the three buttons (Airplane Mode, Power and Cancel). So I decided to remove the path, done that via Preware. That seems to go ok. No restart of Luna although. After sometime playing around with this my Veer suddenly freezes, nothing worked anymore, the device was powered up but not responsive any more. Also the power button did not work... Now I had a problem, could not switch off my Veer anymore... I had to disassemble my precious Veer and removed the battery. This patch is definitely not ready to use. (Version 0.0.1) |
12/23/2011, 06:25 AM
|
#5 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
Hi,
thanks for the information! A disassemble was not necessary. If your Veer is stuck... should help. The problem is that the patch removes the button devices and when there is something wrong while deinstalling it can happen that the veer will no longer respond. You also can login via novacom and restart the device via commandline. Just type "restart". Thanks for your report I hope I will find some time to take a look at it soon. |
12/23/2011, 07:11 AM
|
#6 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2009
Location: Berlin
Posts: 2,440
Likes Received: 76
Thanks: 517
Thanked 759 Times in 433 Posts
|
I'm very interested in this "patch". Why is it actually an ipk and not a patch? Wanted to look into the source but am to lazy to unpack :-)
__________________
Dr. Battery |
12/23/2011, 07:13 AM
|
#7 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
It's not a patch-file, it's a small daemon watching for the sensor events and filtering the one sensor out.
here is the source: http://omoco.de/veersliderfix_0.0.1.c |
12/23/2011, 07:17 AM
|
#8 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
Here is how it works exactly:
/dev/input/keypad1 normally is a symbolic link to /dev/input/event0 The daemon removes /dev/input/keypad1 and creates a pipe with the same name. Then it listens to /dev/input/event0. Whenever there is a button-press it looks for keycode 248 (first sensor). It does not redirect this event to the pipe. When there is a 247 it sends the events for both sensors to the pipe becuse the system need both events. (while thinking about this it could be the wrong order of the events which toggles the problems. I will take a look at this) |
12/23/2011, 07:19 AM
|
#9 (permalink) | |
|
Member
![]() ![]() Join Date: Oct 2009
Location: Berlin
Posts: 2,440
Likes Received: 76
Thanks: 517
Thanked 759 Times in 433 Posts
|
Quote:
Good work. Will try it.
__________________
Dr. Battery Last edited by somline; 12/23/2011 at 09:30 AM. |
|
12/23/2011, 07:26 AM
|
#10 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
I definitely send the wrong order
open and close slider normal: sensor1, sensor2, sensor2, sensor1 my damon now: sensor2, sensor1, sensor2, sensor1 That must be fixed! Perhaps this is causing the bug
|
12/23/2011, 07:28 AM
|
#11 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2009
Location: Berlin
Posts: 2,440
Likes Received: 76
Thanks: 517
Thanked 759 Times in 433 Posts
|
Always the same: By explaining how something works to someone, you find bugs ;-)
Thanks Basti. Clever made.
__________________
Dr. Battery |
12/23/2011, 07:39 AM
|
#12 (permalink) | |
|
Member
![]() Join Date: Nov 2011
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
|
|
12/23/2011, 12:58 PM
|
#15 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
|
ok, next try, here is 0.0.2 which hopefully fixes the problems. Please test and let me know.
Keep in mind that it is still beta - use at your own risk! REMOVE / DEINSTALL OLD VERSION FIRST! http://omoco.de/de.omoco.veersliderfix_0.0.2.ipk Source: http://omoco.de/veersliderfix_0.0.2.c Last edited by SebastianHa; 12/23/2011 at 01:09 PM. |
12/23/2011, 01:11 PM
|
#16 (permalink) |
|
Member
![]() ![]() Join Date: Oct 2009
Location: Berlin
Posts: 2,440
Likes Received: 76
Thanks: 517
Thanked 759 Times in 433 Posts
|
Seems to work pretty well. Great "patch". Thanks sebastian.
__________________
Dr. Battery |
![]() |
|
| Tags |
| patch, slider, veer |
| Thread Tools | |
| Display Modes | |
|
|



