You are not logged in.

#1 2017-01-18 12:31:53

makh
Member
Registered: 2011-10-10
Posts: 299

<SOLVED> Fresh install: startx fails for user and lightdm blinking

Hi

I have installed arch on a partition. Every thing seems to be running fine.

I can startx via root, but not via normal user.

Both xfce4 and openbox arent running.

cat .local/share/xorg/Xorg.0.log

[    46.833] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[    46.889] 
X.Org X Server 1.19.1
Release Date: 2017-01-11
[    46.889] X Protocol Version 11, Revision 0
[    46.889] Build Operating System: Linux 4.8.14-1-ARCH x86_64 
[    46.889] Current Operating System: Linux arch1 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
[    46.889] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda3
[    46.890] Build Date: 12 January 2017  07:11:40AM
[    46.890]  
[    46.890] Current version of pixman: 0.34.0
[    46.890] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    46.890] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    46.891] (==) Log file: "/home/makh/.local/share/xorg/Xorg.0.log", Time: Wed Jan 18 11:26:23 2017
[    46.915] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    46.925] (==) No Layout section.  Using the first Screen section.
[    46.925] (==) No screen section available. Using defaults.
[    46.925] (**) |-->Screen "Default Screen Section" (0)
[    46.925] (**) |   |-->Monitor "<default monitor>"
[    46.933] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    46.933] (==) Automatically adding devices
[    46.933] (==) Automatically enabling devices
[    46.933] (==) Automatically adding GPU devices
[    46.933] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    47.029] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    47.029] 	Entry deleted from font path.
[    47.030] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[    47.030] (==) ModulePath set to "/usr/lib/xorg/modules"
[    47.030] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    47.041] (II) Loader magic: 0x821d60
[    47.041] (II) Module ABI versions:
[    47.041] 	X.Org ANSI C Emulation: 0.4
[    47.041] 	X.Org Video Driver: 23.0
[    47.041] 	X.Org XInput driver : 24.1
[    47.041] 	X.Org Server Extension : 10.0
[    47.042] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.NoReply (Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
[    47.042] (++) using VT number 1

[    47.042] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    47.042] (II) xfree86: Adding drm device (/dev/dri/card0)
[    47.060] (--) PCI:*(0:0:2:0) 8086:0a16:103c:2247 rev 11, Mem @ 0xc0000000/4194304, 0xb0000000/268435456, I/O @ 0x00007000/64, BIOS @ 0x????????/131072
[    47.060] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    47.060] (II) LoadModule: "glx"
[    47.071] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    47.203] (II) Module glx: vendor="X.Org Foundation"
[    47.203] 	compiled for 1.19.1, module version = 1.0.0
[    47.203] 	ABI class: X.Org Server Extension, version 10.0
[    47.203] (==) Matched intel as autoconfigured driver 0
[    47.203] (==) Matched intel as autoconfigured driver 1
[    47.203] (==) Matched modesetting as autoconfigured driver 2
[    47.203] (==) Matched fbdev as autoconfigured driver 3
[    47.203] (==) Matched vesa as autoconfigured driver 4
[    47.203] (==) Assigned the driver to the xf86ConfigLayout
[    47.203] (II) LoadModule: "intel"
[    47.215] (WW) Warning, couldn't open module intel
[    47.215] (II) UnloadModule: "intel"
[    47.215] (II) Unloading intel
[    47.215] (EE) Failed to load module "intel" (module does not exist, 0)
[    47.215] (II) LoadModule: "modesetting"
[    47.215] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    47.215] (II) Module modesetting: vendor="X.Org Foundation"
[    47.215] 	compiled for 1.19.1, module version = 1.19.1
[    47.215] 	Module class: X.Org Video Driver
[    47.215] 	ABI class: X.Org Video Driver, version 23.0
[    47.215] (II) LoadModule: "fbdev"
[    47.216] (WW) Warning, couldn't open module fbdev
[    47.216] (II) UnloadModule: "fbdev"
[    47.216] (II) Unloading fbdev
[    47.216] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    47.216] (II) LoadModule: "vesa"
[    47.216] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    47.232] (II) Module vesa: vendor="X.Org Foundation"
[    47.232] 	compiled for 1.19.0, module version = 2.3.4
[    47.232] 	Module class: X.Org Video Driver
[    47.232] 	ABI class: X.Org Video Driver, version 23.0
[    47.232] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    47.232] (II) VESA: driver for VESA chipsets: vesa
[    47.232] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    47.242] (II) modeset(0): using drv /dev/dri/card0
[    47.242] (WW) Falling back to old probe method for vesa
[    47.242] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    47.243] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    47.243] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    47.243] (==) modeset(0): RGB weight 888
[    47.243] (==) modeset(0): Default visual is TrueColor
[    47.243] (II) Loading sub module "glamoregl"
[    47.243] (II) LoadModule: "glamoregl"
[    47.243] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    47.307] (II) Module glamoregl: vendor="X.Org Foundation"
[    47.307] 	compiled for 1.19.1, module version = 1.0.0
[    47.307] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    47.307] (II) glamor: OpenGL accelerated X.org driver based.
[    47.577] (II) glamor: EGL version 1.4 (DRI2):
[    47.700] (II) modeset(0): glamor initialized
[    47.701] (II) modeset(0): Output eDP-1 has no monitor section
[    47.702] (II) modeset(0): Output HDMI-1 has no monitor section
[    47.702] (II) modeset(0): Output DP-1 has no monitor section
[    47.703] (II) modeset(0): Output HDMI-2 has no monitor section
[    47.703] (II) modeset(0): EDID for output eDP-1
[    47.703] (II) modeset(0): Manufacturer: LGD  Model: 45e  Serial#: 0
[    47.703] (II) modeset(0): Year: 2014  Week: 0
[    47.703] (II) modeset(0): EDID Version: 1.4
[    47.703] (II) modeset(0): Digital Display Input
[    47.703] (II) modeset(0): 6 bits per channel
[    47.703] (II) modeset(0): Digital interface is DisplayPort
[    47.703] (II) modeset(0): Max Image Size [cm]: horiz.: 31  vert.: 17
[    47.703] (II) modeset(0): Gamma: 2.20
[    47.703] (II) modeset(0): No DPMS capabilities specified
[    47.703] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    47.703] (II) modeset(0): First detailed timing is preferred mode
[    47.703] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[    47.703] (II) modeset(0): redX: 0.585 redY: 0.350   greenX: 0.330 greenY: 0.565
[    47.703] (II) modeset(0): blueX: 0.155 blueY: 0.120   whiteX: 0.313 whiteY: 0.329
[    47.703] (II) modeset(0): Manufacturer's mask: 0
[    47.703] (II) modeset(0): Supported detailed timing:
[    47.703] (II) modeset(0): clock: 76.3 MHz   Image Size:  309 x 174 mm
[    47.703] (II) modeset(0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1610 h_border: 0
[    47.703] (II) modeset(0): v_active: 768  v_sync: 771  v_sync_end 776 v_blanking: 790 v_border: 0
[    47.703] (II) modeset(0): Supported detailed timing:
[    47.703] (II) modeset(0): clock: 50.9 MHz   Image Size:  309 x 174 mm
[    47.703] (II) modeset(0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1610 h_border: 0
[    47.703] (II) modeset(0): v_active: 768  v_sync: 771  v_sync_end 776 v_blanking: 790 v_border: 0
[    47.703] (II) modeset(0): Unknown vendor-specific block 2
[    47.703] (II) modeset(0): EDID (in hex):
[    47.703] (II) modeset(0): 	00ffffffffffff0030e45e0400000000
[    47.703] (II) modeset(0): 	00180104951f11780aebf59559549027
[    47.703] (II) modeset(0): 	1e505400000001010101010101010101
[    47.703] (II) modeset(0): 	010101010101d01d56f4500016303020
[    47.703] (II) modeset(0): 	350035ae1000001be01356f450001630
[    47.703] (II) modeset(0): 	3020350035ae1000001b000000000000
[    47.703] (II) modeset(0): 	00000000000000000000000000000002
[    47.703] (II) modeset(0): 	000c44ff0b3c6e12121c6e0000000007
[    47.703] (II) modeset(0): Printing probed modes for output eDP-1
[    47.703] (II) modeset(0): Modeline "1366x768"x60.0   76.32  1366 1414 1446 1610  768 771 776 790 +hsync -vsync (47.4 kHz eP)
[    47.703] (II) modeset(0): Modeline "1366x768"x40.0   50.88  1366 1414 1446 1610  768 771 776 790 +hsync -vsync (31.6 kHz e)
[    47.703] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[    47.703] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[    47.703] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[    47.703] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[    47.703] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[    47.703] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[    47.703] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[    47.703] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    47.703] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[    47.703] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[    47.703] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[    47.703] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[    47.703] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[    47.703] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[    47.703] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[    47.703] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[    47.704] (II) modeset(0): EDID for output HDMI-1
[    47.704] (II) modeset(0): EDID for output DP-1
[    47.705] (II) modeset(0): EDID for output HDMI-2
[    47.705] (II) modeset(0): Output eDP-1 connected
[    47.705] (II) modeset(0): Output HDMI-1 disconnected
[    47.705] (II) modeset(0): Output DP-1 disconnected
[    47.705] (II) modeset(0): Output HDMI-2 disconnected
[    47.705] (II) modeset(0): Using exact sizes for initial modes
[    47.705] (II) modeset(0): Output eDP-1 using initial mode 1366x768 +0+0
[    47.705] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    47.705] (==) modeset(0): DPI set to (96, 96)
[    47.705] (II) Loading sub module "fb"
[    47.705] (II) LoadModule: "fb"
[    47.705] (II) Loading /usr/lib/xorg/modules/libfb.so
[    47.726] (II) Module fb: vendor="X.Org Foundation"
[    47.726] 	compiled for 1.19.1, module version = 1.0.0
[    47.726] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    47.726] (II) UnloadModule: "vesa"
[    47.726] (II) Unloading vesa
[    47.726] (==) Depth 24 pixmap format is 32 bpp
[    47.726] (EE) modeset(0): drmSetMaster failed: Permission denied
[    47.726] (EE) 
Fatal server error:
[    47.726] (EE) AddScreen/ScreenInit failed for driver 0
[    47.726] (EE) 
[    47.726] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    47.726] (EE) Please also check the log file at "/home/makh/.local/share/xorg/Xorg.0.log" for additional information.
[    47.726] (EE) 
[    47.745] (EE) Server terminated with error (1). Closing log file.

I suppose I ran into the same problem when I installed arch earlier, but didnt note how it got resolved, then.

Regards

Last edited by makh (2017-01-25 07:11:25)


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#2 2017-01-18 19:21:08

Texbrew
Member
From: The Lone Star State
Registered: 2016-02-09
Posts: 580

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

Disclaimer: I am by no means an expert, and it's been a while since I did a fresh install of Arch Linux, the OpenBox DE, etc.

I'm fairly sure you have to copy a file owned by root to your user home directory, with a small change in the filename like this:

# cp /etc/X11/xinit/xinitrc /home/(your username)/.xinitrc

Note the preceding "." in the newly copied .xinitrc   Then, change ownership and group of the newly copied file to your username and group. As a safety net backup the new .xinitrc before making changes to it in case it gets completely borked (I usually just change the backup to ".xinitrc.copy" or something like that. Next, edit the new file as your regular user (not as root). I use nano, you may prefer vi or vim. So it would be

nano .xinitrc

You will need to comment out a few lines at the end of .xinitrc

I use OpenBox on all but one of my Arch machines. Here's what those last few lines look like in my .xinitrc

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
exec openbox-session

Note that the default X window widgets are commented out, and the last line is a command to launch openbox-box-session. You said openbox and xfce are not running, so I don't know which one you want to use. If xfce, the command will need to be changed accordingly. If you're using Openbox, these commands should get you pointed in the right direction.

startx

should now launch your desktop.

I use slim (Simple Login Manager) to launch the desktop so I don't need to use startx from the command line every time I boot, but that's a separate matter.

tex

Edit: typo

Last edited by Texbrew (2017-01-18 19:53:07)

Offline

#3 2017-01-18 20:12:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-01-18 23:12:39

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

I've noticed a few threads lately that cited LightDM in the problem. I also used LightDM and reached a login loop with it, and after trying several fixes, I replaced it with LXDM, which is working just peachy.

Now this happened around the time of the harfbuzz update, and so the problem may be infinality. I honestly didn't troubleshoot enough. My choice of DM has very little effect on my user experience, but if you are tied to LightDM for whatever reason and using infinality, replace with core.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#5 2017-01-19 02:32:47

makh
Member
Registered: 2011-10-10
Posts: 299

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

Hi

I installed xdm, and it is working.

@ Texbrew:
cat .xinitrc

#!/bin/sh

# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login

#exec ck-launch-session dbus-launch openbox-session

exec openbox-session
#exec startxfce4

I think my issue isnt in this file:
ls -l .xinitrc

-rwxr-xr-x 1 arch1 arch1 406 Jan 18 19:08 .xinitrc

My issue is in authority. My normal user cannot even suspend and reboot. That is the root cause startx is failing.

Unfortunately I had to reinstall as my arch system crashed to not recoverable. But statrx was working and the normal user can do reboot and suspend etc with systemctl. I checked on but no difference in the polkit file configurations.

Thanks for your replies.


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#6 2017-01-19 06:35:07

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

you said you had to reinstall, does that mean your issue is fixed? if not, what groups is your user a member of? is arch1 the user having issues logging in?

[    47.726] (EE) modeset(0): drmSetMaster failed: Permission denied

I've never seen this error before, but a quick Google search led me to this. I don't know the security ramifications of setting the sticky bit on the X server, but it sounds dangerous, so use at your own risk.

Offline

#7 2017-01-19 07:52:25

makh
Member
Registered: 2011-10-10
Posts: 299

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

HiImTye wrote:

you said you had to reinstall, does that mean your issue is fixed? if not, what groups is your user a member of? is arch1 the user having issues logging in?

[    47.726] (EE) modeset(0): drmSetMaster failed: Permission denied

I've never seen this error before, but a quick Google search led me to this. I don't know the security ramifications of setting the sticky bit on the X server, but it sounds dangerous, so use at your own risk.

My issue isnt fixed:

https://bbs.archlinux.org/viewtopic.php?id=221919

groups:

sys:x:3:root,bin,arch1
wheel:x:10:root,arch1
storage:x:95:arch1
power:x:98:arch1

In my previous install:

sys:x:3:root,bin,arch1
lp:x:7:daemon,arch1
wheel:x:10:root,arch1,guest
storage:x:95:arch1
scanner:x:96:arch1
power:x:98:arch1
vboxusers:x:108:arch1

OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#8 2017-01-25 07:10:47

makh
Member
Registered: 2011-10-10
Posts: 299

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

Solution by:https://bbs.archlinux.org/viewtopic.php?id=196615

I installed via Chroot installing, but not sure why this happened infact.

Last edited by makh (2017-01-25 07:12:35)


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#9 2017-01-25 07:43:41

makh
Member
Registered: 2011-10-10
Posts: 299

Re: <SOLVED> Fresh install: startx fails for user and lightdm blinking

But there is still a question... how to see the ownership of a partition? Arch didnt show any fault... I resolved it via debian, which showed my local user to be the owner of the partition.


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

Board footer

Powered by FluxBB