phillipberndt / autorandr

Auto-detect the connected display hardware and load the appropriate X11 setup using xrandr
2.51k stars 124 forks source link

Detected Wayland session 'wayland-0'. Exiting. #364

Open qq516249940 opened 1 year ago

qq516249940 commented 1 year ago

env

python 3.10.12
autorandr-1.14.post1

        `:+ssssssssssssssssss+:`           ---------------------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04.3 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: 20HRS15700 ThinkPad X1 Carbon  
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.2.0-34-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 16 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3663 (dpkg), 5 (flatpak),  
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: zsh 5.8.1 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-blue [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru-blue [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-7500U (4) @ 3.500GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel HD Graphics 620 
      -+sssssssssssssssssyyyssss+-         Memory: 6832MiB / 15744MiB 

when run command autorandr -c ,output error

Detected Wayland session 'wayland-0'. Exiting.

resolve

I downgraded antorandr,run is ok

pip3 install  autorandr==1.12.post1
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting autorandr==1.12.post1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/dc/78/973259ecf10d0861defdbd0b14baaf5479182e479e933e37345ba3a15738/autorandr-1.12.post1-py3-none-any.whl (25 kB)
Installing collected packages: autorandr
  Attempting uninstall: autorandr
    Found existing installation: autorandr 1.14.post1
    Uninstalling autorandr-1.14.post1:
      Successfully uninstalled autorandr-1.14.post1
Successfully installed autorandr-1.12.post1
fredr commented 5 days ago

See https://github.com/phillipberndt/autorandr?tab=readme-ov-file#wayland

you need to unset WAYLAND_DISPLAY when running the command:

$ WAYLAND_DISPLAY= autorandr