Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(Possible) DDE battery screen blocks Gnome etc.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 603

PostPosted: Thu Aug 13, 2020 1:44 pm    Post subject: (Possible) DDE battery screen blocks Gnome etc. Reply with quote

Hello

When I start the laptop, with full battery and "AC online", and Gnome DE (I guess others too), then a lock screen appears with "Battery low, please plug in" or similar message. It also displays some little plug and socket icons in the middle of the screen. With black background.

There is no (reasonable) way to unlock.

I know I can switch to VT1, log in, do
Code:

kill $(ps ax|grep dde|cut -b1-6)
kill $(ps ax|grep deepin|cut -b1-6)


This still does not remove the lock screen, so I also do "killall -9 gnome-shell" (-9 is required, and the command is required from time to time anyway, because Gnome now tends to crash, hang, enter tarpit mode, or do other "things" in various ways that can be stopped with this kill command).

Then gnome-shell restarts and can be used.

So there are a few questions:

What program/application does this? Knowing this would help automate the task. There is a *dde*battery* process running, but I hope someone just knows what it is and it can be "documented".

How is it even possible that an application can open a window, or lock screen, with no way to remove it, and keep it even if the processes are killed? I remember that was only if a buggy app runs on a buggy X server. X servers used to be rock solid in practice, and would not be effectively locked up by any process. But gnome-shell is a compositor. Is there a way to restore gnome-shell to working state, after an unwanted popup blocked everything?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7620
Location: almost Mile High in the USA

PostPosted: Fri Aug 14, 2020 12:33 am    Post subject: Reply with quote

What is DDE?

What extensions are you running, can you disable them to see if they are causing the problem? I'm not entirely sure but I thought the Gnome extensions are run within gnome shell and don't fork off another process, but someone needs to correct me on this.

I don't recall seeing the behavior on my Gnome laptop, then again I'm mostly running xfce4 on that machine now. Will have to test it to see if I can get it to do the same...

As I am on my Gnome/xfce desktop (using gnome desktop manager) I do not see any dde or ddepin or deepin process running when I start Gnome, so not sure what's going on here. Must have something installed that I don't...

You may want to post your world file, might help, else post the exact/entire command line that ps(1) reports...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 603

PostPosted: Sat Aug 15, 2020 11:35 am    Post subject: Reply with quote

OK, more information.

It seems to happen on every reboot.

DDE is deepin the desktop environment (as opposed to deepin the distribution which ships with DDE). It is in some overlay.

A possible source of the lock screen is "dde-lowpower". Update: maybe not.

Something else has just changed with Gnome. There is no linger a process "gnome-shell" running, that can be killed to restart the Gnome session without killing all other processes. Instead, there is a "gnome-session-binary" process, an xdm related process with an argument containing "gnome-shell", and multiple "X" processes with gnome-shell arguments.

Restarting the xdm related process seems to kill the session, but the next login comes up without the lock screen.

The DDE processes are present in a Gnome session for no known reason.

I did a ps ax > ps-ax1.txt with the lock screen, and > ps-ax2.txt without.

Then: cat ps-ax2.txt |perl -pne '($_)=/(\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+)/; $_.="\n"'|cut -b 28-|sort > ps-ax2-r-28-s.txt

redacts the arguments (much of it looks like passwords), removes pids etc, and sorts, only then a diff shows good information:

Code:

--- ps-ax1-r-28-s.txt   2020-08-15 13:18:36.869348145 +0200
+++ ps-ax2-r-28-s.txt   2020-08-15 13:18:45.964233349 +0200
@@ -7,27 +7,28 @@
  bash
  bash
  bash
- /bin/bash
- /bin/sh
- /bin/sh
- /bin/sh
+ bash
  /bin/sh
  /bin/sh
  /bin/sh
  /bin/sh
  COMMAND
- [dbus-daemon]
- [dbus-daemon]
  dbus-daemon
  dde-printer
  dde-printer
+ fcitx
  gjs
  gkrellm
+ gkrellm
  gpg-agent
  ibus-daemon
+ ibus-daemon
+ ibus-daemon
+ kgpg
  kgpg
  lxterminal
  nextcloud
+ nextcloud
  /opt/skypeforlinux/skypeforlinux
  /opt/skypeforlinux/skypeforlinux
  /opt/skypeforlinux/skypeforlinux
@@ -42,25 +43,25 @@
  python3.7
  python3.7
  remmina
- sleep
- sleep
+ [run_little_appl]
  sleep
  sleep
  urxvt
  urxvt
+ /usr/bin/abrecovery
+ /usr/bin/dbus-daemon
  /usr/bin/dbus-daemon
  /usr/bin/dde-clipboard
+ /usr/bin/dde-clipboard
  /usr/bin/dde-clipboardloader
+ /usr/bin/dde-lock
  /usr/bin/deepin-wm-dbus
- /usr/bin/dman-search
+ /usr/bin/fcitx-dbus-watcher
  /usr/bin/gnome-shell
- /usr/bin/kded5
- /usr/bin/kglobalaccel5
  /usr/bin/pulseaudio
  /usr/bin/X
- /usr/bin/xpad
  /usr/lib64/deepin-daemon/dde-lowpower
- /usr/lib64/deepin-daemon/dde-session-daemon
+ /usr/lib64/firefox/firefox
  /usr/lib64/firefox/firefox
  /usr/lib64/firefox/firefox
  /usr/lib64/firefox/firefox
@@ -74,7 +75,6 @@
  /usr/lib64/xfce4/xfconf/xfconfd
  /usr/libexec/at-spi2-registryd
  /usr/libexec/at-spi-bus-launcher
- /usr/libexec/bamf/bamfdaemon
  /usr/libexec/dconf-service
  /usr/libexec/evolution-addressbook-factory
  /usr/libexec/evolution-calendar-factory
@@ -112,11 +112,6 @@
  /usr/libexec/gvfs-gphoto2-volume-monitor
  /usr/libexec/gvfs-mtp-volume-monitor
  /usr/libexec/gvfs-udisks2-volume-monitor
- /usr/libexec/ibus-dconf
- /usr/libexec/ibus-engine-simple
- /usr/libexec/ibus-extension-gtk3
- /usr/libexec/ibus-portal
- /usr/libexec/ibus-x11
  /usr/libexec/mission-control-5
  /usr/libexec/pulse/gsettings-helper
  /usr/libexec/xdg-permission-store
@@ -125,6 +120,9 @@
  xbelld
  xfce4-panel
  xload
+ xpad
+ [Xsession]
+ [Xsession]
  [Xsession]
  [Xsession]
  [Xsession]


From the diff, the offending process might have "bamf" in its name.

Next time I try killing that, and see if the lock screen goes away.

To revisit the question, what is DDE? Hmmm...?
Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 603

PostPosted: Tue Sep 15, 2020 1:28 pm    Post subject: Reply with quote

Gnome (both wayland and X) has become so riddled with bugs (maybe touchscreen related) and possibly "Not-Bugs" which have the same effect, while KDE has become usable (it gained properly working focus-follows-mouse, and panel applets can be removed, and no more party-hard flickering "effects"), so I was forced to switch for now.

It seems the behaviour is generally much better, and there have been no problems with the unkillable lock screen for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum