Page MenuHomePhabricator

Enlightenment-git poweroff issue
Open, Incoming QueuePublic

Description

When i do > system -> poweroff screen becomes black during this power off. No message.
It never happened before.
When i do poweroff in tty console, this problem doesn't happen. I can see normal messages about processes.
Conditions:
Last enlightenment-git and efl-git master
Arch system

maderios created this task.Dec 6 2020, 2:06 AM
raster added a comment.Dec 6 2020, 3:00 AM

laptop? desktop or external monitor?

A laptop, desktop, e X session, driver intel i915

raster added a comment.Dec 6 2020, 2:59 PM

well the desktop will go black - e just asks systemd to shut down and sits around doing nothing. e will fade to black before doing this so you will see that screen until e, xorg etc. processes are killed/asked to exit by the shutdown. thus yes - your screen will be black until that happens. after that - backlight on a laptop will be at 0 still and on a desktop if you have ddcutil installed it may have lowered your monitor backlight to 0 or lowest value too... that would be normal. in fact on al my machines the console has always been black during power off and stays that way - it's nice and clean and slick - no text scrolling by or errors or blinking cursors... just goes black and 2 seconds later or so the power led on the pc or laptop goes off. nice. :) ... if shutdown asks xorg or e to exit before this (sends a SIGINT/SIGQUIT/or KILL signal) then e wil exit.

well the desktop will go black - e just asks systemd to shut down and sits around doing nothing.

There's something wrong. E doesn't have to hide messages display during poweroff. None desktop environment does that.

e will fade to black before doing this so you will see that screen until e, xorg etc. processes are killed/asked to exit by the shutdown. thus yes - your screen will be black until that happens. after that - backlight on a laptop will be at 0 still and on a desktop if you have ddcutil installed it may have lowered your monitor backlight to 0 or lowest value too... that would be normal.

ddcutil is not installed on my computer

in fact on al my machines the console has always been black during power off and stays that way - it's nice and clean and slick - no text scrolling by or errors or blinking cursors... just goes black and 2 seconds later or so the power led on the pc or laptop goes off. nice. :) ...

It's your choice, not mine... :)

if shutdown asks xorg or e to exit before this (sends a SIGINT/SIGQUIT/or KILL signal) then e wil exit.

raster added a comment.Dec 7 2020, 4:19 AM

There's something wrong. E doesn't have to hide messages display during poweroff. None desktop environment does that.

e is not hiding them. it's just fading to black - on your desktop you should still see things even if back-light is dim on your monitor - i have never seen a desktop monitor do totally off backlight. if you don't have ddcutil installed then desktop monitor backlight wont change anyway. so e just fades to black and sits there. it's waiting for its process to be killed/terminated by the system during shutdown. at this point when things have gone to black it's out of e's hands. it just sits waiting for its death done by the system. if your shutdown does not kill e then things will remain this way until the system either chooses to kill it - maybe right at the end or it gives up and just powers off anyway, but at this point its your os/system not e. as you don't have ddcutil installed it seems then .. it's what i describe. simply your system is not killing off the e process as i described. e has NEVER gone and then exited on its own doing a system shutdown it has ALWAYS gone into this "fade to black and sit and do nothing waiting for something to try kill it" state - always. this has not changed - ever.

so ... i suggest you want to check what your system is doing on shutdown and why it isn't killing off e or even xorg in some way. the fact xorg is still alive tells me it's not even trying to kill it off (a loss of the xserver connection would case e to exit too).

May be interesting: this issue doesn't happen with enlightenment wayland session.

so ... i suggest you want to check what your system is doing on shutdown and why it isn't killing off e or even xorg in some way. the fact xorg is still alive tells me it's not even trying to kill it off (a loss of the xserver connection would case e to exit too).

My system works fine, except when i poweroff from enlightenment X session. Other desktops environment can poweroff normally, with messages

They may choose to exit early. Enlightenment never has done that - ever. it issues a shutdown (via running a command or dbus message to systemd) and then has always sat around. the system shutdown would normally kill off various processes - login manager, xorg, enlightenment itself etc. it is not doing it if e is still there. or its' delaying it until the very end.

In this case, why e wayland session poweroff displays shutdown messages normally? I seems e has a problem with X

there is no difference into how e handles shutdown either way. it's unrelated to x or wayland. i might imagine for whetever reason your x session and its processes are not being shut down until late and the wayland login session happens to get killed off early by the system shutdown (logind/systemd and friends)