Open zahariaca opened 8 months ago
I'd start debugging by adding some debug output to load_profiles
: Which directories is it invoked for (print the profile_path
parameter) and which profiles does it find (print the profile
variable).
It's interesting that autorandr is executed three times. Maybe that's related to your snap setup? Dumping os.getuid()
and checking what users that corresponds to could also be an interesting lead. I suspect the error message comes from an autorandr instance that isn't running as your uid.
Hello,
My setup is a laptop with an nvidia card. Laptop screen + 1 external monitor. The base operating system is Ubuntu 22.04 I've started experimenting with i3wm and thus, have found the need for
autorandr
I've figured out most what I need to get it working, but there is one issue, which I cannot figure out. I've created a few configs, including adefault
config.My issue is, when I unplug the external monitor, I see
autorandr.service
executing the hook, but for some unknown reason, it cannot find my existing configs. E.g:journalctl -f -u autorandr.service
output:Using
autorandr default
in a terminal has the expected and desired output. The issue is only present when it is run via theautorandr.service
I've looked around in autorandr.py, if the config did not exist, I would have expected a
Failed to load profiles
(line 1471), but it seems like the profiles are loaded, the error is at line 1637.I've also fiddled with
autorandr.service
trying to load a different profile, from the ones I've created. Same issue.I've searched through the github issues, but can't seem to find something that is similar.
Any help would be greatly appreciated.