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

Can Wayfire run exclusively on iGPU? #2483

Closed
LongLeCE opened this issue Oct 3, 2024 · 2 comments
Closed

Can Wayfire run exclusively on iGPU? #2483

LongLeCE opened this issue Oct 3, 2024 · 2 comments

Comments

@LongLeCE
Copy link

LongLeCE commented Oct 3, 2024

I managed to get my dGPU to run in D3cold state in my hybrid graphics laptop (RTX 4060 + Intel UHD). I could verify it with cat /sys/class/drm/card*/device/power_state. However, as soon as wayfire run, it uses both my GPUs for some reason and the power states are stuck at D0 for both. Can wayfire be configured to exclusively use iGPU only (so that I can save power on my laptop)? This is the result of nvtop with wayfire running

2024-10-03_20:46:58

@soreau
Copy link
Member

soreau commented Oct 3, 2024

You can try setting WLR_RENDER_DRM_DEVICE=/dev/dri/renderD# and WLR_DRM_DEVICES=/dev/dri/card# before starting wayfire? (where the number # is specific to your device)

@ammen99
Copy link
Member

ammen99 commented Oct 3, 2024

I have pretty much the same setup and @soreau's suggestion is exactly what I do:

WLR_DRM_DEVICES=/dev/dri/card0 WLR_RENDER_DRM_DEVICE=/dev/dri/renderD128 wayfire

Just make sure to replace D128 and card0 with the numbers corresponding to the iGPU.

@ammen99 ammen99 closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants