Results 1 to 9 of 9

Thread: Randomly kills all my windows and logs me out

  1. #1
    Join Date
    Oct 2024
    Beans
    5

    Randomly kills all my windows and logs me out

    I bought a refurbished Lenovo IdeaPad with core i9 and 32GB RAM. It came with windows 11. I installed ubuntu 24.04 on it. It runs amazingly fast - loving it.

    Several times a day, it will close all my windows and log me out. How do I debug this? There are so many log files in linux. Which ones should I look at?

    I used to use ubuntu/linux a lot around 10 years back and then switched to mac for the last 10 years.

    I get so frustrated sometimes that I am thinking of just moving back to mac though I love the feeling of using linux/OSS and would like to continue using it.

    The programs I run:
    - brave browser
    - gvim
    - terminal
    - winamp in wine
    - Discord
    - Transmission
    - mac os inside qemu.
    - signal
    - telegram
    - nordvpn
    - pihole/dnsmasq
    - Thinkorswim (java)
    - calibre



    $ sudo apt upgrade


    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
    libcjson1 libpostproc57 libavcodec60 libavcodec60 libavutil58 libavutil58
    libswscale7 libswresample4 libswresample4 libavformat60 libavfilter9
    Learn more about Ubuntu Pro at https://ubuntu.com/pro
    The following upgrades have been deferred due to phasing:
    file-roller python3-distupgrade shotwell shotwell-common
    ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
    0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.



    $ sudo apt update
    Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease
    Hit:2 https://updates.signal.org/desktop/apt xenial InRelease
    Hit:4 https://tvd-packages.tradingview.com/ubuntu/stable jammy InRelease
    Hit:3 https://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
    Get:5 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
    Hit:6 https://ppa.launchpadcontent.net/ata...elegram/ubuntu noble InRelease
    Hit:7 http://in.archive.ubuntu.com/ubuntu noble InRelease
    Hit:8 https://ppa.launchpadcontent.net/bra...drtools/ubuntu noble InRelease
    Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [7,184 B]
    Get:10 http://in.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
    Hit:11 https://ppa.launchpadcontent.net/fle...uickemu/ubuntu noble InRelease
    Get:12 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
    Get:13 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [51.9 kB]
    Get:14 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]
    Get:15 http://in.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
    Get:16 http://in.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [599 kB]
    Get:17 http://in.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [114 kB]
    Get:18 http://in.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
    Get:19 http://in.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [709 kB]
    Get:20 http://in.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [437 kB]
    Get:21 http://in.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [305 kB]
    Get:22 http://in.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
    Get:23 http://in.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [208 B]
    Get:24 http://in.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
    Get:25 http://in.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [21.1 kB]
    Get:26 http://in.archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
    Fetched 2,625 kB in 10s (275 kB/s)
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    6 packages can be upgraded. Run 'apt list --upgradable' to see them.
    N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
    W: http://linux-packages.resilio.com/re...ync/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    N: Skipping acquire of configured file 'non-free/binary-i386/Packages' as repository 'http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease' doesn't support architecture 'i386'

    Log files are here:

    $ cat /var/log/syslog > var-log-syslog.txt
    $ cat /var/log/auth.log > var-log-syslog.txt
    $ cat /var/log/auth.log > var-log-auth-log.txt
    $ journalctl -b # View logs from the current boot

    How do I enable DEBUG logs?

    Thank you!
    Last edited by dangerous001; October 27th, 2024 at 04:11 PM.

  2. #2
    Join Date
    May 2018
    Location
    Here and There
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Randomly kills all my windows and logs me out

    Would you please run our system-info script, and at the end it will provide a link; just paste that link back here in your thread.
    Code:
    wget -N -t 5 -T 10 https://github.com/Mafoelffen1/system-info/raw/main/system-info && \
    chmod +x system-info && \
    ./system-info --details
    "When you practice gratefulness, there is a sense of respect toward others." >>Dalai Lama

  3. #3
    Join Date
    Oct 2024
    Beans
    5

    Re: Randomly kills all my windows and logs me out

    Quote Originally Posted by 1fallen2 View Post
    Would you please run our system-info script, and at the end it will provide a link; just paste that link back here in your thread.
    Code:
    wget -N -t 5 -T 10 https://github.com/Mafoelffen1/system-info/raw/main/system-info && \
    chmod +x system-info && \
    ./system-info --details
    I was using gnome classic before. Now, I installed KDE and switched to plasma window manager.

    https://termbin.com/4ol7

  4. #4
    Join Date
    May 2018
    Location
    Here and There
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Randomly kills all my windows and logs me out

    This I need to check, but will you now include:
    Code:
    inxi -m
    This is what I'm seeing:
    Code:
    ---------- Memory Information:
                   total        used        free      shared  buff/cache   available
    Mem:           31698       25403        1253        1799        7475        6295
    Swap:           8191         564        7627
    It's hard for me to imagine why your using 25 Gigs of ram. I only use 16 Gigs total and never come close to that???
    "When you practice gratefulness, there is a sense of respect toward others." >>Dalai Lama

  5. #5
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,583
    Distro
    Ubuntu Development Release

    Re: Randomly kills all my windows and logs me out

    Quote Originally Posted by 1fallen2 View Post
    It's hard for me to imagine why your using 25 Gigs of ram. I only use 16 Gigs total and never come close to that???
    +1.
    I noticed the same. There is a lot of stuff in use, maybe try not using one or two things at a time and see if there is any difference. First, I would try not using the brave-browser as it shows many many times in the tty list
    Last edited by Doug S; October 28th, 2024 at 01:23 AM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  6. #6
    Join Date
    Oct 2024
    Beans
    5

    Re: Randomly kills all my windows and logs me out

    $ inxi -m
    Memory:
    System RAM:total: 32 GiB available: 30.96 GiB used: 24.14 GiB (78.0%)
    Message: For most reliable report, use superuser + dmidecode.
    Array-1:capacity: 32 GiB slots: 8 modules: 8 EC: None
    Device-1: Controller0-ChannelA type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-2: Controller0-ChannelB type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-3: Controller0-ChannelC type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-4: Controller0-ChannelD type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-5: Controller1-ChannelA type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-6: Controller1-ChannelB type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-7: Controller1-ChannelC type: LPDDR5 size: 4 GiB speed: 7467 MT/s
    Device-8: Controller1-ChannelD type: LPDDR5 size: 4 GiB speed: 7467 MT/s


  7. #7
    Join Date
    Oct 2024
    Beans
    5

    Re: Randomly kills all my windows and logs me out

    Thanks @1Fallen2 & @Doug S for pointing me in the right direction! I will try to debug why so much RAM is being used. Would be nice if ubuntu would show me a warning popup saying that too much RAM is being used instead of just logging out without warning.

  8. #8
    Join Date
    May 2018
    Location
    Here and There
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Randomly kills all my windows and logs me out

    Yes much better now!
    Code:
    available: 30.96 GiB used: 24.14 GiB (78.0%)


    I'll bet your random logouts are gone now. (or i hope they are)
    You was aware of the many open Brave-browsers in your TTY's right? if not that is a good place to investigate.

    "When you practice gratefulness, there is a sense of respect toward others." >>Dalai Lama

  9. #9
    Join Date
    Oct 2024
    Beans
    5

    Re: Randomly kills all my windows and logs me out

    Yes, random logouts are gone after I switched from gnome classic to plasma. Thank you very much!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •