LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-04-2016, 08:38 PM   #1
Cohen_the_Barbarian
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
Can't start X as non-root Debian 8 Jessie


Hello, I've looked around for a problem similar to mine, but none of the fixes have worked so far. I can't seem to log in to an X Windows session as non-root.

I am on an Acer Aspire VN7-592G-77LB. Stats are as follows:

NVIDIA GeForce GTX 960M 4 GB GDDR5
Intel Core i7 6700HQ (2.60 GHz)
16 GB Memory 1 TB HDD 256 GB SSD
15.6" IPS FHD 1920 x 1080
15.35" x 10.35" x 0.9" 5.07 lbs.


My problem looks like this:

1. Boot to graphical login (lightdm), I try to log in as non-root user, and the login window and bar at the top disappear. Background is visible, but the computer freezes, with no way to get to TTY.

2. Boot to TTY (or to graphical login, followed by Ctrl-Alt-F1), login as non-root, run
Code:
startx
which flashes the background on the screen momentarily, before the screen goes back. In this case, Ctrl-Alt-F1 takes me back to TTY.

3. From TTY,
Code:
service lightdm restart
works, but I have the same problem as in 1.

I've tried this with the nouveau driver, the long term and short term NVidia drivers, with and without Bumblebee, deleting the .Xauthority file, adding nomodeset to Grub. The entirety of the user's home directory belongs to it, not root, and I've tried the xorg.conf file generated by the NVidia utility and no xorg.conf at all. It's probably worth noting that
Code:
X -configure
doesn't work. As root, I have none of these problems, I can log in and get to the desktop (any WM) with no problem.

I suspect I'm missing something very obvious, but I'd appreciate any help. Please let me know if I should post anything like lspci or /var/log/Xorg.0.log.

Thanks in advance!
 
Old 03-06-2016, 03:06 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
maybe something inside your $HOME got messed up.
create a new user, try logging into that.
 
Old 03-06-2016, 07:00 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
have you checked the logfiles? /var/log/X* ~/.xsession-errors
 
Old 03-06-2016, 12:27 PM   #4
Cohen_the_Barbarian
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
maybe something inside your $HOME got messed up.
create a new user, try logging into that.
I created a new user, added it to the same groups as the last; it has the exact same problem.

Quote:
Originally Posted by pan64 View Post
have you checked the logfiles? /var/log/X* ~/.xsession-errors
Here's my .xsession-errors file:
Code:
Xsession: localuser:odin being added to access control list
openConnection: connect: No such file or directory
cannot connect to brltty at :0
** Message: main.vala:99: Session is LXDE
** Message: main.vala:100: DE is LXDE
** Message: main.vala:131: log directory: /home/odin/.cache/lxsession/LXDE
** Message: main.vala:132: log path: /home/odin/.cache/lxsession/LXDE/run.log
LXDE run.log: https://paste.debian.net/hidden/83b91441/
Xorg.0.log: https://paste.debian.net/hidden/31a39b57/

My xorg.conf is barebones, it just specifies the nvidia driver, that's it.

The log files don't mean much to me; it seems there's a problem with the driver? I don't understand why, as it works fine as root.
 
Old 03-06-2016, 12:47 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 15.713] (EE) open /dev/dri/card0: No such file or directory
[ 15.713] (EE) open /dev/dri/card0: No such file or directory
[ 15.714] (EE) open /dev/fb0: No such file or directory
[ 15.714] (EE) open /dev/fb0: No such file or directory
[ 15.714] (EE) Screen 0 deleted because of no matching config section.
[ 15.714] (EE) Screen 0 deleted because of no matching config section.
[ 16.791] (EE) AIGLX: reverting to software rendering

That can be seen in Xorg.0.log
If it works for root it means there is a permission problem (for example /dev/rdi is not accessible for the users)
 
Old 03-06-2016, 02:26 PM   #6
Cohen_the_Barbarian
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
There is no /dev/dri or /dev/fb0, does that mean I am missing packages? A post on another forum suggests missing DRI device suggests the driver isn't loaded. I ran
Code:
lsmod
and nvidia is nowhere to be found.
Code:
modprobe nvidia
service lightdm restart
Results in the same problem, the computer freezes immediately.
 
Old 03-07-2016, 12:51 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
just to make sure about that: how do you know the computer freezes? Have you tried to log in from another host (ssh) for example?
Yes it looks like your video driver was not loaded.
 
Old 05-03-2016, 10:49 AM   #8
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 830

Rep: Reputation: 229Reputation: 229Reputation: 229
Cohen, did you get this fixed?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Blackscreen installing Debian Jessie upgrading from Debian Wheezy ismaeltxu Linux - Newbie 2 05-11-2015 01:47 AM
[Solved] Unable to start X on Debian Jessie following libpng installation Bedserxis Linux - General 1 01-23-2015 04:13 AM
Debian's new Art Theme (Jessie aka Debian 8.x). jens Debian 2 11-11-2014 02:48 AM
LXer: Ubuntu 14.04 vs. Debian 7.3 vs. Debian Jessie Preview LXer Syndicated Linux News 0 01-27-2014 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration