You are not logged in.

#1 2023-05-29 09:38:44

justpo1nt
Member
Registered: 2023-05-29
Posts: 3

[SOLVED] Xorg fails to start with other users than root

Hi my Xorg server fails to start. I'm using Thinkpad P52 with two graphics card and I would like to use only Intel card.

I'm starting Xorg with startx as a user and it fails with

https://pastebin.com/9yRCGxR3

Root user can run Xorg with startx

This is my `id`

`uid=1000(po1nt) gid=1000(po1nt) groups=1000(po1nt),54(lock),56(bumblebee),108(vboxusers),150(wireshark),970(docker),985(video),986(uucp),1001(sudo)`

This is my dmesg containing all nvidia related logs

```
[  726.978993] nvidia: module license 'NVIDIA' taints kernel.
[  727.341884] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[  727.342613] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[  728.953983] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  530.41.03  Thu Mar 16 19:23:04 UTC 2023
[  729.128805] nvidia-modeset: Unloading
[  729.170247] nvidia-nvlink: Unregistered Nvlink Core, major device number 510
```

I have deleted my xorg.conf and have no video related configs in xorg.conf.d

This is my pacman -Q

https://pastebin.com/aPjfXPdB

Thank you very much for any help

Last edited by justpo1nt (2023-05-29 10:54:37)

Offline

#2 2023-05-29 09:49:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,128

Re: [SOLVED] Xorg fails to start with other users than root

I'm starting Xorg with startx as a user and it fails with
https://pastebin.com/9yRCGxR3

[   357.995] (==) Using config file: "/etc/X11/xorg.conf"

I have deleted my xorg.conf and have no video related configs in xorg.conf.d

Combined that can mean 2 things :
- You posted an old/irrelevant  log
OR
- you didn't remove everything

Please verify which is correct and post a fresh xorg log .

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-05-29 09:58:30

justpo1nt
Member
Registered: 2023-05-29
Posts: 3

Re: [SOLVED] Xorg fails to start with other users than root

Thank you for the welcome.

Yes you were right and I posted wrong log. This is the correct one

https://pastebin.com/ZY3V6vqg

Offline

#4 2023-05-29 10:42:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,128

Re: [SOLVED] Xorg fails to start with other users than root

[  2907.469] (II) Server terminated successfully (0). Closing log file.

There are no errors in the log and according to X everything is fine. On systems using startx that usually means the issue is in .xinitrc .

Please post your ~/.xinitrc .
(https://wiki.archlinux.org/title/Xinit should help to determine what is wrong with it).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-05-29 10:54:20

justpo1nt
Member
Registered: 2023-05-29
Posts: 3

Re: [SOLVED] Xorg fails to start with other users than root

Well thank you very much. I just removed .xinitrc and Xorg is working.

I have no clue why it failed because the content of .xinitrc was

setxkbmap sk

Which worked fine to this date and works fine when I run it by myself and returns zero.

The permissions to xinitrc were correct.

Everything works just fine now. Thank you very much.

Offline

#6 2023-05-29 12:22:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Xorg fails to start with other users than root

I have no clue why it failed because the content of .xinitrc was

setxkbmap sk

Which

… sets  your keyboard layout and then exits, so your session effectively does nothing.
Last link below.

Offline

Board footer

Powered by FluxBB