Hello everyone,
I'm stuck in a login loop. Whenever I try to log in from my DM I get a black screen for an instant and then I get thrown right back to the login screen.
I already checked the ownership of the .Xauthority file and it's fine. I tried to create another user, but it's just the same. I tried purging gdm3 and reinstallig it, but with no success, so I tried with lightdm and kdm, but they behave in the same exact manner.
I checked /home/user/.xsession-errors and it says:
Xsession: X session started for user at Thu 20 Apr 15:33:13 CEST 2017
openConnection: connect: No such file or directory
cannot connect to brltty at :0
gnome-session-is-accelerated: llvmpipe detected.
Then I checked /var/log/Xorg.0.log and I found the following errors:
(EE) open /dev/dri/card0: no such file or directory
(EE) Screen 0 deleted because of no matching config section
(EE) FBDEV(0): FBIOBLANK: Invalid argument
(EE) AIGLX: reverting to software rendering
However I found out that if I log in from the textual environment and then I launch GNOME with the startx command, it will actually load my DE correctly.
I can't wrap my head around this one. Can anyone help please?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Login loop
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Login loop
I have had a similar problem before and in my case it was due to lack of free space on the HDD, I have to admit I did not check logs at the time so cannot say what errors were reported so it might not be for the same reason as yours, but might be worth checking.
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Login loop
My next guess would be a video problem, unfortunately I have little experience with that so will leave it for others to help. One thing that would be useful to anyone wanting to help you would be some machine details, maybe you could install inxi and post the output of inxi -F that would enable others to see the hardware they are dealing with.
Re: Login loop
Ok thanks for the tip!
This is the output of inxi -F
This is the output of inxi -F
Code: Select all
System: Host: leonovo Kernel: 3.16.0-4-amd64 x86_64 (64 bit)
Desktop: Gnome 3.14.4 Distro: Debian GNU/Linux 8
Machine: System: LENOVO product: 80TR v: Lenovo ideapad 110-15AST
Mobo: LENOVO model: Nano 5B1 v: SDK0J40700WIN
Bios: LENOVO v: 3UCN15WW date: 08/24/2016
CPU: Dual core AMD A9-9400 RADEON R5 5 COMPUTE CORES 2C+3G (-MCP-) cache: 2048 KB
Clock Speeds: 1: 1400 MHz 2: 2000 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Device 98e4
Display Server: X.Org 1.16.4 drivers: fbdev,ati (unloaded: vesa,radeon)
Resolution: 1366x768@76.00hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits)
GLX Version: 3.0 Mesa 10.3.2
Audio: Card-1 Advanced Micro Devices [AMD] Device 157a
driver: snd_hda_intel
Card-2 Advanced Micro Devices [AMD/ATI] Device 15b3
driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
Network: Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
driver: r8169
IF: eth0 state: down mac: c8:5b:76:72:9a:ad
Card-2: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
driver: rtl8821ae
IF: wlan0 state: up mac: 78:45:61:eb:9a:c1
Drives: HDD Total Size: 1000.2GB (2.5% used)
ID-1: /dev/sda model: WDC_WD10JPCX size: 1000.2GB
Partition: ID-1: / size: 92G used: 15G (17%) fs: ext4 dev: /dev/sda8
ID-2: /home size: 313G used: 1.7G (1%) fs: ext4 dev: /dev/sda10
ID-3: swap-1 size: 7.94GB used: 0.00GB (0%) fs: swap dev: /dev/sda9
Sensors: None detected - is lm-sensors installed and configured?
Info: Processes: 161 Uptime: 25 min Memory: 992.7/7388.0MB
Client: Shell (bash) inxi: 2.1.28
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Login loop
I can see you don't have (correct) video drivers installed, maybe a search for Radeon R5 graphics might help. I found this page which looks promising.
Re: Login loop
If I install the "correct" packages, the DE won't load in, whereas if I use the free driver and I use the startx command after I log in, the DE works fine
Re: Login loop
Put your startup commands in a bash script, and put that in a directory or file that is processed at boot.
May need to google for that, especially if runnng systemd.
Here I use sysvinit, and can pretty much load anything I want in /etc/init.d after adding some LSB stuff to the script.
There are other locations where it can be put, but they seem to be a moving target between versions, so best to google for 'load during startup debian'.
Once upon a time Xsessions were started by
/etc/X11/xinit/xinit.rc
I dont know if that is even parsed anyomre these days.
May need to google for that, especially if runnng systemd.
Here I use sysvinit, and can pretty much load anything I want in /etc/init.d after adding some LSB stuff to the script.
There are other locations where it can be put, but they seem to be a moving target between versions, so best to google for 'load during startup debian'.
Once upon a time Xsessions were started by
/etc/X11/xinit/xinit.rc
I dont know if that is even parsed anyomre these days.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 71 times
Re: Login loop
This is a very common issue--the usual reason is that the user needs to install the non-free firmware that the AMD free xorg driver needs for full functionality. https://wiki.debian.org/AtiHowTo
However, since this is hardware from 2016, it's uncertain whether that driver will support support the hardware even with the firmware. Then installing a jessie-backports kernel and firmware-amd-graphics package from there to match it would be the next thing to try. I don't think that there is an updated radeon driver in backports, though it's possible to backport one from Stretch...so you might then try Stretch instead.
Also keep in mind that the Jessie release notes say that the proprietary fglrx-driver from AMD is incompatible with the GNOME 3 desktop. But there's plenty of other desktops in Debian that work just fine with it.
However, since this is hardware from 2016, it's uncertain whether that driver will support support the hardware even with the firmware. Then installing a jessie-backports kernel and firmware-amd-graphics package from there to match it would be the next thing to try. I don't think that there is an updated radeon driver in backports, though it's possible to backport one from Stretch...so you might then try Stretch instead.
Also keep in mind that the Jessie release notes say that the proprietary fglrx-driver from AMD is incompatible with the GNOME 3 desktop. But there's plenty of other desktops in Debian that work just fine with it.
MX Linux packager and developer