Profile

Cover photo
Michael Meehan
Lives in 80904
146 followers|93,939 views
AboutPostsPhotosVideosReviews

Stream

Michael Meehan

Shared publicly  - 
 
CowboyNeal.
 
CowboyNeal?
311 votes  -  votes visible to Public
CowboyNeal
29%
CowboyNeal
14%
CowboyNeal
20%
CowboyNeal
23%
CowboyNeal
14%
1
Greg Kotzas's profile photoMichael Meehan's profile photo
2 comments
 
You and your Third CowboyNeal conspirators will be first against the wall.
Add a comment...

Michael Meehan

Shared publicly  - 
 
This may be the only time that manually generating modelines isn't just a tedious pitfall.
 
So here's the random trick of the day: say you decided to finally upgrade your monitor due to a random discussion on G+, but it turns out that you haven't upgraded your desktop in a while, so you're stuck with single-link DVI.

And the fancy new monitor is a 2560x1440 one that requires dual-link DVI to drive it, so says the documentation in big letters. What do?

Of course, you could just try to find a HDMI cable, since I suspect the machine is still new enough that it happily does HDMI at pixel frequencies high enough that it would all work fine. But you're a lazy git, and you can't find a cable anywhere. And by "anywhere" I mean "lying right there on my desk, not under a pile of paper".

So rather than waste your time with trying to find hardware you may or may not have, just say "hey, I'm not playing games anyway, so why not just drive that thing with a single DVI link at 30Hz instead of the 60Hz it wants. It's going to buffer the data somewhere to see if it needs to stretch it anyway". 

And if you are that kind of lazy git, here's what you do:

Step 1: calculate the VESA timing modes for 2560x1440 at 30Hz. You could do this by hand if you were a real man, but we already covered the whole "lazy git" part. So use the "gtf" tool (no, that's not random noise, it means "Generalized Timing Formula", it's part of the VESA standard for how the pixel signal timings are supposed to look like)

Running "gtf 2560 1440 30" spits out the following lovely turd, bringing back bad memories of X11 config files. There's a reason we don't do them any more, but people still remember it, and get occasional flashbacks and PSTD:

  # 2560x1440 @ 30.00 Hz (GTF) hsync: 43.95 kHz; pclk: 146.27 MHz
  Modeline "2560x1440_30.00"  146.27  2560 2680 2944 3328  1440 1441 1444 1465  -HSync +Vsync

Yeah, G+ will completely corrupt the formatting of those two lines, but for once it doesn't really matter. It looks like noise regardless of formatting. It's not meant for human consumption.

Step 2: tell 'xrandr' about this mode by just copying-and-pasting the numbers that gtf spit out after incanting the magic words "xrandr --newmode 2560x1440". So the command line looks something like 

   xrandr --newmode 2560x1440 146.27 2560 2680 ...

which will quietly seem to do absolutely nothing, but will have told xrandr that there's a new mode with those particular timings available.

Step 3: tie that mode to the list of modes that the HDMI1 output (which is what is connected to the DVI output, which you would have figured out by just running "xrandr" without any arguments what-so-ever) knows about:

xrandr --addmode HDMI1 2560x1440

Again, absolutely nothing appears to happen, but under the hood this has prepared us to say "yes, I really mean that". Lovely.

Step 4: actually switch to it. This is where the monitor either goes black, spectacularly blows up, or starts showing all its pixels the way it is supposed to:

xrandr --output HDMI1 --mode 2560x1440

Ta-daa! Wasn't that easy? Never mind what the manual says how you should use this monitor, we have the technology to do better than that. Or, in this case, worse than that, but whatever.

Now, obviously any sane person would ask himself why the GTF calculations aren't something that 'xrandr' just knows about, and why this isn't just a single command to say "please switch that output to 2560x1440@30". Why all the extra steps?

The answer to that question? I have absolutely no idea. Graphics driver people are an odd bunch. 
2
Add a comment...

Michael Meehan

Shared publicly  - 
1
Ryan Tolboom's profile photoEmre Yucel's profile photo
2 comments
 
cute cat!
Add a comment...

Michael Meehan

Shared publicly  - 
 
Michael Meehan originally shared:
 
I converted to Tau-ism.
1
Add a comment...

Michael Meehan

Shared publicly  - 
1
trapexit's profile photoChris Lewis's profile photoMichael Meehan's profile photo
6 comments
 
99 bottles of beer in 99 languages, but I still can't keep my fridge automatically stocked :-(
Add a comment...

Michael Meehan

Shared publicly  - 
 
Rill Rill playing at Head for the Hills intermission!! 
1
Add a comment...

Michael Meehan

Shared publicly  - 
 
Did you do your best today?
1
Heather Henkell's profile photoRyan Tolboom's profile photoTennyson McCalla's profile photoZachary Smith's profile photo
4 comments
 
I barely tried. 
Add a comment...
In his circles
158 people
Have him in circles
146 people
Daniel Patrick's profile photo
Michael Hickey's profile photo
Sam Miller's profile photo
Jeremiah Harding's profile photo
Jason Keeley's profile photo
Philip Kobel's profile photo
Anne Markis's profile photo
Najmul Alam Rico's profile photo
Kathleen Taricani's profile photo

Michael Meehan

Shared publicly  - 
 
Lotus Elise, officially off the bucket list. 
5
Ryan Tolboom's profile photoChris Lewis's profile photoMichael Meehan's profile photoIlvia Osceola's profile photo
5 comments
 
I'm in awe!!!
Add a comment...

Michael Meehan

Shared publicly  - 
 
The fire is about 3 miles away.
 
Last night at Garden of the Gods. My friends Allison shared this on FB. :-(
2
laurie paravati's profile photoJessica Suksi's profile photoRyan Tolboom's profile photo
3 comments
 
Jesus.  Build and destroy.
Add a comment...

Michael Meehan

Shared publicly  - 
 
GnR Muzak? Cmon, Delta!
1
Ryan Tolboom's profile photo
 
Axl needed to be on that flight, sitting next to you.
Add a comment...

Michael Meehan

Shared publicly  - 
Congress is considering legislation that would create backdoor wiretaps into our daily communications. These “cybersecurity” bills would give companies a free pass to monitor and collect communication...
1
Add a comment...

Michael Meehan

Shared publicly  - 
1
Ryan Tolboom's profile photoMichael Meehan's profile photoJoe Lawrence's profile photomegan luther's profile photo
5 comments
 
i totally forgot to check out the DIA while i was there,
Add a comment...
People
In his circles
158 people
Have him in circles
146 people
Daniel Patrick's profile photo
Michael Hickey's profile photo
Sam Miller's profile photo
Jeremiah Harding's profile photo
Jason Keeley's profile photo
Philip Kobel's profile photo
Anne Markis's profile photo
Najmul Alam Rico's profile photo
Kathleen Taricani's profile photo
Links
Other profiles
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
80904
Basic Information
Gender
Male
Honorable
Public - 2 years ago
reviewed 2 years ago
The best beer distributor in Queens.
Public - 2 years ago
reviewed 2 years ago
4 reviews
Map
Map
Map