-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force detect EDID information from xrandr --verbose
- Loading branch information
Showing
9 changed files
with
121 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
' Gambas class file | ||
|
||
|
||
Public Sub Form_Open() | ||
Me.Center | ||
Me.X = Settings["Window/X", Me.X] | ||
Me.Y = Settings["Window/Y", Me.Y] | ||
Exec ["/bin/bash", "" & User.Home & "/.i-nex/edid"] Wait | ||
TextArea1.Text = File.Load("" & User.Home & "/.i-nex/edid.conf") | ||
|
||
End | ||
|
||
Public Sub Button1_Click() | ||
|
||
Me.Close | ||
|
||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Gambas Form File 3.0 | ||
|
||
{ Form Form | ||
MoveScaled(0,0,67,75) | ||
Font = Font["8"] | ||
Resizable = False | ||
{ VBox1 VBox | ||
MoveScaled(0,0,67,71) | ||
Expand = True | ||
{ TextArea1 TextArea | ||
MoveScaled(0,0,62,62) | ||
#Translate = False | ||
Font = Font["8"] | ||
Expand = True | ||
Text = "TextArea1" | ||
ReadOnly = True | ||
} | ||
} | ||
{ Button1 Button | ||
MoveScaled(55,71,11,4) | ||
Font = Font["Bold,8"] | ||
Text = ("Close") | ||
Picture = Picture["icon:/16/quit"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -733,3 +733,9 @@ Public Sub Form_Move() | |
Settings["Window/Y"] = Me.Y | ||
|
||
End | ||
|
||
Public Sub Button11_Click() | ||
|
||
FEDID.Show | ||
|
||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
xrandr --verbose | perl -ne ' | ||
if ((/EDID:/.../:/) && !/:/) { | ||
s/^\s+//; | ||
chomp; | ||
$hex .= $_; | ||
} elsif ($hex) { | ||
# Use "|strings" if you dont have read-edid package installed | ||
# and just want to see (or grep) the human-readable parts. | ||
open FH, "|inex-edid"; | ||
print FH pack("H*", $hex); | ||
$hex = ""; | ||
}' > ~/.i-nex/edid.conf |