(fixed) Xorg all over the place (read before posting!)

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
twodogs
Riesenpenis
Posts: 33
Joined: Tue Feb 26, 2013 2:08 am
Location: St. Cloud, Florida USA

(fixed) Xorg all over the place (read before posting!)

Unread post by twodogs » Fri Oct 09, 2015 10:09 pm

I have installed Smoothie to hd of my laptop. I logged in as root and changed root password. Then, I ran 'setup' and created new user.

I rebooted computer (how do I just log out?) and then logged in as user. Everything is great! I can reboot, shutdown etc and desktop is great! But..

Once I open a terminal and 'upg' or 'sudo apt-get update and sudo apt-get dist-upgrade' everything appears good until I reboot. I can't log in.

I enter user name and password and just sits there. Never loads desktop.

I go to tty2 and try to log in there as the user. I get to the desktop but no mouse whatsoever. I see cursor, but nothing.

Anyone, have an idea of what is going on?

Just for kicks I thought 'I'll log in as root.' I got to the desktop but had white terminal. I copied xcolors and various other files (.Xresources etc) to root home folder and looks awesome (like it should look!) but, I'm logged in as root and that's a no-no. Anyway, thanks for your help. I really appreciate it.
-Dave.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Smoothie no likey upg

Unread post by machinebacon » Sat Oct 10, 2015 4:51 am

..gnutella..

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

SOLVED: X broken with ati (open drivers)

Unread post by tenkainen » Sat Oct 10, 2015 7:18 pm

I'm at my wits end. Some upgrade, or at least so I think, broke X. Cannot startx as user, but with sudo it does work, perfectly. Haven't rebooted in weeks before today, so the culprit will be as elusive as Bigfoot.
I have HD5450 for what it's worth. Open sauce drivers for it.
Here's the tail of xorg.log:

Code: Select all

[   368.757] (==) Depth 24 pixmap format is 32 bpp
[   368.757] (EE) modeset(0): drmSetMaster failed: Permission denied
[   368.757] (EE)
Fatal server error:
[   368.757] (EE) AddScreen/ScreenInit failed for driver 0
[   368.757] (EE)
[   368.757] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   368.757] (EE) Please also check the log file at "/home/tenkainen/.local/share/xorg/Xorg.0.log" for additional information.
[   368.757] (EE)
[   368.762] (EE) Server terminated with error (1). Closing log file.
I can't find anything relevant with some googles, so I'm hoping one of you could be of assistance. Please. I miss Conkeror and all the bloat.
4.20 kernel too.
Last edited by tenkainen on Sun Oct 11, 2015 5:30 pm, edited 1 time in total.
Random terrible things.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: X broken with ati (open drivers)

Unread post by machinebacon » Sat Oct 10, 2015 7:37 pm

please always check upgrade warnings before upgrading

http://linuxbbq.org/bbs/viewtopic.php?f=9&t=2282
..gnutella..

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

Re: X broken with ati (open drivers)

Unread post by tenkainen » Sat Oct 10, 2015 7:44 pm

I did, but I was quite sure my problem wasn't related. I guess I'll try downgrading some packages.

To clarify, I was on openrc. And 64bit kernel.

And after one hell of downgrading, no dice.
I'm still not convinced I have the same problem, as I had nothing to do with logind.
Well, I guess I'll just have to wait and see.
Random terrible things.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: X broken with ati (open drivers)

Unread post by pidsley » Sat Oct 10, 2015 9:06 pm

What exactly did you downgrade, and what was recently upgraded? "Some upgrade" and "one hell of downgrading" doesn't tell us much. Did you do a web search for the exact text of the drm error?

Is your user in the "video" group? If not, try adding your user to that group.

Finally, as a last resort, try this command (WARNING! I have not tested this and it may cause further damage, and if it does work it is an ugly hack workaround.)

Code: Select all

sudo chmod +s /dev/dri/card0
After the chmod, try startx again.

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

Re: X broken with ati (open drivers)

Unread post by tenkainen » Sat Oct 10, 2015 9:42 pm

As I said, my desktop had an uptime of couple weeks, so I've upgraded massive amount of packages since last X restart, so I have no idea what it was that broke it exactly.
I tried downgrading X, mainly xserver-xorg-core and it's million dependencies, but to no avail. Makes an enormous mess, that.
Tried searching for few hours, the drmSetMaster failed seems to be the main problem, but got nowhere. And I couldn't even get a decent grasp what the error is about specifically.

I am in the video group.

And I could try the chmod-trick later.

Another option is to wait this out, if it'll ever get fixed.
Random terrible things.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: X broken with ati (open drivers)

Unread post by pidsley » Sat Oct 10, 2015 9:57 pm

The error indicates that your user does not have permission to call "drmSetMaster" (but root does.) This is why I asked if you were in the video group, and suggested to chmod the card. It appears that recent changes to systemd have enabled it to allow normal users to call drmSetMaster (so it is related to logind after all) and because you are not using systemd, this breaks your system.

Following machinebacon's instructions exactly might help. http://linuxbbq.org/bbs/viewtopic.php?f=9&t=2282#p46339

This kind of crap is why I no longer use sid.

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

Re: X broken with ati (open drivers)

Unread post by tenkainen » Sun Oct 11, 2015 6:57 am

Okay, I'll try. Thanks!
I even switched to systemd already, openrc had couple of annoying bugs.
Also, sorry machinebacon for not listening to you the first time, I really thought my problem wasn't related.
The mess came, when I didn't have the proper versions in archive folder. Apparently the debs from stretch repos work together. Can now boot to X, and this thread can be purged.
Random terrible things.

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: X broken with ati (open drivers)

Unread post by ivanovnegro » Sun Oct 11, 2015 3:45 pm

Just mark it solved.

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: Smoothie no likey upg

Unread post by ivanovnegro » Sun Oct 11, 2015 3:50 pm

You should have read the upgrade warnings in first place before upgrading. ;)

User avatar
Snap
Sperminator
Posts: 189
Joined: Sun Oct 05, 2014 8:11 pm

How to avoid the autologin loop

Unread post by Snap » Mon Oct 19, 2015 12:13 pm

I think in English you call it respawn or something.

Autologin is fine, but whenever I close an Xsession (quit a wm) in bbq spins, it automagically relogs-in again instead of remaining in the tty. Of course, I can disable it in .bash_profile, but it also stops the autologin altogether. Any tips on how to keep autologin into X and stopping the loop?

Thanks.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: How to avoid the autologin loop

Unread post by wuxmedia » Mon Oct 19, 2015 1:27 pm

I think the only way is inside .bash_profile

Code: Select all

[[ -z $DISPLAY && $TERM = "linux" && `tty` = "/dev/tty1" ]] && exec startx
So just removing the "&& exec startx" doesn't do what you need?
not 100% sure what is looping TBH.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: How to avoid the autologin loop

Unread post by dkeg » Mon Oct 19, 2015 1:31 pm

Ha, that's one of the first things I axe.

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: How to avoid the autologin loop

Unread post by wuxmedia » Mon Oct 19, 2015 2:57 pm

Shows how much I'm out of X, these days :)
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: How to avoid the autologin loop

Unread post by machinebacon » Mon Oct 19, 2015 5:44 pm

The autologin loop is exactly the xserver-xorg bug.
..gnutella..

User avatar
Snap
Sperminator
Posts: 189
Joined: Sun Oct 05, 2014 8:11 pm

Re: How to avoid the autologin loop

Unread post by Snap » Mon Oct 19, 2015 7:56 pm

^ Oh boy...

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Xorg all over the place

Unread post by ivanovnegro » Mon Oct 19, 2015 9:02 pm

If you encounter problems with X, auto login or you simply get always kicked out of your graphical environment. Please read the upgrade warnings and if you have anything worthwhile to share, this is the place. I will merge all the useless threads into this one.

Do not open new ones, they will end up in the bin.

User avatar
Snap
Sperminator
Posts: 189
Joined: Sun Oct 05, 2014 8:11 pm

Re: Xorg all over the place (read before posting!)

Unread post by Snap » Sat Oct 31, 2015 11:31 am

The fix seems to work. I can run the X, but still cannot get rid of "the loop". I haven't managed to stop the xserver to restart over and over again, or in other words, staying on a tty for at least a second. The thing is I want to install the Nvidia drivers for my new GPU and there's no f***ing way to kill the damned xserver to install them. Any tips on that? Thanks.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Xorg all over the place (read before posting!)

Unread post by machinebacon » Sat Oct 31, 2015 12:12 pm

Please check from a live system that the installed system's /etc/profile.d/ folder only contains bash_completion and no file starting with "zzz" (this is an autostarter script from Debian's live-config which unfortunately gets dropped into the live system via bootscripts -- in the meanwhile I fixed this on newer BBQ versions, don't quite remember which edition you are running)

Secondly, edit ~/.bash_profile and comment the line that contains startx. This breaks the loop (but drops you back to TTY again)

Thirdly, to be sure, check /etc/inittab and disable automatic login there, if applicable. (usually the line contains "login -a USERNAME" for automatic login). Usually it's not affected.



You can definitely always go to TTY2 and let xserver loop in TTY1 until it stops respawning for 5 minutes.
Just to make it clear: did you install systemd?
..gnutella..

Post Reply