imported google calendar events sound when they shouldn't

Bug #1533681 reported by Jamie Strandboge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Bill Filler
Ubuntu Calendar App
Invalid
High
Renato Araujo Oliveira Filho
indicator-datetime (Ubuntu)
Fix Released
High
Renato Araujo Oliveira Filho

Bug Description

I use the calendar-app with my work google calendar. For that calendar I have alarms setup to automatically send an email 24 hours, 4 hours and 30 minutes before any event and I choose email as the reminder (as opposed to popup) so that I wouldn't be bombarded with reminders all day. Unfortunately the calendar app does not make a distinction between email and popup and every event with an email reminder gets imported as an event that gets an event notification on the phone with an alarm sound. I have a lot of events in my calendar and so my phone is constantly making noise at all times of the day. This is particularly annoying at night time since I might get a reminder as early as 3am or 4am, which wakes me up. Of course, I could use silent mode at night, but, like last night, I forgot and was awoken at 6am. Plus, I don't necessarily want the phone in silent mode-- I'd like to be able to hear if a phone call comes in since that is likely an emergency call I need to take.

There are a lot of different bugs related to calendar event notifications and if some of them were fixed, it would ameliorate this bug. For example, I've been hoping for a setting to disable sounds for just the calendar (whether via the app or system settings) but otherwise get calendar notifications. Being able to change the alarm sound to 'None' would work too. TBH at this point I don't care which bug is fixed, I need to get this phone to stop sounding off constantly.

WORKAROUND:
1. download https://commons.wikimedia.org/wiki/File:Silence.ogg to /home/phablet
2. use gsettings to adjust the sound:
$ DISPLAY=:0.0 gsettings get com.canonical.indicator.datetime calendar-default-sound
'/usr/share/sounds/ubuntu/ringtones/Marimbach.ogg'
$ DISPLAY=:0.0 gsettings set com.canonical.indicator.datetime calendar-default-sound /home/phablet/Silence.ogg
$ DISPLAY=:0.0 gsettings get com.canonical.indicator.datetime calendar-default-sound
'/home/phablet/Silence.ogg'

UPDATE: if you used the above workaround, after the OTA11 update you can undo the workaround with:
$ DISPLAY=:0.0 gsettings set com.canonical.indicator.datetime calendar-default-sound /usr/share/sounds/ubuntu/ringtones/Marimbach.ogg
$ DISPLAY=:0.0 gsettings get com.canonical.indicator.datetime calendar-default-sound
'/usr/share/sounds/ubuntu/ringtones/Marimbach.ogg'

Related branches

summary: - imported calendar event sounds when it shouldn't
+ imported google calendar events sound when they shouldn't
description: updated
Revision history for this message
Charles Kerr (charlesk) wrote :

This sounds like it might be an indicator-datetime bug rather than a calendar-app bug.

Jamie, could you please attach a sample entry from the ical file that's causing unwanted event sounds? You will find the file(s) in ~/.local/share/evolution/calendar/*/calendar.ics where * generally includes "system" and may include other directories as well.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Here is an ical that should contain the event that sounded this morning. Ie, there is a calendar event for 10am local (US/Chicago) on 2016-01-13 that sounded the calendar alarm at 6am local (US/Chicago). This is a recurring event and I included all events with the 'SUMMARY:1 on 1 Chris/Jamie'. I have redacted the 'UID:' fields-- there were only two different ones (I guess depending on who created the event??) but I redacted the info with a string of the same length as what was previously there and kept the two UIDs unique.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Revision history for this message
Bill Filler (bfiller) wrote :

@renato
please help to see if anything needs to be done on calendar app or backend

Changed in ubuntu-calendar-app:
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → High
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
milestone: none → ww08-2016
importance: Undecided → High
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

as Charles mentioned I believe it is a indicator problem. The indicator should check which kind of alarm the event has and play a sound or display the message based on that:

Until now I found 3 types:

BEGIN:VALARM
ACTION:[DISPLAY | AUDIO | EMAIL]

The indicator should check that and act as requested.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

In my opinion this should be the indicator behavior for each action:

DISPLAY = Show the message without any sound
SOUND = Show the message with the sound
EMAIL = do nothing

Charles Kerr (charlesk)
Changed in indicator-datetime (Ubuntu):
importance: Undecided → High
assignee: nobody → Charles Kerr (charlesk)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-datetime (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
status: New → Confirmed
assignee: Bill Filler (bfiller) → Alejandro J. Cura (alecu)
Bill Filler (bfiller)
Changed in ubuntu-calendar-app:
status: New → Confirmed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

fwiw, the proposal in comment #6 sounds good.

Bill Filler (bfiller)
Changed in indicator-datetime (Ubuntu):
assignee: Charles Kerr (charlesk) → Renato Araujo Oliveira Filho (renatofilho)
Changed in canonical-devices-system-image:
assignee: Alejandro J. Cura (alecu) → Bill Filler (bfiller)
Bill Filler (bfiller)
tags: added: indicator
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Revision history for this message
Charles Kerr (charlesk) wrote :

Renato, thanks for working on some of the indicator-datetime backlog. =)

For this one, after the EDS engine collects all the alarms for an event, it should cull out the ones that have neither an audio_url nor display text, ie:

=== modified file 'src/engine-eds.cpp'
--- src/engine-eds.cpp 2016-02-03 16:33:39 +0000
+++ src/engine-eds.cpp 2016-03-29 17:53:12 +0000
@@ -960,7 +960,8 @@
             appointment.end = i.first.second;
             appointment.alarms.reserve(i.second.size());
             for (auto& j : i.second)
- appointment.alarms.push_back(j.second);
+ if (!j.second.text.empty() || !j.second.audio_url.empty())
+ appointment.alarms.push_back(j.second);
             subtask->task->appointments.push_back(appointment);
         }
     }

A few important notes:

1. I believe the clock app used to (and possibly still does?) write empty valarms, so when testing this or any other fix you should confirm that it doesn't break the clock. For backwards compatibility with existing clock-app alarms, we may need indicator-datetime to inject an Alarm if none is present for any event containing the "x-canonical-alarm" tag.

2. Most of indicator-datetime's EDS tests were created with output from clock-app, so new ical tests are needed to cover these other valarm action types.

Changed in indicator-datetime (Ubuntu):
status: Confirmed → In Progress
Changed in ubuntu-calendar-app:
status: Confirmed → In Progress
Changed in ubuntu-calendar-app:
milestone: none → 0.6
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
tags: added: system-apps-11
Changed in ubuntu-calendar-app:
status: In Progress → Invalid
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in indicator-datetime (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.