helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
807 stars 58 forks source link

NVIDIA GeForce G102M (K40IN) wrong resolution #542

Open louies0623 opened 1 year ago

louies0623 commented 1 year ago

The resolution of the K40IN notebook screen is only 1024x768, and there is no 1366x768 option.

probonopd commented 1 year ago

Does it work on e.g., GhostBSD? Is the correct graphics driver loaded (check /usr/local/etc/X11/xorg.conf.d/00-video-initgfx.conf)?

louies0623 commented 1 year ago

20230905_132243 Ghost BSD seems to be unusable, so I think I'll just turn it off.

louies0623 commented 1 year ago

I'd better restart it so that people in need can use it .normally.https://bsd-hardware.info/?id=pci:10de-0873-1043-19b4

20230906_084258

probonopd commented 1 year ago

This is not the good graphics driver. It is the fallback driver. Expect a slightly broken system.

We need to get the NVIDIA driver to load.

Does it work on NomadBSD?

louies0623 commented 1 year ago

I need the NomadBSD Live .iso , otherwise I can't use it.

louies0623 commented 1 year ago

It is working and the resolution is correct.

probonopd commented 1 year ago

What does its /usr/local/etc/X11/xorg.conf.d/00-video-initgfx.conf say?

louies0623 commented 1 year ago

20230907_164145 NomadBSD

louies0623 commented 1 year ago

20230907_171551 HS Build 0I40

probonopd commented 1 year ago

Please retest with build 0I41 or later. Thanks!

louies0623 commented 1 year ago

No fix, still the same.

probonopd commented 1 year ago

That is strange, because I updated initgfx from its NomadBSD sources. Maybe a kernel module is missing? Please compare the loaded kernel modules on both systems.

Or please submit Hardware Probes for both systems.

Thanks!

louies0623 commented 1 year ago

In kldstat there is no content of card nvidia, only acpi video. nomadbsd 1 0xffffffff82b62000 4350 acpi_video.ko hello system 1 0xffffffff8272f0000 4350 acpi_video.ko

probonopd commented 1 year ago

This seems to indicate to me that the Nvidia kernel module is not loaded on either system, so both are broken and won't work correctly. Looks liket this is currently unsupported?

(Note to self: The GeForce G102M was a mobile integrated graphics solution by Nvidia, launched on January 8th, 2009. Built on the 65 nm process, and based on the C79 "Tesla" architecture, which is also used by ION.)

The pages at nvidia.com which are mentioned on https://wiki.freebsd.org/Graphics do not contain the GeForce G102M, suggesting that it might not be supported by the FreeBSD Nvidia drivers. However, the pages for 304.137 and 340.108 do mention ION, so loading one of those for this GPU may or may not work.

https://bsd-hardware.info/?id=pci:10de-0873-1043-19b4&hwid=649ea35e6ec2 has one entry of a FreeBSD system saying this GPU "works". It has the nvidia.ko module loaded.

Its xorg.conf.d contains

driver-nvidia.conf
------------------
Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    Option "DynamicClocks" "on"
EndSection

Section "ServerFlags"
    Option "IgnoreABI" "true"
EndSection

initfgx uses nvidia_340_ids() for ION, and it also contains GeForce G 102M: https://github.com/helloSystem/ISO/blob/01f7e869c99eb6a7fded4a05e03d083fa1492a3b/overlays/uzip/initgfx/files/etc/initgfx_device.db#L983

So it's not clear to me what else we could do.

louies0623 commented 1 year ago

@probonopd Maybe an older version of the driver is required as mentioned in this article. https://bbs.archlinux.org/viewtopic.php?id=278169

https://forums.freebsd.org/threads/legacy-nvidia-on-freebsd-12-2.77818/

probonopd commented 1 year ago

We are already using Nvidia driver version 403...

louies0623 commented 1 year ago

The latest version of Nvidia's driver has removed support for older GPUs. We may need to install the old version of the driver together with the new version. This content may be useful https://hackaday.com/2023/08/01/jennys -daily-drivers-freebsd-13-2/

louies0623 commented 1 year ago

@probonopd I can't find any graphics card that supports 102m in version 470. Its latest support is only in version 340. V340 https://www.nvidia.com/Download/driverResults.aspx/156167/en-us/

V470 https://www.nvidia.com/Download/driverResults.aspx/205998/en-us/

louies0623 commented 1 year ago

@probonopd Hope this helps, because the graphics card is only supported up to 340 in the end.https://www.reddit.com/r/freebsd/comments/pru22n/nvidia_340/

This is a driver that supports it. Support for 390 has been removed. https://www.freshports.org/x11/nvidia-driver-340

probonopd commented 1 year ago

So maybe driver version 340 should be used for this (and similar?) GPUs. Can you try out whether that works?

Need to edit /etc/initgfx_device.db, and need to delete /var/initgfx_config.id, then reboot.

louies0623 commented 1 year ago

I replaced initgfx_device.db with the nomadbsd file and then restarted, but it didn't work, and /var/initgfx_config.id did not have the file.

louies0623 commented 1 year ago

20230928_073749 I tried it, the screen did not change, but the same BUG as 630 appeared.

louies0623 commented 1 year ago

It may be blocked or replaced by other drivers, because the resolution remains the same after installing the 340 Driver. Added, if 340 is installed it will remove the 390 driver.

louies0623 commented 1 year ago

That is strange, because I updated initgfx from its NomadBSD sources. Maybe a kernel module is missing? Please compare the loaded kernel modules on both systems.

Or please submit Hardware Probes for both systems.

Thanks!

hello system https://bsd-hardware.info/?probe=00a4f6e5a0 Nomadbsd https://bsd-hardware.info/?probe=3c69dd7003