{"action":"created","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1488","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1488/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1488/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1488/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/1488","id":120472686,"number":1488,"title":"Process qubes-set-monitor-layout hangs consuming some CPU","user":{"login":"v6ak","id":184015,"avatar_url":"https://avatars.githubusercontent.com/u/184015?v=3","gravatar_id":"","url":"https://api.github.com/users/v6ak","html_url":"https://github.com/v6ak","followers_url":"https://api.github.com/users/v6ak/followers","following_url":"https://api.github.com/users/v6ak/following{/other_user}","gists_url":"https://api.github.com/users/v6ak/gists{/gist_id}","starred_url":"https://api.github.com/users/v6ak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v6ak/subscriptions","organizations_url":"https://api.github.com/users/v6ak/orgs","repos_url":"https://api.github.com/users/v6ak/repos","events_url":"https://api.github.com/users/v6ak/events{/privacy}","received_events_url":"https://api.github.com/users/v6ak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20core","name":"C: core","color":"cccccc"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20templates","name":"C: templates","color":"cccccc"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/P:%20major","name":"P: major","color":"fbca04"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.1-fc21-testing","name":"r3.1-fc21-testing","color":"ededed"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/r3.1-fc22-testing","name":"r3.1-fc22-testing","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/21","html_url":"https://github.com/QubesOS/qubes-issues/milestones/Release%203.0%20updates","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/21/labels","id":1343732,"number":21,"title":"Release 3.0 updates","description":"Updates for stable release","creator":{"login":"marmarek","id":726704,"avatar_url":"https://avatars.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":58,"state":"open","created_at":"2015-10-08T01:08:26Z","updated_at":"2015-12-26T13:24:54Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-04T19:45:29Z","updated_at":"2015-12-26T13:30:02Z","closed_at":"2015-12-26T13:22:20Z","body":"I've found a process that constantly consumes several percents of CPU, at least on Debian 8 template. It is qubes-set-monitor-layout and seems to be called by SetMonitorLayout at some stage of VM boot.\r\n\r\nThe intermediate cause seems to be clear: There is no DISPLAY variable, which makes xrandr to fail, which causes the busy loop to be infinite. There is the environment of the hanging process:\r\n\r\n\t~% ps aux | grep qubes-set-monitor\r\n\tuser       573  2.2  0.7  13200  2816 ?        S    19:07   1:54 /bin/bash /usr/bin/qubes-set-monitor-layout\r\n\tuser     26332  0.0  0.4  12660  1708 pts/0    S+   20:32   0:00 grep qubes-set-monitor\r\n\t~% xargs -0 printf \"%s\\n\" < /proc/573/environ\r\n\tMAIL=/var/mail/user\r\n\tUSER=user\r\n\tSHLVL=0\r\n\tHOME=/home/user\r\n\tOLDPWD=/home/user\r\n\tLOGNAME=user\r\n\t_=/usr/lib/qubes/qubes-rpc-multiplexer\r\n\tXDG_SESSION_ID=c1\r\n\tPATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\r\n\tXDG_RUNTIME_DIR=/run/user/1000\r\n\tLANG=en_US.UTF-8\r\n\tSHELL=/bin/zsh\r\n\tLC_ALL=en_US.UTF-8\r\n\tPWD=/home/user\r\n\tQREXEC_REMOTE_DOMAIN=dom0\r\n\r\nThere is the loop where the script seems to hang in:\r\n\r\n    while ! xrandr -q &>/dev/null; do sleep 0.1; done\r\n\r\nI have, however, no clue why there is no DISPLAY variable in the environment."},"comment":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/comments/167324424","html_url":"https://github.com/QubesOS/qubes-issues/issues/1488#issuecomment-167324424","issue_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1488","id":167324424,"user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T13:30:02Z","updated_at":"2015-12-26T13:30:02Z","body":"**Automated announcement from [builder-github]**\n\nThe package `qubes-gui-vm-3.1.3-1.fc23` has been pushed to the `r3.1` testing repository for the Fedora `fc23` template.\nTo test this update, please install it with the following command:\n```\nsudo yum update --enablerepo=qubes-vm-r3.1-current-testing\n```\n[Changes included in this update][commits]\n\n[builder-github]: https://github.com/QubesOS/qubes-builder-github\n[commits]: https://github.com/QubesOS/qubes-gui-agent-linux/compare/26587e3c82eb51c0193c7370ba1c933f99ef9364...d2ce71b29ac19610acf1abed4dc7be03e69b4c66\n"}}