Cannot log in to system - main window  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Cannot log in to system - main window

#1 Post by hkjz »

Hi,
I turn on laptop and decrypt drive,

In the login window panel i provide password, password is accepted, log in, and screen turns black as changing to operating system, but instead i am back in login window panel. Repetitevely.

Im locked out of the system, and dont have other account

In the top right corner, options "suspend/hibernate/restartu/shutdown" are greyed out and not accessible.

With ctrl+alt+f1 i was able to get to terminal.

Never had this issue before.

Mx, Xfce, new distribution (2-3 months old).

Thanks
Image
Last edited by hkjz on Thu May 29, 2025 5:30 am, edited 1 time in total.

User avatar
asqwerth
Developer
Posts: 8039
Joined: Sun May 27, 2007 5:37 am

Re: Cannot log in to system - main window

#2 Post by asqwerth »

Did you add any 3rd party repos or install any 3rd party deb files?

Also, as Eadwine will say, please provide QSI for your system. Use QSI from booting a live USB to get the hardware specs.

I'm also wondering whether, if you use chroot rescue scan on the Live USB, you can access your actual system and provide more details of the installed system.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Re: Cannot log in to system - main window

#3 Post by hkjz »

from terminal i made attempt to create new temp account, but unfortunately i cannot login to it neither

im not aware to install any 3rd party deb files recentlyy

i've change 3 days agou grub, because there was problem with sound output

QSI

Code: Select all

System:
  Kernel: 6.1.0-29-amd64 [6.1.123-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/antiX/vmlinuz quiet splasht nosplash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto Jan 12  2025 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 20QDCTO1WW v: ThinkPad X1 Carbon 7th
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20QDCTO1WW v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: N2HET40W (1.23 ) date: 10/17/2019
Battery:
  ID-1: BAT0 charge: 34.0 Wh (81.7%) condition: 41.6/51.0 Wh (81.6%) volts: 16.1 min: 15.4
    model: SMP 02DL005 type: Li-poly serial: <filter> status: discharging cycles: 443
CPU:
  Info: model: Intel Core i7-8565U bits: 64 type: MT MCP arch: Comet/Whiskey Lake note: check
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xC6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 400 min/max: 400/4600 scaling: driver: intel_pstate governor: powersave
    cores: 1: 400 2: 400 3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 bogomips: 31999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Vulnerable: No microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT
    vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; RSB filling;
    PBRSB-eIBRS: SW sequence; BHI: SW loop, KVM: SW loop
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:3ea0 class-ID: 0300
  Device-2: Bison Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:2 chip-ID: 5986:114e
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 678x382mm (26.69x15.04") s-diag: 778mm (30.64")
  Monitor-1: eDP-1 model: AU Optronics 0x2336 built: 2017 res: 2560x1440 hz: 60 dpi: 210
    gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14") ratio: 16:9 modes: 2560x1440
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
    driver: sof-audio-pci-intel-cnl alternate: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:9dc8 class-ID: 0403
  API: ALSA v: k6.1.0-29-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel modules: wl
    bus-ID: 00:14.3 chip-ID: 8086:9df0 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15be class-ID: 0200
  IF: eth0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8
    bus-ID: 1-10:4 chip-ID: 8087:0aaa class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.1
    sub-v: 100 hci-v: 5.1 rev: 100
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: peripheral accept
    service-classes: rendering, capturing, object transfer, audio, telephony
Drives:
  Local Storage: total: 982.7 GiB used: 2.15 GiB (0.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: LEGEND 710 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: VC3S500T
    temp: 24.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Kingston model: DataTraveler 3.0 size: 28.83 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1100 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 37.0 C pch: 37.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2133 libs: 1065 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxrepo.com/mx/repo/ bookworm main non-free
Info:
  Processes: 256 Uptime: 0m wakeups: 38 Memory: 15.3 GiB used: 1.34 GiB (8.8%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

User avatar
j2mcgreg
Global Moderator
Posts: 7224
Joined: Tue Oct 23, 2007 12:04 pm

Re: Cannot log in to system - main window

#4 Post by j2mcgreg »

What is "agou grub"?
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
gimcrack
Posts: 307
Joined: Fri Dec 02, 2011 5:17 pm

Re: Cannot log in to system - main window

#5 Post by gimcrack »

j2mcgreg wrote: Thu May 29, 2025 7:48 am What is "agou grub"?
"Agou grub" is not a recognized term. It likely refers to a misspelling of "GNU GRUB,"

User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Re: Cannot log in to system - main window

#6 Post by hkjz »

ChatGPT developed a script bellow that I ran in the MX_Live/chroot environment, but it didn't resolve the issue.

Code: Select all

#!/bin/bash

set -e

echo "[1/7] Cleaning XFCE session cache and auth files..."

rm -rf /home/*/.cache/sessions/ 2>/dev/null || true
rm -f /home/*/.Xauthority       2>/dev/null || true

echo "[2/7] Updating package list..."
apt update

echo "[3/7] Reinstalling display stack (XFCE, LightDM, Xorg)..."
apt install --reinstall \
  xfce4 \
  xfce4-session \
  xfce4-goodies \
  lightdm \
  lightdm-gtk-greeter \
  xorg \
  dbus-x11 \
  --yes

echo "[4/7] Backing up and rewriting LightDM config..."

# Backup if config exists
if [ -f /etc/lightdm/lightdm.conf ]; then
  cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak
fi

# Recreate minimal working config
tee /etc/lightdm/lightdm.conf > /dev/null <<EOF
[Seat:*]
user-session=xfce
greeter-session=lightdm-gtk-greeter
EOF

echo "[5/7] Reconfiguring LightDM..."
dpkg-reconfigure lightdm

echo "[6/7] Updating initramfs..."
update-initramfs -u

echo "[7/7] Updating GRUB bootloader..."
update-grub

echo "All tasks completed inside chroot. You may now type 'exit' and reboot from host system."

User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Re: Cannot log in to system - main window

#7 Post by hkjz »

So thre is other script which im running directly from the OS

IT Still doesnt work

Code: Select all

#!/bin/bash

sudo pkill -9 Xorg
sudo pkill -9 xfce4-session
sudo pkill -9 xinit
sudo pkill -9 startxfce4
sudo pkill -9 lightdm
sudo pkill -9 xfce4-panel
sudo pkill -9 xfwm4
sudo pkill -9 xfdesktop

sudo /etc/init.d/lightdm stop
sudo update-rc.d lightdm disable
sudo sysv-rc-conf lightdm off

sudo rm -f /tmp/.X*-lock
sudo rm -rf /tmp/.X11-unix
sudo mkdir /tmp/.X11-unix
sudo chmod 1777 /tmp/.X11-unix
sudo chown root:root /tmp/.X11-unix || true

rm -f ~/.Xauthority
rm -rf ~/.cache/sessions
rm -f ~/.xsession-errors
touch ~/.Xauthority
sudo chown $USER:$USER ~/.Xauthority || true

sudo apt install --reinstall xfce4 xfce4-session xfce4-panel xfdesktop xfwm4 xfce4-settings xinit dbus-x11 xterm --yes

cat <<EOF > ~/.xinitrc
#!/bin/bash
export DESKTOP_SESSION=xfce
export XDG_CURRENT_DESKTOP=XFCE
export XDG_SESSION_TYPE=X11
exec dbus-launch --exit-with-session startxfce4
EOF

chmod +x ~/.xinitrc

xauth add :0 . $(mcookie)
xauth list

echo "xterm" > ~/xinit.test



Image

User avatar
dolphin_oracle
Developer
Posts: 22747
Joined: Sun Dec 16, 2007 12:17 pm

Re: Cannot log in to system - main window

#8 Post by dolphin_oracle »

also check to make sure there is space available on whatever partition holds the home folder.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Re: Cannot log in to system - main window

#9 Post by hkjz »

What worked was

Code: Select all


sudo apt update
sudo apt purge xfce4 xfce4-* thunar xfdesktop4 xfwm4 --yes
sudo apt autoremove --yes
sudo apt clean
sudo apt install xfce4 xfce4-goodies --yes


How can i set up now the defauclt xfce display?


Image

@dolphin_oracle space availability ichecked at the beginning ;-)

User avatar
hkjz
Posts: 345
Joined: Thu Apr 11, 2019 4:38 pm

Re: Cannot log in to system - main window

#10 Post by hkjz »

At the end, i was not able to revive the system, and i've reinstall it

Post Reply

Return to “MX Help”