{"action":"created","comment":{"url":"https://api.github.com/repos/yast/yast-x11/pulls/comments/67163423","id":67163423,"diff_hunk":"@@ -0,0 +1,51 @@\n+#! /usr/bin/perl\n+\n+use strict;\n+\n+my $usage = <<XXX;\n+set_videomode [MODE][,DPI]\n+\n+Sets video mode MODE using xrandr. If DPI is specified, also adjusts physical\n+screen size to match the dpi value. If MODE is missing, only DPI is adjusted.\n+\n+If the mode can't be set, the old video mode is kept.\n+\n+To be precise, it changes the first connected display.\n+XXX\n+\n+my ($mode, $dpi) = split /,/, @ARGV[0];\n+$dpi += 0;\n+\n+die $usage unless $mode ne \"\" || $dpi;\n+\n+open my $log, \">>/var/log/YaST2/y2videomode.log\";\n+\n+my $xrandr = \"xrandr\";\n+\n+my @randr = `$xrandr 2>&1`;","path":"src/tools/set_videomode","position":25,"original_position":25,"commit_id":"8c7305beebf4504aa9180afdaab6049621ef3d5f","original_commit_id":"8c7305beebf4504aa9180afdaab6049621ef3d5f","user":{"login":"wfeldt","id":927244,"avatar_url":"https://avatars.githubusercontent.com/u/927244?v=3","gravatar_id":"","url":"https://api.github.com/users/wfeldt","html_url":"https://github.com/wfeldt","followers_url":"https://api.github.com/users/wfeldt/followers","following_url":"https://api.github.com/users/wfeldt/following{/other_user}","gists_url":"https://api.github.com/users/wfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/wfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfeldt/subscriptions","organizations_url":"https://api.github.com/users/wfeldt/orgs","repos_url":"https://api.github.com/users/wfeldt/repos","events_url":"https://api.github.com/users/wfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/wfeldt/received_events","type":"User","site_admin":false},"body":"yes, that's why they are redirected and and up in the log","created_at":"2016-06-15T13:43:44Z","updated_at":"2016-06-15T13:43:44Z","html_url":"https://github.com/yast/yast-x11/pull/13#discussion_r67163423","pull_request_url":"https://api.github.com/repos/yast/yast-x11/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/comments/67163423"},"html":{"href":"https://github.com/yast/yast-x11/pull/13#discussion_r67163423"},"pull_request":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/yast/yast-x11/pulls/13","id":73908332,"html_url":"https://github.com/yast/yast-x11/pull/13","diff_url":"https://github.com/yast/yast-x11/pull/13.diff","patch_url":"https://github.com/yast/yast-x11/pull/13.patch","issue_url":"https://api.github.com/repos/yast/yast-x11/issues/13","number":13,"state":"open","locked":false,"title":"add set_videomode script to adjust video mode using xrandr (bsc#974821)","user":{"login":"wfeldt","id":927244,"avatar_url":"https://avatars.githubusercontent.com/u/927244?v=3","gravatar_id":"","url":"https://api.github.com/users/wfeldt","html_url":"https://github.com/wfeldt","followers_url":"https://api.github.com/users/wfeldt/followers","following_url":"https://api.github.com/users/wfeldt/following{/other_user}","gists_url":"https://api.github.com/users/wfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/wfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfeldt/subscriptions","organizations_url":"https://api.github.com/users/wfeldt/orgs","repos_url":"https://api.github.com/users/wfeldt/repos","events_url":"https://api.github.com/users/wfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/wfeldt/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-15T13:10:26Z","updated_at":"2016-06-15T13:43:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04c2e08f62b0ef1f30c218f7ac859e0895a6a48c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yast/yast-x11/pulls/13/commits","review_comments_url":"https://api.github.com/repos/yast/yast-x11/pulls/13/comments","review_comment_url":"https://api.github.com/repos/yast/yast-x11/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yast/yast-x11/issues/13/comments","statuses_url":"https://api.github.com/repos/yast/yast-x11/statuses/8c7305beebf4504aa9180afdaab6049621ef3d5f","head":{"label":"yast:bsc_974821","ref":"bsc_974821","sha":"8c7305beebf4504aa9180afdaab6049621ef3d5f","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368241,"name":"yast-x11","full_name":"yast/yast-x11","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-x11","description":"YaST module x11","fork":false,"url":"https://api.github.com/repos/yast/yast-x11","forks_url":"https://api.github.com/repos/yast/yast-x11/forks","keys_url":"https://api.github.com/repos/yast/yast-x11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-x11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-x11/teams","hooks_url":"https://api.github.com/repos/yast/yast-x11/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-x11/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-x11/events","assignees_url":"https://api.github.com/repos/yast/yast-x11/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-x11/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-x11/tags","blobs_url":"https://api.github.com/repos/yast/yast-x11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-x11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-x11/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-x11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-x11/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-x11/languages","stargazers_url":"https://api.github.com/repos/yast/yast-x11/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-x11/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-x11/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-x11/subscription","commits_url":"https://api.github.com/repos/yast/yast-x11/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-x11/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-x11/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-x11/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-x11/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-x11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-x11/merges","archive_url":"https://api.github.com/repos/yast/yast-x11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-x11/downloads","issues_url":"https://api.github.com/repos/yast/yast-x11/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-x11/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-x11/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-x11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-x11/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-x11/releases{/id}","deployments_url":"https://api.github.com/repos/yast/yast-x11/deployments","created_at":"2012-05-18T10:27:16Z","updated_at":"2015-04-17T07:51:18Z","pushed_at":"2016-06-15T13:11:26Z","git_url":"git://github.com/yast/yast-x11.git","ssh_url":"git@github.com:yast/yast-x11.git","clone_url":"https://github.com/yast/yast-x11.git","svn_url":"https://github.com/yast/yast-x11","homepage":"http://en.opensuse.org/Portal:YaST","size":862,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"yast:master","ref":"master","sha":"e9f368ff0887737cbbd49563c41177588f2a68f8","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368241,"name":"yast-x11","full_name":"yast/yast-x11","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-x11","description":"YaST module x11","fork":false,"url":"https://api.github.com/repos/yast/yast-x11","forks_url":"https://api.github.com/repos/yast/yast-x11/forks","keys_url":"https://api.github.com/repos/yast/yast-x11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-x11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-x11/teams","hooks_url":"https://api.github.com/repos/yast/yast-x11/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-x11/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-x11/events","assignees_url":"https://api.github.com/repos/yast/yast-x11/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-x11/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-x11/tags","blobs_url":"https://api.github.com/repos/yast/yast-x11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-x11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-x11/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-x11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-x11/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-x11/languages","stargazers_url":"https://api.github.com/repos/yast/yast-x11/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-x11/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-x11/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-x11/subscription","commits_url":"https://api.github.com/repos/yast/yast-x11/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-x11/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-x11/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-x11/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-x11/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-x11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-x11/merges","archive_url":"https://api.github.com/repos/yast/yast-x11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-x11/downloads","issues_url":"https://api.github.com/repos/yast/yast-x11/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-x11/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-x11/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-x11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-x11/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-x11/releases{/id}","deployments_url":"https://api.github.com/repos/yast/yast-x11/deployments","created_at":"2012-05-18T10:27:16Z","updated_at":"2015-04-17T07:51:18Z","pushed_at":"2016-06-15T13:11:26Z","git_url":"git://github.com/yast/yast-x11.git","ssh_url":"git@github.com:yast/yast-x11.git","clone_url":"https://github.com/yast/yast-x11.git","svn_url":"https://github.com/yast/yast-x11","homepage":"http://en.opensuse.org/Portal:YaST","size":862,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/13"},"html":{"href":"https://github.com/yast/yast-x11/pull/13"},"issue":{"href":"https://api.github.com/repos/yast/yast-x11/issues/13"},"comments":{"href":"https://api.github.com/repos/yast/yast-x11/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yast/yast-x11/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/yast/yast-x11/statuses/8c7305beebf4504aa9180afdaab6049621ef3d5f"}}}}
{"actor":{"display_login":"wfeldt"}}