SOLVED Buster XFCE: How to find the cause of random crashes?

If none of the more specific forums is the right place to ask

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-08-30 20:51

ruwolf wrote:Fields on the end (in your case [8086:8c3d] and [10de:0a65]) are not word/abbreviation/acronym descriptions of devices. They are hexadecimal numbers, identifiers in format vendor:device.

Thanks.
That means that indeed I have a Optimus (hybrid) graphics chipset.
So I have to go with the Bumblebee.
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby sunrat » 2019-08-30 21:17

efrpcabo wrote:Thanks.
That means that indeed I have a Optimus (hybrid) graphics chipset.
So I have to go with the Bumblebee.

No it doesn't mean that at all. As this is a desktop it most likely is NOT Optimus. You may be able to disable the Intel graphics in UEFI/BIOS setup menu and use just the Nvidia graphics, or pull the Nvidia card out and use the Intel graphics. As this is a low spec Nvidia card you may find it works well with the default nouveau driver which saves you the hassle of installing Nvidia.
It also may work fine without the Nvidia card at all, just using the onboard graphics.
Either way you should install firmware-misc-nonfree and intel-microcode.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2885
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Buste XFCE: How can I find the cause of random crashes?

Postby stevepusser » 2019-08-31 17:20

You have described an Intel serial device, just as it says. That is not a video device. You only have the Nivdia GPU.

Install and run nvidia-detect. That will tell you which of the different Nvidia drivers in the Debian non-free section is right for your card. You don't have to research the hexadecimal IDs. It's right in the wiki.

You can install gsmartcontrol and have it run some diagnostics on your hard drive to check its health, too. I'd do that as part of regular maintenance, anyway.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11256
Joined: 2009-10-06 05:53

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-08-31 20:19

sunrat wrote:
efrpcabo wrote:Thanks.
That means that indeed I have a Optimus (hybrid) graphics chipset.
So I have to go with the Bumblebee.

No it doesn't mean that at all. As this is a desktop it most likely is NOT Optimus. You may be able to disable the Intel graphics in UEFI/BIOS setup menu and use just the Nvidia graphics, or pull the Nvidia card out and use the Intel graphics. As this is a low spec Nvidia card you may find it works well with the default nouveau driver which saves you the hassle of installing Nvidia.
It also may work fine without the Nvidia card at all, just using the onboard graphics.
Either way you should install firmware-misc-nonfree and intel-microcode.

Thank you!

I want to use the Nvidia card because its output digital and the Intel is analogic, but I will try to disable Intel in BIOS.

intel-microcode:
I already had installed it because of another issue

firmware-misc-nonfree:
thanks for the tip!
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-08-31 20:21

stevepusser wrote:You have described an Intel serial device, just as it says. That is not a video device. You only have the Nivdia GPU.

Install and run nvidia-detect. That will tell you which of the different Nvidia drivers in the Debian non-free section is right for your card. You don't have to research the hexadecimal IDs. It's right in the wiki.

You can install gsmartcontrol and have it run some diagnostics on your hard drive to check its health, too. I'd do that as part of regular maintenance, anyway.

Thank you!

nvidia-detect:
Detected NVIDIA GPUs:
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)
Checking card: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Your card is only supported up to the 340 legacy drivers series.
It is recommended to install the
nvidia-legacy-340xx-driver
package.

So, I will install:
nvidia-legacy-340xx-driver

gsmartcontrol:
thanks for the tip!
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby sunrat » 2019-08-31 21:54

stevepusser wrote:You have described an Intel serial device, just as it says. That is not a video device. You only have the Nivdia GPU.


Oops there I am being caught out giving incorrect advice, no Intel GPU. Still correct is it's not Optimus as suggested earlier.
Also correct is the GT210 should be well supported by the nouveau driver so it's possible the crashes have a different cause entirely.

It makes reading lines of terminal output much easier if they are included in [code][/code] tags. Please do that.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2885
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 08:23

Just to post my feedback.
Here's what I've done:

install recommended packages at terminal as root:
apt update
apt install firmware-misc-nonfree
apt install intel-microcode [I have an intel processor]
reboot


install and run nvidia-detect to find out which nvidia driver to use
apt update
apt install nvidia-detect


run nvidia detect
nvidia-detect
output:
Detected NVIDIA GPUs:
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)
Checking card: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Your card is only supported up to the 340 legacy drivers series.
It is recommended to install the
nvidia-legacy-340xx-driver
package.


---------------------------------------------
install nvidia-legacy-340xx-driver

before installation
check the current driver in use (do it again later)
lspci -k | grep -EA3 'VGA|3D|Display'
output:
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Subsystem: ASUSTeK Computer Inc. GT218 [GeForce 210]
Kernel driver in use: nouveau
Kernel modules: nouveau


installation
apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-340xx-driver

reboot [as recommended by the Wiki, so that Nouveau becomes blacklisted


after installation
lspci -k | grep -EA3 'VGA|3D|Display'
output:
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Subsystem: ASUSTeK Computer Inc. GT218 [GeForce 210]
Kernel driver in use: nvidia
Kernel modules: nvidia


So far I hadn't any crash (log out), but I think it's too soon to reach a conclusion.
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby sunrat » 2019-09-01 09:15

Nice work. Fingers crossed!

Just as a vaguely related comment, I have an Nvidia GTX 560 Ti which freezes with the Nvidia driver but not with nouveau. There's no universal solution.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2885
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 17:26

sunrat wrote:Nice work. Fingers crossed!

Thank you!

Until now, I haven't experienced any crash.
But today is sunday and I only have been little time at the computer.

But now my display manager crashes immediately when I log out with "Crtl + Alt + Delete":
I just see a black screen with the cursor blinking in the top left corner. And the greeter doesn't appear.

Before the Nvidia driver installation, when I pressed "Crtl + Alt + Delete" I would log out and the greeter would appear.

However, when I log out using the button in the panel (log out, restart, shutdown, etc), it works well and goes to the greeter.
I just see for a split second the image of the Nvidia logo.

So I think this is directly related with the Nvidia driver installation.

From another computer, I am able to restart the display manager if I log in with ssh and run this:
systemctl restart display-manager

Any ideas on how to make "Crtl + Alt + Delete" behave like it used to?
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 17:31

I checked in my keyboard settings and "Crtl + Alt + Delete" lauches command "xflock4".

And then, if I hit "Crtl + Alt + Delete" a second time, I get a reboot.
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 18:10

After googling, I came across this thread:
https://unix.stackexchange.com/question ... l-shutdown

This led me to investigate a bit:
which xflock4
output:
/usr/bin/xflock4

mousepad /usr/bin/xflock4
[see below]

which xfce4-screensaver
outuput:
[none]

which screensaver
outuput:
[none]

apt update
apt install xfce4-screensaver


Then, I logged out using the the button in the panel (log out, restart, shutdown, etc).

Then, I pressed "Crtl + Alt + Delete" and now it works well:
I get logged out and go to the greeter.

However, the greeeter is different than it was.

Before, the greeter was like this:
https://linuxdicasesuporte.blogspot.com ... or-de.html

It's a nice and beautiful greeter, just not the same.
I don't now why.
It has my wallpaper as it's background image.

And it has the options:
- User
- Password
- Switch User
- Cancel
- Shutdown

If I introduce the password, I enter the display manager and everything works well.

If I choose "Switch User, I get a black screen with the cursor blinking in the top left corner.
And the greeter doesn't appear.
I press "Crtl + Alt + Delete" and the computer reboots.

Terminal:
mousepad /usr/bin/xflock4
#!/bin/sh
#
# xfce4
#
# Copyright (C) 1999, 2003 Olivier Fourdan (fourdan@xfce.org)
# Copyright (C) 2011 Guido Berhoerster (guido+xfce.org@berhoerster.name)
# Copyright (C) 2011 Jarno Suni (8@iki.fi)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

# First test for the command set in the session's xfconf channel
LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand)

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
"$LOCK_CMD" \
"xfce4-screensaver-command --lock" \
"xscreensaver-command -lock" \
"light-locker-command --lock" \
"gnome-screensaver-command --lock" \
"mate-screensaver-command --lock"
do
if [ ! -z "$lock_cmd" ]; then
$lock_cmd >/dev/null 2>&1 && exit
fi
done

# else run another access locking utility, if installed
for lock_cmd in \
"xlock -mode blank" \
"slock"
do
set -- $lock_cmd
if command -v -- $1 >/dev/null 2>&1; then
$lock_cmd >/dev/null 2>&1 &
# turn off display backlight:
xset dpms force off
exit
fi
done

# else access locking failed
exit 1
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 19:26

After some minutes after logging out by pressing "Crtl + Alt + Delete", I get a black screen with the cursor blinking in the top left corner.
And the greeter doesn't appear.
I press "Crtl + Alt + Delete" and the computer reboots.

I think this happens because the power manager options gets my computer to suspend or hibernate, but I'm just gessing here.
But my system is set to never suspend or hibernate in the Power Manager settings.
But I guess this settings are getting overrided by something else now. Problably the same cause the causes the different greeter.

I someones has some clue, please post here.
Or if there's a way to reinstall or reset the greeter and screensaving and power manager options.
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 19:45

I've read this in the Wiki. The instructions don't mention Buster, but I guess it may apply to it also:
https://wiki.debian.org/Suspend

And tried disabling suspend and hibernate:
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

But immediatly after logging out by pressing "Crtl + Alt + Delete", I get a black screen with the cursor blinking in the top left corner.

So, I disabled it again running this:
systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

I'm running out of ideas :roll:
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby efrpcabo » 2019-09-01 19:47

The good news is I'm working for some hours here at the computer and the crashes seem to be gone.

But the problem now is my computer must shutdown every time I stop working.
Because if I don't shut it down, I will get the blinking cursor when I come back later.
User avatar
efrpcabo
 
Posts: 91
Joined: 2013-08-08 06:36

Re: Buste XFCE: How can I find the cause of random crashes?

Postby NFT5 » 2019-09-01 20:15

When I was running XFCE I found that the Power Manager didn't play nice with Gnome Screensaver and I was experiencing similar, but not as severe, problems as you are.

Disabling the Power Manager completely and using only the blank screen screensaver seemed to work.
User avatar
NFT5
 
Posts: 331
Joined: 2014-10-10 11:38
Location: Canberra, Australia

PreviousNext

Return to General Questions

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable