GNOME Bugzilla – Bug 489380
'inhibit' warning popup is ~incomprehensible
Last modified: 2009-03-04 14:52:05 UTC
Just got this dialog: 'Inhibit warning!' 'Your laptop will not sleep if you shut the lid as it is currently inhibited.' 'Some laptops can overheat if they do not sleep when the lid is closed.' Offhand: * 'Inhibit' warning? What is this 'inhibit'? Recommend something like 'power management warning' or just plain 'warning'. Neither are great, but inhibit warning is just broken. * what is 'it' in the second sentence? My laptop? Inhibition? sleep? and love that third sentence- I'll scare you to death about your hardware WITHOUT TELLING YOU HOW TO FIX IT. (nelson)HA HA.(/nelson) Again, not a great suggestion, but I think it would be improved by 'Sleep is disabled, which may cause overheating if the laptop lid is shut.' 'To enable sleep, go to 'Settings->Preferences->power manager' (or whatever the right thing is.) All that said, I'd probably prefer this dialog go away; if sleep works on a given piece of hardware, it should be enabled automatically, and if not, the user shouldn't be warned at all since they can't do anything about it. If we *must* have a warning (for lack of good guessing about what hardware works and what hardware does not), have the warning pop up after the lid is re-opened, noting that the laptop did not sleep when the lid was closed, instead of just doing it at random like it appears to be at present.
Sure, apologies, I suck at choosing English that makes sense. The message is to cover my backside, as some laptops literally *melt* if they are closed without sleeping. IIRC, this popup only appears the first time you do a manual inhibit - is this the case? What's the circumstances?
I saw it three times today while running the liveUSB key for about 15 minutes; I never touched the g-p-m settings, so it is coming up by default and without any configuration of power management settings by the user, at least on this hardware (x41 tablet.)
Luis, can you please do: killall gnome-power-manager gnome-power-manager --verbose --no-daemon on the live CD key, and when you get the popup, attach the debugging spew - something is inhibiting g-p-m - and yet we should clear the warning after the first show. I appreciate it's not easy to get this data but it's quite important, thanks. Richard
I can't reproduce with latest F8 :/ Gah. Should I go back and try to find the older iso, or might it have been a transient?
I let it run all night, and nothing obvious in the logs, so I guess no popup. And it works when I close the lid. Of course, I don't *like* that behavior, but that is my personal problem :)
So, I just upgraded to F8 last night and saw the warning today. I have turned on logging; I'll submit a log as soon as I get the inhibit warning again. Note that I have *chosen* to inhibit sleep-on-close since I sometimes use the laptop as a poor man's ipod, which will make it particularly irritating if I'm getting these warnings all the time :)
Ah-ha: ================ [gpm_engine_recalculate_state_summary] gpm-engine.c:603 (09:03:09): ** EMIT: summary-changed(1): Computer is running on AC power Laptop battery fully charged (98%) Battery charge time is currently unknown [gconf_key_changed_cb] gpm-conf.c:332 (09:03:09): emitting value-changed : '/apps/gnome-screensaver/power_management_delay' [gconf_key_changed_cb] gpm-screensaver.c:181 (09:03:09): key : /apps/gnome-screensaver/power_management_delay [gpm_inhibit_inhibit] gpm-inhibit.c:191 (09:04:38): Recieved Inhibit from 'Music Player' (:1.19) because 'Playing' saving as #1028310479 *** WARNING *** [gpm_notify_create] gpm-notify.c:124 (09:04:38): libnotify: Power Manager : Your laptop will not sleep if you shut the lid as it is currently inhibited. Some laptops can overheat if they do not sleep when the lid is closed. [notify_closed_cb] gpm-notify.c:89 (09:04:43): caught notification closed signal =============== So if i get a 'your computer is going to die!!!!' warning every time I use rhyhmbox... that is going to make me a less happy camper :)
Luis, do you get a libnotify warning or a gtk one? If you've compiled with HAVE_LIBNOTIFY then you should get a "Do not show me this again" button on the notifaction. Also, what do you think of: title = _("Sleep warning"); msg = g_strdup_printf (_("Your laptop will not sleep if you shut the " "lid as a running program has prevented this.\n" "Some laptops can overheat if they do not sleep " "when the lid is closed.")); Richard.
Looks like libnotify; I'm not compiling anything, just using whatever F8 ships. I do get the 'Do not show me this again', but if the warning is big and scary, I'm not likely to hit that :) The language question is really, really hard :/ How about: "$RUNNING_PROGRAM will keep your computer from sleeping when the lid is closed. To allow your computer to sleep again, close $RUNNING_PROGRAM.\n Some laptops can overheat if they do not sleep when the lid is closed." I'd assume $RUNNING_PROGRAM requires an API change, but I can't see how to justify scaring people with the overheating line unless you offer a very concrete way to re-enable sleeping. Short of that, maybe: "A running program has prevented your computer from sleeping when the lid is closed. To allow your computer to sleep again, close the running program." Maybe when uninhibited we can get a 'your computer will now sleep again, you can rest easy and nothing will melt' message? to help ease the mind?
Hello, I've just seen this warning for the first time when playing a music track in Banshee stable SVN (0.13.2). I don't get it from any other application or from Banshee 0.13.1. Here's some output: [gpm_cell_array_update] gpm-cell-array.c:277 (10:51:29): no devices of type 4 [gpm_prefs_server_set_capability] gpm-prefs-server.c:84 (10:51:29): capability now 13 [gpm_engine_get_icon] gpm-engine.c:391 (10:51:29): Trying CRITICAL icon: primary, ups, mouse, keyboard *** WARNING *** [gpm_warnings_get_state_percentage] gpm-warnings.c:104 (10:51:29): percentage zero, something's gone wrong *** WARNING *** [gpm_warnings_get_state_percentage] gpm-warnings.c:104 (10:51:29): percentage zero, something's gone wrong *** WARNING *** [gpm_warnings_get_state_percentage] gpm-warnings.c:104 (10:51:29): percentage zero, something's gone wrong [gpm_engine_get_icon] gpm-engine.c:423 (10:51:29): Trying CHARGING icon: primary, ups [gpm_engine_get_icon] gpm-engine.c:435 (10:51:29): no devices (dis)charging, so no icon will be displayed. [gpm_profile_get_accuracy] gpm-profile.c:847 (10:51:29): corrected percentage... [gpm_cell_array_get_description] gpm-cell-array.c:960 (10:51:29): accuracy = 100 [gpm_profile_get_time] gpm-profile.c:310 (10:51:29): percentage = 100, correcting to 99 [gpm_engine_get_summary] gpm-engine.c:349 (10:51:29): tooltip: Computer is running on AC power Laptop battery fully charged (100%) Provides 2 hours 40 minutes battery runtime [gpm_engine_recalculate_state_summary] gpm-engine.c:603 (10:51:29): ** EMIT: summary-changed(1): Computer is running on AC power Laptop battery fully charged (100%) Provides 2 hours 40 minutes battery runtime [gconf_key_changed_cb] gpm-conf.c:332 (10:51:29): emitting value-changed : '/apps/gnome-screensaver/power_management_delay' [gconf_key_changed_cb] gpm-screensaver.c:181 (10:51:29): key : /apps/gnome-screensaver/power_management_delay [gpm_inhibit_inhibit] gpm-inhibit.c:191 (10:51:36): Recieved Inhibit from 'Banshee' (:1.30) because 'Playing Music' saving as #2095846334 *** WARNING *** [gpm_notify_create] gpm-notify.c:124 (10:51:36): libnotify: Power Manager : Your laptop will not sleep if you shut the lid as it is currently inhibited. Some laptops can overheat if they do not sleep when the lid is closed. [gpm_inhibit_un_inhibit] gpm-inhibit.c:234 (10:51:39): UnInhibit okay #2095846334 [gpm_inhibit_inhibit] gpm-inhibit.c:191 (10:51:39): Recieved Inhibit from 'Banshee' (:1.30) because 'Playing Music' saving as #80703508 *** WARNING *** [gpm_notify_create] gpm-notify.c:124 (10:51:39): libnotify: Power Manager : Your laptop will not sleep if you shut the lid as it is currently inhibited. Some laptops can overheat if they do not sleep when the lid is closed. [notify_closed_cb] gpm-notify.c:89 (10:51:43): caught notification closed signal [notify_closed_cb] gpm-notify.c:89 (10:51:44): caught notification closed signal
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.