maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   [Announce] N900 qtedger (N9 Swipe to N900!) (https://talk.maemo.org/showthread.php?t=90724)

bill_klpd 2013-07-13 22:05

[Announce] N900 qtedger (N9 Swipe to N900!)
 
2 Attachment(s)
The qtedger is an app that gives the ability to have swipe to n900!

Thanks to elros34 , who made this app, now we have a user friendly interface where we can change the behavior of each swipe and choose if we want it or not to run on startup! Furthermore we can now have different profiles for each app so we can have different behavior on each app :D

For installing the qtedger do the followings:

For thumb download the qtedger-1.2+thumb.deb, copy it on emmc of your n900 and write the following on terminal:
Code:

root
cd /home/user/MyDocs
dpkg -i qtedger-1.2+thumb.deb

For non-thumb download the qtedger-1.2.deb, copy it on emmc of your n900 and write the following on terminal:
Code:

root
cd /home/user/MyDocs
dpkg -i qtedger-1.2.deb


Here is a screen of the ui:
http://i1283.photobucket.com/albums/...psf027e471.png



It depends on cssu and on libstdc++6 (>= 4.7.2-0+cssu0)
If you have any problem, be sure that you have installed the cssu and the libstdc++6!
You can see here how to install the cssu and for intsalling the libstdc++6 use this:
Code:

root
apt-get install libstdc++6


elros34 2013-07-13 23:35

Re: (Help) N9 Swipe to N900
 
2 Attachment(s)
Latest and last version.
Now most of the programs may have their own profile.
Close option close all osso-xterm windows and doesn't work on microb instead, better use:
Code:

dbus-send --session --type=method_call --print-reply --dest="com.nokia.osso_browser" /com/nokia/osso_browser/request com.nokia.osso_browser.close_window

bill_klpd 2013-07-13 23:40

Re: (Help) N9 Swipe to N900
 
it looks promising! I think that I am going to try it right now ;) Maybe with some more work and improvements it is goind to be just perfect :D
(What command do I need to write on terminal and run it? :p)

elros34 2013-07-14 00:00

Re: (Help) N9 Swipe to N900
 
first download, go to MyDocs:
cd MyDocs
unpack it:
tar xvzf edge.tar.gz
then:
cd edge
and run:
./edge_detect

bill_klpd 2013-07-14 00:05

Re: (Help) N9 Swipe to N900
 
wow it really works :D
thanks for this elros34!
it seems to work in portrait mode as well ;)
I am already getting used to it :p

elros34 2013-07-14 00:13

Re: (Help) N9 Swipe to N900
 
It's first version so portrait mode it's not supported (only left side works) but maybe in furture

bill_klpd 2013-07-14 00:15

Re: (Help) N9 Swipe to N900
 
I think that both sides worked for me :p

disappear 2013-07-14 06:50

Re: (Help) N9 Swipe to N900
 
Hi elros34,shoud we install some depends for your file,because for my big regret swipe for now didn't hapen on my n900,here output from terminal:
usr/bin/edge # chmod 755 /usr/bin/edge/edge_detect
/usr/bin/edge # /usr/bin/edge/edge_detect
Maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme.
swipe to right: 39
swipe to left: -53
swipe to left: -49
swipe to right: 77
swipe to right: 56
swipe to right: 80
swipe to right: 37
swipe to left: -38
swipe to left: -67
swipe to right: 40
swipe to right: 73
swipe to left: -63
swipe to right: 46
swipe to right: 48
swipe to right: 38
swipe to right: 193
swipe to right: 137
swipe to left: -105
swipe to left: -119
swipe to right: 119
swipe to right: 78
swipe to right: 58
swipe to left: -61
swipe to right: 93
swipe to left: -37
swipe to right: 36
swipe to right: 40

ravi_kumar 2013-07-14 07:37

Re: (Help) N9 Swipe to N900
 
when i run command- ./edge_detect
it shows - Permission denied.
plz help

zlatokosi 2013-07-14 08:05

Re: (Help) N9 Swipe to N900
 
Worked for me. Keep it up, good job!

disappear 2013-07-14 08:38

Re: (Help) N9 Swipe to N900
 
Quote:

orginally posted by ravi_kumar
when i run command- ./edge_detect
it shows - Permission denied.
plz help
sudo gainroot
cp -r /home/user/MyDocs/edge/ /usr/bin/
chmod 755 /usr/bin/edge/edge_detect
/usr/bin/edge/edge_detect
I think maybe my problem comes from my screen protector,@zlatokosi you are with screen protector,or not

bill_klpd 2013-07-14 09:24

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by ravi_kumar (Post 1358790)
when i run command- ./edge_detect
it shows - Permission denied.
plz help

You need to be root for this... Are you root?

bill_klpd 2013-07-14 09:43

Re: (Help) N9 Swipe to N900
 
elros34 I know that this is the first version, but I have some ideas... Is there any way to have different swipe signals to different places? For example, if you are on homescreen and swipe to right it will get you to task manager, and then if you are in the task manager and swipe to right it will get you to menu for example...

ravi_kumar 2013-07-14 10:12

Re: (Help) N9 Swipe to N900
 
still didn't work for me
i tried
sudo gainroot
/home/user # cp -r /home/user/MyDocs/downloads/edge/ /usr/bin/
/home/user # chmod 755 /usr/bin/edge/edge_detect
/home/user # /usr/bin/edge/edge_detect
output was-
Maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme.
on swiping the screen it showed-
swipe to right: 71
swipe to right: 153
swipe to right: 200
swipe to left: -220
swipe to right: 120
swipe to right: 95
swipe to right: 156
swipe to right: 68
any more help...

elros34 2013-07-14 11:29

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by bill_klpd (Post 1358818)
elros34 I know that this is the first version, but I have some ideas... Is there any way to have different swipe signals to different places? For example, if you are on homescreen and swipe to right it will get you to task manager, and then if you are in the task manager and swipe to right it will get you to menu for example...

I'm scared that this app will be too heavy to our n900 but it's clever idea :) I've no clue how to detect where am I - in task manager or in app.
Quote:

Originally Posted by disappear (Post 1358785)
Hi elros34,shoud we install some depends for your file,because for my big regret swipe for now didn't hapen on my n900,here output from terminal:
usr/bin/edge # chmod 755 /usr/bin/edge/edge_detect
/usr/bin/edge # /usr/bin/edge/edge_detect.

Depends: standard qt library and CSSU (I've thumb).
Remember that you CAN'T run this as a root. Do it exactly as I described
ravi_kumar, fourth post.

disappear 2013-07-14 11:37

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34
Depends: standard qt library and CSSU (I've thumb).
Remember that you CAN'T run this as a root. Do it exactly as I described
ravi_kumar, fourth post.
Man,don't think than before i posted my problem,I tried with root and without root,maybe the reason in which hiden success is cssu-thumb2

elros34 2013-07-14 11:42

Re: (Help) N9 Swipe to N900
 
I think CSSU stable it's enough. Try to run script left.sh because it's effect depend on cssu.

bill_klpd 2013-07-14 11:49

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34 (Post 1358840)
I'm scared that this app will be too heavy to our n900 but it's clever idea :) I've no clue how to detect where am I - in task manager or in app.

Depends: standard qt library and CSSU (I've thumb).
Remember that you CAN'T run this as a root. Do it exactly as I described
ravi_kumar, fourth post.

Well I used these commands:
root
cd /home/user/MyDocs/.documents/edge
./edge_detect

This means I used root right :p ?
If yes then it worked as well....
As for the portrait mode, I noticed that it works but not that good from both sides...
Is there any way to add up and down swipe as well??

elros34 did you wrote it on your own or it was something that you found and ported it for n900? did you edit the edge_detect file? Because opening it with qt won't help editing it...

disappear 2013-07-14 11:57

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34
I think CSSU stable it's enough. Try to run script left.sh because it's effect depend on cssu.
It's dosen't matter how I to try to run your script,just i haven't any update from community,by the way thanks for good work,when install cssu or cssu-thumb2,or i shoud to try remove my screen protector,maybe finally my descktop it swipeeeeee

elros34 2013-07-14 11:58

Re: (Help) N9 Swipe to N900
 
bill_klpd, you have right I don't even know that dbus works as a root(sudo gainroot didn't work). Give me time, I works on correct portrait mode and up down swipe.

elros34 2013-07-14 12:01

Re: (Help) N9 Swipe to N900
 
disappear,
Quote:

Originally Posted by disappear (Post 1358785)
swipe to right: 80
swipe to right: 37

Program detect swipe but you don't have patched hildon-desktop (from cssu) so scripts doesn't works

bill_klpd 2013-07-14 12:07

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34 (Post 1358855)
bill_klpd, you have right I don't even know that dbus works as a root(sudo gainroot didn't work). Give me time, I works on correct portrait mode and up down swipe.

Yeah don't worry! :p
Take your time, I know that this is not that easy!
I noticed that in portrait mode, it works better in some places on the sreen, such as when you swipe at the end of the screen.
I also use the cssu(unstable), so I think this is what you will need to get it work...

Edit: I used it with sudo gainroot and it didn't work for me as well.

disappear 2013-07-14 12:13

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34
Program detect swipe but you don't have patched hildon-desktop (from cssu) so scripts doesn't works
Not to bad to editing your first post,about depends,on this way many people not feel confused.
regards

bill_klpd 2013-07-14 12:35

Re: (Help) N9 Swipe to N900
 
elros34 are you editing the edge_detect file as well??

elros34 2013-07-14 13:00

Re: (Help) N9 Swipe to N900
 
1 Attachment(s)
Quote:

Originally Posted by bill_klpd (Post 1358867)
elros34 are you editing the edge_detect file as well??

It's project from scratch.
New version with support orientation, up down swipe. For now without support commands from scripts.

bill_klpd 2013-07-14 13:01

Re: (Help) N9 Swipe to N900
 
wow that was fast :p
it works much better :D
well I was thinking that if we can find out how to add a back signal(there is no back button, and this is going to be difficult), add some effects and find out how to have different swipe signal in different places, then the n900 will look so much like the n9 :D

Can you make it open the Hildon-Status-Menu at the top edge?

bill_klpd 2013-07-15 12:42

Re: (Announce) N9 Swipe to N900
 
First post updated and title changed!

freemangordon 2013-07-15 14:38

Re: [Announce] N9 Swipe to N900
 
Nice job :) .

elros34 2013-07-15 15:51

Re: (Help) N9 Swipe to N900
 
2 Attachment(s)
Quote:

Originally Posted by bill_klpd (Post 1358875)
well I was thinking that if we can find out how to add a back signal(there is no back button, and this is going to be difficult) add some effects

It's simple. Install xdotool and add "xdotool key BackSpace" to settings.ini. I was thinking about nice swipe effect long time ago you can try it's complete useless: Attachment 32689. I was working on merge lipstick with this but now it's too heavy and buggy.
Quote:

Originally Posted by bill_klpd (Post 1358875)
.
Can you make it open the Hildon-Status-Menu at the top edge?

I can't but you can ask in cssu thread.

New Thumb-2 version. I hope that now there will be no random swipe detection.
In settings.ini there is a mistake it should be "xdotool key ctrl+BackSpace" and /apps/osso/key-actions/ctrl_backspace_in_tasknav 2. It allow to gain this effect.

bill_klpd 2013-07-15 16:01

Re: [Announce] N9 Swipe to N900
 
The qtedger works much better I think! Thanks again! Why can't you make it open the Hildon-Status-Menu? Because right now you can only open it on the home screen??

elros34 2013-07-15 16:04

Re: [Announce] N9 Swipe to N900
 
Because I don't know how:).

bill_klpd 2013-07-15 16:06

Re: [Announce] N9 Swipe to N900
 
Aaa ok :p
I don't know how you are making the app, but I assume that you are making it to run a file with the swipe right?
If yes, what about the file: /home/usr/bin/hildon-status-menu.launch ??

elros34 2013-07-15 16:12

Re: [Announce] N9 Swipe to N900
 
When you run this it will create new status-menu and nothing more.

bill_klpd 2013-07-15 16:21

Re: [Announce] N9 Swipe to N900
 
Well I am not sure if I understood what you mean...
Did you tried the /home/usr/bin/hildon-status-menu as well?

elros34 2013-07-15 16:25

Re: [Announce] N9 Swipe to N900
 
I use something like this to show task/app menu.

bill_klpd 2013-07-15 16:27

Re: [Announce] N9 Swipe to N900
 
Ok, I thought you were choosing just a file...

panjgoori 2013-07-15 16:35

Re: [Announce] N9 Swipe to N900
 
you people are just awesome. will check it as soon as my N900 is fully charged.

ravi_kumar 2013-07-15 17:44

Re: (Help) N9 Swipe to N900
 
using qtedger, it detects the left swipe but doesn't opens the task manager

panjgoori 2013-07-15 18:09

Re: [Announce] N9 Swipe to N900
 
tried it. its great. 2 steps in first post are a bit wrong. first of all file name is edge_detect not edge (archive name replaced as when erlos34 uploaded it, its name was edge).

correct unpacking command is tar xvzf edge_detect.tar.gz

and one more thing. edge_detect file doesn't extract in its own folder. so cd edge command is no longer needed until anyone repacks the archive to add a folder. only ./edge_detect is needed.

expert/users that know about N900 much knows how to extract it but this may be a problem for noob users.

Thanks everyone for your hardwork. its really cool.

bill_klpd 2013-07-15 18:23

Re: [Announce] N9 Swipe to N900
 
Quote:

Originally Posted by panjgoori (Post 1359169)
tried it. its great. 2 steps in first post are a bit wrong. first of all file name is edge_detect not edge (archive name replaced as when erlos34 uploaded it, its name was edge).

correct unpacking command is tar xvzf edge_detect.tar.gz

and one more thing. edge_detect file doesn't extract in its own folder. so cd edge command is no longer needed until anyone repacks the archive to add a folder. only ./edge_detect is needed.

expert/users that know about N900 much knows how to extract it but this may be a problem for noob users.

Thanks everyone for your hardwork. its really cool.

Ok... I will change it when I will be back in my pc, I wrote it a little bit in a hurry!
I hope that we will make our n900 look even more like the n9 :D


All times are GMT. The time now is 14:33.

vBulletin® Version 3.8.8