bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.18k stars 60 forks source link

[BUG] Cursor disappears when moving too fast on Nvidia mode #118

Open Skrup0 opened 1 year ago

Skrup0 commented 1 year ago

Describe the bug When I switch to Nvidia mode the cursor disappears when I move it too fast, the cursor sometimes freezes as well.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo envycontrol -s nvidia
  2. See error

Expected behavior Everything should work normally and the cursor isn't buggy

Screenshots If applicable, add screenshots to help explain your problem.

https://github.com/bayasdev/envycontrol/assets/57257104/7740524e-e408-4a87-9d71-aa0b4cf0527f

System Information:


**Additional context**
Add any other context about the problem here. If possible try to reproduce the problem with `--verbose` flag and attach its output.

Switching to nvidia mode Enable ForceCompositionPipeline: False Enable Coolbits: False INFO: Removed file /etc/X11/xorg.conf INFO: Removed file /etc/modprobe.d/nvidia.conf INFO: Found Nvidia GPU at 01:00.0 INFO: Found AMD iGPU INFO: Created file /etc/X11/xorg.conf

Automatically generated by EnvyControl

Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "amdgpu" EndSection

Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" EndSection

Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSection

Section "Device" Identifier "amdgpu" Driver "amdgpu" EndSection

Section "Screen" Identifier "amd" Device "amdgpu" EndSection

INFO: Created file /etc/modprobe.d/nvidia.conf

Automatically generated by EnvyControl

options nvidia-drm modeset=1 options nvidia NVreg_PreserveVideoMemoryAllocations=1

INFO: Found gdm Display Manager Rebuilding the initramfs... Successfully rebuilt the initramfs! Operation completed successfully Please reboot your computer for changes to take effect!