Page 1 of 1

vga_detect fails for nvidia

Posted: 21 Oct 2013, 05:52
by devtomato
My first time using porteus :) Welcome.... me

In response to vga_detect issue (reference: http://forum.porteus.org/viewtopic.php? ... 7&start=15).
It does not work in my situation. Here is my xorg log file:

http://pastebin.com/GK3EWELN

Here is my lspci | grep VGA output:

Code: Select all

01:00.0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2)
ls optional/

Code: Select all

nVidia-319.32-porteus-v2.1-i486-1ftm.xzm
ls modules/

Code: Select all

001-core_fixes-alldesktops-20130910-i486-1prt.xzm 
07-printing.xzm
I always run into vga detection issues with (any) Linux distro. Why is this the case?

Re: vga_detect fails for nvidia

Posted: 21 Oct 2013, 09:03
by fanthom
is it only the 'vga_detect' cheatcode not loading the module or this driver does not work at all for your GPU?
did you try to put it directly into /porteus/modules folder? did you try nVidia-304.x module?

please link full report from 'xpsinfo' utility.
thanks

Re: vga_detect fails for nvidia

Posted: 21 Oct 2013, 23:45
by devtomato
Hi Fanthom,
is it only the 'vga_detect' cheatcode not loading the module or this driver does not work at all for your GPU?
The nvidia drivers were working prior to booting Porteus on a different machine (with Intel Graphics). After that, I am assuming nvidia graphics drivers were unstagged.
did you try to put it directly into /porteus/modules folder?
Yes, doesn't work. I get a message during boot sequence saying Fatal Error along with Unloading nvidia driver message.
did you try nVidia-304.x module?
No, I am running nVidia-319.32 module which was the default module downloaded with Porteus
please link full report from 'xpsinfo' utility.
http://pastebin.com/NydZXkFK

Re: vga_detect fails for nvidia

Posted: 22 Oct 2013, 01:50
by francois
According to nvidia linux driver site both drivers should fit the geforce gt 240, see supported cards:
http://www.nvidia.ca/object/linux-displ ... river.html
http://www.nvidia.ca/object/linux-displ ... .37-driver

Please try the nvidia 304 module in the modules directory, as proposed by fanthom.

Re: vga_detect fails for nvidia

Posted: 22 Oct 2013, 02:39
by devtomato
As I mentioned, I don't think the problem is the drivers. I have been using compiled binary with other distros for nvidia 319+. There seems to be some issue with the way Porteus detects VGA Adapters. :)

Re: vga_detect fails for nvidia

Posted: 22 Oct 2013, 14:47
by brokenman
Is this a full xpsinfo dump becaue it looks short? It would be interesting to see the output of lspci. On my (dual graphics) machine for example the video card is not detected as VGA:

00:02.0 VGA compatible controller: Intel Corporation Device 0416 (rev 06)
01:00.0 3D controller: nVidia Corporation Device 0fe3 (rev a1)

Re: vga_detect fails for nvidia

Posted: 23 Oct 2013, 05:52
by devtomato
Here is my lspci

Code: Select all

00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
03:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)

Re: vga_detect fails for nvidia

Posted: 23 Oct 2013, 08:56
by fanthom
@devtomato
Xorg in porteus detects GPUs the same way as in other distros i believe (through udev). there is no harm to try 304.x and even 173.x driver - please do and report back.
please make sure you boot without 'changes=' cheatcode. please also add 'cliexec=xconf' cheatcode which should generate /etc/X11/xorg.conf prior to launching Xorg.

if nothing helps then please post output of 'lspci -nn | grep 0300' (i'm interested in the pciid of your card).

Re: vga_detect fails for nvidia

Posted: 24 Oct 2013, 02:57
by devtomato
Xorg in porteus detects GPUs the same way as in other distros i believe (through udev).
ok.
there is no harm to try 304.x and even 173.x driver - please do and report back.
I just re-downloaded Porteus with all three nvidia modules built-in (319x 304x and 173x). I still get Fatal error and unloading nvidia module but X now starts. It seems then X blindly loads the available modules and unloads them if it fails to start (guess and check method). I have no way of knowing which module did load successfully or if X is running with 2d/3d acceleration or not. But atleast X now starts.
please make sure you boot without 'changes=' cheatcode. please also add 'cliexec=xconf' cheatcode which should generate /etc/X11/xorg.conf prior to launching Xorg.
I didn't try that yet.
if nothing helps then please post output of 'lspci -nn | grep 0300' (i'm interested in the pciid of your card).
Sure here:

Code: Select all

01:00.0 VGA compatible controller [0300]: nVidia Corporation GT215 [GeForce GT 240] [10de:0ca3] (rev a2)
And here is my new Xorg log file:
http://pastebin.com/qqNdk9Hf

Re: vga_detect fails for nvidia

Posted: 24 Oct 2013, 20:41
by fanthom
keeping all three nVidia drivers in /porteus/modules makes no sense (last module activated will override others). please rather put them to /porteus/optional and use 'load=' cheatcode (please read /boot/docs/cheatcodes.txt for description).
please dont forget to drop 'changes=' and add 'cliexec=xconf' when testing.

Re: vga_detect fails for nvidia

Posted: 26 Oct 2013, 05:04
by devtomato
Dear fanthom:
keeping all three nVidia drivers in /porteus/modules makes no sense (last module activated will override others).
Ok.
please rather put them to /porteus/optional and use 'load=' cheatcode (please read /boot/docs/cheatcodes.txt for description).
I used the predicate load=319 which loaded the nvidia drivers
please dont forget to drop 'changes=' and add 'cliexec=xconf' when testing.
I kept the changes predicate (because I want persistent file storage) and added the cliexec.

Result:

I was able to boot but I still saw Fatal error message. Xorg will retry modesetting the driver. While I was able to get in, I cannot locate the nvidia control panel (nvidia-settings?). Therefore I am not sure if nvidia drivers were loaded. There are two Xorg log files.

Here is Xorg.0.log.old:
http://pastebin.com/sHkuwsd1

Here is Xorg.0.log:
http://pastebin.com/BfNQVu6a

Awaiting your response.

Re: vga_detect fails for nvidia

Posted: 26 Oct 2013, 07:57
by fanthom
I kept the changes predicate (because I want persistent file storage)
we are debugging, trying to find a root cause of the problem - once we find it you can do whatever you want but for now please listen to my advices.

this line tells me that there is something wrong with your changes:
[ 25.513] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 25.513] (EE) No drivers available.
please do as follows (this time do it exactly as i write):
a) boot to 'Always Fresh' mode
b) open terminal -> switch to root with 'su' -> type 'init 3' which will bring you to the text mode
c) login as root and activate nVidia driver from /porteus/optional folder
d) run 'xconf' command and then copy /etc/X11/xorg.conf to the /root folder
e) run 'init 4' and this should bring you to the desktop with nvidia driver being used
f) if you get usual failure then please upload previously saved /root/xorg.conf and /var/log/Xorg.0.log.old to pastebin.com then link here.

thanks.