I ran sudo envycontrol -s nvidia --dm lightdm and I bumped a black screen. Then, I restarted the system and put into text mode as indicated and nothing seemed to be wrong. So I decided to read the code to understand a bit how it worked and I saw these lines:
I had taken a look at the files in that folder previously and I couldn't recall that file being present, so I decided to check. To my surprise, I was right so I created the file and restarted my computer. It worked. I don't know what the problem can be because your code has the following lines:
elif display_manager == 'lightdm':
if igpu_vendor == "amd":
amd_name = _get_amd_igpu_name()
_create_file(LIGHTDM_SCRIPT_PATH, NVIDIA_XRANDR_SCRIPT.format(amd_name))
else:
_create_file(LIGHTDM_SCRIPT_PATH, NVIDIA_XRANDR_SCRIPT.format("modesetting"))
subprocess.run(['chmod','+x',LIGHTDM_SCRIPT_PATH], stdout=subprocess.DEVNULL)
# create config
if not os.path.exists(os.path.dirname(LIGHTDM_CONFIG_PATH)):
_create_file(LIGHTDM_CONFIG_PATH, LIGHTDM_CONFIG_CONTENT)
in which the final line is responsible for writing the file with the contents. I am not not sure what is the problem, but I think it would be easy for you to fix with the information provided.
I ran
sudo envycontrol -s nvidia --dm lightdm
and I bumped a black screen. Then, I restarted the system and put into text mode as indicated and nothing seemed to be wrong. So I decided to read the code to understand a bit how it worked and I saw these lines:I had taken a look at the files in that folder previously and I couldn't recall that file being present, so I decided to check. To my surprise, I was right so I created the file and restarted my computer. It worked. I don't know what the problem can be because your code has the following lines:
in which the final line is responsible for writing the file with the contents. I am not not sure what is the problem, but I think it would be easy for you to fix with the information provided.
Thanks,
Eduardo