Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable modesetting #95

Closed
StephanX opened this issue Dec 7, 2022 · 5 comments · Fixed by #103
Closed

Option to disable modesetting #95

StephanX opened this issue Dec 7, 2022 · 5 comments · Fixed by #103
Assignees
Labels
feature A new feature
Milestone

Comments

@StephanX
Copy link

StephanX commented Dec 7, 2022

Hi!

On my setup, everything works great, except I need all of Section "Module" removed for the xorg config file (for the egpu) to work. I'd love some sort of flag like '--nomodesetting' so that only the Device group is generated.

When modesetting is activated, gdm does not land on any connected monitor.

egpu-switcher version 0.18.1 on Arch (up to date) via Arch/Aur (gnome if that helps)
i7-6700HQ Alienware r13 + igpu gtx1060 + evga gtx 1070 / Akitio Node

@timpauli
Copy link

timpauli commented Mar 2, 2023

Hi,

for me it is the same. I am on Pop OS 22.04 with nvidia-driver-525 , kernel 6.1.11-76060111-generic and egpu-switcher version 0.18.1 and my external gpu is only working when I comment Load "modesetting" out in xorg.conf.
Which i have to do every time after I am using my laptop without the egpu. Otherwise it is just stuck in boot and will not launch x11 only commandline.

Thank you very much!
egpu-switcher is still a great help!

@hertg
Copy link
Owner

hertg commented Mar 2, 2023

@timpauli Good to know, thanks for the report. I'll prioritize this issue higher then.

Could you reproduce the issue again and upload the logs for the failed X.Org session? Just so I get some background information on what exactly is happening there.

cat /var/log/Xorg.0.log

A potential workaround might be to enable early KMS start?

@hertg hertg added the feature A new feature label Mar 2, 2023
@hertg hertg added this to the 0.19.0 milestone Mar 2, 2023
@timpauli
Copy link

timpauli commented Mar 3, 2023

/var/lib/gdm3/.local/share/xorg/Xorg.0.log

Xorg.0.log

Did not try the early KMS start yet.

Thank you

hertg added a commit that referenced this issue Mar 4, 2023
@hertg hertg closed this as completed in #103 Mar 4, 2023
hertg added a commit that referenced this issue Mar 4, 2023
…s, readme (#103)

* only print debug logs with verbose flag (closes #100)

* fix config dir permissions (closes #102)

* allow disabling modesetting, cleanup logging output, embed template from file (closes #95)

* change disableModesetting to nomodesetting

* allow passing nomodesetting as flag, update readme

* better logging output

* update readme
@hertg
Copy link
Owner

hertg commented Mar 4, 2023

@StephanX @timpauli

I implemented this in 0.19.0. The switch command now has the --nomodesetting flag. Or for an even easier way, update your config so that the modesetting module is always omitted.

/etc/egpu-switcher/config.yaml

egpu:
    nomodesetting: true # add this line
    driver: amdgpu
    id: 1153611719250962689

@ger5ones
Copy link

ger5ones commented Aug 27, 2023

@hertg
Hi.
It didn't work for me.
Would you have additional suggestions, please?
I have an egpu build that will only work on linux (having BSOD in windows) so I'm relying on this.

*the reason I believe it'll work in linux is because I'm getting video/display while connected the hdmi cable in the egpu but I'm pretty sure it is rendering with the igpu (not even the degpu/nvidia) because I can "feel" the slowness while typing, browsing etc. Plus, the "glxinfo -B | grep -i render" command returns the igpu name.

Thank you
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants