** Description changed:

- Bad design of logout in Ubuntu (gnome, kde, etc) leads to at least 2 use
- cases with possible data corruption from having to hardly shutdown the
- computer (i.e. power off).
+ Bad design of logout in Ubuntu (gnome, kde, etc) leads to at least DOZEN
+ use cases with possible data corruption from having to hardly shutdown
+ the computer (i.e. power off).
  
- Use case 1 - confirmation on power button
+ Summary:  
+ person with access to power-off hardware button should be allowed to use it 
to tell computer to shut down gracefully;
+ Because:
+ - perhaps he can not use GUI (keyboard driver bug, UPS power lost and not 
LCD, etc etc) so presenting him with a gui box with confirmation etc is BAD if 
pressing power button again doesnt work as "Ok, proceed!" 
+ - he can anyway press and hold the button to hard-turn-off the box. But this 
is bad for filesystems.
  
+ 
+ Use case 1)
  Power goes out, PC is on UPS, monitor is not (common), lights go out.
+ ***UPS deamon*** was NOT configured (common for home users).
  You press the power key to turn it off.
  It does NOT turn off. It displays a nice logout confirmation box, especially 
if you had another session opened (VT1, or say VT8 another X session etc).
  You can either hope to login as root, go to console, and type  shutdown -h 
now  in darkness, or data corruption in 3 minutes when UPS dies.
  
- Solution:
- In KDE:
+ Or - gfx card died (happened to me due to reported nvidia/xorg bugs), so you 
can not use GUI and UPS deamon 
+ doesn't know there is a problem.
+ 
+ Use case 2:
+ Thunderstorm closes in but you left PC running.
+ Family member / coworker / etc wants to turn it off, but ooops - need a 
password to unlock X...
+ you wait for thunderstorm or hard-power-off again.
+ Here, also adding a Power Off button to the password query would be nice.
+ 
+ Use case 3: 
+ GFX and/or keyboard/mouse locked out / do not work (this happens).
+ 
+ 
+ Common solutions:
+ In KDE / Gnome
  - when user presses power button 2nd time in 30 seconds (or, when 
confirmation box is already visible) then just force logout
  - when logout (closing all applications etc) takes more then 10 seconds (i.e. 
some applications showed a box to confirm closing it etc), or when button is 
pressed again, just kill it
  
  In Ubuntu (scripts?)
  - when power button is pressed 4 times in 30 seconds then shutdown -h now -t 
10
  - when power button is pressed 5 times in 30 seconds then just kill -9 most 
applications, and sync
- 
- 
- Use case 2:
- Thunderstorm closes in but you left PC running.
- Family member / coworker / etc wants to turn it off, but ooops - need a 
password to unlock X...
- you wait for thunderstorm or hard-power-off again.
- 
- Solutions:
- 
- GNOME:
- as there is Leave-A-Note (in GNOME password), add also an Turn Off button.
- Leave config option to disable it.
- 
- KDE: as in GNOME
- 
- also, the power-button-click described above (several times) would as
- well solve this case,
- 
- 
- One could say: just use UPS. Ok this helps in use case 1.  Not in other 
cases, not all users with ups have time to set it all up etc etc.
- 
- Simply:
- User with access to power button CAN turn off computer always, so lets allow 
him to do it gracefully, if he insists (pressing power button several times).
- Also: this will solve cases like when keyboard dies (I seen it), or gfx card 
dies (seen it too) and other strange cases.

-- 
logout box + no way to kill computer = data corruption
https://bugs.launchpad.net/bugs/285141
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to