maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   [Announce] QmlLockScreen - another lockscreen for maemo (https://talk.maemo.org/showthread.php?t=92181)

elros34 2013-12-27 23:29

[Announce] QmlLockScreen - another lockscreen for maemo
 
1 Attachment(s)
It's in beta stage but basic functions are working. Whole menu is done in qml so it's easy configurable.
This package will modify your /usr/share/policy/etc/rx51/syspart.conf to avoid 2 seconds lag issue - it's risky operation then you must restart phone.

From 0.7 version qmllockscreen read battery level via i2c. To achive this qmllockscreen changes permission of /dev/i2c-2 so be aware.

Attention:
Portrait mode works only in cssu testing/thumb. Qmllockscreen doesn't works in stock PR1.3 firmware!

video

Download thumb version.

After uninstall you must:
apt-get install --reinstall osso-systemui-tklock
killall systemui

License GPLv3
sources: qmllockscreen

Changelog
Code:

1.0
* Easy way to modify ui
* Fix for black window bug
0.9
* Qmlradio dbus control
* Bluetooth initial state fix
* Cellular rat
0.8
* gsm signal level added
* bluetooth indicator
* bme replacement fix
* new way to use pull menu
0.7
* initial support for qmlradio control
* read battery level directly form bq2700 (probably it fixed hang bug)
* added stop button
* stop assigning music playlist when video is playing
* added blank-osso-systemui-tklock plugin to speed up show process.
0.6
* few improvements (rotation lock, hildon-home) 0.5
* fix for fullscreen windows
* fix for locking orientation of random windows
* fix for hiding windows after unlock
0.4
* added call/sms notification
* added partially proximity sensor support
* added settings (~/.config/qmllockscreen/settings.ini)
* increase lockscreen sensitivity
0.3
* fixed play/pause button
* few changes in hildon-home support
* pause on headphones disconnect
0.2
* added n9 like quickbar
0.1
* initial


bill_klpd 2013-12-27 23:43

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
It reminds me a little bit the sailfish home screen!

Akkumaru 2013-12-28 04:22

Ahhh nice! How does it unlock? Swipe?

kraker_abhy 2013-12-28 07:08

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
It is looking awesome. Thanks for great work. I figured out one problem though, it scale the desktop widgets just vertically and rotate portrait wallpaper to landscape while swiping up which look kind of bad. Can you please fix that? Thanks again

elros34 2013-12-28 09:56

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by Akkumaru (Post 1401348)
Ahhh nice! How does it unlock? Swipe?

Yes, I will upload video later.

kraker_abhy, please take a screenshot ( ctrl + shift +p).

Sohil876 2013-12-28 10:23

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Looks really good but... Only for thumb? Any plans of release for cssu stable users and landscape mode?

elros34 2013-12-28 10:31

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Sohil876, you will be tester :). There is landscape mode but application only rotate when phone it's unlocked ( no more rotation to landscape in your pocket - I hate this).

Sohil876 2013-12-28 14:24

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Ill definetly test it out (use it everyday) but i have cssu stable not thumb, so i can only test if you release a version for cssu stable.
EDIT:- Thanks bro, ill try it out.

Sohil876 2013-12-28 15:57

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1401406)
Sohil876, you will be tester :). There is landscape mode but application only rotate when phone it's unlocked ( no more rotation to landscape in your pocket - I hate this).

Works pretty well for me, and pretty stable for a beta, this lockscreen used with timenow = Awesome :) . But i see is it keeps lockscreen orientation in which it was locked even if we try to unlock it in diffrent orientation, so if i lock in portrait mode and try to unlock it having phone in landscape it will still show a portrait lockscreen but it is not a big issue to me since i always keep my desktop in landscape mode, but since installing it i notice a little slowness in desktop, opening menu and apps, i was using qtlockscreen before but never encountered this so you might want to look into it.

elros34 2013-12-28 16:12

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by Sohil876 (Post 1401540)
But i see is it keeps lockscreen orientation in which it was locked even if we try to unlock it in diffrent orientation.

It's a feature not a bug.

Quote:

Originally Posted by Sohil876 (Post 1401540)
since installing it i notice a little slowness in desktop, opening menu and apps, i was using qtlockscreen before but never encountered this so you might want to look into it.

It use a lot of memory so check in conky ram and cpu usage. I have swap only on sd card maybe therefore I don't have slowdowns.

kraker_abhy 2013-12-29 00:09

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1401392)

kraker_abhy, please take a screenshot ( ctrl + shift +p).


Actually i am unable to take screenshot while scrolling up cos it becomes fine one it is unlocked, the only problem is on desktop view while swiping up. By the way i am using multiples QBW and it get scaled. I actually don't know if i can really take screen shot on N900. I will try to take on my computer and post it here tomorrow. Thank you

Akkumaru 2013-12-29 06:49

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Installed it! Wow it's beautiful AND smooth as butter :D
Gonna have to uninstall QTLockscreen ;)
It's perfect!
EDIT: Like the swipe down to lock ;) Nice touch

kraker_abhy 2013-12-29 15:47

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
1 Attachment(s)
Quote:

Originally Posted by elros34 (Post 1401392)
Yes, I will upload video later.

kraker_abhy, please take a screenshot ( ctrl + shift +p).

Hi elros34, somehow i managed to take screenshot, actually i mostly use my phone in portrait mode and while unlocking it, landscape background is viewed in full size with widgets scaled accordingly. i am not sure what i am doing wrong. Kindly help me with this problem, other then that is it awesome and so smooth. thanks



Fix: I have resized wallpaper to be exactly 800x480 and set it in landscape while portrait wallpaper disabled then it is just fine with no problem at all.

Request: can you please reduce the time gap for bottom menu so that it can appear little quicker then now?

Sohil876 2013-12-30 07:16

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
In the play/pause in quick bar, the pause actually stops the song instead of pausing it.

bill_klpd 2013-12-30 13:28

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
I tried it today and it is really smooth and nice! :D
Nice work elros34! I have a problem on portrait mode, is this normal, it is it the half of the screen...

One more thing! Is there a way to make the screen go off when it is on the lockscreen with the power button instead of waiting?

elros34 2013-12-30 18:35

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by bill_klpd (Post 1402099)
I have a problem on portrait mode, is this normal, it is it the half of the screen...

Half of screen? it can't be normal:confused:.
Quote:

Originally Posted by bill_klpd (Post 1402099)
One more thing! Is there a way to make the screen go off when it is on the lockscreen with the power button instead of waiting?

Nice idea - done.
Quote:

Originally Posted by kraker_abhy (Post 1401828)
Request: can you please reduce the time gap for bottom menu so that it can appear little quicker then now?

If you mean bar with icons: in /opt/qmllockscreen/qml/LockView.qml
there is timer:
Code:

Timer {
  id: quickBarTimer
  interval: 1000 // 1s
..
}


kraker_abhy 2013-12-30 20:06

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402182)
Half of screen? it can't be normal:confused:.

Nice idea - done.

If you mean bar with icons: in /opt/qmllockscreen/qml/LockView.qml
there is timer:
Code:

Timer {
  id: quickBarTimer
  interval: 1000 // 1s
..
}


That worked for me nicely. Thanks a lot.

bill_klpd 2013-12-31 09:25

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402182)
Half of screen? it can't be normal:confused:.
}[/CODE]

Well it happens when it is in landscape and then when I rotate the phone it goe... on portrait like that.

But when it is in portrait(from the start) it won't rotate.


One more idea... Can you make it to stay in the lock screen as long as you "play" with it instead of turning off after sometime(I am not sure if this happens, but it gives me the idea that it really does!).

By the way, how can we change the background image and the apps if we want?

kraker_abhy 2013-12-31 13:33

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
An off topic request: Can someone try to make matching theme to this lockscreen like clean glassy look for our beloved N900. I mean something like nemo glacier UI or the 2 themes already available for N9 (transparent and sailfish). Even IOs7 theme for N9 would look good. Thanks in advance

m4r0v3r 2013-12-31 13:58

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
ive got no idea if your taking requests and what not, but media player controls would be

edit: never mind just watched video lol

elros34 2013-12-31 15:33

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
kraker_abhy, check latest version and leave feedback.

Quote:

Originally Posted by bill_klpd (Post 1402396)
Well it happens when it is in landscape and then when I rotate the phone it goe... on portrait like that.

Only when hildon is under lockscreen?
Quote:

Originally Posted by bill_klpd (Post 1402396)
One more idea... Can you make it to stay in the lock screen as long as you "play" with it instead of turning off after sometime(I am not sure if this happens, but it gives me the idea that it really does!).

But what when phone is in your pocket and you accidentally press powerbutton. Maybe if I add proximity sensor support.
Quote:

Originally Posted by bill_klpd (Post 1402396)
By the way, how can we change the background image and the apps if we want?

As usually in /opt/nameoffapp/
Bar with apps is QuickBar.qml
You have e.g.
Code:

source: isHildon ? "file://usr/share/icons/hicolor/64x64/apps/terminal.png"
..
uiTools.runApp("osso-xterm")

change "osso-xterm" (/usr/share/application/hildon/osso-xterm.desktop) to something different

kraker_abhy 2013-12-31 17:38

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402538)
kraker_abhy, check latest version and leave feedback.

Hi elros34, Thanks for your hard-work. I have figured below things with new version:

Working nicely:
1. Now pause button doesn't stop the song and it just pause which is nice.
2. Songs get paused when i remove headphone.
3. swiping and controlling media seems more smoother

Problems according to me:

1. Hiding back the bar with icons (if i don't want to launch any app) now requires double time swipe, it doesn't scroll down for the first time when i swipe (it was smooth in previous version)
2. First lock screen appearance after reboot shows half the screen in landscape with portrait long screen going out of display, no matter which orientation N900 is. which is very odd and also when i swipe away then it shows kind of app closing window of qmllockscreen.

My requests:
1. Like OMP, would you like to add control to media play that once i plug headphone back it should play song again if it was paused?
2. Did you planned to add notifications like other lockscreens or any other information on the empty space on the screen like weather or some other information from relevant applications?

Sohil876 2013-12-31 17:46

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402538)
kraker_abhy, check latest version and leave feedback.

With v0.3 display now blanks out in around 2-4 seconds even if i am interacting with lockscreen :(, can you make it not blank out when interacting with lockscreen? , also for next release can you implement notifications? Thnx.

elros34 2013-12-31 17:51

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by kraker_abhy (Post 1402589)
1. Like OMP, would you like to add control to media play that once i plug headphone back it should play song again if it was paused?
2. Did you planned to add notifications like other lockscreens or any other information on the empty space on the screen like weather or some other information from relevant applications?

1. I just forget about it.
2. For now I'm focus on bugs maybe later but I don't want to make new desktop with tons of widgets.

kraker_abhy 2013-12-31 17:54

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by Sohil876 (Post 1402592)
With v0.3 display now blanks out in around 2-4 seconds even if i am interacting with lockscreen :(, can you make it not blank out when interacting with lockscreen? , also for next release can you implement notifications? Thnx.

I have noticed that too but it isn't problem with qmllockscreen as i have checked, you are using timenow i guess, timenow is making screen blank out quicker, you can try with power button which is working nice for me.

elros34 2013-12-31 17:55

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by Sohil876 (Post 1402592)
With v0.3 display now blanks out in around 2-4 seconds even if i am interacting with lockscreen :(, can you make it not blank out when interacting with lockscreen? , also for next release can you implement notifications? Thnx.

Try to restart phone. My lockscreen doesn't control this so it should be exactly like in earlier version. I guess it's systemui or mce job.

kraker_abhy 2013-12-31 18:01

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402595)
1. I just forget about it.
2. For now I'm focus on bugs maybe later but I don't want to make new desktop with tons of widgets.

1. You might add it in future version if that's ok.
2. Exactly i want neat look too, But there is enough space and i would love if you add just one item, most probably missed call notification in future but it should not be slow cos now it is just awesome (I don't think text or mail notification is much required).

Sohil876 2013-12-31 18:08

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by kraker_abhy (Post 1402597)
I have noticed that too but it isn't problem with qmllockscreen as i have checked, you are using timenow i guess, timenow is making screen blank out quicker, you can try with power button which is working nice for me.

Yes youre right its because of timenow, i think ill revert to v0.10 again.

Quote:

Originally Posted by elros34 (Post 1402598)
Try to restart phone. My lockscreen doesn't control this so it should be exactly like in earlier version. I guess it's systemui or mce job.

Yes sorry it was because of timenow.

Kossuth 2013-12-31 18:18

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
A bit OT here, but you can adjust the time that timenow displays the lockscreen on proximity sensor uncover, just search the timenow thread. I think the conf file is either on MyDocs/.timenow or /opt/timenow.

kraker_abhy 2014-01-01 13:49

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402538)

As usually in /opt/nameoffapp/
Bar with apps is QuickBar.qml
You have e.g.
Code:

source: isHildon ? "file://usr/share/icons/hicolor/64x64/apps/terminal.png"
..
uiTools.runApp("osso-xterm")

change "osso-xterm" (/usr/share/application/hildon/osso-xterm.desktop) to something different

I tried to add one more app for myself on the bar with icons. I just added one more item in QuickBar.qml but it didn't showed up on lockscreen. Is there any other place where i need to list it?

Also is there any chance that it can be unlocked throught right and left swipe too?

bill_klpd 2014-01-01 14:03

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by kraker_abhy (Post 1402745)
I tried to add one more app for myself on the bar with icons. I just added one more item in QuickBar.qml but it didn't showed up on lockscreen. Is there any other place where i need to list it?

Also is there any chance that it can be unlocked throught right and left swipe too?

I think that both could be possible with some modifications by elros34...

kraker_abhy 2014-01-01 14:14

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by bill_klpd (Post 1402747)
I think that both could be possible with some modifications by elros34...

yes you are right. I was just wondering if i could do small changes myself then i won't be bothering him much for my experiments to change something for me. He have done wonderful job making this lockscreen and with quick support.

elros34 2014-01-01 14:54

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Is there any problem with unexpected locked windows to landscape?

Quote:

Originally Posted by kraker_abhy (Post 1402745)
I tried to add one more app for myself on the bar with icons. I just added one more item in QuickBar.qml but it didn't showed up on lockscreen. Is there any other place where i need to list it?

Upload your file and we will see.
Remember that you must restart lockscreen to see changes:
root
stop qmllockscreenup
start qmllockscreenup
Quote:

Originally Posted by kraker_abhy (Post 1402745)
Also is there any chance that it can be unlocked throught right and left swipe too?

It's possible but it require little work to not lose top menu.
Look at LockView.qml:
MouseArea {
id: lockViewArea
drag.axis and onPressed, released, poschanged signals

kraker_abhy 2014-01-01 15:33

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402765)


Upload your file and we will see.
Remember that you must restart lockscreen to see changes:
root
stop qmllockscreenup
start qmllockscreenup

It's possible but it require little work to not lose top menu.
Look at LockView.qml:
MouseArea {
id: lockViewArea
drag.axis and onPressed, released, poschanged signals

Here is the file which i edited, it didn't worked after restarting daemon.
Code:

// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Rectangle {
    id: rec1
    signal iconPressed()
    width: parent.width
    height: 100
    color: "black"
    Row {
        anchors.centerIn: parent
        width: isPortrait ? (64 *4 + 30*3) : (64 *4 + 50*3)
        height: 64
        spacing: isPortrait ? 30 : 50
        Image {
            source: isHildon ? "file://usr/share/icons/hicolor/64x64/hildon/tasklaunch_sms_chat.png" :
                              "file:/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    uiTools.runApp("rtcom-messaging-ui")
                    rec1.iconPressed()
                }
            }
        }
        Image {
            source: isHildon ? "file://usr/share/icons/hicolor/64x64/hildon/general_contacts.png" :
                              "file:/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    uiTools.runApp("osso-addressbook")
                    rec1.iconPressed()
                }
            }

        }
        Image {
            source: isHildon ? "file://usr/share/icons/hicolor/64x64/hildon/openmediaplayer.png" :
                              "file:/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    uiTools.runApp("openmediaplayer")
                    rec1.iconPressed()
                }
            }

        }
        Image {
            source: isHildon ? "file://usr/share/icons/hicolor/64x64/hildon/tasklaunch_photos.png" :
                              "file:/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    uiTools.runApp("image-viewer")
                    rec1.iconPressed()
                }
            }
        }
        Image {
            source: isHildon ? "file://usr/share/icons/hicolor/64x64/apps/terminal.png" :
                              "file:/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    uiTools.runApp("osso-xterm")
                    rec1.iconPressed()
                }
            }
        }
    }
}


Thanks for help, i am not developer but i will give it a try after sometimes. Hope it work fine for me. Thanks a lot

kraker_abhy 2014-01-01 15:52

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402765)
Is there any problem with unexpected locked windows to landscape?

I didn't faced that, i only faced half screen landscape lockscreen at first appearance.
Quote:

It's possible but it require little work to not lose top menu.
Look at LockView.qml:
MouseArea {
id: lockViewArea
drag.axis and onPressed, released, poschanged signals
Will be nice if you help me when you are free with adding that option, cos i am not developer and i don't understand the code of swiping as you mentioned to look.
Thanks

elros34 2014-01-02 12:40

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by kraker_abhy (Post 1402776)
Here is the file which i edited, it didn't worked after restarting daemon.
Code:

"file://usr/share/icons/hicolor/64x64/hildon/openmediaplayer.png"

it should be apps/openmediaplayer.png
and in Row .. width: (64 + spacing)*children.length - spacing

kraker_abhy 2014-01-02 17:38

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1402999)
it should be apps/openmediaplayer.png
and in Row .. width: (64 + spacing)*children.length - spacing

Thank you for your help. It worked perfectly but it looked crowded and your version with 4 icons look damn cool so i reverted it back. I would like to add left and right swipe on lockscreen to something maybe unlocking too. If you have free time then you can help with that. Thanks again

kraker_abhy 2014-01-09 17:50

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Any further update??

elros34 2014-01-09 20:03

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
For now I'm little busy.

kraker_abhy 2014-01-10 16:55

Re: [Announce] QmlLockScreen - another lockscreen for maemo
 
Quote:

Originally Posted by elros34 (Post 1405234)
For now I'm little busy.

Oh okay, hope you get free soon and we can see further update on this.


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

vBulletin® Version 3.8.8