Strange Black login screen - not possible to login

  • denhen89
  • denhen89's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 Oct 2022 12:12 #253871 by denhen89
Hello,

i just wanted to do something on my lathe but i am unable to login. The standard login screens does not even show up anymore, but a black login screen.
Please take a look at the picture. I am entering my login details correct, but after clicking enter, nothing happens.

I hope my config is save and i do not loose anything.

Hope someone can help me out. Thanks in advance.
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2022 13:54 #253883 by tommylight
try
ctrl+alt+F7
if that does not show a desktop, try
startx

Please Log in or Create an account to join the conversation.

More
10 Oct 2022 20:43 #253914 by arvidb

Hello,

i just wanted to do something on my lathe but i am unable to login. The standard login screens does not even show up anymore, but a black login screen.
Please take a look at the picture. I am entering my login details correct, but after clicking enter, nothing happens.

I hope my config is save and i do not loose anything.

What you're seeing is a standard text terminal (tty1). This means that for some reason your graphical environment did not start. It's clear from your picture that logging in works just fine though since you get a text prompt (cncpc@CNCPC:~$). You should be able to see your configs by typing 'ls -l linuxcnc/'.

Like tommylight says, try ctrl+alt+F7 to switch to terminal #7 which is often the terminal where the GUI is started. (Some distros start it on terminal #2, so you could try ctrl+alt+F2 as well.)

'startx' is another good suggestion - this should start the graphical environment. You need to be logged in first, as in your picture. Hopefully it will give you some error message that hints to what the problem is.

What led up to this? Did it work before?
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2022 22:25 #253922 by tommylight
@Arvidb,
Thank you for the detailed explanation, always.
Lately i have been very busy so i just reply shortly to point in the general direction, so i really do appreciate whenever you and Aciera and others jump in with more info.
Thank you, all.
The following user(s) said Thank You: arvidb

Please Log in or Create an account to join the conversation.

More
11 Oct 2022 07:42 #253938 by arvidb
@tommylight: Appreciated, thanks! You may write short but you reply to a lot more people than I manage to do. It's all good! Thanks! :)
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • denhen89
  • denhen89's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 Oct 2022 09:36 #253941 by denhen89
Hi, first of all thanks for your replys.

I tried ctrl alt F7, but F7 is doing nothing, but all other from F1 to F6.
Then i logged in in tty2 and typed startx.
Now i have a blank black screen with a typing sign on top left corner, but its not showing anything else.

My Ethernet was not connected for some time so no updates could happen, thats why i dont understand why i have that problem.

Please Log in or Create an account to join the conversation.

  • denhen89
  • denhen89's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 Oct 2022 09:50 #253945 by denhen89
I have tried it now also on tty3 and tty6.

I get what you see on the picture.
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
11 Oct 2022 12:04 #253959 by tommylight
Usually that means an x server is already running or something happened to the drive to change permissions, the latter rarely happens.
If you have another PC or an external hdd case, yank out the drive and plug it in the other PC/Laptop, open a file browser, choose the offending drive, navigate to /home/your_user_name/linuxcnc/configs/name_of_your_config and copy that entire folder to a usb or hdd on the good PC.
That way at least you have a backup for the machine so you can do a new install and copy the config back.
-
You can enable "smart hdd reporting" or simmilar in BIOS, it is pretty good at spotting failing hard drives.
The following user(s) said Thank You: denhen89

Please Log in or Create an account to join the conversation.

More
11 Oct 2022 20:38 #253981 by arvidb
Yeah, a backup of your config files seems like a good idea. Another way to do that besides moving your disk to another PC is to manually mount a USB drive and just copy the files over. But you'll probably need to manually mount the drive since you don't have a graphical environment that takes care of that for you. It's not that difficult, but you need to figure out the device name of the drive. Something like this:

'sudo mount -o uid=cncpc,gid=cncpc /dev/disk/by-id/usb-<press tab here to see a list of the names of your usb stick> /mnt'

should do it. You can then

'cp -a ~/linuxcnc/configs/<name_of_your_config> /mnt/'

to copy the files to the stick. Finish with

'sudo umount /mnt/'

to unmount the stick.
The following user(s) said Thank You: denhen89

Please Log in or Create an account to join the conversation.

More
11 Oct 2022 20:46 #253982 by arvidb
To further diagnose the issue, one step could be to look at the X server log file (the X server is the "engine" of the graphical environment).

1) Reboot the PC to get a fresh log file
2) Log in to the text terminal
3) Find the file: for me the file is in ~/.local/share/xorg/Xorg.0.log. On some systems I think it can be found under /var/log/xorg (or /var/log/X?).

Copy the file to your USB drive and post it here.

===========
To check the health of your hard drive you can run smartctl:
'sudo smartctl -a /dev/sda' (if your disk is named sda, which it will be if it's the only drive in the PC. Otherwise use the /dev/disk/by-id/<TAB> trick as shown above.)

You may have to install smartmontools first, e.g. under Debian/Ubuntu etc:
'sudo apt install smartmontools'
The following user(s) said Thank You: tommylight, denhen89

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum