Hardware/Razer: Difference between revisions
imported>AmnesiaAmesia m Added texts about how to enable openrazer with frontend |
imported>AmnesiaAmesia m Added syntax highlight to code sections |
||
Line 22: | Line 22: | ||
Upon closing the lid to the laptop and reopening, an issue occurs where the device will intermittently go back into hybernate mode after around 10-30 seconds. Setting the kernel parameter <code>button.lid_init_state=open</code> fixes this issue. The following is an example configuration (working in NixOS 22.05): | Upon closing the lid to the laptop and reopening, an issue occurs where the device will intermittently go back into hybernate mode after around 10-30 seconds. Setting the kernel parameter <code>button.lid_init_state=open</code> fixes this issue. The following is an example configuration (working in NixOS 22.05): | ||
<syntaxHighlight lang=nix> | |||
boot.kernelParams = [ "button.lid_init_state=open" ]; | boot.kernelParams = [ "button.lid_init_state=open" ]; | ||
</syntaxHighlight> | |||
<h3>Getting the Nvidia card to work properly with external displays</h3> | <h3>Getting the Nvidia card to work properly with external displays</h3> | ||
Line 30: | Line 32: | ||
After setting the GPU MODE to "Dedicated GPU only" in the BIOS, enabling [https://nixos.wiki/wiki/Nvidia#sync_mode sync mode] is necessary in order for both the laptop's display and external display/ports to work properly. Here is an example configuration snippet for NixOS 22.05: | After setting the GPU MODE to "Dedicated GPU only" in the BIOS, enabling [https://nixos.wiki/wiki/Nvidia#sync_mode sync mode] is necessary in order for both the laptop's display and external display/ports to work properly. Here is an example configuration snippet for NixOS 22.05: | ||
<syntaxHighlight lang=nix> | |||
services.xserver = { | services.xserver = { | ||
videoDrivers = [ "nvidia" ]; | videoDrivers = [ "nvidia" ]; | ||
Line 45: | Line 48: | ||
}; | }; | ||
}; | }; | ||
</syntaxHighlight> | |||