Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
newbie post, can't get KDE to start on login
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Thu Jul 28, 2022 9:18 pm    Post subject: Reply with quote

lf84217,

what is the output of "ls -l /usr/lib64/xorg/modules/drivers" ? (it should be "intel_drv.so")

I ask because of:
Code:
[   297.226] (EE) Failed to load module "intel" (module does not exist, 0)
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Thu Jul 28, 2022 10:15 pm    Post subject: Reply with quote

Code:

-rwxr-xr-x 1 root root 160736 Jul 24 19:10 amdgpu_drv.so
-rwxr-xr-x 1 root root  14400 Jul 24 19:11 ati_drv.so
-rwxr-xr-x 1 root root  23200 Jul 24 19:10 dummy_drv.so
-rwxr-xr-x 1 root root  27520 Jul 24 19:10 fbdev_drv.so
-rwxr-xr-x 1 root root 115104 Jul 24 19:10 modesetting_drv.so
-rwxr-xr-x 1 root root 221192 Jul 24 19:10 nouveau_drv.so
-rwxr-xr-x 1 root root 501920 Jul 24 19:11 radeon_drv.so
-rwxr-xr-x 1 root root  31656 Jul 24 19:10 vesa_drv.so
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Thu Jul 28, 2022 11:13 pm    Post subject: Reply with quote

Pls try this:
1. Check again if you have only "VIDEO_CARDS="intel" in your make.conf.
2. Do:
Code:
# emerge --sync
# emerge -1vD mesa xf86-video-intel xorg-server

3. Check if you have now "intel_drv.so". If yes, do a restart of X11 (or reboot).


Edit: Can you start X11 as user root ? If yes, and you cannnot start as normal user, then we have another problem. In this case, I would like to see both Xorg.log's (good and bad) to see differences.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Thu Jul 28, 2022 11:45 pm    Post subject: Reply with quote

P.S.: I forgot to mention :oops: :

Dont worry with these messages:
Code:
[     5.485] xf86EnableIO: failed to enable I/O ports 0000-03ff (Function not implemented)
...
[     5.503] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[     5.503] (EE) AIGLX error: unable to load driver i965


It is important to get something like these (this is mine):
Code:
[     5.872] (II) intel(0): switch to mode 3840x2160@60.0 on DP1 using pipe 0, position (0, 0), rotation normal, reflection none
[     5.886] (II) intel(0): Setting screen physical size to 1016 x 571

After this xorg-server tries to initialize input. At the end of input usually you will find something like this (1st line is end of my input):
Code:
[     6.353] (**) Option "xkb_layout" "de"
[     7.522] (II) intel(0): EDID vendor "ACR", prod id 1368
[     7.522] (II) intel(0): Using EDID range info for horizontal sync
[     7.522] (II) intel(0): Using EDID range info for vertical refresh
[     7.522] (II) intel(0): Printing DDC gathered Modelines:
[     7.522] (II) intel(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[     7.522] (II) intel(0): Modeline "2560x1440"x0.0  241.50  2560 2607 2639 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[     7.522] (II) intel(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[...]
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Fri Jul 29, 2022 12:04 am    Post subject: Reply with quote

Now I have the intel driver, but I'm back to square one.
Initially I could launch startx from root, but not from user.
After some things posters told me to try, I was not able to launch either from root or user (presumably due to the missing intel driver).
Now I am again able to launch from root, but not from user.

I will add this note -- when I try to launch from user, the screen turns black for a half a second, like it's trying to load, and then cuts back to shell, before returning error messages.

Here is the bad log: (cat /home/ryan/.local/share/xorg/Xorg.0.log)
https://pastebin.com/BUn38qDU

And here is the good log (cat var/log/Xorg.0.log)
https://pastebin.com/D42wS4Mv
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Fri Jul 29, 2022 12:08 am    Post subject: Reply with quote

Actually these appear to be the same... I'm not sure how to get the log for Xorg as root user?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Fri Jul 29, 2022 12:18 am    Post subject: Reply with quote

lf84217 wrote:
Actually these appear to be the same... I'm not sure how to get the log for Xorg as root user?

No, they arer different ... and ... starting with root you have the correct log. (I expected this result). So, maybe you need use-flag: "suid" when emerging "xorg-server". Have you tried it already ?
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Fri Jul 29, 2022 12:20 am    Post subject: Reply with quote

I have not tried it.. As I understood it, using suid was an outdated or deprecated method.. is this true?
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Fri Jul 29, 2022 12:26 am    Post subject: Reply with quote

Update,
Just tried emerging xorg-server with suid in my USE

still didn't work
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Fri Jul 29, 2022 12:27 am    Post subject: Reply with quote

lf84217 wrote:
I have not tried it.. As I understood it, using suid was an outdated or deprecated method.. is this true?

Yes, using suid is outdated, we have now capabilities, BUT, this use-flag for X11 is "only" a wrapper for graphics driver.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Fri Jul 29, 2022 12:32 am    Post subject: Reply with quote

lf84217 wrote:
Just tried emerging xorg-server with suid in my USE

still didn't work

Ok, next question: How do you start X11 as user ? (pls show us the init script, and all you have in ~/.local/share/xorg)

(Sorry, I am away now until tomorrow).
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Fri Jul 29, 2022 12:37 am    Post subject: Reply with quote

P.S.: Have you read https://wiki.gentoo.org/wiki/Xorg ?

=>

Quote:
X server starts and dies unexpectedly with no errors[Bearbeiten | Quelltext bearbeiten]
Problem: Running startx will start the X server, however it will immediately die without any errors (searching "EE" in /var/log/Xorg.0.log returns no related results).

Cause: an empty .xinitrc file exists for the user who is running the startx command, so the X server is starting, then stopping because there is nothing left for it to do.

Resolution: Either remove the .xinitrc file or define a window manager inside it.
Back to top
View user's profile Send private message
lf84217
n00b
n00b


Joined: 26 Jul 2022
Posts: 31

PostPosted: Fri Jul 29, 2022 1:08 am    Post subject: Reply with quote

https://pastebin.com/EPaa48u3

Those are the three logs there in ~/.local/share/xorg
Not sure where to find my X init script


UPDATE: I created a .xinitrc script in my home directory, and now I can use startx successfully
Thanks for all the help. Still having other issues (audio driver, WIFI, etc), but I will work on those a bit before posting again.

How can I configure X/KDE to start on boot?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Fri Jul 29, 2022 7:23 am    Post subject: Reply with quote

lf84217 wrote:
[...] and now I can use startx successfully

I am glad it works now :-)

lf84217 wrote:
How can I configure X/KDE to start on boot?

I did for my KDE installation this:
Code:
# emerge -pvD plasma-meta kdecore-meta
# rc-update add elogind boot
# rc-update add display-manager default
# nano -w /etc/conf.d/display-manager
=> DISPLAYMANAGER="sddm"
# emerge -pvD ark falkon gwenview kate kcalc kmix kompare konversation kwalletmanager marble okteta okular spectacle sweeper
# emerge -pvD kmahjongg kmines
# emerge -pvD spectre-meltdown-checker yt-dlp
# emerge -pvD k3b
# emerge -pvD kdepim-meta
# emerge -pvD kleopatra
# emerge -pvD libreoffice
[...]


Have fun with Gentoo !
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1439
Location: Earth

PostPosted: Fri Jul 29, 2022 9:39 am    Post subject: Reply with quote

Quote:
I am glad it works now


me too :D
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum