[Bug 287228] onMeeGo: while the device is plugedIn, the battery symbol vanishes, so that options like sleep cannot be activated

Sebastian Kügler sebas at kde.org
Tue Nov 22 15:29:31 UTC 2011


Hey,

On Tuesday, November 22, 2011 13:21:06 Lamarque V. Souza wrote:
> https://bugs.kde.org/show_bug.cgi?id=287228
> 
> 
> 
> 
> 
> --- Comment #9 from Lamarque V. Souza <lamarque kde org>  2011-11-22
> 12:21:06 --- (In reply to comment #7)
> 
> > Hm... on the other hand, many icons only appear if something _happens_.
> > So one could say "The icon is displayed as long as the battery charges
> > or dischagres", which it does not do when it's full.
> 
> I think we could change the icon to indicate the battery is fully charged.
> Some OS even write
> the word "Charged" beside the battery icon.
> 
> > But you and Fania do have a point I guess, and most if not all OSes -
> > desktop an mobile - I know keep the icon displayed even when the battery
> > is full.
> 
> That is what I had thought.
> 
> > They might expect it, but do they _look_ for it there? I for example have
> > never hibernated my laptop or put it so sleep from the battery icon, as
> > I have a dedicated button for that. So okay, long time KDE users will
> > eventually remember that possibility after unsuccessfully looking for a
> > leave button, but I don't think it's the first place even they will look
> > for it.
> 
> Fania and me are working with tablet devices. They usually do not have
> dedicated sleep/hibernate buttons. The only button we have is the power
> button and as Fania wrote we plan to use it for "screen lock"/"hard
> shutdown", we need an alternative for sleep/hibernate/shutdown.
> 
> Plasma-device (in plasma-mobile) does not have a main menu button like
> plasma-desktop. If it had
> we could add the "sleep/hibernate/shutdown" there like Kickoff and Lancelot
> do. But I have the feeling that
> whoever decided not to add a menu button has reasons for that.
> 
> (In reply to comment #8)
> 
> > > My first ideas are scribbled in those two wireframes:
> > > http://share.basyskom.com/contour/UIDesign/Locking_Hibernate_V2.jpg
> > > http://share.basyskom.com/contour/UIDesign/Locking_Hibernate.jpg

Looks pretty sensible.

I wonder if it's justified to add powerbutton chrome to the panel though. 
Right now we combine that with the battery display and cross fingers that the 
user either finds the battery (if it's there at all), or find the physical 
powerbutton, which I've wired to suspend (doesn't seem to work for everybody).

The problem of course with hiding the battery when fully charged (which I 
think makes sense at least on a desktop, but feels a bit uncommon on a mobile 
device) is that we bastardize it to not be just informational, but also 
provide access to settings and suspend actions.

On the desktop, the battery icon can still be shown even if hidden, but that 
option isn't available in PA's system tray (neither by settings UI, nor by 
this little arrow that makes it show).

> > Well that's pretty much like the traditional shutdown plasmoid with PA
> > look & feel, isn't it?
> > (
> > http://ubuntu.paslah.com/wp-content/uploads/2011/08/The-desktop-menu-Leav
> > e.png )

Similar, but the feel should really be different, the lock/logout dialog just 
doesn't feel very touch-friendly.

>     Not exactly a plasmoid, it is a plasmified menu. They are similar and
> share the same porpose.
> We would need to remove the shutdown context menu and increase the menu
> item's height to use it in tablets though.
> Some days ago Marco Martin also mentioned making the menu themable using
> QML. That can take some time though.

Should actually be really easy, the powerbutton plasmoid already does this, in 
order to make it harder to tamper with it, it would be enough if it's just a 
very thin wrapper about a QDeclarativeView which loads a QML package and makes 
available some methods to the scriptengine's context.

> > What about hibernate? It has the advantage of no data loss and faster
> > boot-up time. The advantage of shutdown though is that if allows for a
> > "clean start".
> 
>     It can be added easily. I implementated the first version of that
> dialog.

Hibernate requires swap, which mobile devices usually don't have.

Nice work, overall.

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Active mailing list