Patch: Calendar events on lockscreen

Rating: 
4.916665
Your rating: None Average: 4.9 (12 votes)

This is a patch for the lockscreen to show the upcoming events.on The view is fully configurable using the settings. Version 0.4 only works with sailfish 1.1.9.18 Usage: Install and then apply patch through patch manager. Note: Landscape orientation needs fixing. 0.4-1 has a bug which scroll all events to the end, this is fixed in 0.4-2. Source: https://github.com/anigaj/lockCalPatch

Screenshots: 
Application versions: 
AttachmentSizeDate
File lockscreen-upcoming-0.1-1.armv7hl.rpm5.26 KB06/07/2015 - 08:31
File lockscreen-upcoming-0.2-1.armv7hl.rpm11.25 KB03/08/2015 - 15:18
File lockscreen-upcoming-0.3-1.armv7hl.rpm12.21 KB04/09/2015 - 15:17
File lockscreen-upcoming-0.4-1.armv7hl.rpm12.72 KB22/09/2015 - 02:02
File lockscreen-upcoming-0.4-2.armv7hl.rpm12.75 KB23/09/2015 - 04:10
File lockscreen-upcoming-0.5-1.noarch.rpm12.87 KB29/10/2015 - 05:00
File lockscreen-upcoming-0.6-1.noarch.rpm14.03 KB12/04/2017 - 19:49
File lockscreen-upcoming-0.7-1.noarch.rpm18.02 KB27/09/2017 - 08:21
File lockscreen-upcoming-0.8-1.noarch.rpm22.2 KB09/11/2018 - 20:57
File lockscreen-upcoming-0.9-1.noarch.rpm22.59 KB16/01/2019 - 09:17
File lockscreen-upcoming-1.0-1.noarch.rpm22.85 KB29/04/2021 - 08:15
Changelog: 

1.0
- Compatible with Sailfish 4.0.1
- Changed number of events in settings to text box input
0.9
- Compatible with Sailfish 3.0.1 weather on lockscreen changes (Thanks Przemek for the code contributed)
- Size of box used to move by 1 pixel now relative in order to scale for higher resolution devices
0.8
- Compatible with Sailfish 3.0
0 7
- Bug fix - content not scrolling and out of frame (https://github.com/anigaj/lockCalPatch/issues/2)
0.6
- Implemented setting to change position
- Additional required files are now installed rather than patched
0.5
- Stop animations on lockscreen exit (Thanks Ajalkane for the code contributed)
- Built with noarch
0.4
- Compatible with sailfish version 1.1.9.28
- Added scrolling text for long event names
0.3
- Added message for no events, option to show is in settings
- Fixed bug where finished event would not be removed
- Duplicate events issue fully fixed
- Width is now fraction of screen width for use on non-jolla phones
- Updated uninstall scripts and added dependencies
- Resolve conflict with battery and status indicators on lockscreen patch
0.2
- Added settings
- Fixed duplicate event issue
0.1
- First build.

Comments

anig's picture

The patch modifies Lockscreen.qml and adds the following files: ShowCalEvents.qml, BorderRectangle.qml, LockEventItem.qml and LockTimeLabel.qml. Coderus posted this suggestion on TMO for someone who had a similar issuue:
use this command to remove
patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches//unified_diff.patch

and skip already unapplied entries. Then you can reapply this patch as usual.

objectifnul's picture

Probably

patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches/lockscreen-upcoming/unified_diff.patch

instead of

patch -R -p 1 -d / -i /var/lib/patchmanager/ausmt/patches//unified_diff.patch

Right?

anig's picture

Yes

cocovina's picture

I had the same problem. I ran the command above, and now I see only a blank lock-screen with the wallpaper (of course rebooted). Can not go to launcher - nothing! Any idea?

ronny_b's picture

Hello,

where from the file "/usr/share/lipstick-jolla-home-qt5/lockscreen/BorderRectangle.qml" comes? This should be changed by the patch.

With me this file does not exist.

Thanks Ronny.

anig's picture

It is a new file that is created when the patch is applied.

ronny_b's picture

Ok.

When I select "Apply patch" patchmanager shows the following error "Failed to install patch". How can I more exactly localize this?

Thanks!

Ronny

anig's picture

The only file it is modifying is usr/share/lipstick-jolla-home-qt5/lockscreen/Lockscreen.qml
Have you manually changed anything in it?

ronny_b's picture

This file is from 2015/07/03 with a length of 13385 bytes.

anig's picture

General advice from TMO when you have patch issues:

unapply all applied patches which can be unapplied
go to terminal and write following:

devel-su
pkcon remove ausmt
cd /var/lib
rm -rf patchmanager
pkcon install lipstick-jolla-home-qt5

Then you need to install patchmanager and all patches again from warehouse. It should work.

ronny_b's picture

I have uninstalled everything again, according to your instructions. Then I have also uninstalled all patches which existing then and restart the Jolla.

Then I have installed only the "patchmanager" and your patch. By the call I got the error message again "Failed to install patch".

If I want to deinstall your patch, unfortunately, always with ' rpm-e - noscripts lockscreen-upcoming ', because I get otherwise the following mistake:

zypper remove lockscreen-upcoming
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  lockscreen-upcoming

1 package to remove.
After the operation, 38.2 KiB will be freed.
Continue? [y/n/?] (y): y
Removing lockscreen-upcoming-0.2-1 ...................................................................................................................................................[error]
Removal of (5640)lockscreen-upcoming-0.2-1.armv7hl(@System) failed:
Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.MtoTU8: line 1: //: is a directory
/var/tmp/rpm-tmp.MtoTU8: line 2: patchmanager: command not found
error: %preun(lockscreen-upcoming-0.2-1.armv7hl) scriptlet failed, exit status 127
error: lockscreen-upcoming-0.2-1.armv7hl: erase failed

Ronny

ronny_b's picture

Hello,

now, I could solve the problem. In the directory '/usr/share/lipstick-jolla-home-qt5/lockscreen/' were still files of the old version of the patch.

Ronny

damoleon's picture

can you precise which one ? I have the exact same problem, cheers

anig's picture

Good to hear you got it working. I will try to add additional checks to the install/uninstall scripts to make it smoother in the future.

sanktus's picture

Hi, i cant remove this patch. I get this message from the warehouse app:

Transaction /4487_ecdecbb

Status: cannot-remove-system-package

Extra details:

Subprocess failed. Error: RPM failed /var/tmp/rpm-tmp.daGg3G: line1://: is a directory

error: 0x44bdd240reun(lockscreen-upcoming-0.2-1.armv7hl) scriptlet failed, exit status 2

error: lockscreen-upcoming-0.2-1.armv7hl: erase failed

 

The patch do not work to 100%. I have the settings, but no events at my lockscreen.

Thats why i try to remove it. Mfg sanktus

anig's picture

You need to install patchmanager from here https://openrepos.net/content/sfietkonstantin/patchmanager and then apply the patch through there.

If you are still having issues removing try the following:
1) open terminal application
2) enter this command in the window
pkcon remove lockscreen-upcoming

ronny_b's picture

Hello,

rpm -q --scripts <Package> shows the Script
rpm -e --noscripts <Package> only remove the package

Ronny

feldbaum's picture

Very nice. Especially the settings are very usefull and functional.

hpehto's picture

Sorry Anig. Your patch works fine. Problem seems to be in Sailfish OS Calendar patch. Didnt check carefully enough.

hpehto's picture

Very useful patch thanks. But I cannot create a event that lasts more than one day.

Schturman's picture

Cool and useful patch. Thanks

Pages