[Bug 307364] New: power off is blocked by yast (software manager)
https://bugzilla.novell.com/show_bug.cgi?id=307364 Summary: power off is blocked by yast (software manager) Product: openSUSE 10.2 Version: Final Platform: i586 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bluedzins@wp.pl QAContact: jsrain@novell.com Found By: --- Yesterday I had to kill SM manually -- it appeared that all packages to install take ~700MB, so I tried to interrupt this and power off computer. However, when I pressed power off during installation, only window popup showed up with info "refused by Qt" (or something like this, but for 100% it was Qt mentioned here). It almost look like an 1st april joke... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307364
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=307364#c1
Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=307364#c2
Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=307364#c3
--- Comment #3 from Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=307364#c4
Maciej Pilichowski
AFAIK that "power off" button is translated into DBUS events that ultimately are sent to the desktop that in turn translate this event into a "session end" event like described above.
AFAIK -- yes.
Which desktop are you using?
KDE.
Did the system finally shut down (despite the complaint) or not?
Well, after I killed all yast (killall ...) from root, yes, I was able to shut it down.
One way or the other, "power off" is NOT the method of choice if something goes wrong on a Linux system.
I am not taking about unplugging it, power off button is a normal and convenient way to shutdown the system. It works exactly the same if I press ctrl+alt+del and choose "shutdown". And about going wrong -- what choice did I have, if I am missing something please let me know (waiting ~12 hours is not acceptable for me).
KDE also has the "kill cursor":
THANK YOU!
Did you try to terminate it with "root" privileges?
Sure it worked. But it is a brute force method of interruption. Program does not have chance (ok, it has a bit, it could intercept this signal, but it is really low level). Note, that it is more useful to get signal in Qt level about power-off button press and manage aborting program in GUI mode -- in nice, user-friendly manner. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307364#c5
--- Comment #5 from Maciej Pilichowski
https://bugzilla.novell.com/show_bug.cgi?id=307364
J. Daniel Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=307364#c6
Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=307364#c7
--- Comment #7 from Stefan Hundhammer
Btw. it would be really nice to see some emergency abort feature (skip the current and the rest) and emergency rollback (skip current + rest, but rollback all installed in current session).
I am afraid rollback is very much out of reach (albeit often requested to uninstall patches, for example): There is no reliable way to undo whatever any of those pre-install or post-install (or pre-uninstall / post-uninstall) scripts did. This is a problem of how RPM works in principle.
One way or the other, "power off" is NOT the method of choice if something goes wrong on a Linux system.
I am not taking about unplugging it, power off button is a normal and convenient way to shutdown the system. It works exactly the same if I press ctrl+alt+del and choose "shutdown".
Right. Which is yet another not-method-of-choice to fix problems under Linux. ;-)
And about going wrong -- what choice did I have, if I am missing something please let me know (waiting ~12 hours is not acceptable for me).
The time estimate is just that: An estimate. If your connection is very slow but then becomes quicker after a while, the initial estimate may be way off. There is no real way to predict how long a package download and installation will take, yet it was requested so often that we were forced to implement something that really is completely bogus: We wait for a while (1 min) and watch the data transfer rate during this time and then extrapolate that to the remaining packages. This of course assumes that the transfer rate will remain the same, which may or may not be the case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307364#c8
--- Comment #8 from Maciej Pilichowski
ctrl+alt+del and choose "shutdown". Right. Which is yet another not-method-of-choice to fix problems under Linux. ;-)
:-))) Stefan, do you ever turn off your computer? :-)) If yes, please, don't tell me you type each time as root shutdown -h -t 1 now I wanted to turn off my computer! This was the reason I wanted to abort the SM, not vice versa!
And about going wrong -- what choice did I have, if I am missing something please let me know (waiting ~12 hours is not acceptable for me). The time estimate is just that: An estimate. If your connection is very slow but then becomes quicker after a while, the initial estimate may be way off.
After an 15 minutes and with >700MB to download knowing your top download speed you can do the math, and not even get ETA but the best time you achieve. So I was not panicking, it was sane decision -- I cannot wait that long, I have to turn off computer. Btw. I don't see it is a duplicate of the report you mentioned, yes it is true, it would be nice to handle "abort" button but displaying some popup window "qt blocked something" on power off is not user-friendly in any way (and does not tell anything, ask users what is "qt" :-) ). At least there should be popup windows saying "power off during installation is not possible", or something like this. The other report discuss useful, but only superficially related feature. Please, reopen this report on its own (I am not doing this because I don't want to force any decision here) -- thank you in advance. There is one obstacle in the way -- not willing to cooperate SM :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com