Critically Low Battery Notification not showing in Ubuntu 14.04 lts

Bug #617816 reported by ALexzander Marzouca
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
Confirmed
Undecided
Basavaraj

Bug Description

I have installed Ubuntu 14.04 lts and when the battery is low, I am unable to get notifications such as battery critically low.

Tags: patch karmic
Revision history for this message
ALexzander Marzouca (jamaica-king1029) wrote :
Changed in ubuntu:
assignee: nobody → ALexzander Marzouca (jamaica-king1029)
Revision history for this message
Leo Arias (elopio) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in notify-osd.

When reporting bugs in the future please use apport, either via the appropriate application's "Help -> Report a Problem" menu or using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

affects: ubuntu → notify-osd (Ubuntu)
tags: added: karmic
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in notify-osd (Ubuntu):
status: New → Confirmed
Changed in notify-osd (Ubuntu):
assignee: ALexzander Marzouca (jamaica-king1029) → Vishwanath (vishwanathtallalli24)
summary: - notification problems
+ Critically Low Battery Notification not showing in Ubuntu 14.04.1
summary: - Critically Low Battery Notification not showing in Ubuntu 14.04.1
+ Critically Low Battery Notification not showing in Ubuntu 14.04 lts
description: updated
description: updated
Changed in notify-osd (Ubuntu):
status: Confirmed → New
Changed in notify-osd (Ubuntu):
status: New → Fix Committed
Revision history for this message
Vishwanath (vishwanathtallalli24) wrote :

#!/bin/bash

BATTERY=$(upower -e | grep 'BAT')

while [ 1 ]
do
    BATTERY_PERCENTAGE=$(upower -i $BATTERY|grep percentage|awk '{ print $2 }'|sed s/'%'/''/g)

    if [[ "$BATTERY_PERCENTAGE" -lt "11" ]]; then

    notify-send --urgency=critical "WARNING: Battery is about to die" "Plug in the power cable"
    play /usr/share/sounds/KDE-Sys-Warning.ogg &> /dev/null
    fi

sleep 10

done

Revision history for this message
Vishwanath (vishwanathtallalli24) wrote :

#!/bin/bash

BATTERY=$(upower -e | grep 'BAT')

while [ 1 ]
do
    BATTERY_PERCENTAGE=$(upower -i $BATTERY|grep percentage|awk '{ print $2 }'|sed s/'%'/''/g)

    if [[ "$BATTERY_PERCENTAGE" -lt "11" ]]; then

    notify-send --urgency=critical "WARNING: Battery is about to die" "Plug in the power cable"
    play /usr/share/sounds/KDE-Sys-Warning.ogg &> /dev/null
    fi

sleep 10

done

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "It will give notification when the battery is low and you should run this .sh file in terminal." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Basavaraj (basavarajmulagund92) wrote :
Changed in notify-osd (Ubuntu):
assignee: Vishwanath (vishwanathtallalli24) → Basavaraj (basavarajmulagund92)
Changed in notify-osd (Ubuntu):
status: Fix Committed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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