webOS Nation Forums >  webOS smartphones (Pre, Pixi, Veer) >  HP Veer > Veer Slider Fix – Patch
Veer Slider Fix – Patch

  Reply
Like Tree2Likes

 
LinkBack Thread Tools Display Modes
Old 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
Default Veer Slider Fix – Patch

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.
SebastianHa is offline   Reply With Quote
Liked by michote likes this.
Old 12/13/2011, 01:55 PM   #2 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

Mmh, for me the veer sometimes does not wake up on the first power-button press. can anyone confirm this?
SebastianHa is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by SebastianHa View Post
Mmh, for me the veer sometimes does not wake up on the first power-button press. can anyone confirm this?
Did not use this patch but it does not work sometimes on first press and have to open the slider.
Also found 1 more bug, that screen freezes sometime, lock the screen and unlock it then it works fine.
devil.insulted is offline   Reply With Quote
Old 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
Default

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)
bhutten is offline   Reply With Quote
Old 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
Default

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.
SebastianHa is offline   Reply With Quote
Old 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
Default

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
somline is offline   Reply With Quote
Old 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
Default

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
SebastianHa is offline   Reply With Quote
Thanked By: somline
Old 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
Default

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)
SebastianHa is offline   Reply With Quote
Thanked By: somline
Old 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
Default

Quote:
Originally Posted by SebastianHa View Post
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
Thats cool. Stealing the event. Thanks for the code and for the app ;-).
Good work. Will try it.
__________________
Dr. Battery

Last edited by somline; 12/23/2011 at 09:30 AM.
somline is offline   Reply With Quote
Old 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
Default

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
SebastianHa is offline   Reply With Quote
Old 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
Default

Always the same: By explaining how something works to someone, you find bugs ;-)
Thanks Basti. Clever made.
__________________
Dr. Battery
somline is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by SebastianHa View Post
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.
Ah, thanks for those tips. Good luck fixing the problem, it seems very reasonable that the sequence of events is the problem.
bhutten is offline   Reply With Quote
Old 12/23/2011, 10:01 AM   #13 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

testing it right now on my veer, will publish results later.
SebastianHa is offline   Reply With Quote
Old 12/23/2011, 11:22 AM   #14 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

mmh, it does not help.

it's mysterious. Some events just do not get fired. They are not even visible in /var/log/messages. That's really strange.
SebastianHa is offline   Reply With Quote
Old 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
Default

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.
SebastianHa is offline   Reply With Quote
Liked by devil.insulted likes this.
Thanked By: devil.insulted
Old 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
Default

Seems to work pretty well. Great "patch". Thanks sebastian.
__________________
Dr. Battery
somline is offline   Reply With Quote
Old 12/23/2011, 01:18 PM   #17 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

We will see if it works for a longer time. I hope so.

AGAIN: it's important to remove the old version first. I just ran into trouble
SebastianHa is offline   Reply With Quote
Old 12/24/2011, 03:23 AM   #18 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

For me it seems to work without problems. So I hopefully found the bug.
SebastianHa is offline   Reply With Quote
Old 12/26/2011, 02:37 AM   #19 (permalink)
Member
 
Join Date: Nov 2011
Posts: 139
Likes Received: 8
Thanks: 25
Thanked 5 Times in 4 Posts
Default

any update on this app sebastian?
devil.insulted is offline   Reply With Quote
Old 12/26/2011, 05:34 AM   #20 (permalink)
Member
 
Join Date: Sep 2009
Posts: 64
Likes Received: 2
Thanks: 0
Thanked 24 Times in 10 Posts
Default

there is version 0.0.2 which works for me without any problems just give it a try.
SebastianHa is offline   Reply With Quote
Reply

 

Tags
patch, slider, veer

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0