nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
361 stars 42 forks source link

Lenovo T500: No screens found #52

Open jose1711 opened 4 years ago

jose1711 commented 4 years ago

On Lenovo T500 notebook I am getting this with NomadBSD 1.3:

[    32.349] (EE) No devices detected.
[    32.349] (EE)
Fatal server error:
[    32.349] (EE) no screens found(EE)
[    32.349] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    32.350] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    32.350] (EE)
[    32.366] (EE) Server terminated with error (1). Closing log file.

Tried disabling syscons or using VESA but it's still the same. I was able to bring X up using X -configure but automatic detection would be nice.

$ lspci -vl
vgapci1@pci0:0:2:0:     class=0x030000 card=0x211517aa chip=0x2a428086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 4 Series Chipset Integrated Graphics Controller'
    class      = display
    subclass   = VGA
vgapci0@pci0:1:0:0:     class=0x030000 card=0x211617aa chip=0x95911002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'RV635/M86 [Mobility Radeon HD 3650]'
    class      = display
    subclass   = VGA
$ kldstat
Id Refs Address                Size Name
 1   11 0xffffffff80200000  2447c68 kernel
 2    1 0xffffffff82819000     88d8 tmpfs.ko
 3    1 0xffffffff82822000     35a4 geom_uzip.ko
 4    1 0xffffffff82826000     2eb0 xz.ko
 5    1 0xffffffff82829000     30d8 acpi_ibm.ko
mrclksr commented 4 years ago

Did the graphical setup start when you first booted NomadBSD?

jose1711 commented 4 years ago

There are the following configuration options in BIOS (version 3.22), menu Config -> Display:

Graphics Device  [Integrated Graphics]
                 [Discrete Graphics]
                 [Switchable Graphics]
OS Detection for Switchable Graphics  [Disabled]
                                      [Enabled]

For NomadBSD to correctly configure and run X, the Graphics Device needs to be set to either Integrated Graphics (intel) or Discrete Graphics (radeon). Further, if the settings is to survive reboots OS Detection for Switchable Graphics needs to be disabled.

I have no idea how good the support for switchable GPUs is in FreeBSD but maybe a note to disable switchable graphics in BIOS if there are problems detected could make its way into the handbook.

mrclksr commented 4 years ago

Thank you for the feedback, @jose1711.

I have no idea how good the support for switchable GPUs is in FreeBSD but maybe a note to disable switchable graphics in BIOS if there are problems detected could make its way into the handbook.

We will do so.

Could you please copy intel_setup and ati_amd_setup to /usr/bin, and copy initgfx to /etc/rc.d, and try to boot NomadBSD with Switchable Graphics enabled?

jose1711 commented 4 years ago

Thank you, I will do so but it's going to take a while as momentarily I do not have access to this hw.

jose1711 commented 4 years ago

Copied the files from repository and reenabled switchable graphics. Now I at least get a text terminal (with both autodetect and VESA). Sadly, X are not working. Will provide more information - just tell me what to supply. Thanks.