1
  1. I'm interested in looking into the xrandr source code.
    I googled xrandr source code, and found this code from Apple's opensource site. Is that all of it?
    I don't think so, because one comment says:

Thanks to Jim Gettys who wrote most of the client side code, and part of the server code for randr.

Where can I find the entire source-code?

  1. The Gentoo wiki makes a point regarding xrandr:

Adding the mode manually does not make the monitor work in the mode if it did not work before.

So this means there's no problem with RandR? The problem is with monitor and GPU support?

TellMeWhy
  • 17,124
  • 39
  • 95
  • 141
  • I don't get your second question, you can manually add a new mode to xrandr, I have 1080p laptop, everything is tiny, so I added a mode for 1366x768 (16:9) and it works perfect. Are you asking how to add a mode? – Mark Kirby Jan 06 '16 at 12:13
  • @markkirby did you add the mode manually, or did you just set it using xrandr? – TellMeWhy Jan 06 '16 at 12:15
  • I had to add a new mode, the laptop did not have a 1366x768 mode in display settings, just some strange stretched 16:10 options, so I made one. I think I used this guide https://wiki.archlinux.org/index.php/Xrandr#Adding_undetected_resolutions – Mark Kirby Jan 06 '16 at 12:18
  • @markkirby hmm... not sure what's going on **=(** – TellMeWhy Jan 06 '16 at 12:21
  • 1
    I think that link is referring to completely unsupported modes ie You can't add a 1080p mode to a 720p laptop. It is a strange point for them to make after showing how to set a mode. – Mark Kirby Jan 06 '16 at 12:26
  • @DevRobot , Otherwise if you are looking for upstream project (last updated source code) see http://cgit.freedesktop.org/xorg/ – user.dz Jan 31 '16 at 21:19

1 Answers1

2

You can get any source code from the repository’s, first open software and updates and check source code

enter image description here

Now you can use the source parameter in apt to pull any source right from the repos, xrandr is part of x11-xserver-utils, so use this command

apt-get source x11-xserver-utils
Mark Kirby
  • 18,289
  • 19
  • 78
  • 113