Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Xorg problems

91 views
Skip to first unread message

scrat

unread,
Mar 7, 2015, 11:33:55 AM3/7/15
to

I am in process of evaluating FreeBSD so I can move from the Linux world
to FreeBSD.

I have installed FreeBSD onto a Dell laptop Inspiron 1501 for testing,
Arch linux runs fine on this laptop.

I wish to install the base system, update it to the latest Released
version 10.1 and then build a desktop machine using the ports method
outlined in the online Handbook.

Here is what I have done so far

I have installed FreeBSD 10.0 and updated it to 10.1 using freebsd-update

uname -a
FreeBSD dell.example.com 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue
Feb 24 19:00:21 UTC 2015
ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
using freebsd-update.

Ss root entered the following:
/bin/sh
Xorg -configure > xorg.log 2>&1

$ cat xorg.log

X.Org X Server 1.14.7
Release Date: 2014-06-05
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.1-RELEASE-p4 amd64
Current Operating System: FreeBSD dell.example.com 10.1-RELEASE-p6
FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015
ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 19 February 2015 09:04:34PM

Current version of pixman: 0.32.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 7 10:54:47 2015
List of video drivers:
ati
radeon
vesa
(++) Using config file: "/root/xorg.conf.new"
(II) [KMS] Kernel modesetting enabled.
Number of created screens does not match number of detected devices.
Configuration failed.
(EE) Server terminated with error (2). Closing log file.
$

How do I fix the error:
Number of created screens does not match number of detected devices.
Configuration failed

If I then following the book

*|Xorg -config xorg.conf.new -retro|*

I can not (from the book) do the following:

To exit the test, switch to the virtual console used to start it by
pressing *Ctrl*+*Alt*+*F/|n|/* (*F1* for the first virtual console) and
press *Ctrl*+*C*.

it simply doesn't work ie I can not go to the term F1 and Ctrl+C to stop
xorg.

Ctrl+Alt+Delete will reboot the computer.


Continuing I built Xfce4 from ports, configured it to start from the
command line and started it.
I cannot simply log out and return to the command line as the display
goes haywire. To stop the computer I have to open a terminal in xfce
and su to root and issue a poweroff to shutdown.

Can anyone help with to above problems?

Thanks for your time
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

William Bulley

unread,
Mar 7, 2015, 11:45:36 AM3/7/15
to
According to scrat <baho...@columbus.rr.com> on Sat, 03/07/15 at 11:33:
>
> How do I fix the error:
> Number of created screens does not match number of detected devices.
> Configuration failed

I had a very similar problem just the other day.

Check the version of your x11/nvidia-driver port:

unix% pkg info | grep -i nvidia
nvidia-driver-340.76 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-340.24_1 Display Control Panel for X NVidia driver
nvidia-xconfig-310.14 Tool to manipulate X configuration files for the NVidia driver

The latest nvidia-driver at:

http://www.freebsd.org/cgi/ports.cgi?query=nvidia-driver&stype=name

is nvidia-driver-346.47 and this newer version does not support the
older graphics hardware in your Dell Inspiron laptop. If this does
not apply to your situation, then nevermind, but if it does apply
to you, then you need to downgrade nvidia-driver-346.47 to the
older nvidia-driver-340.76 which you can get (download) from the
NVIDIA download site. I hope this helps.

Regards,

web...

--

/"\ ASCII RIBBON / William Bulley
\ / CAMPAIGN AGAINST /
X HTML E-MAIL AND / E-MAIL: w...@umich.edu
/ \ LISTSERV POSTINGS /

72 characters width template ----------------------------------------->|

Dutch Ingraham

unread,
Mar 7, 2015, 11:55:29 AM3/7/15
to
On Sat, Mar 07, 2015 at 11:33:38AM -0500, scrat wrote:
> Ss root entered the following:
> /bin/sh
> Xorg -configure > xorg.log 2>&1
>
Hand-configuring xorg has been deprecated; see section 6.4 of the
Handbook. I would start by deleting the generated xorg.confs
and trying startx without a config file.

Waitman Gobble

unread,
Mar 7, 2015, 1:04:20 PM3/7/15
to
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
freebsd-questi...@freebsd.org"

The 1501 is a $50 laptop from 2006? i dont know that nvidia is the right
driver, I think it has ATI before AMD bought it. This would have been
around the time FreeBSD 7.0 was HEAD i think?

curious??? If this is the same 1501 that featured the first Dell computer
to use AMD chip then probably best to evaluate throwing it in the dumpster.
:)

Waitman Gobble
Los Altos California USA
510 830 7975

Dutch Ingraham

unread,
Mar 7, 2015, 1:04:28 PM3/7/15
to
On Sat, Mar 07, 2015 at 12:32:50PM -0500, Baho Utot wrote:
> On 03/07/15 11:55, Dutch Ingraham wrote:
> >On Sat, Mar 07, 2015 at 11:33:38AM -0500, scrat wrote:
> >>Ss root entered the following:
> >>/bin/sh
> >>Xorg -configure > xorg.log 2>&1
> >>
> >Hand-configuring xorg has been deprecated; see section 6.4 of the
> >Handbook. I would start by deleting the generated xorg.confs
> >and trying startx without a config file.
> >_______________________________________________
> >freebsd-...@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
> >
>
> The same thing occurs, I don't think it is because of the config file. I was
> hoping that if I add a config file I could get past this
>
> Thanks

What video card are you using? Regardless, I would confirm compatability
by reviewing [1] and if you are using Radeon, confirming the proper
firmware is loaded. Also review vt(4) and make sure your loader.conf
is properly described.

Lastly, it might be helpful to have the full output of your Xorg.log.

[1] https://wiki.freebsd.org/Graphics

scrat

unread,
Mar 7, 2015, 1:21:25 PM3/7/15
to
ATI

Mike Clarke

unread,
Mar 7, 2015, 3:13:47 PM3/7/15
to
On Sat, 7 Mar 2015 11:39:42 -0500
William Bulley <w...@umich.edu> wrote:

> The latest nvidia-driver at:
>
> http://www.freebsd.org/cgi/ports.cgi?query=nvidia-driver&stype=name
>
> is nvidia-driver-346.47 and this newer version does not support the
> older graphics hardware in your Dell Inspiron laptop. If this does
> not apply to your situation, then nevermind, but if it does apply
> to you, then you need to downgrade nvidia-driver-346.47 to the
> older nvidia-driver-340.76 which you can get (download) from the
> NVIDIA download site.

There's no need to download sources from nvidia. Earlier versions are
available in ports, x11/nvidia-driver-304 and x11/nvidia-driver-340
and as binary packages.

--
Mike Clarke

Polytropon

unread,
Mar 7, 2015, 3:25:53 PM3/7/15
to
On Sat, 7 Mar 2015 10:04:09 -0800, Waitman Gobble wrote:
> The 1501 is a $50 laptop from 2006? i dont know that nvidia is the right
> driver, I think it has ATI before AMD bought it. This would have been
> around the time FreeBSD 7.0 was HEAD i think?

In that case, it's highly questionable if Xorg autodetection
magic will work here. Maybe "Xorg -configure" and manually
post-configuring xorg.conf is the way to go. Of course you
have to verify _which_ graphics is installed: Maybe it's
ATI, maybe Intel. Then you have to install the corresponsing
driver. In worst case, try the VESA driver, but don't expect
any 3D stuff working flawlessly with that.



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Baho Utot

unread,
Mar 7, 2015, 3:45:07 PM3/7/15
to
On 03/07/15 15:25, Polytropon wrote:
> On Sat, 7 Mar 2015 10:04:09 -0800, Waitman Gobble wrote:
>> The 1501 is a $50 laptop from 2006? i dont know that nvidia is the right
>> driver, I think it has ATI before AMD bought it. This would have been
>> around the time FreeBSD 7.0 was HEAD i think?
>
> In that case, it's highly questionable if Xorg autodetection
> magic will work here. Maybe "Xorg -configure" and manually
> post-configuring xorg.conf is the way to go. Of course you
> have to verify _which_ graphics is installed: Maybe it's
> ATI, maybe Intel. Then you have to install the corresponsing
> driver. In worst case, try the VESA driver, but don't expect
> any 3D stuff working flawlessly with that.
>
>
>

That is why I tried to use Xorg -configure.

I am going to boot Fedora 20 ( I have a live DVD ) and see what it
thinks about the xorg configuration. This machine has always worked
when using linux, so I felt it should be OK using FreeBSD as the Xorg
should be about the same.

scrat

unread,
Mar 7, 2015, 4:34:10 PM3/7/15
to


On 03/07/15 15:25, Polytropon wrote:
> On Sat, 7 Mar 2015 10:04:09 -0800, Waitman Gobble wrote:
>> The 1501 is a $50 laptop from 2006? i dont know that nvidia is the right
>> driver, I think it has ATI before AMD bought it. This would have been
>> around the time FreeBSD 7.0 was HEAD i think?
> In that case, it's highly questionable if Xorg autodetection
> magic will work here. Maybe "Xorg -configure" and manually
> post-configuring xorg.conf is the way to go. Of course you
> have to verify _which_ graphics is installed: Maybe it's
> ATI, maybe Intel. Then you have to install the corresponsing
> driver. In worst case, try the VESA driver, but don't expect
> any 3D stuff working flawlessly with that.
>
>
>

The vesa driver works as I can log out of Xfce4 and it goes to the
terminal correctly, also I can use Ctrl+Alt+Fn to goto terminals while
in Xfce4.

So this appears to be a problem with xf86-video-ati-7.5.0_1. How can I
debug this further?

Warren Block

unread,
Mar 7, 2015, 9:17:38 PM3/7/15
to
On Sat, 7 Mar 2015, scrat wrote:

>
> I am in process of evaluating FreeBSD so I can move from the Linux world to
> FreeBSD.
>
> I have installed FreeBSD onto a Dell laptop Inspiron 1501 for testing, Arch
> linux runs fine on this laptop.
>
> I wish to install the base system, update it to the latest Released version
> 10.1 and then build a desktop machine using the ports method outlined in the
> online Handbook.
>
> Here is what I have done so far
>
> I have installed FreeBSD 10.0 and updated it to 10.1 using freebsd-update

Why not just install 10.1? It doesn't matter, though.

> Ss root entered the following:
> /bin/sh
> Xorg -configure > xorg.log 2>&1

Why? Always try to run X without an xorg.conf first. Only create one
if necessary.

> $ cat xorg.log
>
> X.Org X Server 1.14.7
> Release Date: 2014-06-05
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 10.1-RELEASE-p4 amd64
> Current Operating System: FreeBSD dell.example.com 10.1-RELEASE-p6 FreeBSD
> 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015
> ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
> Build Date: 19 February 2015 09:04:34PM
>
> Current version of pixman: 0.32.6
> Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 7 10:54:47 2015
> List of video drivers:
> ati
> radeon
> vesa
> (++) Using config file: "/root/xorg.conf.new"
> (II) [KMS] Kernel modesetting enabled.
> Number of created screens does not match number of detected devices.
> Configuration failed.
> (EE) Server terminated with error (2). Closing log file.
> $
>
> How do I fix the error:
> Number of created screens does not match number of detected devices.
> Configuration failed
>
> If I then following the book
>
> *|Xorg -config xorg.conf.new -retro|*

So it works with the generated xorg.conf?

> I can not (from the book) do the following:
>
> To exit the test, switch to the virtual console used to start it by pressing
> *Ctrl*+*Alt*+*F/|n|/* (*F1* for the first virtual console) and press
> *Ctrl*+*C*.

> it simply doesn't work ie I can not go to the term F1 and Ctrl+C to stop
> xorg.

That is because KMS is being used and requires vt(4) to switch back to
the console. Add to /boot/loader.conf:
kern.vty=vt

> Continuing I built Xfce4 from ports, configured it to start from the command
> line and started it.
> I cannot simply log out and return to the command line as the display goes
> haywire. To stop the computer I have to open a terminal in xfce and su to
> root and issue a poweroff to shutdown.

This is the same vt(4) issue.
0 new messages