View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Mar 21, 2021 3:17 pm Post subject: hardware acceleration not working[solved] |
|
|
I have just finished installing gentoo with icewm, but it seems I cannot get harrdware acceleration to work:
Code: | adel@samsung ~ $ glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
adel@samsung ~ $ glxgears
Error: couldn't get an RGB, Double-buffered visual |
my graphics card, lspci -k:
Code: | 01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Subsystem: Samsung Electronics Co Ltd GeForce GT 620M
Kernel driver in use: nvidia
Kernel modules: nvidia_drm, nvidia
|
I have tried xorg-server with the minimal flag and without it :
Code: | [ebuild R ] x11-base/xorg-server-1.20.10-r2:0/1.20.10::gentoo USE="minimal* systemd udev xorg -debug -dmx -doc (-elogind) -ipv6 -kdrive (-libressl) (-selinux) -suid -test -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" 0 KiB
|
Code: | Calculating dependencies... done!
[ebuild R ] x11-base/xorg-drivers-1.20-r2::gentoo INPUT_DEVICES="evdev -elographics -joystick -libinput -synaptics -vmmouse -void -wacom" VIDEO_CARDS="nvidia -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -glint -i915 -i965 -intel -mga -nouveau -nv (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa -via -virtualbox -vmware" 0 KiB |
I start icewm with the following line int eh user profile:
Code: | if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx /usr/bin/icewm; fi
x0vncserver -passwordfile ~/.vnc/passwd -display :0 |
any idea where I should begin looking?
I s
Last edited by Adel Ahmed on Mon Mar 29, 2021 7:22 am; edited 1 time in total |
|
Back to top |
|
|
xahodo Tux's lil' helper
Joined: 17 May 2007 Posts: 82 Location: Gouda, the Netherlands
|
Posted: Sun Mar 21, 2021 5:56 pm Post subject: |
|
|
Have you followed what is mentioned on this wiki page?
If so, what does /var/log/Xorg.0.log say?
Why are you using a vnc server? Do you want the X session to be remotely accessible? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Mar 21, 2021 11:15 pm Post subject: |
|
|
I have followed the page, for some reason I do not have a /var/log/Xorg.0.log
is there an alternate location or have I done something wrong? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6097 Location: Dallas area
|
Posted: Sun Mar 21, 2021 11:41 pm Post subject: |
|
|
Adel Ahmed wrote: | I have followed the page, for some reason I do not have a /var/log/Xorg.0.log
is there an alternate location or have I done something wrong? |
try ~/.local/share/xorg _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Mistwolf Apprentice
Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
Posted: Sun Mar 21, 2021 11:54 pm Post subject: |
|
|
Is this computer a laptop?
If so, are you sure you do not have 2 video cards? An integrated Intel video card for most display uses, and the Nvidia card for heavy display/graphics uses?
If you do have 2 video cards, you need to follow this: https://wiki.gentoo.org/wiki/NVIDIA/Optimus |
|
Back to top |
|
|
xineg Tux's lil' helper
Joined: 14 Mar 2006 Posts: 115 Location: Australia.
|
Posted: Mon Mar 22, 2021 12:26 am Post subject: |
|
|
Adel Ahmed
I personally run X without systemd as suid root so X can write log files wherever it wishes. However the default now is to run X with or without systemd as the user. it is possible that X can't write to /var/log and instead I think it writes to the esoteric
Code: | ~/.local/share/xorg/Xorg.0.log |
Many of the other issues may be systemd related but I am unfamiliar with it.
Additionally regards writing the X log file you can force the situation with
Code: | X -logfile filename | or (say,) your diagnosing something else.
Last edited by xineg on Mon Mar 22, 2021 3:26 pm; edited 3 times in total |
|
Back to top |
|
|
mustafasalih1993 n00b
Joined: 09 Feb 2021 Posts: 38
|
Posted: Mon Mar 22, 2021 12:50 am Post subject: |
|
|
Hello Adel Ahmed
did you tried killing you X session and:
Code: |
sudo modprobe -r nvidia
startx
|
and then
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2716
|
Posted: Mon Mar 22, 2021 12:59 am Post subject: |
|
|
wrt minimal you don't want that, most of it is "fine" with nvidia except one thing, it does --disable-glx (so yeah...). Minimal is mostly intended for a headless machine wanting to run Xvfb or so.
Given your card, I assume you are using nvidia-drivers-390.xx branch, right?
When you built 390, did it complaint about enabling KMS_HELPER in the kernel? 390.xx needs a workaround to have working glx, but that workaround only gets activated (in xorg.conf.d's nvidia-390.conf) with DRM support using KMS_HELPER
Also, ensure you are in video group.
Will need to see Xorg's log if the above doesn't help.
Edit: also you shouldn't need to load modules yourself, nvidia-modprobe will automagic handle this + create devices with right permissions if you are in the video group as long as modules exist for your running kernel |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Mar 24, 2021 1:02 pm Post subject: |
|
|
yikes, it is a laptop, in this case I meant to run it using the discrete graphics card(intel)
I have change the use flags for the xorg-drivers as following:
Calculating dependencies... done!
[ebuild R ] x11-base/xorg-drivers-1.20-r2::gentoo INPUT_DEVICES="evdev -elographics -joystick -libinput -synaptics -vmmouse -void -wacom" VIDEO_CARDS="i915 intel -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -glint -i965 -mga -nouveau -nv -nvidia (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa -via -virtualbox -vmware" 0 KiB
I get the same error |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Mar 29, 2021 7:22 am Post subject: |
|
|
I removed the nvidia modules that I had installed earlier and now things work.
thanks everyone. |
|
Back to top |
|
|
|